Abstract: Large language models (LLMs) have become powerful tools for automated code generation. Yet, they remain prone to both syntax and logic errors that limit their effectiveness in real-world ...