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)
8
8
__CPROVER_requires (a == NULL || __CPROVER_rw_ok (a , size ))
9
9
__CPROVER_assigns (__CPROVER_object_whole (a ))
10
10
__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 ))
12
13
// clang-format on
13
14
{
14
15
if (!a )
Original file line number Diff line number Diff line change 4
4
^\[foo.precondition.\d+\] line \d+ Check requires clause of foo in main: SUCCESS$
5
5
^EXIT=0$
6
6
^SIGNAL=0$
7
- \[main\.assertion\.1\] line 35 expecting SUCCESS: SUCCESS$
7
+ \[main\.assertion\.1\] line 36 expecting SUCCESS: SUCCESS$
8
8
^VERIFICATION SUCCESSFUL$
9
9
--
10
10
This 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