mirror of
https://github.com/Z3Prover/z3
synced 2025-10-11 02:08:07 +00:00
respect smt configuration parameter in elim_unconstrained simplifier
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a6c51df144
commit
01633f7ce2
2 changed files with 20 additions and 6 deletions
|
@ -79,6 +79,10 @@ class elim_unconstrained : public dependent_expr_simplifier {
|
|||
unsigned m_num_eliminated = 0;
|
||||
void reset() { m_num_eliminated = 0; }
|
||||
};
|
||||
struct config {
|
||||
bool m_enabled = true;
|
||||
bool m_enable_proofs = false;
|
||||
};
|
||||
expr_inverter m_inverter;
|
||||
ptr_vector<node> m_nodes;
|
||||
var_lt m_lt;
|
||||
|
@ -86,8 +90,8 @@ class elim_unconstrained : public dependent_expr_simplifier {
|
|||
expr_ref_vector m_trail;
|
||||
expr_ref_vector m_args;
|
||||
stats m_stats;
|
||||
config m_config;
|
||||
bool m_created_compound = false;
|
||||
bool m_enable_proofs = false;
|
||||
|
||||
bool is_var_lt(int v1, int v2) const;
|
||||
node& get_node(unsigned n) const { return *m_nodes[n]; }
|
||||
|
@ -119,4 +123,7 @@ public:
|
|||
void collect_statistics(statistics& st) const override { st.update("elim-unconstrained", m_stats.m_num_eliminated); }
|
||||
|
||||
void reset_statistics() override { m_stats.reset(); }
|
||||
|
||||
void updt_params(params_ref const& p) override;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue