mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
Fix typos and bugs. Add tests.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ff62948d90
commit
14827e94f0
4 changed files with 144 additions and 30 deletions
|
@ -208,7 +208,7 @@ void tst_refine_mpbq(int n, int d) {
|
|||
}
|
||||
|
||||
void tst_refine_mpbq() {
|
||||
tst_refine_mpbq(-5, 7);
|
||||
tst_refine_mpbq(5, 7);
|
||||
}
|
||||
|
||||
void tst_mpbq_root() {
|
||||
|
|
|
@ -27,7 +27,14 @@ static void tst1() {
|
|||
scoped_rcnumeral eps(m);
|
||||
m.mk_infinitesimal("eps", eps);
|
||||
std::cout << sym_pp(eps) << std::endl;
|
||||
std::cout << interval_pp(a) << std::endl;
|
||||
std::cout << interval_pp(eps) << std::endl;
|
||||
mpq aux;
|
||||
qm.set(aux, 1, 3);
|
||||
m.set(a, aux);
|
||||
std::cout << interval_pp(a) << std::endl;
|
||||
std::cout << decimal_pp(eps, 4) << std::endl;
|
||||
std::cout << decimal_pp(a) << std::endl;
|
||||
}
|
||||
|
||||
void tst_rcf() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue