mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 16:25:48 +00:00
testing doc
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2552c1530b
commit
a50cbef877
10 changed files with 291 additions and 95 deletions
|
@ -40,7 +40,22 @@ static void tst1(unsigned num_bits) {
|
|||
m.deallocate(bN);
|
||||
}
|
||||
|
||||
static void tst0() {
|
||||
tbv_manager m(0);
|
||||
|
||||
tbv_ref t1(m), t2(m), t3(m);
|
||||
t1 = m.allocate1();
|
||||
t2 = m.allocate0();
|
||||
t3 = m.allocateX();
|
||||
m.display(std::cout, *t1) << "\n";
|
||||
m.display(std::cout, *t2) << "\n";
|
||||
m.display(std::cout, *t3) << "\n";
|
||||
SASSERT(m.equals(*t1, *t2));
|
||||
SASSERT(m.equals(*t1, *t3));
|
||||
}
|
||||
|
||||
void tst_tbv() {
|
||||
tst0();
|
||||
tst1(31);
|
||||
tst1(11);
|
||||
tst1(15);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue