Skip to content

Commit

Permalink
Merge pull request #990 from bjjwwang/01.05
Browse files Browse the repository at this point in the history
fix bugs at getVAddrs() empty
  • Loading branch information
yuleisui authored Jan 7, 2023
2 parents 8fd6a01 + f259cc9 commit 50c0820
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions svf/lib/AbstractExecution/SVFIR2ItvExeState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,14 @@ void SVFIR2ItvExeState::translateLoad(const LoadStmt *load)
{
VAddrs &addrs = getVAddrs(rhs);
assert(!getVAddrs(rhs).empty());
_es[lhs] = IntervalValue::bottom();
getVAddrs(lhs).setBottom();
for (const auto &addr: addrs) {
u32_t objId = getInternalID(addr);
if (inLocToIValTable(objId))
_es[lhs] = IntervalValue::bottom();
else if (inLocToAddrsTable(objId))
getVAddrs(lhs).setBottom();
break;
}
for (const auto &addr: addrs)
{
u32_t objId = getInternalID(addr);
Expand Down

0 comments on commit 50c0820

Please sign in to comment.