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

Polysat updates (#5444)

* Simplify adding lemmas

* Remove misleading constructor from tmp_assign.

The idea is that tmp_assign is only created on the stack and
short-lived.  Instead of having a convenience constructor that takes a
constraint_ref, it's clearer to have an explicit .get() at the call
site.

* Remove some log messages

* bugfix

* fix

* Add stub for conflict_core

* wip

* Add example by Clemens
This commit is contained in:
Jakob Rath 2021-07-30 20:14:19 +02:00 committed by GitHub
parent 2ef8ee25f1
commit 8a773d2bee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 302 additions and 116 deletions

View file

@ -151,8 +151,9 @@ namespace polysat {
std::ostream& constraint::display_extra(std::ostream& out) const {
out << " @" << level() << " (b" << bvar() << ")";
if (is_undef())
out << " [inactive]";
if (is_positive()) out << " [pos]";
if (is_negative()) out << " [neg]";
if (is_undef()) out << " [inactive]";
return out;
}