3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-07 15:55:46 +00:00

print more

This commit is contained in:
Jakob Rath 2022-04-13 11:42:41 +02:00
parent be488f75ab
commit 88a17ef33e
3 changed files with 18 additions and 4 deletions

View file

@ -143,6 +143,17 @@ namespace polysat {
}
}
struct inference_sup : public inference {
const char* name;
pvar var;
signed_constraint reduced;
signed_constraint reducer;
inference_sup(const char* name, pvar var, signed_constraint reduced, signed_constraint reducer) : name(name), var(var), reduced(reduced), reducer(reducer) {}
std::ostream& display(std::ostream& out) const override {
return out << "Superposition " << name << ", reduced v" << var << " in " << reduced << " by " << reducer;
}
};
bool ex_polynomial_superposition::reduce_by(pvar v, signed_constraint eq, conflict& core) {
pdd p = eq.eq();
LOG("using v" << v << " " << eq);
@ -189,7 +200,7 @@ namespace polysat {
return true;
}
core.set(c2);
core.log_inference("superposition 5");
core.log_inference(inference_sup("5", v, c, eq));
return true;
}
return false;