-
Notifications
You must be signed in to change notification settings - Fork 439
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
add heap and stack obj var and fix CI #1608
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1608 +/- ##
==========================================
+ Coverage 63.03% 63.05% +0.01%
==========================================
Files 246 246
Lines 27402 27472 +70
Branches 4529 4535 +6
==========================================
+ Hits 17274 17322 +48
- Misses 10128 10150 +22
|
@@ -473,7 +473,7 @@ class DDAVFSolver | |||
NodeID id = getPtrNodeID(var); | |||
const MemObj* obj = _pag->getObject(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
baseobjvar = _pag->getObject(id);
isa(baseobjvar)
svf/include/DDA/DDAVFSolver.h
Outdated
const MemObj* mem = _pag->getObject(getPtrNodeID(var)); | ||
assert(mem && "memory object is null??"); | ||
return mem->isHeap(); | ||
return SVFUtil::isHeapOriginVar(_pag->getGNode(getPtrNodeID(var))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove isHeapOriginVar.
svf/include/Util/SVFUtil.h
Outdated
@@ -374,7 +374,11 @@ bool isHeapAllocExtCallViaRet(const CallICFGNode* cs); | |||
|
|||
bool isHeapAllocExtCall(const ICFGNode* cs); | |||
|
|||
/// Check if the given variable originates from the heap. | |||
bool isHeapOriginVar(const SVFVar* var); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
svf/include/Util/SVFUtil.h
Outdated
|
||
/// Check if the given variable originates from the heap. | ||
bool isStackOriginVar(const SVFVar* var); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
@@ -577,13 +577,15 @@ bool MRGenerator::isNonLocalObject(NodeID id, const SVFFunction* curFun) const | |||
const MemObj* obj = pta->getPAG()->getObject(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getObject => getBaseObj.
--- log/redis-server.log 2024-12-16 17:53:12.879406997 +1100 PTACallGraph Stats (Andersen analysis)****** Memory SSA Statistics****** PTACallGraph Stats (Flow-sensitive analysis)****** Persistent Points-To Cache Statistics: flow-sensitive analysis bitvector |
No description provided.