mirror of
https://github.com/Z3Prover/z3
synced 2026-03-08 22:34:53 +00:00
Remove old blast-term-ite tactic class, rename blast-term-ite2 to blast-term-ite
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
7390a9b856
commit
ff7cc0f59e
3 changed files with 23 additions and 202 deletions
|
|
@ -15,6 +15,7 @@ Author:
|
|||
|
||||
#include "ast/simplifiers/dependent_expr_state.h"
|
||||
#include "ast/rewriter/rewriter_def.h"
|
||||
#include "ast/scoped_proof.h"
|
||||
#include "params/tactic_params.hpp"
|
||||
|
||||
|
||||
|
|
@ -116,4 +117,22 @@ public:
|
|||
m_fmls.update(idx, dependent_expr(m, new_fml, mp(d.pr(), new_pr), d.dep()));
|
||||
}
|
||||
}
|
||||
|
||||
static void blast_term_ite(expr_ref& fml, unsigned max_inflation) {
|
||||
ast_manager& m = fml.get_manager();
|
||||
scoped_no_proof _sp(m);
|
||||
params_ref p;
|
||||
rw ite_rw(m, p);
|
||||
ite_rw.m_cfg.m_max_inflation = max_inflation;
|
||||
if (max_inflation < UINT_MAX)
|
||||
ite_rw.m_cfg.m_init_term_size = get_num_exprs(fml);
|
||||
try {
|
||||
expr_ref tmp(m);
|
||||
ite_rw(fml, tmp);
|
||||
fml = tmp;
|
||||
}
|
||||
catch (z3_exception &) {
|
||||
// max steps exceeded.
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue