File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
regression/contracts/assigns-replace-malloc-zero Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ __CPROVER_requires(0 <= size && size <= __CPROVER_max_malloc_size)
88__CPROVER_requires (a == NULL || __CPROVER_rw_ok (a , size ))
99__CPROVER_assigns (__CPROVER_object_whole (a ))
1010__CPROVER_ensures (
11- a && __CPROVER_return_value >= 0 == > a [__CPROVER_return_value ] == 0 )
11+ a && __CPROVER_return_value >= 0 == >
12+ (__CPROVER_return_value < size && a [__CPROVER_return_value ] == 0 ))
1213// clang-format on
1314{
1415 if (!a )
Original file line number Diff line number Diff line change 44^\[foo.precondition.\d+\] line \d+ Check requires clause of foo in main: SUCCESS$
55^EXIT=0$
66^SIGNAL=0$
7- \[main\.assertion\.1\] line 35 expecting SUCCESS: SUCCESS$
7+ \[main\.assertion\.1\] line 36 expecting SUCCESS: SUCCESS$
88^VERIFICATION SUCCESSFUL$
99--
1010This test checks that objects of size zero or of __CPROVER_max_malloc_size
You can’t perform that action at this time.
0 commit comments