Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refact callgraph #1558

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Geoffrey1014
Copy link

create PTACallGraph
make PTACallGraph inherite CallGraph

hwg added 3 commits October 3, 2024 00:03
make PTACallGraph inherite CallGraph
@@ -1319,7 +1318,7 @@ cJSON* SVFIRWriter::toJson(const SVFModule* module)
F(pagReadFromTxt);
F(moduleIdentifier);

F(FunctionSet);
// F(CallGraphNodeSet);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

@@ -1773,7 +1772,7 @@ void SVFIRReader::readJson(SVFModule* module)
#define F(field) JSON_READ_FIELD_FWD(obj, module, field)
F(pagReadFromTxt);
F(moduleIdentifier);
F(FunctionSet);
// F(CallGraphNodeSet);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 76.84887% with 72 lines in your changes missing coverage. Please review.

Project coverage is 62.75%. Comparing base (6a54cf4) to head (440ecea).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
svf/lib/Graphs/PTACallGraph.cpp 74.13% 15 Missing ⚠️
svf/lib/MTA/LockAnalysis.cpp 27.27% 8 Missing ⚠️
svf/lib/MTA/MHP.cpp 58.33% 5 Missing ⚠️
svf/lib/MemoryModel/PointerAnalysis.cpp 68.75% 5 Missing ⚠️
svf/include/Graphs/PTACallGraph.h 63.63% 4 Missing ⚠️
svf/lib/DDA/DDAPass.cpp 0.00% 4 Missing ⚠️
svf/lib/Graphs/SVFGReadWrite.cpp 0.00% 4 Missing ⚠️
svf/lib/Util/SVFUtil.cpp 42.85% 4 Missing ⚠️
svf/lib/Graphs/CallGraph.cpp 62.50% 3 Missing ⚠️
svf/include/Graphs/ThreadCallGraph.h 50.00% 2 Missing ⚠️
... and 10 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1558      +/-   ##
==========================================
- Coverage   62.88%   62.75%   -0.13%     
==========================================
  Files         245      247       +2     
  Lines       25681    25753      +72     
  Branches     4505     4518      +13     
==========================================
+ Hits        16149    16161      +12     
- Misses       9532     9592      +60     
Files with missing lines Coverage Δ
svf-llvm/include/SVF-LLVM/LLVMModule.h 93.87% <ø> (ø)
svf-llvm/include/SVF-LLVM/SVFIRBuilder.h 90.09% <ø> (ø)
svf-llvm/lib/LLVMModule.cpp 83.75% <100.00%> (+0.15%) ⬆️
svf-llvm/lib/SVFIRBuilder.cpp 84.23% <100.00%> (+0.31%) ⬆️
svf-llvm/lib/SVFIRExtAPI.cpp 84.74% <ø> (ø)
svf-llvm/tools/AE/ae.cpp 55.89% <100.00%> (ø)
svf-llvm/tools/Example/svf-ex.cpp 96.96% <100.00%> (ø)
svf/include/AE/Svfexe/AbstractInterpretation.h 96.00% <ø> (ø)
svf/include/DDA/ContextDDA.h 74.19% <100.00%> (+0.86%) ⬆️
svf/include/DDA/DDAVFSolver.h 90.11% <100.00%> (+0.03%) ⬆️
... and 62 more

... and 1 file with indirect coverage changes

geo added 2 commits October 3, 2024 20:46
add callGraphNode field in SVFArgument
@@ -163,6 +164,27 @@ SVFIR* SVFIRBuilder::build()

pag->setNodeNumAfterPAGBuild(pag->getTotalNodeNum());

CallGraph* cg = llvmModuleSet()->callgraph;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to callgraphbuilder.

Remove PTACallGraph and PTACallGraphEdge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants