mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
port grobner basis functionality
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
29cc2c5976
commit
e8b6b870ac
4 changed files with 81 additions and 34 deletions
|
@ -1043,7 +1043,7 @@ namespace smt {
|
|||
void compute_basis(grobner&, bool&);
|
||||
void update_statistics(grobner&);
|
||||
void set_gb_exhausted();
|
||||
bool pass_over_gb_eqs_for_conflict(ptr_vector<grobner::equation>& eqs, grobner&);
|
||||
bool get_gb_eqs_and_look_for_conflict(ptr_vector<grobner::equation>& eqs, grobner&);
|
||||
bool scan_for_linear(ptr_vector<grobner::equation>& eqs, grobner&);
|
||||
bool try_to_modify_eqs(ptr_vector<grobner::equation>& eqs, grobner&, unsigned &);
|
||||
bool max_min_nl_vars();
|
||||
|
|
|
@ -2241,7 +2241,7 @@ void theory_arith<Ext>::set_gb_exhausted() {
|
|||
|
||||
// Scan the grobner basis eqs, and look for inconsistencies.
|
||||
template<typename Ext>
|
||||
bool theory_arith<Ext>::pass_over_gb_eqs_for_conflict(ptr_vector<grobner::equation>& eqs, grobner& gb) {
|
||||
bool theory_arith<Ext>::get_gb_eqs_and_look_for_conflict(ptr_vector<grobner::equation>& eqs, grobner& gb) {
|
||||
eqs.reset();
|
||||
gb.get_equations(eqs);
|
||||
TRACE("grobner_bug", tout << "after gb\n";);
|
||||
|
@ -2346,7 +2346,7 @@ typename theory_arith<Ext>::gb_result theory_arith<Ext>::compute_grobner(svector
|
|||
TRACE("non_linear_gb", tout << "after:\n"; gb.display(tout););
|
||||
if (get_context().get_cancel_flag())
|
||||
return GB_FAIL;
|
||||
if (pass_over_gb_eqs_for_conflict(eqs, gb))
|
||||
if (get_gb_eqs_and_look_for_conflict(eqs, gb))
|
||||
return GB_PROGRESS;
|
||||
}
|
||||
while(scan_for_linear(eqs, gb) && m_params.m_nl_arith_gb_perturbate &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue