Skip to content

Commit 7605654

Browse files
author
Enrico Steffinlongo
committed
malloc MAY fail cbmc
1 parent 3a2b7be commit 7605654

File tree

59 files changed

+59
-59
lines changed

Some content is hidden

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

59 files changed

+59
-59
lines changed

regression/cbmc/Bitfields3/paths.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE no-new-smt
22
main.c
3-
--no-malloc-fail --paths lifo
3+
--no-malloc-may-fail --paths lifo
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Bitfields3/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE no-new-smt
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Function_Pointer6/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Linked_List1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Linking8/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
b.c
3-
--no-malloc-fail a.c
3+
--no-malloc-may-fail a.c
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc11/slice-formula.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail --slice-formula
3+
--no-malloc-may-fail --slice-formula
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc11/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc13/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail --string-abstraction
3+
--no-malloc-may-fail --string-abstraction
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc21/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-pointer-check --no-malloc-fail
3+
--no-pointer-check --no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc23/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=10$
55
^SIGNAL=0$
66
pointer outside object bounds in \*p: FAILURE

regression/cbmc/Malloc24/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail --unwind 4 --unwinding-assertions
3+
--no-malloc-may-fail --unwind 4 --unwinding-assertions
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc6/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc7/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Malloc9/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Pointer_array5/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Pointer_array6/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Pointer_byte_extract5/no-simplify.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE broken-cprover-smt-backend no-new-smt
22
main.i
3-
--no-malloc-fail --32 --no-simplify
3+
--no-malloc-may-fail --32 --no-simplify
44
^EXIT=10$
55
^SIGNAL=0$
66
array\.List dynamic object upper bound in p->List\[2\]: FAILURE

regression/cbmc/Pointer_byte_extract5/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.i
3-
--no-malloc-fail --32
3+
--no-malloc-may-fail --32
44
^EXIT=10$
55
^SIGNAL=0$
66
array\.List dynamic object upper bound in p->List\[2\]: FAILURE

regression/cbmc/Pointer_byte_extract8/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail --64 --unwind 4 --unwinding-assertions
3+
--no-malloc-may-fail --64 --unwind 4 --unwinding-assertions
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Pointer_comparison3/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE no-new-smt
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^\[main.assertion.3\] line 21 always false for different objects: FAILURE$
55
^\[main.assertion.4\] line 23 always false for different objects: FAILURE$
66
^\*\* 11 of 59 failed

regression/cbmc/String_Abstraction14/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
pass-in-implicit.c
3-
--no-malloc-fail --string-abstraction
3+
--no-malloc-may-fail --string-abstraction
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/String_Abstraction16/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ptr-arith.c
3-
--no-malloc-fail --string-abstraction
3+
--no-malloc-may-fail --string-abstraction
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/String_Abstraction18/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
strcpy.c
3-
--no-malloc-fail --string-abstraction
3+
--no-malloc-may-fail --string-abstraction
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/String_Abstraction20/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
structs2.c
3-
--no-malloc-fail --string-abstraction
3+
--no-malloc-may-fail --string-abstraction
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/String_Abstraction21/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
strcpy2.c
3-
--no-malloc-fail --string-abstraction
3+
--no-malloc-may-fail --string-abstraction
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/Struct_Pointer2/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/array-cell-sensitivity5/test_execution.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--no-malloc-fail --no-pointer-check
3+
--no-malloc-may-fail --no-pointer-check
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/array-cell-sensitivity6/test_execution.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--no-malloc-fail --no-pointer-check
3+
--no-malloc-may-fail --no-pointer-check
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/array_of_bool_as_bitvec/test-smt2-outfile.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE broken-smt-backend no-new-smt
22
main.c
3-
--no-malloc-fail --smt2 --outfile -
3+
--no-malloc-may-fail --smt2 --outfile -
44
\(= \(select array_of\.0 i\) \(ite false #b1 #b0\)\)
55
\(= \(select array\.1 \(\(_ zero_extend \d+\) \|main::1::idx!0@1#1\|\)\) #b1\)
66
\(= \(select array\.1 \(_ bv\d+ \d+\)\) \(ite false #b1 #b0\)\)

regression/cbmc/assigning_nullpointers_should_not_crash_symex/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/big-endian-array1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail --big-endian
3+
--no-malloc-may-fail --big-endian
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/bounds_check1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE thorough-smt-backend no-new-smt
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=10$
55
^SIGNAL=0$
66
\[\(.*\)i2\]: FAILURE

regression/cbmc/double_deref/double_deref.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
double_deref.c
3-
--no-malloc-fail --show-vcc
3+
--no-malloc-may-fail --show-vcc
44
\{1\} \(main::1::pptr!0@1#2 = address_of\(main::1::ptr[12]!0@1\) \? main::argc!0@1#1 = [12] : main::argc!0@1#1 = [12]\)
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/double_deref/double_deref_single_alias.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
double_deref_single_alias.c
3-
--no-malloc-fail --show-vcc
3+
--no-malloc-may-fail --show-vcc
44
\{1\} main::argc!0@1#1 = 1
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/double_deref/double_deref_with_cast.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
double_deref_with_cast.c
3-
--no-malloc-fail --show-vcc
3+
--no-malloc-may-fail --show-vcc
44
\{1\} \(cast\(main::1::pptr!0@1#2, signedbv\[32\]\*\*\) = address_of\(main::1::ptr2!0@1\) \? main::argc!0@1#1 = 2 \: main::argc!0@1#1 = 1\)
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/double_deref/double_deref_with_cast_single_alias.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
double_deref_with_cast_single_alias.c
3-
--no-malloc-fail --show-vcc
3+
--no-malloc-may-fail --show-vcc
44
\{1\} main::argc!0@1#1 = 1
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/double_deref/double_deref_with_member.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
double_deref_with_member.c
3-
--no-malloc-fail --show-vcc
3+
--no-malloc-may-fail --show-vcc
44
^\{1\} \(main::1::cptr!0@1#2 = address_of\(main::1::container2!0@1\) \? main::argc!0@1#1 = 2 : main::argc!0@1#1 = 1\)
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/double_deref/double_deref_with_member_single_alias.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
double_deref_with_member_single_alias.c
3-
--no-malloc-fail --show-vcc
3+
--no-malloc-may-fail --show-vcc
44
\{1\} main::argc!0@1#1 = 1
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/double_deref/double_deref_with_pointer_arithmetic.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
double_deref_with_pointer_arithmetic.c
3-
--no-malloc-fail --show-vcc
3+
--no-malloc-may-fail --show-vcc
44
^\{-[0-9]+\} derefd_pointer::derefd_pointer!0#1 = \{ symex_dynamic::dynamic_object#3\[\[0\]\], symex_dynamic::dynamic_object#3\[\[1\]\] \}\[(mod\(main::argc!0@1#1, 2\)|cast\(mod\(main::argc!0@1#1, 2\), signedbv\[64\]\))\]
55
^\{1\} \(derefd_pointer::derefd_pointer!0#1 = address_of\(symex_dynamic::dynamic_object\$[01]\) \? main::argc!0@1#1 = 2 : \(derefd_pointer::derefd_pointer!0#1 = address_of\(symex_dynamic::dynamic_object\$[01]\) \? main::argc!0@1#1 = 1 : symex::invalid_object!0#0 = main::argc!0@1#1\)\)
66
^EXIT=0$

regression/cbmc/double_deref/double_deref_with_pointer_arithmetic_single_alias.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
double_deref_with_pointer_arithmetic_single_alias.c
3-
--no-malloc-fail --show-vcc
3+
--no-malloc-may-fail --show-vcc
44
\{1\} \(derefd_pointer::derefd_pointer!0#1 = address_of\(symex_dynamic::dynamic_object\$0\) \? main::argc!0@1#1 = 1 : symex::invalid_object!0#0 = main::argc!0@1#1\)
55
^EXIT=0$
66
^SIGNAL=0$

regression/cbmc/issue_5952_soundness_bug_smt_encoding/test_short.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE smt-backend
22
short.c
3-
--smt2 --no-malloc-fail
3+
--smt2 --no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/little-endian-array1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail --little-endian
3+
--no-malloc-may-fail --little-endian
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc/malloc-may-fail/test_without_option.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[main.assertion.\d+\] line \d+ assertion p: SUCCESS$

regression/cbmc/malloc-too-large/largest_representable.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
largest_representable.c
3-
--no-malloc-fail --malloc-fail-assert
3+
--no-malloc-may-fail --malloc-fail-assert
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[malloc.assertion.\d+\] line \d+ max allocation size exceeded: SUCCESS$

regression/cbmc/memset1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE no-new-smt
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
^EXIT=10$
55
^SIGNAL=0$
66
^VERIFICATION FAILED$

regression/cbmc/pointer-offset-01/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE no-new-smt
22
main.c
3-
--no-malloc-fail --trace
3+
--no-malloc-may-fail --trace
44
^\s*ub.*=(\(char \*\)&)?dynamic_object \+ \d+
55
^\s*offset_ubp1=\d+ul* \(00000000 1[0 ]+1\)$
66
^VERIFICATION FAILED$

regression/cbmc/pointer-overflow3/no-simplify.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE no-new-smt
22
main.c
3-
--no-malloc-fail --pointer-overflow-check --no-simplify
3+
--no-malloc-may-fail --pointer-overflow-check --no-simplify
44
^\[main.pointer_arithmetic.\d+\] line 6 pointer arithmetic: pointer outside object bounds in p \+ (\(signed (long (long )?)?int\))?10: FAILURE
55
^\[main.pointer_arithmetic.\d+\] line 7 pointer arithmetic: pointer outside object bounds in p - (\(signed (long (long )?)?int\))?10: FAILURE
66
^\[main.pointer_arithmetic.\d+\] line 10 pointer arithmetic: pointer outside object bounds in arr \+ (\(signed (long (long )?)?int\))?10: FAILURE

regression/cbmc/pointer-overflow3/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail --pointer-overflow-check
3+
--no-malloc-may-fail --pointer-overflow-check
44
^\[main.pointer_arithmetic.\d+\] line 6 pointer arithmetic: pointer outside object bounds in p \+ (\(signed (long (long )?)?int\))?10: FAILURE
55
^\[main.pointer_arithmetic.\d+\] line 7 pointer arithmetic: pointer outside object bounds in p - (\(signed (long (long )?)?int\))?10: FAILURE
66
^\[main.pointer_arithmetic.\d+\] line 10 pointer arithmetic: pointer outside object bounds in arr \+ (\(signed (long (long )?)?int\))?10: FAILURE

regression/cbmc/r_w_ok1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--no-malloc-fail
3+
--no-malloc-may-fail
44
__CPROVER_[rw]_ok\(arbitrary_size, n \+ 1\): FAILURE$
55
^\*\* 2 of \d+ failed
66
^VERIFICATION FAILED$

0 commit comments

Comments
 (0)