Skip to content

Commit ce65160

Browse files
committed
iteration count is now statistics
1 parent c074b45 commit ce65160

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

regression/cbmc-cover/branch3/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ main.c
33
--cover branch --unwind 6
44
^EXIT=0$
55
^SIGNAL=0$
6-
^\*\* 23 of 23 covered (100.0%), using .* iterations$
6+
^\*\* 23 of 23 covered (100.0%)$
77
--
88
^warning: ignoring

regression/cbmc-cover/branch4/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ main.c
33
--cover branch
44
^EXIT=0$
55
^SIGNAL=0$
6-
^\*\* 1 of 1 covered (100.0%), using 1 iteration$
6+
^\*\* 1 of 1 covered (100.0%)$
77
--
88
^warning: ignoring

regression/cbmc-cover/cover1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ main.c
66
^\[main.coverage.1] file main.c line 8 function main condition .*: SATISFIED$
77
^\[main.coverage.2] file main.c line 9 function main condition .*: SATISFIED$
88
^\[main.coverage.3] file main.c line 13 function main condition .*: FAILED$
9-
^\*\* 2 of 3 covered (66.7%), using .* iterations$
9+
^\*\* 2 of 3 covered (66.7%)$
1010
--
1111
^warning: ignoring

regression/cbmc-cover/decision1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ main.c
33
--cover decision
44
^EXIT=0$
55
^SIGNAL=0$
6-
^\*\* 2 of 2 covered (100.0%), using 2 iterations$
6+
^\*\* 2 of 2 covered (100.0%)$
77
--
88
^warning: ignoring

regression/cbmc-cover/mcdc1/test.desc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ main.c
33
--cover mcdc
44
^EXIT=0$
55
^SIGNAL=0$
6-
^\*\* .* of .* covered (100.0%), using 6 iterations$
6+
^\*\* .* of .* covered (100.0%)$
7+
^\*\* Used 6 iterations$
78
--
89
^warning: ignoring

src/cbmc/bmc_cover.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,12 @@ bool bmc_covert::operator()()
468468
<< " of " << goal_map.size() << " covered ("
469469
<< std::fixed << std::setw(1) << std::setprecision(1)
470470
<< (goal_map.empty()?100.0:100.0*goals_covered/goal_map.size())
471-
<< "%), using "
472-
<< cover_goals.iterations() << " iteration"
473-
<< (cover_goals.iterations()==1?"":"s")
474-
<< eom;
471+
<< "%)" << eom;
472+
473+
statistics() << "** Used "
474+
<< cover_goals.iterations() << " iteration"
475+
<< (cover_goals.iterations()==1?"":"s")
476+
<< eom;
475477

476478
if(bmc.ui==ui_message_handlert::PLAIN)
477479
{

0 commit comments

Comments
 (0)