3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

Propagated rlimit changes to sat::solver into sat_user_scope tests

This commit is contained in:
Christoph M. Wintersteiger 2015-09-29 11:50:10 +01:00
parent 1f9d5249a3
commit 0cf18ab18e

View file

@ -58,7 +58,8 @@ static void init_vars(sat::solver& s) {
static void check_coherence(sat::solver& s1, trail_t& t) {
params_ref p;
sat::solver s2(p, 0);
reslimit rlim;
sat::solver s2(p, rlim, 0);
init_vars(s2);
sat::literal_vector cls;
for (unsigned i = 0; i < t.size(); ++i) {
@ -83,7 +84,8 @@ void tst_sat_user_scope() {
random_gen r(0);
trail_t trail;
params_ref p;
sat::solver s(p, 0); // incremental solver
reslimit rlim;
sat::solver s(p, rlim, 0); // incremental solver
init_vars(s);
while (true) {
for (unsigned i = 0; i < s_num_frames; ++i) {