The invention belongs to the technical field of
software security and
program analysis, and particularly discloses a function semantic abstract increment updating method based on call chain
influence analysis, which comprises the following steps of: constructing a function
call graph of an initial code, determining a
processing sequence according to a topological sequence of the function
call graph, generating and storing initial semantic abstracts corresponding to all functions, constructing an initial semantic abstract
library; analyzing the code difference between the new code and the initial code, and identifying changed and newly added functions to determine an affected function set and obtain an update
processing sequence; generating a new semantic abstract of each influenced function based on the updating
processing sequence, performing semantic comparison on the new semantic abstract and historical abstracts in a semantic abstract
library, and updating the semantic abstract
library when semantic change is determined; and updating version information of the semantic abstract library, and outputting a latest function semantic abstract set and an abstract change report. According to the method and the device, increment updating can be quickly carried out while the accuracy of generating the abstract is ensured to be improved.