diff options
author | Martin Nowack <m.nowack@imperial.ac.uk> | 2018-06-09 19:37:30 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-07-04 22:14:58 +0100 |
commit | 54dd6afbae14d4f17a1dee4766331f932d66e117 (patch) | |
tree | 4a27b345bae635c75a70ad2b1a2b8d77d7db6658 /lib/Solver | |
parent | 8f2b9b543b7e226c6ea06917a720452267012c22 (diff) | |
download | klee-54dd6afbae14d4f17a1dee4766331f932d66e117.tar.gz |
Fix compiler warnings if assertions are disabled
Diffstat (limited to 'lib/Solver')
-rw-r--r-- | lib/Solver/Z3Solver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Solver/Z3Solver.cpp b/lib/Solver/Z3Solver.cpp index e89c9463..3eaa8c85 100644 --- a/lib/Solver/Z3Solver.cpp +++ b/lib/Solver/Z3Solver.cpp @@ -352,6 +352,7 @@ SolverImpl::SolverRunStatus Z3SolverImpl::handleSolverResponse( ::Z3_ast arrayElementExpr; Z3ASTHandle initial_read = builder->getInitialRead(array, offset); + __attribute__((unused)) bool successfulEval = Z3_model_eval(builder->ctx, theModel, initial_read, /*model_completion=*/Z3_TRUE, &arrayElementExpr); @@ -362,6 +363,7 @@ SolverImpl::SolverRunStatus Z3SolverImpl::handleSolverResponse( "Evaluated expression has wrong sort"); int arrayElementValue = 0; + __attribute__((unused)) bool successGet = Z3_get_numeral_int(builder->ctx, arrayElementExpr, &arrayElementValue); assert(successGet && "failed to get value back"); @@ -417,6 +419,7 @@ bool Z3SolverImpl::validateZ3Model(::Z3_solver &theSolver, ::Z3_model &theModel) Z3_ast_vector_get(builder->ctx, constraints, index), builder->ctx); ::Z3_ast rawEvaluatedExpr; + __attribute__((unused)) bool successfulEval = Z3_model_eval(builder->ctx, theModel, constraint, /*model_completion=*/Z3_TRUE, &rawEvaluatedExpr); |