Skip to content

Commit

Permalink
Merge pull request #16 from jumormt/main
Browse files Browse the repository at this point in the history
sync with SVF
  • Loading branch information
yuleisui authored Jun 8, 2023
2 parents d9e616f + 89009b4 commit 8c93e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Z3Manager/Z3Mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ s32_t Z3SSEMgr::getGepOffset(const GepStmt* gep){

/// Caculate the offset
if(const SVFPointerType* pty = SVFUtil::dyn_cast<SVFPointerType>(type))
totalOffset += offset * gep->getLocationSet().getElementNum(pty->getPtrElementType());
totalOffset += offset * gep->getAccessPath().getElementNum(pty->getPtrElementType());
else
totalOffset += SymbolTableInfo::SymbolInfo()->getFlattenedElemIdx(type, offset);
}
Expand Down

0 comments on commit 8c93e24

Please sign in to comment.