mirror of
https://github.com/Z3Prover/z3
synced 2026-05-05 18:05:15 +00:00
import updates to rational from polysat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
575538d325
commit
e580c384b8
5 changed files with 60 additions and 1 deletions
|
|
@ -692,6 +692,13 @@ public:
|
|||
\remark Return 0 if a is not positive.
|
||||
*/
|
||||
unsigned prev_power_of_two(mpz const & a) { return log2(a); }
|
||||
|
||||
/**
|
||||
\brief Return the smallest k s.t. a <= 2^k.
|
||||
|
||||
\remark Return 0 if a is not positive.
|
||||
*/
|
||||
unsigned next_power_of_two(mpz const & a);
|
||||
|
||||
/**
|
||||
\brief Return true if a^{1/n} is an integer, and store the result in a.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue