摘要
To detect the method calls with incorrect arguments in software systems, an association analysis and N-Gram based static anomaly detection approach (ANiaD) is proposed. Based on the massive open source code, an association analysis model is constructed to mine the strong association rules between arguments. An N-Gram model is constructed for method calls with strong association rules between arguments. Using the trained N-Gram model, the probability of a given method call statement is calculated. Low probability method calls are reported as potential bugs. The proposed approach is evaluated based on 10 open-source Java projects. The results show that the accuracy of the proposed approach is about 43.40%, significantly greater than that of similarity-based approach (25% accuracy).
投稿的翻译标题 | Association Analysis and N-Gram Based Detection of Incorrect Arguments |
---|---|
源语言 | 繁体中文 |
页(从-至) | 2243-2257 |
页数 | 15 |
期刊 | Ruan Jian Xue Bao/Journal of Software |
卷 | 29 |
期 | 8 |
DOI | |
出版状态 | 已出版 - 1 8月 2018 |
关键词
- Anomaly detection
- Argument
- Association analysis
- Bug
- Language model