mirror of
https://github.com/Z3Prover/z3
synced 2025-07-31 08:23:17 +00:00
fix #1675, regression in core processing in maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
26e9321517
commit
335d672bf1
43 changed files with 246 additions and 321 deletions
|
@ -66,12 +66,10 @@ model * model::copy() const {
|
|||
return m;
|
||||
}
|
||||
|
||||
// Remark: eval is for backward compatibility. We should use model_evaluator.
|
||||
bool model::eval(expr * e, expr_ref & result, bool model_completion) {
|
||||
model_evaluator ev(*this);
|
||||
ev.set_model_completion(model_completion);
|
||||
bool model::eval_expr(expr * e, expr_ref & result, bool model_completion) {
|
||||
scoped_model_completion _smc(*this, model_completion);
|
||||
try {
|
||||
ev(e, result);
|
||||
result = (*this)(e);
|
||||
return true;
|
||||
}
|
||||
catch (model_evaluator_exception & ex) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue