File tree Expand file tree Collapse file tree 16 files changed +164
-154
lines changed
assigns-replace-ignored-return-value
assigns-replace-malloc-zero
history-pointer-replace-04
quantifiers-exists-both-replace
quantifiers-exists-requires-replace
quantifiers-forall-both-replace
quantifiers-forall-requires-replace
test_array_memory_replace
test_array_memory_too_small_replace
test_possibly_aliased_arguments
test_scalar_memory_replace
variant_multidimensional_ackermann
src/goto-instrument/contracts Expand file tree Collapse file tree 16 files changed +164
-154
lines changed Original file line number Diff line number Diff line change 1
1
CORE
2
2
main.c
3
3
--replace-call-with-contract bar --replace-call-with-contract baz --enforce-contract foo
4
+ ^\[bar.precondition.\d+\] line \d+ Check requires clause of bar in foo: SUCCESS$
5
+ ^\[baz.precondition.\d+\] line \d+ Check requires clause of baz in foo: SUCCESS$
4
6
^EXIT=0$
5
7
^SIGNAL=0$
6
8
^VERIFICATION SUCCESSFUL$
Original file line number Diff line number Diff line change 1
1
CORE
2
2
main.c
3
3
--replace-call-with-contract foo _ --malloc-may-fail --malloc-fail-null
4
+ ^\[foo.precondition.\d+\] line \d+ Check requires clause of foo in main: SUCCESS$
4
5
^EXIT=0$
5
6
^SIGNAL=0$
6
7
\[main\.assertion\.1\] line 35 expecting SUCCESS: SUCCESS$
Original file line number Diff line number Diff line change 3
3
--replace-call-with-contract foo
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
- ^\[foo.precondition.\d+\] line \d+ Check requires clause: SUCCESS$
6
+ ^\[foo.precondition.\d+\] line \d+ Check requires clause of foo in main : SUCCESS$
7
7
^\[main.assertion.\d+\] line \d+ assertion p->y \!\= 7: FAILURE$
8
8
^VERIFICATION FAILED$
9
9
--
Original file line number Diff line number Diff line change 3
3
--replace-call-with-contract f1
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- ^\[f1.precondition.\d+\] line \d+ Check requires clause: SUCCESS$
6
+ ^\[f1.precondition.\d+\] line \d+ Check requires clause of f1 in main : SUCCESS$
7
7
^VERIFICATION SUCCESSFUL$
8
8
--
9
9
^warning: ignoring
Original file line number Diff line number Diff line change 3
3
--replace-call-with-contract f1 --replace-call-with-contract f2
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
- ^\[f1.precondition.\d+\] line \d+ Check requires clause: SUCCESS$
7
- ^\[f2.precondition.\d+\] line \d+ Check requires clause: FAILURE$
6
+ ^\[f1.precondition.\d+\] line \d+ Check requires clause of f1 in main : SUCCESS$
7
+ ^\[f2.precondition.\d+\] line \d+ Check requires clause of f2 in main : FAILURE$
8
8
^VERIFICATION FAILED$
9
9
--
10
10
^warning: ignoring
Original file line number Diff line number Diff line change 3
3
--replace-call-with-contract f1
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- ^\[f1.precondition.\d+\] line \d+ Check requires clause: SUCCESS$
6
+ ^\[f1.precondition.\d+\] line \d+ Check requires clause of f1 in main : SUCCESS$
7
7
^VERIFICATION SUCCESSFUL$
8
8
--
9
9
^warning: ignoring
Original file line number Diff line number Diff line change 3
3
--replace-call-with-contract f1
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- ^\[f1.precondition.\d+\] line \d+ Check requires clause: SUCCESS$
6
+ ^\[f1.precondition.\d+\] line \d+ Check requires clause of f1 in main : SUCCESS$
7
7
^VERIFICATION SUCCESSFUL$
8
8
--
9
9
^warning: ignoring
Original file line number Diff line number Diff line change 3
3
--replace-call-with-contract foo
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
- \[foo.precondition.\d+\] line \d+ Check requires clause: FAILURE
6
+ \[foo.precondition.\d+\] line \d+ Check requires clause of foo in main : FAILURE
7
7
\[main.assertion.\d+\] line \d+ assertion \!\(n \< 4\): SUCCESS
8
8
^VERIFICATION FAILED$
9
9
--
Original file line number Diff line number Diff line change 3
3
--replace-call-with-contract foo
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- \[foo.precondition.\d+\] line \d+ Check requires clause: SUCCESS
6
+ \[foo.precondition.\d+\] line \d+ Check requires clause of foo in main : SUCCESS
7
7
\[main.assertion.\d+\] line \d+ assertion o >\= 10 \&\& o \=\= \*n \+ 5: SUCCESS
8
8
\[main.assertion.\d+\] line \d+ assertion n\[9\] == 113: SUCCESS
9
9
^VERIFICATION SUCCESSFUL$
Original file line number Diff line number Diff line change 3
3
--replace-call-with-contract foo
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
- \[foo.precondition.\d+\] line \d+ Check requires clause: FAILURE
6
+ \[foo.precondition.\d+\] line \d+ Check requires clause of foo in main : FAILURE
7
7
\[main.assertion.\d+\] line \d+ assertion o >\= 10 \&\& o \=\= \*n \+ 5: SUCCESS
8
8
^VERIFICATION FAILED$
9
9
--
You can’t perform that action at this time.
0 commit comments