mirror of
https://github.com/Z3Prover/z3
synced 2025-08-06 03:10:25 +00:00
move remove thread unsafe increment to num_iterations, use num_rounds
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ece041baf8
commit
615da0e3fb
1 changed files with 5 additions and 3 deletions
|
@ -101,20 +101,22 @@ namespace smt {
|
||||||
};
|
};
|
||||||
|
|
||||||
std::mutex mux;
|
std::mutex mux;
|
||||||
unsigned num_iterations = 0;
|
|
||||||
|
|
||||||
auto worker_thread = [&](int i) {
|
auto worker_thread = [&](int i) {
|
||||||
try {
|
try {
|
||||||
IF_VERBOSE(1, verbose_stream() << "thread " << i << "\n";);
|
|
||||||
context& pctx = *pctxs[i];
|
context& pctx = *pctxs[i];
|
||||||
ast_manager& pm = *pms[i];
|
ast_manager& pm = *pms[i];
|
||||||
expr_ref_vector lasms(pasms[i]);
|
expr_ref_vector lasms(pasms[i]);
|
||||||
expr_ref c(pm);
|
expr_ref c(pm);
|
||||||
|
|
||||||
pctx.get_fparams().m_max_conflicts = max_conflicts;
|
pctx.get_fparams().m_max_conflicts = max_conflicts;
|
||||||
if (num_iterations++ > 0) {
|
if (num_rounds > 0) {
|
||||||
cube(pctx, lasms, c);
|
cube(pctx, lasms, c);
|
||||||
}
|
}
|
||||||
|
IF_VERBOSE(1, verbose_stream() << "(smt.thread " << i;
|
||||||
|
if (num_rounds > 0) verbose_stream() << " :round " << num_rounds;
|
||||||
|
if (c) verbose_stream() << " :cube: " << c;
|
||||||
|
verbose_stream() << ")\n";);
|
||||||
lbool r = pctx.check(lasms.size(), lasms.c_ptr());
|
lbool r = pctx.check(lasms.size(), lasms.c_ptr());
|
||||||
|
|
||||||
if (r == l_undef && pctx.m_num_conflicts >= max_conflicts) {
|
if (r == l_undef && pctx.m_num_conflicts >= max_conflicts) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue