@@ -45,7 +45,7 @@ namespace nlsat {
45
45
bool m_minimize_cores;
46
46
bool m_factor;
47
47
bool m_signed_project;
48
- bool m_cell_sample;
48
+ bool m_cell_sample;
49
49
50
50
51
51
struct todo_set {
@@ -677,12 +677,6 @@ namespace nlsat {
677
677
void psc_resultant_sample (polynomial_ref_vector &ps, var x, polynomial_ref_vector & samples){
678
678
polynomial_ref p (m_pm);
679
679
polynomial_ref q (m_pm);
680
-
681
-
682
- // polynomial_ref_vector samples(m_pm);
683
- // samples.reset();
684
- // sample_poly(ps, x, samples);
685
-
686
680
SASSERT (samples.size () <= 2 );
687
681
688
682
for (unsigned i = 0 ; i < ps.size (); i++){
@@ -1088,28 +1082,6 @@ namespace nlsat {
1088
1082
all_lt = false ;
1089
1083
break ;
1090
1084
}
1091
- // else if (s < 0) {
1092
- // // y_val < roots[i]
1093
-
1094
- // // check if roots[i] is a better upper bound
1095
- // if (upper_inf || m_am.lt(roots[i], upper)) {
1096
- // upper_inf = false;
1097
- // m_am.set(upper, roots[i]);
1098
- // p_upper = p;
1099
- // i_upper = i+1;
1100
- // }
1101
- // }
1102
- // else if (s > 0) {
1103
- // // roots[i] < y_val
1104
-
1105
- // // check if roots[i] is a better lower bound
1106
- // if (lower_inf || m_am.lt(lower, roots[i])) {
1107
- // lower_inf = false;
1108
- // m_am.set(lower, roots[i]);
1109
- // p_lower = p;
1110
- // i_lower = i+1;
1111
- // }
1112
- // }
1113
1085
}
1114
1086
if (all_lt && num_roots > 0 ) {
1115
1087
int j = num_roots - 1 ;
@@ -1214,28 +1186,6 @@ namespace nlsat {
1214
1186
all_lt = false ;
1215
1187
break ;
1216
1188
}
1217
- // else if (s < 0) {
1218
- // // y_val < roots[i]
1219
-
1220
- // // check if roots[i] is a better upper bound
1221
- // if (upper_inf || m_am.lt(roots[i], upper)) {
1222
- // upper_inf = false;
1223
- // m_am.set(upper, roots[i]);
1224
- // p_upper = p;
1225
- // i_upper = i+1;
1226
- // }
1227
- // }
1228
- // else if (s > 0) {
1229
- // // roots[i] < y_val
1230
-
1231
- // // check if roots[i] is a better lower bound
1232
- // if (lower_inf || m_am.lt(lower, roots[i])) {
1233
- // lower_inf = false;
1234
- // m_am.set(lower, roots[i]);
1235
- // p_lower = p;
1236
- // i_lower = i+1;
1237
- // }
1238
- // }
1239
1189
}
1240
1190
if (all_lt && num_roots > 0 ) {
1241
1191
int j = num_roots - 1 ;
@@ -1305,7 +1255,6 @@ namespace nlsat {
1305
1255
}
1306
1256
}
1307
1257
void project_cdcac (polynomial_ref_vector & ps, var max_x) {
1308
- // whz
1309
1258
bool first = true ;
1310
1259
1311
1260
@@ -1362,6 +1311,7 @@ namespace nlsat {
1362
1311
cac_add_cell_lits (ps, x, samples);
1363
1312
}
1364
1313
}
1314
+
1365
1315
void project (polynomial_ref_vector & ps, var max_x) {
1366
1316
if (m_cell_sample) {
1367
1317
project_cdcac (ps, max_x);
@@ -2197,8 +2147,8 @@ namespace nlsat {
2197
2147
};
2198
2148
2199
2149
explain::explain (solver & s, assignment const & x2v, polynomial::cache & u,
2200
- atom_vector const & atoms, atom_vector const & x2eq, evaluator & ev, bool is_sample ) {
2201
- m_imp = alloc (imp, s, x2v, u, atoms, x2eq, ev, is_sample );
2150
+ atom_vector const & atoms, atom_vector const & x2eq, evaluator & ev, bool use_cell_sample ) {
2151
+ m_imp = alloc (imp, s, x2v, u, atoms, x2eq, ev, use_cell_sample );
2202
2152
}
2203
2153
2204
2154
explain::~explain () {
0 commit comments