3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-14 14:55:25 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-01 18:18:44 -07:00
parent 2ac8d3461e
commit b686bb61fe
2 changed files with 7 additions and 2 deletions

View file

@ -737,6 +737,7 @@ namespace smt {
*/
template<typename Ext>
void theory_utvpi<Ext>::enforce_parity() {
SASSERT(m_graph.is_feasible());
unsigned_vector todo;
unsigned sz = get_num_vars();
for (unsigned i = 0; i < sz; ++i) {
@ -774,6 +775,7 @@ namespace smt {
}
display(tout);
);
SASSERT(m_graph.is_feasible());
for (auto v : zero_v) {
m_graph.inc_assignment(v, numeral(-1));
@ -782,8 +784,8 @@ namespace smt {
todo.push_back(k);
}
}
TRACE("utvpi", display(tout););
}
SASSERT(m_graph.is_feasible());
DEBUG_CODE(
for (unsigned i = 0; i < sz; ++i) {
enode* e = get_enode(i);
@ -792,6 +794,7 @@ namespace smt {
UNREACHABLE();
}
});
SASSERT(m_graph.is_feasible());
}