首页|基于C语言在线编程代码缺陷检测分析

基于C语言在线编程代码缺陷检测分析

扫码查看
为了提高C语言编程缺陷的检出效率和准确率,研究过程基于深度学习技术,构建了由代码数据模块、代码预处理模块、特征提取模块等组成的在线检测算法模型.经过代码清洗、抽象语法树生成、抽象语法树拆分、模板匹配和相似度计算,检测出缺陷代码的类型和具体位置.经过测试,该检测算法能够检测出C语言代码中的绝大部分缺陷,准确率较高.
On-line Programming Code Defect Detection and Analysis Based on C Lan-guage
In order to improve the detection efficiency and accuracy of programming defects in C language,the research process is based on deep learning technology,and an online detection algo-rithm model consisting of code data module,code preprocessing module and feature extraction module is constructed.After code cleaning,abstract syntax tree generation,abstract syntax tree splitting,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.

C languageOnline programmingDeep learning technologyCode defectstest method

郑玉泽

展开 >

天津市电子计算机职业中等专业学校,天津 300201

C语言 在线编程 深度学习技术 代码缺陷 检测方法

2024

长江信息通信
湖北通信服务公司

长江信息通信

影响因子:0.338
ISSN:2096-9759
年,卷(期):2024.37(5)
  • 6