Skip to content

Commit 07b5bbc

Browse files
committed
klee: fixed z3 api
Signed-off-by: Vitaly Chipounov <vitaly@chipounov.fr>
1 parent c024c0e commit 07b5bbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

klee/lib/Solver/Z3Solver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ void Z3BaseSolverImpl::extractModel(const ArrayVec &objects, std::vector<std::ve
233233
z3::expr value_ast = model.eval(builder_->getInitialRead(array, offset), true);
234234
unsigned value_num;
235235

236-
Z3_bool conv_result = Z3_get_numeral_uint(context_, value_ast, &value_num);
237-
::check(conv_result == Z3_TRUE, "Could not convert value");
236+
auto conv_result = Z3_get_numeral_uint(context_, value_ast, &value_num);
237+
::check(conv_result, "Could not convert value");
238238
assert(value_num < (1 << 8 * sizeof(unsigned char)) && "Invalid model value");
239239

240240
data.push_back((unsigned char) value_num);

0 commit comments

Comments
 (0)