mirror of
https://github.com/Z3Prover/z3
synced 2025-06-21 05:13:39 +00:00
remove another cm
This commit is contained in:
parent
a8c132f769
commit
00cc81d1a4
3 changed files with 2 additions and 5 deletions
|
@ -17,8 +17,6 @@ Author:
|
||||||
|
|
||||||
namespace polysat {
|
namespace polysat {
|
||||||
|
|
||||||
constraint_manager& explainer::cm() { return s().m_constraints; }
|
|
||||||
|
|
||||||
signed_constraint ex_polynomial_superposition::resolve1(pvar v, signed_constraint c1, signed_constraint c2) {
|
signed_constraint ex_polynomial_superposition::resolve1(pvar v, signed_constraint c1, signed_constraint c2) {
|
||||||
// c1 is true, c2 is false
|
// c1 is true, c2 is false
|
||||||
SASSERT(c1.is_currently_true(s()));
|
SASSERT(c1.is_currently_true(s()));
|
||||||
|
@ -35,7 +33,7 @@ namespace polysat {
|
||||||
// (this condition might be too strict, but we use it for now to prevent looping)
|
// (this condition might be too strict, but we use it for now to prevent looping)
|
||||||
if (b.degree(v) <= r.degree(v))
|
if (b.degree(v) <= r.degree(v))
|
||||||
return {};
|
return {};
|
||||||
signed_constraint c = cm().eq(r);
|
signed_constraint c = s().eq(r);
|
||||||
LOG("resolved: " << c << " currently false? " << c.is_currently_false(s()));
|
LOG("resolved: " << c << " currently false? " << c.is_currently_false(s()));
|
||||||
if (!c.is_currently_false(s()))
|
if (!c.is_currently_false(s()))
|
||||||
return {};
|
return {};
|
||||||
|
|
|
@ -20,7 +20,6 @@ Author:
|
||||||
namespace polysat {
|
namespace polysat {
|
||||||
|
|
||||||
class solver;
|
class solver;
|
||||||
class constraint_manager;
|
|
||||||
|
|
||||||
class explainer {
|
class explainer {
|
||||||
friend class conflict_core;
|
friend class conflict_core;
|
||||||
|
@ -28,7 +27,6 @@ namespace polysat {
|
||||||
void set_solver(solver& s) { m_solver = &s; }
|
void set_solver(solver& s) { m_solver = &s; }
|
||||||
protected:
|
protected:
|
||||||
solver& s() { return *m_solver; }
|
solver& s() { return *m_solver; }
|
||||||
constraint_manager& cm();
|
|
||||||
public:
|
public:
|
||||||
virtual ~explainer() {}
|
virtual ~explainer() {}
|
||||||
virtual bool try_explain(pvar v, /* vector<signed_constraint> const& cjust_v, */ conflict_core& core) = 0;
|
virtual bool try_explain(pvar v, /* vector<signed_constraint> const& cjust_v, */ conflict_core& core) = 0;
|
||||||
|
|
|
@ -62,6 +62,7 @@ namespace polysat {
|
||||||
friend class viable;
|
friend class viable;
|
||||||
friend class assignment_pp;
|
friend class assignment_pp;
|
||||||
friend class assignments_pp;
|
friend class assignments_pp;
|
||||||
|
friend class ex_polynomial_superposition;
|
||||||
friend class inf_saturate;
|
friend class inf_saturate;
|
||||||
friend class constraint_manager;
|
friend class constraint_manager;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue