mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
removing dependency on simplifier in pattern_inference
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e5826b957f
commit
655b3d9c19
8 changed files with 861 additions and 167 deletions
|
@ -21,6 +21,7 @@ Revision History:
|
|||
#include "ast/ast_pp.h"
|
||||
#include "ast/for_each_expr.h"
|
||||
#include "ast/well_sorted.h"
|
||||
#include "ast/rewriter/rewriter_def.h"
|
||||
#include "ast/simplifier/arith_simplifier_plugin.h"
|
||||
#include "ast/simplifier/array_simplifier_plugin.h"
|
||||
#include "ast/simplifier/datatype_simplifier_plugin.h"
|
||||
|
@ -517,7 +518,7 @@ void asserted_formulas::reduce_and_solve() {
|
|||
void asserted_formulas::infer_patterns() {
|
||||
IF_IVERBOSE(10, verbose_stream() << "(smt.pattern-inference)\n";);
|
||||
TRACE("before_pattern_inference", display(tout););
|
||||
pattern_inference infer(m, m_params);
|
||||
pattern_inference_rw infer(m, m_params);
|
||||
expr_ref_vector new_exprs(m);
|
||||
proof_ref_vector new_prs(m);
|
||||
unsigned i = m_asserted_qhead;
|
||||
|
|
|
@ -207,8 +207,10 @@ void proto_model::remove_aux_decls_not_in_set(ptr_vector<func_decl> & decls, fun
|
|||
by their interpretations.
|
||||
*/
|
||||
void proto_model::cleanup() {
|
||||
TRACE("model_bug", model_v2_pp(tout, *this););
|
||||
func_decl_set found_aux_fs;
|
||||
for (auto const& kv : m_finterp) {
|
||||
TRACE("model_bug", tout << kv.m_key->get_name() << "\n";);
|
||||
func_interp * fi = kv.m_value;
|
||||
cleanup_func_interp(fi, found_aux_fs);
|
||||
}
|
||||
|
@ -365,7 +367,7 @@ void proto_model::complete_partial_funcs() {
|
|||
}
|
||||
|
||||
model * proto_model::mk_model() {
|
||||
TRACE("proto_model", tout << "mk_model\n"; model_v2_pp(tout, *this););
|
||||
TRACE("proto_model", model_v2_pp(tout << "mk_model\n", *this););
|
||||
model * m = alloc(model, m_manager);
|
||||
|
||||
for (auto const& kv : m_interp) {
|
||||
|
|
|
@ -19,7 +19,6 @@ Revision History:
|
|||
|
||||
#include "util/ref_util.h"
|
||||
#include "ast/for_each_expr.h"
|
||||
#include "ast/ast_ll_pp.h"
|
||||
#include "ast/ast_pp.h"
|
||||
#include "ast/ast_smt2_pp.h"
|
||||
#include "smt/smt_context.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue