3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-22 11:07:51 +00:00

fix #2592 #2593 #2597 #2573 - duplicates, also fix #2603

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-10-01 13:14:04 -07:00
parent fe7a7fe23f
commit 88f0e4a64c
6 changed files with 160 additions and 39 deletions

View file

@ -198,9 +198,8 @@ namespace nlsat {
*/
void reset_already_added() {
SASSERT(m_result != 0);
unsigned sz = m_result->size();
for (unsigned i = 0; i < sz; i++)
m_already_added_literal[(*m_result)[i].index()] = false;
for (literal lit : *m_result)
m_already_added_literal[lit.index()] = false;
}