Skip to content

Commit f21b11e

Browse files
committed
fix: pointer handling in solvers
1 parent c17922e commit f21b11e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Solver/MetaSMTBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ MetaSMTBuilder<SolverContext>::constructActual(ref<Expr> e, int *width_out) {
658658
switch (e->getKind()) {
659659
case Expr::Pointer:
660660
case Expr::ConstantPointer: {
661-
assert(0 && "unreachable");
661+
return constructActual(e->getValue(), width_out);
662662
}
663663

664664
case Expr::Constant: {

lib/Solver/Z3CoreBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Z3ASTHandle Z3CoreBuilder::constructActual(ref<Expr> e, int *width_out) {
206206
switch (e->getKind()) {
207207
case Expr::Pointer:
208208
case Expr::ConstantPointer: {
209-
assert(0 && "unreachable");
209+
return constructActual(e->getValue(), width_out);
210210
}
211211

212212
case Expr::Constant: {

0 commit comments

Comments
 (0)