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

Polysat: add simpler monotonicity unit test + minor changes (#5348)

* Add simpler versions of monotonicity puzzle

* band-aid fix to conflicts during revert_decision

* minor changes
This commit is contained in:
Jakob Rath 2021-06-15 19:18:37 +02:00 committed by GitHub
parent 9cc78ef98e
commit 1fe7dc40fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 135 additions and 32 deletions

View file

@ -41,7 +41,8 @@ namespace polysat {
m_level[var] = UINT_MAX;
m_reason[var] = nullptr;
m_lemma[var] = nullptr;
m_unused.push_back(var);
// TODO: this is disabled for now, since re-using variables for different constraints may be confusing during debugging. Should be enabled later.
// m_unused.push_back(var);
}
void bool_var_manager::assign(sat::literal lit, unsigned lvl, clause* reason, clause* lemma) {