Skip to content

Commit

Permalink
fixup unit test for added argument to constructor of nla_solver
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Sep 24, 2023
1 parent 010a994 commit 87a839c
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions src/test/lp/nla_solver_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ void test_basic_lemma_for_mon_neutral_from_factors_to_monomial_0() {

reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);
svector<lpvar> v; v.push_back(lp_b);v.push_back(lp_d);v.push_back(lp_e);
nla.add_monic(lp_bde, v.size(), v.begin());
v.clear();
Expand Down Expand Up @@ -246,7 +247,8 @@ void test_basic_lemma_for_mon_neutral_from_factors_to_monomial_1() {

reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);
svector<lpvar> v; v.push_back(lp_b);v.push_back(lp_d);v.push_back(lp_e);
nla.add_monic(lp_bde, v.size(), v.begin());

Expand Down Expand Up @@ -317,7 +319,8 @@ void test_basic_lemma_for_mon_zero_from_factors_to_monomial() {

reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);

create_abcde(nla,
lp_a,
Expand Down Expand Up @@ -379,7 +382,8 @@ void test_basic_lemma_for_mon_zero_from_monomial_to_factors() {

reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);

// create monomial acd
unsigned_vector vec;
Expand Down Expand Up @@ -439,7 +443,8 @@ void test_basic_lemma_for_mon_neutral_from_monomial_to_factors() {

reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);

create_abcde(nla,
lp_a,
Expand Down Expand Up @@ -514,7 +519,8 @@ void test_horner() {
reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);
vector<lpvar> v;
v.push_back(a); v.push_back(b);
nla.add_monic(lp_ab, v.size(), v.begin());
Expand Down Expand Up @@ -551,7 +557,8 @@ void test_basic_sign_lemma() {

reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);
// create monomial bde
vector<unsigned> vec;

Expand Down Expand Up @@ -626,7 +633,8 @@ void test_order_lemma_params(bool var_equiv, int sign) {
reslimit l;
params_ref p;
solver nla(s,p,l);
std_vector<lp::implied_bound> ib;
solver nla(s,p,l,ib);
// create monomial ab
vector<unsigned> vec;
vec.push_back(lp_a);
Expand Down Expand Up @@ -757,7 +765,8 @@ void test_monotone_lemma() {
reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);
// create monomial ab
vector<unsigned> vec;
vec.push_back(lp_a);
Expand Down Expand Up @@ -814,7 +823,8 @@ void test_tangent_lemma_rat() {
s_set_column_value_test(s, lp_ab, v);
reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);
// create monomial ab
vector<unsigned> vec;
vec.push_back(lp_a);
Expand All @@ -841,7 +851,8 @@ void test_tangent_lemma_reg() {
s_set_column_value_test(s, lp_ab, rational(11));
reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);
// create monomial ab
vector<unsigned> vec;
vec.push_back(lp_a);
Expand Down Expand Up @@ -885,7 +896,8 @@ void test_tangent_lemma_equiv() {
s_set_column_value_test(s, lp_a, - s.get_column_value(lp_k));
reslimit l;
params_ref p;
solver nla(s, p, l);
std_vector<lp::implied_bound> ib;
solver nla(s, p, l, ib);
// create monomial ab
vector<unsigned> vec;
vec.push_back(lp_a);
Expand Down

0 comments on commit 87a839c

Please sign in to comment.