Skip to content

Commit ab0be4c

Browse files
committed
[fix, perf, WIP] Removed base check during constant pointer resolution.
1 parent c3ac2ff commit ab0be4c

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

lib/Core/Executor.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6307,16 +6307,6 @@ void Executor::executeMemoryOperation(
63076307
}
63086308

63096309
ref<Expr> inBounds = mo->getBoundsCheckPointer(address, bytes);
6310-
ref<Expr> baseInBounds = Expr::createTrue();
6311-
6312-
if (base != address || size != bytes) {
6313-
baseInBounds =
6314-
AndExpr::create(baseInBounds, mo->getBoundsCheckPointer(base, size));
6315-
baseInBounds = AndExpr::create(
6316-
baseInBounds, Expr::createIsZero(mo->getOffsetExpr(base)));
6317-
}
6318-
6319-
inBounds = AndExpr::create(inBounds, baseInBounds);
63206310

63216311
inBounds = optimizer.optimizeExpr(inBounds, true);
63226312
inBounds = Simplificator::simplifyExpr(state->constraints.cs(), inBounds)

0 commit comments

Comments
 (0)