3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-11 11:24:31 +00:00

code simplifications

This commit is contained in:
Nuno Lopes 2026-01-30 15:26:21 +00:00
parent 70a03c7784
commit 095b2bdf59
5 changed files with 16 additions and 32 deletions

View file

@ -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];