Skip to content

Commit

Permalink
reduce verbosity of runtime messages
Browse files Browse the repository at this point in the history
The time taken for particular steps is statistics, not status.
  • Loading branch information
kroening committed Jun 21, 2024
1 parent ef327f6 commit 4942546
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion regression/cbmc/Failing_Assert1/dimacs.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE no-new-smt
main.c
--dimacs
--dimacs --verbosity 8
^Runtime decision procedure: [0-9]+(\.[0-9]+)?(e-[0-9]+)?s$
^c main::1::i!0@1#1
^c main::1::j!0@1#1
Expand Down
8 changes: 4 additions & 4 deletions src/goto-checker/bmc_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,16 +407,16 @@ void run_property_decider(
auto const sat_solver_stop = std::chrono::steady_clock::now();
std::chrono::duration<double> sat_solver_runtime =
std::chrono::duration<double>(sat_solver_stop - sat_solver_start);
log.status() << "Runtime Solver: " << sat_solver_runtime.count() << "s"
<< messaget::eom;
log.statistics() << "Runtime Solver: " << sat_solver_runtime.count() << "s"
<< messaget::eom;

property_decider.update_properties_status_from_goals(
properties, result.updated_properties, dec_result, set_pass);

auto solver_stop = std::chrono::steady_clock::now();
solver_runtime += std::chrono::duration<double>(solver_stop - solver_start);
log.status() << "Runtime decision procedure: " << solver_runtime.count()
<< "s" << messaget::eom;
log.statistics() << "Runtime decision procedure: " << solver_runtime.count()
<< "s" << messaget::eom;

if(dec_result == decision_proceduret::resultt::D_SATISFIABLE)
{
Expand Down
4 changes: 2 additions & 2 deletions src/goto-symex/symex_target_equation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ void symex_target_equationt::convert(decision_proceduret &decision_procedure)
const auto convert_SSA_stop = std::chrono::steady_clock::now();
std::chrono::duration<double> convert_SSA_runtime =
std::chrono::duration<double>(convert_SSA_stop - convert_SSA_start);
log.status() << "Runtime Convert SSA: " << convert_SSA_runtime.count() << "s"
<< messaget::eom;
log.statistics() << "Runtime Convert SSA: " << convert_SSA_runtime.count()
<< "s" << messaget::eom;
}

void symex_target_equationt::convert_assignments(
Expand Down

0 comments on commit 4942546

Please sign in to comment.