mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 17:08:45 +00:00
compile
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4c4f916917
commit
57d3abbf64
1 changed files with 49 additions and 46 deletions
|
@ -1197,7 +1197,7 @@ namespace polysat {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void exhaustive(unsigned bw = 0) {
|
static void exhaustive(unsigned bw = 0) {
|
||||||
if (bw == 0) {
|
if (bw == 0) {
|
||||||
exhaustive(1);
|
exhaustive(1);
|
||||||
|
@ -1205,7 +1205,8 @@ public:
|
||||||
exhaustive(3);
|
exhaustive(3);
|
||||||
exhaustive(4);
|
exhaustive(4);
|
||||||
exhaustive(5);
|
exhaustive(5);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
std::cout << "test_fi::exhaustive for bw=" << bw << std::endl;
|
std::cout << "test_fi::exhaustive for bw=" << bw << std::endl;
|
||||||
rational const m = rational::power_of_two(bw);
|
rational const m = rational::power_of_two(bw);
|
||||||
for (rational p(1); p < m; ++p) {
|
for (rational p(1); p < m; ++p) {
|
||||||
|
@ -1221,8 +1222,9 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void randomized(unsigned num_rounds = 100'000, unsigned bw = 16) {
|
static void randomized(unsigned num_rounds = 100000, unsigned bw = 16) {
|
||||||
std::cout << "test_fi::randomized for bw=" << bw << " (" << num_rounds << " rounds)" << std::endl;
|
std::cout << "test_fi::randomized for bw=" << bw << " (" << num_rounds << " rounds)" << std::endl;
|
||||||
rational const m = rational::power_of_two(bw);
|
rational const m = rational::power_of_two(bw);
|
||||||
VERIFY(bw <= 32 && "random_gen generates 32-bit numbers");
|
VERIFY(bw <= 32 && "random_gen generates 32-bit numbers");
|
||||||
|
@ -1244,6 +1246,7 @@ public:
|
||||||
if (useful)
|
if (useful)
|
||||||
round--;
|
round--;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}; // class test_fi
|
}; // class test_fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue