mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix bug in hilbert_basis reset method. Missing reset of m_iseq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
435c6dd365
commit
cd48a5164e
2 changed files with 35 additions and 7 deletions
|
@ -524,6 +524,20 @@ static void tst17() {
|
|||
|
||||
}
|
||||
|
||||
static void tst18() {
|
||||
hilbert_basis hb;
|
||||
hb.add_eq(vec(0, 1), R(0));
|
||||
hb.add_eq(vec(1, -1), R(2));
|
||||
saturate_basis(hb);
|
||||
}
|
||||
|
||||
static void tst19() {
|
||||
hilbert_basis hb;
|
||||
hb.add_eq(vec(0, 1, 0), R(0));
|
||||
hb.add_eq(vec(1, -1, 0), R(2));
|
||||
saturate_basis(hb);
|
||||
}
|
||||
|
||||
void tst_hilbert_basis() {
|
||||
std::cout << "hilbert basis test\n";
|
||||
// tst3();
|
||||
|
@ -531,9 +545,13 @@ void tst_hilbert_basis() {
|
|||
|
||||
g_use_ordered_support = true;
|
||||
|
||||
tst17();
|
||||
tst18();
|
||||
return;
|
||||
|
||||
tst19();
|
||||
return;
|
||||
tst17();
|
||||
|
||||
if (true) {
|
||||
tst1();
|
||||
tst2();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue