mirror of
https://github.com/Z3Prover/z3
synced 2026-02-11 11:24:31 +00:00
code simplifications
This commit is contained in:
parent
70a03c7784
commit
095b2bdf59
5 changed files with 16 additions and 32 deletions
|
|
@ -44,8 +44,8 @@ static DECLARE_MUTEX(g_powers_of_two);
|
|||
|
||||
rational rational::power_of_two(unsigned k) {
|
||||
rational result;
|
||||
lock_guard lock(*g_powers_of_two);
|
||||
{
|
||||
lock_guard lock(*g_powers_of_two);
|
||||
if (k >= m_powers_of_two.size())
|
||||
mk_power_up_to(m_powers_of_two, k+1);
|
||||
result = m_powers_of_two[k];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue