R2Code: Why Your LLM Knows What Code to Write But Not Which Requirement It Satisfies
LLM-generated code has a traceability problem. The model produces code that works, but cannot reliably tell you which requirement each function implements, which requirement has no code at all, and which code has no requirement to justify it. R2Code is the self-reflective framework that closes this gap with an iterative generate-verify-reflect loop and outperforms prior approaches on precision, recall, and F1 across standard benchmark datasets.