mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
expose settings, not all of core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
56584922e9
commit
919f687df6
5 changed files with 20 additions and 18 deletions
|
@ -1386,7 +1386,7 @@ std::ostream& core::print_term( const lp::lar_term& t, std::ostream& out) const
|
|||
|
||||
|
||||
void core::run_grobner() {
|
||||
unsigned& quota = m_grobner_quota;
|
||||
unsigned& quota = m_nla_settings.grobner_quota();
|
||||
if (quota == 1) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -95,7 +95,6 @@ private:
|
|||
mutable lp::int_set m_active_var_set;
|
||||
lp::int_set m_rows;
|
||||
public:
|
||||
unsigned m_grobner_quota;
|
||||
reslimit m_reslim;
|
||||
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ class nla_settings {
|
|||
unsigned m_grobner_expr_degree_growth;
|
||||
unsigned m_grobner_max_simplified;
|
||||
unsigned m_grobner_number_of_conflicts_to_report;
|
||||
unsigned m_grobner_quota;
|
||||
public:
|
||||
nla_settings() : m_run_order(true),
|
||||
m_run_tangents(true),
|
||||
|
@ -47,7 +48,8 @@ public:
|
|||
m_horner_subs_fixed(2),
|
||||
m_run_grobner(true),
|
||||
m_grobner_row_length_limit(50),
|
||||
m_grobner_subs_fixed(false)
|
||||
m_grobner_subs_fixed(false),
|
||||
m_grobner_quota(0)
|
||||
{}
|
||||
unsigned grobner_eqs_growth() const { return m_grobner_eqs_growth;}
|
||||
unsigned& grobner_eqs_growth() { return m_grobner_eqs_growth;}
|
||||
|
@ -90,6 +92,7 @@ public:
|
|||
unsigned grobner_number_of_conflicts_to_report() const { return m_grobner_number_of_conflicts_to_report; }
|
||||
unsigned & grobner_number_of_conflicts_to_report() { return m_grobner_number_of_conflicts_to_report; }
|
||||
|
||||
unsigned& grobner_quota() { return m_grobner_quota; }
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
|
||||
solver(lp::lar_solver& s);
|
||||
~solver();
|
||||
core& get_core() { return *m_core; }
|
||||
nla_settings& settings() { return m_core->m_nla_settings; }
|
||||
void push();
|
||||
void pop(unsigned scopes);
|
||||
bool need_check();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue