mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
new simplifier/tactic
eliminate_predicates finds macros and eliminates predicates from formulas as pre-processing.
This commit is contained in:
parent
d735faae4e
commit
771157696b
5 changed files with 849 additions and 0 deletions
|
@ -38,6 +38,7 @@ z3_add_component(core_tactics
|
|||
elim_term_ite_tactic.h
|
||||
elim_uncnstr_tactic.h
|
||||
elim_uncnstr2_tactic.h
|
||||
eliminate_predicates_tactic.h
|
||||
euf_completion_tactic.h
|
||||
injectivity_tactic.h
|
||||
nnf_tactic.h
|
||||
|
|
40
src/tactic/core/eliminate_predicates_tactic.h
Normal file
40
src/tactic/core/eliminate_predicates_tactic.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*++
|
||||
Copyright (c) 2022 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
eliminate_predicates_tactic.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Tactic for eliminating macros and predicates
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner) 2022-10-30
|
||||
|
||||
--*/
|
||||
#pragma once
|
||||
|
||||
#include "util/params.h"
|
||||
#include "tactic/tactic.h"
|
||||
#include "tactic/dependent_expr_state_tactic.h"
|
||||
#include "ast/simplifiers/eliminate_predicates.h"
|
||||
|
||||
|
||||
class eliminate_predicates_tactic_factory : public dependent_expr_simplifier_factory {
|
||||
public:
|
||||
dependent_expr_simplifier* mk(ast_manager& m, params_ref const& p, dependent_expr_state& s) override {
|
||||
return alloc(eliminate_predicates, m, s);
|
||||
}
|
||||
};
|
||||
|
||||
inline tactic * mk_eliminate_predicates_tactic(ast_manager& m, params_ref const& p = params_ref()) {
|
||||
return alloc(dependent_expr_state_tactic, m, p, alloc(eliminate_predicates_tactic_factory), "elim-predicates");
|
||||
}
|
||||
|
||||
/*
|
||||
ADD_TACTIC("elim-predicates", "eliminate predicates.", "mk_eliminate_predicates_tactic(m, p)")
|
||||
*/
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue