NEXUS (Neural EXecution and Understanding System) is an autonomous AI-powered framework designed to solve complex systems programming assignments in C with high correctness. It integrates formal verification, symbolic execution, and LLM-guided code synthesis.
- Python 3.8+
- GCC (for compiling generated C code)
- Make (for build management)
NEXUS now includes a comprehensive Systems Programming Masterclass Roadmap (12 Weeks) to help you master the fundamentals of systems programming while using the framework.
- View the Roadmap: See ROADMAP.md for the full curriculum.
- CLI Access: Run
python3 main.py --roadmapto display the roadmap directly in your terminal.
git clone https://github.com/Devansh292004/NEXUS.git
cd NEXUSYou can run the framework using the provided main.py entry point.
Using a string specification:
python3 main.py --spec "REQ: Implement a concurrent queue. REQ: Must be fast."Using a specification file:
python3 main.py --file path/to/assignment.txtDefault run (sample specification):
python3 main.pyAfter a successful run, the framework produces:
main.c: The synthesized C source code.Makefile: A professional Makefile with Debug/Release/Test variants.- Documentation (accessible via the
OutputGuaranteesmodule):- System Architecture Diagrams (Mermaid.js)
- API Documentation
- Formal Proof of Correctness
- Comprehensive README
To verify the framework's internal logic and pipeline integrity, run the comprehensive test suite:
export PYTHONPATH=$PYTHONPATH:.
python3 -m unittest discover testsThe framework follows a 12-stage pipeline:
- Multi-Stage Analysis: Requirement decomposition and constraint extraction.
- Domain Planning: Specialized strategies for Memory, Concurrency, and Networking.
- Formal Verification: Path exploration (KLEE) and SMT solving (Z3).
- Code Synthesis: Multi-agent LLM-guided C code generation.
- Intelligent Testing: Property-based, metamorphic, and mutation testing.
- Compliance Checking: Static analysis for forbidden functions and code style.
- Build System: Automatic Makefile generation.
- Output Guarantees: Certification and documentation.