Skip to main navigation Skip to search Skip to main content

Automatically extracting implicit programming rules and detecting violations from C programs

  • School of Computer Science and Technology, Harbin Institute of Technology

Research output: Contribution to journalArticlepeer-review

Abstract

A general and efficient method is proposed to automatically extract the rules and detect violations to the rules extracted. Closed frequent itemset mining is applied to mine programming patterns. Then these patterns are used to generate programming rules. The concept of Positive Order Rule is introduced to avoid generating redundant rules from the same programming pattern. Based on these efforts, we also propose an efficient violations detection algorithm to detect program segments that are not consistent with the extracted rules. The experiment results on large software source code indicate that this method can automatically extract lots of implicit programming rules and also can efficiently detect the code segments that violate the extracted rules.

Original languageEnglish
Pages (from-to)248-254
Number of pages7
JournalTien Tzu Hsueh Pao/Acta Electronica Sinica
Volume41
Issue number2
DOIs
StatePublished - Feb 2013
Externally publishedYes

Keywords

  • Frequent closed itemset mining
  • Programming rules extracting
  • Software defects detecting
  • Static analysis
  • Violations detecting

Fingerprint

Dive into the research topics of 'Automatically extracting implicit programming rules and detecting violations from C programs'. Together they form a unique fingerprint.

Cite this