mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 06:03:23 +00:00
fix test build
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
b34f841421
commit
fd219abe8c
2 changed files with 3 additions and 6 deletions
|
@ -187,7 +187,7 @@ struct gomory_test {
|
||||||
void print_term(lar_term & t, std::ostream & out) {
|
void print_term(lar_term & t, std::ostream & out) {
|
||||||
vector<std::pair<mpq, unsigned>> row;
|
vector<std::pair<mpq, unsigned>> row;
|
||||||
for (auto p : t)
|
for (auto p : t)
|
||||||
row.push_back(std::make_pair(p.coeff(), p.var()));
|
row.push_back(std::make_pair(p.coeff(), p.var().index()));
|
||||||
print_row(out, row);
|
print_row(out, row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include "math/lp/numeric_pair.h"
|
#include "math/lp/numeric_pair.h"
|
||||||
#include "math/lp/binary_heap_upair_queue.h"
|
#include "math/lp/binary_heap_upair_queue.h"
|
||||||
#include "math/lp/stacked_value.h"
|
#include "math/lp/stacked_value.h"
|
||||||
#include "math/lp/int_set.h"
|
#include "math/lp/u_set.h"
|
||||||
#include "util/stopwatch.h"
|
#include "util/stopwatch.h"
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include "test/lp/gomory_test.h"
|
#include "test/lp/gomory_test.h"
|
||||||
|
@ -3219,19 +3219,16 @@ void test_bound_propagation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_int_set() {
|
void test_int_set() {
|
||||||
int_set s(4);
|
u_set s(4);
|
||||||
s.insert(2);
|
s.insert(2);
|
||||||
s.print(std::cout);
|
|
||||||
s.insert(1);
|
s.insert(1);
|
||||||
s.insert(2);
|
s.insert(2);
|
||||||
s.print(std::cout);
|
|
||||||
lp_assert(s.contains(2));
|
lp_assert(s.contains(2));
|
||||||
lp_assert(s.size() == 2);
|
lp_assert(s.size() == 2);
|
||||||
s.erase(2);
|
s.erase(2);
|
||||||
lp_assert(s.size() == 1);
|
lp_assert(s.size() == 1);
|
||||||
s.erase(2);
|
s.erase(2);
|
||||||
lp_assert(s.size() == 1);
|
lp_assert(s.size() == 1);
|
||||||
s.print(std::cout);
|
|
||||||
s.insert(3);
|
s.insert(3);
|
||||||
s.insert(2);
|
s.insert(2);
|
||||||
s.clear();
|
s.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue