Skip to content

Commit 6806280

Browse files
authored
Merge pull request #258 from diffblue/unwind-progress
ebmc: Downgrade level of progress output during unwinding
2 parents bc215d4 + 079a86e commit 6806280

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

src/ebmc/ebmc_parse_options.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ void ebmc_parse_optionst::help()
404404
" {y--smv-netlist} \t show netlist in SMV format\n"
405405
" {y--dot-netlist} \t show netlist in DOT format\n"
406406
" {y--show-trans} \t show transition system\n"
407+
" {y--verbosity} {u#} \t verbosity level, from 0 (silent) to 10 (everything)\n"
407408
// clang-format on
408409
"\n");
409410
}

src/trans-netlist/unwind_netlist.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ void unwind(
3737
if(add_initial_state && first)
3838
{
3939
// do initial state
40-
message.status() << "Initial State" << messaget::eom;
41-
40+
message.progress() << "Initial State" << messaget::eom;
41+
4242
for(const auto & n : netlist.initial)
4343
solver.l_set_to(bmc_map.translate(0, n), true);
4444
}
4545

4646
// do transitions
4747
if(last)
48-
message.status() << "Transition " << t << messaget::eom;
48+
message.progress() << "Transition " << t << messaget::eom;
4949
else
50-
message.status() << "Transition " << t << "->" << t+1 << messaget::eom;
51-
50+
message.progress() << "Transition " << t << "->" << t + 1 << messaget::eom;
51+
5252
const bmc_mapt::timeframet &timeframe=bmc_map.timeframe_map[t];
5353

5454
for(std::size_t n=0; n<timeframe.size(); n++)

src/trans-word-level/unwind.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void unwind(
4040

4141
// in-state constraints
4242

43-
message.status() << "In-state constraints" << messaget::eom;
43+
message.progress() << "In-state constraints" << messaget::eom;
4444

4545
if(!op_invar.is_true())
4646
for(std::size_t c = 0; c < no_timeframes; c++)
@@ -51,7 +51,7 @@ void unwind(
5151

5252
if(initial_state)
5353
{
54-
message.status() << "Initial state" << messaget::eom;
54+
message.progress() << "Initial state" << messaget::eom;
5555

5656
if(!op_init.is_true())
5757
decision_procedure.set_to_true(
@@ -60,7 +60,7 @@ void unwind(
6060

6161
// transition relation
6262

63-
message.status() << "Transition relation" << messaget::eom;
63+
message.progress() << "Transition relation" << messaget::eom;
6464

6565
if(!op_trans.is_true())
6666
for(std::size_t t = 0; t < no_timeframes; t++)
@@ -69,10 +69,11 @@ void unwind(
6969
bool last=(t==no_timeframes-1);
7070

7171
if(last)
72-
message.status() << "Transition " << t << messaget::eom;
72+
message.progress() << "Transition " << t << messaget::eom;
7373
else
74-
message.status() << "Transition " << t << "->" << t+1 << messaget::eom;
75-
74+
message.progress() << "Transition " << t << "->" << t + 1
75+
<< messaget::eom;
76+
7677
decision_procedure.set_to_true(
7778
instantiate(op_trans, t, no_timeframes, ns));
7879
}

0 commit comments

Comments
 (0)