-
Notifications
You must be signed in to change notification settings - Fork 440
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
fix getgepoffset and accumulateconstantOffset #1184
Conversation
support byte size
@@ -201,74 +201,110 @@ std::pair<s32_t, s32_t> SVFIR2ItvExeState::getGepOffset(const GepStmt *gep) | |||
else | |||
{ | |||
u32_t idx = _svfir->getValueNode(value); | |||
if (!inVarToIValTable(idx)) return std::make_pair(-1, -1); | |||
//if (!inVarToIValTable(idx)) return std::make_pair(-1, -1); |
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 this commented line.
svf/include/MemoryModel/AccessPath.h
Outdated
@@ -110,7 +110,7 @@ class AccessPath | |||
//@} | |||
|
|||
/// Return accumulated constant offset given OffsetVarVec | |||
APOffset computeConstantOffset() const; | |||
APOffset computeConstantOffset(u32_t elem_bytesize, bool getByteOffset) const; |
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.
can we make it default parameters
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1184 +/- ##
==========================================
- Coverage 64.74% 64.64% -0.11%
==========================================
Files 222 222
Lines 23483 23525 +42
==========================================
+ Hits 15204 15207 +3
- Misses 8279 8318 +39
|
1. add getBytefromGepTypePair in SvfIR2ItvExeState 2. add getIndexfromGepTypePair in SvfIR2ItvExeState 3. add accumulateConstantByteOffset in AccessPath
support byte size