3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 18:00:23 +00:00

redo edit

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-09-15 16:53:52 -07:00
parent c54929e59f
commit 5be4365b47

View file

@ -189,11 +189,12 @@ public:
max_size = Number(usz); max_size = Number(usz);
has_max = true; has_max = true;
} }
Number start = set->m_next;
Number & next = set->m_next; Number & next = set->m_next;
while (!is_new) { while (!is_new) {
result = mk_value(next, s, is_new); result = mk_value(next, s, is_new);
next++; next++;
if (has_max && next > max_size + set->m_next) { if (has_max && next > max_size + start) {
return 0; return 0;
} }
} }