Skip to content

Commit f5c28a0

Browse files
household cleanup
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent e26f7b9 commit f5c28a0

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

‎src/smt/smt_parallel.cpp‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

‎src/smt/smt_parallel.h‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Module Name:
1111
1212
Author:
1313
14-
Ilana 2025
14+
Ilana Shapiro - 2025
1515
1616
Revision History:
1717
@@ -131,7 +131,6 @@ namespace smt {
131131
random_gen m_rand;
132132
scoped_ptr<context> ctx;
133133
ast_translation m_g2l, m_l2g;
134-
search_tree::tree<cube_config> m_search_tree;
135134

136135
unsigned m_num_shared_units = 0;
137136
unsigned m_num_initial_atoms = 0;
@@ -140,7 +139,7 @@ namespace smt {
140139
expr_ref get_split_atom();
141140

142141
lbool check_cube(expr_ref_vector const& cube);
143-
void share_units(ast_translation& l2g);
142+
void share_units();
144143

145144
void update_max_thread_conflicts() {
146145
m_config.m_threads_max_conflicts = (unsigned)(m_config.m_max_conflict_mul * m_config.m_threads_max_conflicts);
@@ -152,7 +151,7 @@ namespace smt {
152151
worker(unsigned id, parallel& p, expr_ref_vector const& _asms);
153152
void run();
154153

155-
void collect_shared_clauses(ast_translation& g2l);
154+
void collect_shared_clauses();
156155

157156
void cancel();
158157
void collect_statistics(::statistics& st) const;

0 commit comments

Comments
 (0)