ATLAS: Multi-View Code Representation Tool for C and C++ Source Programs
Jaid Monwar Chowdhury, Ahmad Farhan Shahriar Chowdhury, Humayra Binte Monwar, Mahmuda Naznin
Abstract
Multi-view code graphs that align abstract syntax trees, control flow graphs, and data flow graphs are now central to machine-learning models for software engineering. For C and C++, no single tool produces these aligned views without a complete build. We present ATLAS, a command-line tool that takes one or more C or C++ source files and emits an AST, a source-level inter-procedural CFG, a reaching-definition DFG, or any combination. The output is available as JSON, DOT, or PNG. ATLAS runs directly on source code and accepts partial input such as a project with missing headers, so it needs no compilation or build database. All views share one node namespace, so a downstream consumer can recover any single view by filtering edges. Command-line flags select views, collapse variables, and blacklist node categories to resize the emitted graph. On the TheAlgorithms corpora, ATLAS produces a correct CFG for 96.80% of C files and 91.67% of C++ files, including files that do not compile. It already serves as the CFG front-end of an LLM-based unit-test generation framework for C. ATLAS is open source and ships as a Docker image with a screencast walkthrough. Demo link: https://youtu.be/50DvEbenp14.
Create a lesson
Related papers
CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents
Shared title terminology · Zhongming Yu, Hengjia Yu, Boqin Yuan et al.
Pixels for Programs? A Cross-Provider Case Study of Input-Token Accounting for Source Code as Text and Images
Shared title terminology · Ronak Bhalgami
Multi-Source and Cross-Scenario Strategy-Guided Code Optimization
Shared title terminology · Yuwei Zhao, Qianyu Xiao, Ye Cui et al.
Beyond Plain MCP: Do Decision Models and Code Mode Make Tool Use Cheaper and Faster?
Shared title terminology · Abhishek Rai
Beyond Source Code: Evaluating Natural Language Specifications for LLM-Based C-to-Rust Translation
Shared title terminology · Biruk Tadesse, Lawrence Arkoh, Marcelo D'Amorim et al.
Structural Validation of LLM-Generated Microservice Decompositions Using Source-Code Dependencies
Shared title terminology · Daniel Silva, Renan Alves, Emanuel Dantas Filho et al.