Skip to content

Commit 89fa5e6

Browse files
author
Daniel Kroening
committed
property results are now uniform
1 parent 64bf88f commit 89fa5e6

File tree

14 files changed

+19
-19
lines changed

14 files changed

+19
-19
lines changed

doc/html-manual/cbmc.shtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ thus print a line as follows:
9797
</p>
9898

9999
<code>
100-
[main.pointer_dereference.6] dereference failure: object bounds in argv[(signed long int)2]: FAILED
100+
[main.pointer_dereference.6] dereference failure: object bounds in argv[(signed long int)2]: FAILURE
101101
</code>
102102

103103
<h3>Counterexample Traces</h3>
@@ -119,8 +119,8 @@ our example, the program trace ends in the faulty array access. It also
119119
shows the values the input variables must have for the bug to occur. In
120120
this example, <code>argc</code> must be one to trigger the out-of-bounds
121121
array access. If you add a branch to the example that requires that
122-
<code>argc&gt;=3</code>, the bug is fixed and CBMC will report that all
123-
properties are OK.</p>
122+
<code>argc&gt;=3</code>, the bug is fixed and CBMC will report that the
123+
proofs of all properties have been successful.</p>
124124

125125
<h3>Verifying Modules</h3>
126126

regression/cbmc-concurrency/pthread_join1/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ main.c
33
--all-properties
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[main\.assertion\.1\] assertion i==1: FAILED$
7-
^\[main\.assertion\.2\] assertion i==2: OK$
6+
^\[main\.assertion\.1\] assertion i==1: FAILURE$
7+
^\[main\.assertion\.2\] assertion i==2: SUCCESS$
88
^\*\* 1 of 2 failed (2 iterations)$
99
--
1010
^warning: ignoring

regression/cbmc-java/NullPointer1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NullPointer1.class
3-
--pointer-check
3+
--pointer-check --stop-on-fail
44
^EXIT=10$
55
^SIGNAL=0$
66
^ file NullPointer1.java line 16$

regression/cbmc-java/NullPointer2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NullPointer2.class
3-
--pointer-check
3+
--pointer-check --stop-on-fail
44
^EXIT=10$
55
^SIGNAL=0$
66
^ file NullPointer2.java line 9$

regression/cbmc-java/NullPointer3/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NullPointer3.class
3-
--pointer-check
3+
--pointer-check --stop-on-fail
44
^EXIT=10$
55
^SIGNAL=0$
66
^ file NullPointer3.java line 5$

regression/cbmc-java/NullPointer4/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NullPointer4.class
3-
--pointer-check
3+
--pointer-check --stop-on-fail
44
^EXIT=10$
55
^SIGNAL=0$
66
^ file NullPointer4.java line 6$

regression/cbmc/Function5/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ main.c
33
--pointer-check --bounds-check
44
^SIGNAL=0$
55
^EXIT=10$
6-
^\[.*\] dereference failure: object bounds in \*p: FAILED$
6+
^\[.*\] dereference failure: object bounds in \*p: FAILURE$
77
--
88
^warning: ignoring

regression/cbmc/Multi_Dimensional_Array6/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ main.c
33
--unwind 3 --no-unwinding-assertions --all-properties
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[main\.assertion\.1\] : OK$
7-
^\[main\.assertion\.2\] : FAILED$
6+
^\[main\.assertion\.1\] : SUCCESS$
7+
^\[main\.assertion\.2\] : FAILURE$
88
^\*\* 1 of 2 failed (2 iterations)$
99
--
1010
^warning: ignoring

regression/cbmc/Overflow_Addition1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CORE
22
main.c
33
--signed-overflow-check
44
^SIGNAL=0$
5-
^\[.*\] arithmetic overflow on signed + in .*: FAILED$
5+
^\[.*\] arithmetic overflow on signed + in .*: FAILURE$
66
^VERIFICATION FAILED$
77
--
88
^warning: ignoring

regression/cbmc/Pointer_byte_extract2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--all-properties --little-endian
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[main\.assertion\.2\] .*: FAILED$
6+
^\[main\.assertion\.2\] .*: FAILURE$
77
^\*\* 1 of 2 failed (2 iterations)$
88
--
99
^warning: ignoring

regression/cbmc/Pointer_byte_extract5/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--all-properties --bounds-check --32
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[main\.array_bounds\.5\] array.List upper bound in .*: FAILED$
6+
^\[main\.array_bounds\.5\] array.List upper bound in .*: FAILURE$
77
^\*\* 1 of 9 failed (2 iterations)$
88
--
99
^warning: ignoring

regression/cbmc/goto4/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--unwind 1 --unwinding-assertions
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[.*] assertion g == 0: OK$
7-
^\[.*] unwinding assertion loop 0: FAILED$
6+
^\[.*] assertion g == 0: SUCCESS$
7+
^\[.*] unwinding assertion loop 0: FAILURE$
88
--
99
^warning: ignoring

regression/cbmc/pipe1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--all-properties
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[main\.assertion\.4\] assertion data\[1\]==31: FAILED$
6+
^\[main\.assertion\.4\] assertion data\[1\]==31: FAILURE$
77
^\*\* 1 of 5 failed (2 iterations)$
88
--
99
^warning: ignoring

src/cbmc/all_properties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ safety_checkert::resultt bmc_all_propertiest::operator()()
247247
else
248248
{
249249
status() << "[" << it->first << "] "
250-
<< it->second.description << ": " << (it->second.failed?"FAILED":"OK")
250+
<< it->second.description << ": " << (it->second.failed?"FAILURE":"SUCCESS")
251251
<< eom;
252252
}
253253
}

0 commit comments

Comments
 (0)