Skip to content

Commit 7952ee4

Browse files
committed
fix: handling pointers in bitwuzla builder
1 parent f75cfb1 commit 7952ee4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/Solver/BitwuzlaBuilder.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,11 @@ Term BitwuzlaBuilder::constructActual(ref<Expr> e, int *width_out) {
11131113
assert(*width_out != 1 && "uncanonicalized FNeg");
11141114
return ctx->mk_term(Kind::FP_NEG, {arg});
11151115
}
1116+
case Expr::Pointer:
1117+
case Expr::ConstantPointer: {
1118+
PointerExpr *pointerExpr = cast<PointerExpr>(e);
1119+
return constructActual(pointerExpr->getValue(), width_out);
1120+
};
11161121

11171122
// unused due to canonicalization
11181123
#if 0
@@ -1124,7 +1129,7 @@ case Expr::Sge:
11241129
#endif
11251130

11261131
default:
1127-
assert(0 && "unhandled Expr type");
1132+
klee_error("unhandled Expr type");
11281133
return getTrue();
11291134
}
11301135
}

0 commit comments

Comments
 (0)