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

Connect variadic callees in the call graph #1031

Merged
merged 2 commits into from
Mar 15, 2023

Conversation

timmyyuan
Copy link
Contributor

@timmyyuan timmyyuan commented Mar 14, 2023

Try to fix some of issues in #551

/// even if the callee is a variadic function (the first parameter of variadic function is its paramter number)
if(matchArgs(cs, callee) == false)
/// unless the callee is a variadic function (the first parameter of variadic function is its paramter number)
if(!callee->isVarArg() && matchArgs(cs, callee) == false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you move !callee->isVarArg() into matchArgs?

if(caller->isVarArg() || ThreadAPI::getThreadAPI()->isTDFork(cs->getCallSite()))
return true;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Merging #1031 (fc35775) into master (815c037) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1031      +/-   ##
==========================================
+ Coverage   63.76%   63.83%   +0.06%     
==========================================
  Files         219      219              
  Lines       22074    22074              
==========================================
+ Hits        14076    14090      +14     
+ Misses       7998     7984      -14     
Impacted Files Coverage Δ
svf/include/Graphs/CHG.h 80.00% <ø> (ø)
svf/include/Graphs/ICFGEdge.h 85.00% <ø> (ø)
svf/include/SVFIR/SVFIR.h 100.00% <100.00%> (ø)
svf/include/SVFIR/SVFStatements.h 86.95% <100.00%> (ø)
svf/lib/MemoryModel/PointerAnalysis.cpp 60.82% <100.00%> (ø)

... and 2 files with indirect coverage changes

@yuleisui yuleisui merged commit 30cf19f into SVF-tools:master Mar 15, 2023
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.

2 participants