mirror of
https://github.com/Z3Prover/z3
synced 2025-06-29 09:28:45 +00:00
reserve space in heap to avoid debug check in elim_unconstrained
This commit is contained in:
parent
97c70ba501
commit
b592ce4707
1 changed files with 2 additions and 1 deletions
|
@ -187,6 +187,7 @@ void elim_unconstrained::eliminate() {
|
||||||
set_root(p, rn);
|
set_root(p, rn);
|
||||||
expr* rt = rn.term();
|
expr* rt = rn.term();
|
||||||
SASSERT(!m_heap.contains(rt->get_id()));
|
SASSERT(!m_heap.contains(rt->get_id()));
|
||||||
|
m_heap.reserve(rt->get_id() + 1);
|
||||||
if (is_uninterp_const(rt))
|
if (is_uninterp_const(rt))
|
||||||
m_heap.insert(rt->get_id());
|
m_heap.insert(rt->get_id());
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue