mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Switched compute_implicant_literals to use new model API
This commit is contained in:
parent
60888a93eb
commit
fffc8489bf
4 changed files with 188 additions and 182 deletions
|
@ -52,7 +52,7 @@ extern "C"
|
|||
Z3_TRY;
|
||||
LOG_Z3_qe_model_project (c, m, num_bounds, bound, body);
|
||||
RESET_ERROR_CODE();
|
||||
|
||||
|
||||
app_ref_vector vars(mk_c(c)->m ());
|
||||
if (!to_apps(num_bounds, bound, vars)) {
|
||||
SET_ERROR_CODE (Z3_INVALID_ARG);
|
||||
|
@ -119,11 +119,8 @@ extern "C"
|
|||
facts.push_back (to_expr (fml));
|
||||
flatten_and (facts);
|
||||
|
||||
spacer::model_evaluator_util mev (mk_c(c)->m());
|
||||
mev.set_model (*model);
|
||||
|
||||
expr_ref_vector lits (mk_c(c)->m());
|
||||
spacer::compute_implicant_literals (mev, facts, lits);
|
||||
spacer::compute_implicant_literals (*model, facts, lits);
|
||||
|
||||
expr_ref result (mk_c(c)->m ());
|
||||
result = mk_and (lits);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue