Automatically Extracting Implicit Programming Rules and Detecting Violations from C Programs

YU Zhen,SU Xiao-hong,WANG Tian-tian,MA Pei-jun
DOI: https://doi.org/10.3969/j.issn.0372-2112.2013.02.007
2013-01-01
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.
What problem does this paper attempt to address?