Open SherlockNovitch opened 9 months ago
Sorry this is not better documented. I was looking at this code to create Modules when there is a single file:
It also adds a Module for the prologue by calling this function:
Does that help to fix your case?
The wiki only has single-file api usage examples. I try to use the
public static CallGraph makeScriptCG(SourceModule[] scripts, CGBuilderType builderType, IRFactory<IMethod> irFactory)
api for multi-file call graph generation.The complete code is as follows:
The output results only contain the edge between the fake root and the file node under the
filePath
folder. No other information is output, which is very different from the output of a single file.How can i get correct call graph of multiplejs files?