Skip to content

Commit

Permalink
fix trace build
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jan 25, 2025
1 parent d805322 commit ecc302b
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ast/sls/sls_arith_clausal.cpp
Original file line number Diff line number Diff line change
@@ -266,7 +266,7 @@ namespace sls {
a.m_last_delta = delta;
a.m_last_var = v;
TRACE("arith", tout << mt << " v" << v << " " << mk_bounded_pp(a.m_vars[v].m_expr, a.m)
<< " += " << delta << " score:" << a.m_best_score << "\n");
<< " += " << delta << " score:" << m_best_score << "\n");
a.m_vars[v].set_step(a.m_stats.m_steps, a.m_stats.m_steps + 3 + ctx.rand(10), delta);
VERIFY(a.update_num(v, delta));
for (auto bv : a.m_vars[v].m_bool_vars_of)
8 changes: 4 additions & 4 deletions src/ast/sls/sls_arith_lookahead.cpp
Original file line number Diff line number Diff line change
@@ -574,9 +574,9 @@ namespace sls {
}

CTRACE("arith", !m_best_expr, tout << "no move " << t << "\n";);
CTRACE("arith", m_best_expr && a.is_int_real(m_best_expr), {
var_t v = mk_term(m_best_expr);
tout << t << " v" << v << " " << mk_bounded_pp(m_best_expr, m) << " := " << value(v) << " " << m_top_score << "\n";
CTRACE("arith", m_best_expr && autil.is_int_real(m_best_expr), {
var_t v = a.mk_term(m_best_expr);
tout << t << " v" << v << " " << mk_bounded_pp(m_best_expr, m) << " := " << a.value(v) << " " << m_top_score << "\n";
});
return !!m_best_expr;
}
@@ -676,7 +676,7 @@ namespace sls {
a.m_config.max_moves = a.m_stats.m_steps + a.m_config.max_moves_base;
TRACE("arith", tout << "search " << a.m_stats.m_steps << " " << a.m_config.max_moves << "\n";);
IF_VERBOSE(3, verbose_stream() << "lookahead-search steps:" << a.m_stats.m_steps << " max-moves:" << a.m_config.max_moves << "\n");
TRACE("arith", display(tout));
TRACE("arith", a.display(tout));

while (ctx.rlimit().inc() && a.m_stats.m_steps < a.m_config.max_moves) {
a.m_stats.m_steps++;

0 comments on commit ecc302b

Please sign in to comment.