在嵌入式软件开发中,代码缺陷会导致软件系统瘫痪。为了实现对软件缺陷的自动定位,提出一种基于抽象语法树解析的嵌入式软件代码缺陷定位技术。采用软件代码缺陷信息演化导入模型进行嵌入式软件的缺陷抽象语法树建模,对软件设计和程序代码中的缺陷模式进行信息重构,对嵌入式软件的括号、设计、命名等代码缺陷进行语法逻辑探测与自动优化,实现软件缺陷的自动定位。测试结果表明,采用该技术进行嵌入式软件缺陷定位的精度较高,时间成本较低,提高了软件的可靠性。
In the development of the embedded software, code defects will lead to paralysis of the software system. In order to realize the automatic positioning of software defects, a kind of embedded software code defect positioning technology based on the analysis of the abstract syntax tree is put forward. The evolution import model of the software code defect information is ad- opted for abstract syntax tree modeling of the embedded software defect to achieve information reconstruction of the defect mode in software design and program code. The code defects of d brackets, design and naming in the embedded software are detected in syntax logic and optimized automatically to realize automatic positioning of software defects precision. The test results show that the technology for the embedded soft defect localization can implement high accuracy and low time cost, and improve the re- liability of the embedded software.