@@ -72,7 +72,7 @@ namespace smt {
7272 LOG_WORKER (1 , " no more cubes\n " );
7373 return ;
7474 }
75- collect_shared_clauses (m_g2l );
75+ collect_shared_clauses ();
7676
7777 check_cube_start:
7878 LOG_WORKER (1 , " CUBE SIZE IN MAIN LOOP: " << cube.size () << " \n " );
@@ -129,13 +129,13 @@ namespace smt {
129129 }
130130 }
131131 if (m_config.m_share_units )
132- share_units (m_l2g );
132+ share_units ();
133133 }
134134 }
135135
136136 parallel::worker::worker (unsigned id, parallel &p, expr_ref_vector const &_asms)
137137 : id(id), p(p), b(p.m_batch_manager), m_smt_params(p.ctx.get_fparams()), asms(m), m_g2l(p.ctx.m, m),
138- m_l2g (m, p.ctx.m), m_search_tree(expr_ref(m)) {
138+ m_l2g (m, p.ctx.m) {
139139 for (auto e : _asms)
140140 asms.push_back (m_g2l (e));
141141 LOG_WORKER (1 , " created with " << asms.size () << " assumptions\n " );
@@ -149,7 +149,7 @@ namespace smt {
149149 m_num_initial_atoms = ctx->get_num_bool_vars ();
150150 }
151151
152- void parallel::worker::share_units (ast_translation &l2g ) {
152+ void parallel::worker::share_units () {
153153 // Collect new units learned locally by this worker and send to batch manager
154154 ctx->pop_to_base_lvl ();
155155 unsigned sz = ctx->assigned_literals ().size ();
@@ -169,7 +169,7 @@ namespace smt {
169169
170170 if (lit.sign ())
171171 e = m.mk_not (e); // negate if literal is negative
172- b.collect_clause (l2g , id, e);
172+ b.collect_clause (m_l2g , id, e);
173173 }
174174 m_num_shared_units = sz;
175175 }
@@ -301,8 +301,8 @@ namespace smt {
301301 }
302302 }
303303
304- void parallel::worker::collect_shared_clauses (ast_translation &g2l ) {
305- expr_ref_vector new_clauses = b.return_shared_clauses (g2l , m_shared_clause_limit, id);
304+ void parallel::worker::collect_shared_clauses () {
305+ expr_ref_vector new_clauses = b.return_shared_clauses (m_g2l , m_shared_clause_limit, id);
306306 // iterate over new clauses and assert them in the local context
307307 for (expr *e : new_clauses) {
308308 ctx->assert_expr (e);
0 commit comments