10000 step1: remove preAbstrace and use use a temporary state to collect st… by jumormt · Pull Request #1523 · SVF-tools/SVF · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ SVF Public

step1: remove preAbstrace and use use a temporary state to collect st… #1523

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

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

jumormt
Copy link
Contributor
@jumormt jumormt commented Aug 20, 2024

…ates from predecessors

Copy link
codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 94.87179% with 2 lines in your changes missing coverage. Please review.

Project coverage is 65.42%. Comparing base (c691442) to head (4a79581).
Report is 2 commits behind head on master.

Files Patch % Lines
svf/include/Graphs/WTO.h 0.00% 1 Missing ⚠️
svf/lib/AE/Svfexe/AbstractInterpretation.cpp 97.05% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1523      +/-   ##
==========================================
- Coverage   65.42%   65.42%   -0.01%     
==========================================
  Files         256      256              
  Lines       26921    26920       -1     
  Branches     4810     4807       -3     
==========================================
- Hits        17614    17612       -2     
- Misses       9307     9308       +1     
Files Coverage Δ
svf/include/AE/Svfexe/AbstractInterpretation.h 95.00% <100.00%> (ø)
svf/include/AE/Svfexe/BufOverflowChecker.h 95.45% <100.00%> (-4.55%) ⬇️
svf/include/Graphs/WTO.h 85.98% <0.00%> (ø)
svf/lib/AE/Svfexe/AbstractInterpretation.cpp 83.56% <97.05%> (-0.02%) ⬇️

@@ -181,18 +180,30 @@ void AbstractInterpretation::handleGlobalNode()
/// get execution state by merging states of predecessor blocks
/// Scenario 1: preblock -----(intraEdge)----> block, join the preES of inEdges
/// Scenario 2: preblock -----(callEdge)----> block
bool AbstractInterpretation::mergeStatesFromPredecessors(const ICFGNode *block)
bool AbstractInterpretation::mergeStatesFromPredecessors(const ICFGWTOComp * wtoCmp)
Copy link
Collaborator

Choose a reason for hiding this comment

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

AbstractInterpretation::mergeStatesFromPredecessors(const ICFGWTOComp * wtoCmp) =>

AbstractInterpretation::mergeStatesFromPredecessors(const ICFGNode * icfgNode)

}
// Handle WTO cycles
else if (const ICFGCycleWTO* cycle = SVFUtil::dyn_cast<ICFGCycleWTO>(wtoNode))
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

if(mergeStatesFromPredecessors(cycle->head()->node()))
handleCycleWTO(node);

return;
}
if (const ICFGSingletonWTO* node = SVFUtil::dyn_cast<ICFGSingletonWTO>(wtoNode))
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

if(mergeStatesFromPredecessors(wtonode->getNode()))
handleSingletonWTO(node);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also rename the following:

ICFGSingletonWTO::getNode=> ICFGSingletonWTO::getICFGNode();
ICFGCycleWTO::getNode=> ICFGCycleWTO::getICFGNode();

@yuleisui yuleisui merged commit 02fa4ef into SVF-tools:master Aug 21, 2024
5 checks passed
@jumormt jumormt deleted the 08.20 branch August 21, 2024 07:58
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
0