Skip to content

Commit

Permalink
fix: memhavoc should be mem def
Browse files Browse the repository at this point in the history
  • Loading branch information
priyasiddharth authored and caballa committed Sep 19, 2023
1 parent 8fc33bd commit 910fa15
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/seadsa/ShadowMem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1251,9 +1251,10 @@ void ShadowMemImpl::visitMemhavoc(CallBase &I) {
}

m_B->SetInsertPoint(&I);
CallInst &memUse =
mkShadowLoad(*m_B, cell, dsa::getTypeSizeInBytes(*ptr.getType(), *m_dl));
associateConcretePtr(memUse, ptr, &I);
CallInst &memDef = mkShadowStore(
*m_B, cell,
dsa::getTypeSizeInBytes(*ptr.getType(), *m_dl) /* bytes to access */);
associateConcretePtr(memDef, ptr, &I);
}

void ShadowMemImpl::visitIsModified(CallBase &I) {
Expand Down

0 comments on commit 910fa15

Please sign in to comment.