Cross-Standard Code Defect Identification and AST-Based Template-Driven Automated Repair Methods
摘要
This paper explores optimizing static code defect detection across multiple standards (e.g., GJB8114, CWE, MISRA2012) and AST-based template repair strategies to improve software quality and efficiency. It introduces a universal mechanism for detecting code defects and an AST-based manual template method for precise automated repair. Through experiments on real-world code and benchmarks, the proposed methods show superior accuracy and repair precision over popular neural network-based approaches, highlighting their practical applicability.