The application discloses a kind of program dependence cluster detection methods based on binary set, method is: with binary set form
data structure definition dependent set, and input general set operation interface based on bit operation, obtain new dependent set data storage to each instruction node of general set operation interface program, and
traverse each instruction node of program;Dependency relationship between instructions is calculated using general set operation interface, and dependency
analysis data of each instruction node is obtained;According to the set content in the new set data, the dependency analysis results obtained are reorganized and classified, and the corrected dependency analysis results are obtained to correctly detect the program dependence cluster in program
source code.The application defines set
data structure with binary set, defines operation interface according to
data structure, calculates dependence by calling interface, corrects dependence result, saves the correction result, thereby significantly reduces the space overhead problem during analysis.