Skip to content

Commit 520b506

Browse files
committed
Fixed contracts-dfcc regressions
1 parent 704e6a3 commit 520b506

File tree

43 files changed

+43
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+43
-43
lines changed

regression/contracts-dfcc/assigns-local-composite/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns-replace-ignored-return-value/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --replace-call-with-contract bar --replace-call-with-contract baz --enforce-contract foo
3+
--dfcc main --replace-call-with-contract bar --replace-call-with-contract baz --enforce-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns_enforce_15/test-foo.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

regression/contracts-dfcc/assigns_enforce_16/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo _ --pointer-primitive-check
3+
--dfcc main --enforce-contract foo _ --pointer-primitive-check --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns_enforce_17/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract pure
3+
--dfcc main --enforce-contract pure _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[main.assertion.\d+\] line \d+ assertion x \=\= 0: SUCCESS$

regression/contracts-dfcc/assigns_enforce_23/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns_enforce_functions_in_contracts/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns_enforce_malloc_01/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract f
3+
--dfcc main --enforce-contract f _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[f\.assigns.\d+\] line \d+ Check that \*a is assignable: SUCCESS

regression/contracts-dfcc/assigns_enforce_malloc_03/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^\[foo.assigns.\d+\].* Check that \*loc1 is assignable: SUCCESS$
55
^\[foo.assigns.\d+\].* Check that \*loc2 is assignable: SUCCESS$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns_enforce_offsets_3/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns_enforce_structs_01/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract f
3+
--dfcc main --enforce-contract f _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[f.assigns.\d+\] line \d+ Check that \*a is assignable: SUCCESS$

regression/contracts-dfcc/assigns_enforce_structs_02/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract f
3+
--dfcc main --enforce-contract f _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[f.assigns.\d+\] line \d+ Check that \*a is assignable: SUCCESS$

regression/contracts-dfcc/assigns_enforce_structs_03/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract f
3+
--dfcc main --enforce-contract f _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns_replace_03/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --replace-call-with-contract bar _ --pointer-primitive-check
3+
--dfcc main --replace-call-with-contract bar _ --pointer-primitive-check --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/assigns_replace_havoc_dependent_targets_fail/enforce.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main_enforce.c
3-
--dfcc main --enforce-contract resize_vec _ --signed-overflow-check --unsigned-overflow-check --pointer-overflow-check
3+
--dfcc main --enforce-contract resize_vec _ --signed-overflow-check --unsigned-overflow-check --pointer-overflow-check --no-standard-checks
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

regression/contracts-dfcc/detect_loop_locals/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^\[main.assigns.\d+\].*line 10 Check that i is assignable: SUCCESS$
55
^EXIT=0$
66
^SIGNAL=0$

regression/contracts-dfcc/function-calls-05-function-pointer-call-pass/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
\[foo.postcondition.\d+\] line \d+ Check ensures clause of contract contract::foo for function foo: SUCCESS$
55
^VERIFICATION SUCCESSFUL$
66
^EXIT=0$

regression/contracts-dfcc/github_6168_infinite_unwinding_bug/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/history-index/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/history-index/test_contracts_file.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--loop-contracts-file test.json --dfcc main --apply-loop-contracts
3+
--loop-contracts-file test.json --dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/history-pointer-enforce-01/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/history-pointer-enforce-08/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/history-pointer-enforce-09/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract foo
3+
--dfcc main --enforce-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[foo.postcondition.\d+\] line \d+ Check ensures clause( of contract contract::foo for function foo)?: SUCCESS$

regression/contracts-dfcc/invar_check_multiple_loops/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[main.loop_assigns.\d+\] line 8 Check assigns clause inclusion for loop .*: SUCCESS$

regression/contracts-dfcc/invar_check_nested_loops/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[main.loop_assigns.\d+\] line 8 Check assigns clause inclusion for loop .*: SUCCESS$

regression/contracts-dfcc/invar_loop-entry_check/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts _ --pointer-primitive-check
3+
--dfcc main --apply-loop-contracts _ --pointer-primitive-check --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[main.loop_assigns.\d+] line 14 Check assigns clause inclusion for loop .*: SUCCESS$

regression/contracts-dfcc/is_fresh_indirect_calls/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --replace-call-with-contract foo
3+
--dfcc main --replace-call-with-contract foo _ --no-standard-checks
44
^\[main.assertion.\d+\].*c is rw_ok: SUCCESS$
55
^\[main.assertion.\d+\].*c and a are distinct: SUCCESS$
66
^\[main.assertion.\d+\].*c and b are distinct: SUCCESS$

regression/contracts-dfcc/is_unique_01_replace/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --replace-call-with-contract foo
3+
--dfcc main --replace-call-with-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/loop_assigns-05/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[body_1.assigns.\d+\] .* Check that j is assignable: SUCCESS$

regression/contracts-dfcc/loop_assigns-slice-assignable-ptr/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[main.loop_assigns.\d+\] line 24 Check assigns clause inclusion for loop .*: SUCCESS$

regression/contracts-dfcc/loop_assigns_scoped_local_statics/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[body_1.assigns.\d+\] .* Check that j is assignable: SUCCESS$

regression/contracts-dfcc/loop_assigns_scoped_local_statics_propagate/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --replace-call-with-contract bar --apply-loop-contracts
3+
--dfcc main --replace-call-with-contract bar --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[main.loop_assigns.\d+\] line 33 Check assigns clause inclusion for loop .*: SUCCESS$

regression/contracts-dfcc/loop_contracts_memcmp/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE gcc-only
22
main.c
3-
--dfcc main --apply-loop-contracts
3+
--dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/loop_contracts_memcmp/test_contracts_file.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE gcc-only
22
main.c
3-
--loop-contracts-file test.json --dfcc main --apply-loop-contracts
3+
--loop-contracts-file test.json --dfcc main --apply-loop-contracts _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/contracts-dfcc/quantifiers-exists-both-replace/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --replace-call-with-contract f1
3+
--dfcc main --replace-call-with-contract f1 _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[f1.precondition.\d+\] line \d+ Check requires clause of (contract contract::f1 for function f1|f1 in main): SUCCESS$

regression/contracts-dfcc/quantifiers-exists-ensures-replace/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --replace-call-with-contract f1
3+
--dfcc main --replace-call-with-contract f1 _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[main.assertion.1\] line .* assertion len > 0 ==> found_zero: SUCCESS$

regression/contracts-dfcc/quantifiers-exists-requires-enforce/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --enforce-contract f1
3+
--dfcc main --enforce-contract f1 _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[f1.postcondition.\d+\] line \d+ Check ensures clause( of contract contract::f1 for function f1)?: SUCCESS$

regression/contracts-dfcc/quantifiers-forall-both-replace/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --replace-call-with-contract f1
3+
--dfcc main --replace-call-with-contract f1 _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[f1.precondition.\d+\] line \d+ Check requires clause of (contract contract::f1 for function f1|f1 in main): SUCCESS$

regression/contracts-dfcc/quantifiers-forall-requires-replace/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --replace-call-with-contract f1
3+
--dfcc main --replace-call-with-contract f1 _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[f1.precondition.\d+\] line \d+ Check requires clause of (contract contract::f1 for function f1|f1 in main): SUCCESS$

regression/contracts-dfcc/test_array_memory_replace/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --replace-call-with-contract foo
3+
--dfcc main --replace-call-with-contract foo _ --no-standard-checks
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

regression/contracts-dfcc/test_possibly_aliased_arguments/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --replace-call-with-contract sub_ptr_values
3+
--dfcc main --replace-call-with-contract sub_ptr_values _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[sub_ptr_values.precondition.\d+\] line \d+ Check requires clause of (contract contract::sub_ptr_values for function sub_ptr_values|sub_ptr_values in main): SUCCESS$

regression/contracts-dfcc/test_scalar_memory_replace/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE dfcc-only
22
main.c
3-
--dfcc main --replace-call-with-contract foo
3+
--dfcc main --replace-call-with-contract foo _ --no-standard-checks
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

regression/contracts-dfcc/test_struct_replace/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dfcc main --replace-call-with-contract foo
3+
--dfcc main --replace-call-with-contract foo _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[foo.precondition.\d+\] line \d+ Check requires clause of (contract contract::foo for function foo|foo in main): SUCCESS$

0 commit comments

Comments
 (0)