Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security/klee: Unbreak after math/z3 update.
Reported by: pkg-fallout
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |