mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
union_find::reserve
This commit is contained in:
parent
e8e64d3098
commit
5d858da58a
|
@ -93,6 +93,11 @@ public:
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reserve(unsigned v) {
|
||||||
|
while (get_num_vars() <= v)
|
||||||
|
mk_var();
|
||||||
|
}
|
||||||
|
|
||||||
unsigned get_num_vars() const { return m_find.size(); }
|
unsigned get_num_vars() const { return m_find.size(); }
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue