Skip to content

Commit 5f65669

Browse files
let z3 decide the value of symbols that are not in the model
1 parent 6744d18 commit 5f65669

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

headers/wasm/smt_solver.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ inline z3::expr Solver::build_z3_expr(SymVal &sym_val) {
170170

171171
inline EvalRes eval_sym_expr_by_model(const SymVal &sym, z3::model &model) {
172172
auto expr = solver.build_z3_expr(const_cast<SymVal &>(sym));
173-
z3::expr value = model.eval(expr, false);
173+
// let z3 decide the value of symbols that are not in the model
174+
z3::expr value = model.eval(expr, true);
174175
// every value is bitvector
175176
int width = expr.get_sort().bv_size();
176177
return EvalRes(Num(value.get_numeral_int64()), width);

0 commit comments

Comments
 (0)