摘要
为了提高C语言编程缺陷的检出效率和准确率,研究过程基于深度学习技术,构建了由代码数据模块、代码预处理模块、特征提取模块等组成的在线检测算法模型。经过代码清洗、抽象语法树生成、抽象语法树拆分、模板匹配和相似度计算,检测出缺陷代码的类型和具体位置。经过测试,该检测算法能够检测出C语言代码中的绝大部分缺陷,准确率较高。
In order to improve the detection efficiency and accuracy of programming defects in C language,the rescarch process is based on decp learning technology,and an online detection algorithm model consisting of code data module,code preprocessing module and feature extraction module is constructed.After code clcaning,abstract syntax tree spltting,template matching and similarity calculation,the types and specific locations of defec-tive codes are detected.After testing,the detection algorithm can detect most defects in C lan-guage code with high accuracy.
作者
郑玉泽
ZHENG Yuze(Tianjin Electronic Computer Vocational Secondary School,Tianjin 300201)
出处
《长江信息通信》
2024年第5期235-237,共3页
Changjiang Information & Communications
关键词
C语言
在线编程
深度学习技术
代码缺陷
检测方法
C language
Online programming
Deep learning technology
Code defects
test method