mirror of
https://github.com/Z3Prover/z3
synced 2026-01-23 10:33:59 +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
|
|
@ -316,6 +316,12 @@ unsigned mpq_manager<SYNCH>::prev_power_of_two(mpq const & a) {
|
|||
return prev_power_of_two(_tmp);
|
||||
}
|
||||
|
||||
template<bool SYNCH>
|
||||
unsigned mpq_manager<SYNCH>::next_power_of_two(mpq const & a) {
|
||||
_scoped_numeral<mpz_manager<SYNCH> > _tmp(*this);
|
||||
ceil(a, _tmp);
|
||||
return next_power_of_two(_tmp);
|
||||
}
|
||||
|
||||
template<bool SYNCH>
|
||||
template<bool SUB>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue