Skip to content

Commit

Permalink
security/klee: Unbreak after math/z3 update.
Browse files Browse the repository at this point in the history
Reported by:	pkg-fallout
  • Loading branch information
arrowd committed Feb 15, 2023
1 parent cab0892 commit dfb6785
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions security/klee/files/patch-lib_Solver_Z3Solver.cpp
@@ -0,0 +1,20 @@
--- lib/Solver/Z3Solver.cpp.orig 2022-04-04 12:37:59 UTC
+++ lib/Solver/Z3Solver.cpp
@@ -362,7 +362,7 @@ SolverImpl::SolverRunStatus Z3SolverImpl::handleSolver
__attribute__((unused))
bool successfulEval =
Z3_model_eval(builder->ctx, theModel, initial_read,
- /*model_completion=*/Z3_TRUE, &arrayElementExpr);
+ /*model_completion=*/true, &arrayElementExpr);
assert(successfulEval && "Failed to evaluate model");
Z3_inc_ref(builder->ctx, arrayElementExpr);
assert(Z3_get_ast_kind(builder->ctx, arrayElementExpr) ==
@@ -432,7 +432,7 @@ bool Z3SolverImpl::validateZ3Model(::Z3_solver &theSol
__attribute__((unused))
bool successfulEval =
Z3_model_eval(builder->ctx, theModel, constraint,
- /*model_completion=*/Z3_TRUE, &rawEvaluatedExpr);
+ /*model_completion=*/true, &rawEvaluatedExpr);
assert(successfulEval && "Failed to evaluate model");

// Use handle to do ref-counting.

0 comments on commit dfb6785

Please sign in to comment.