Skip to content

Commit b006b7d

Browse files
committed
Improve test.
1 parent 0b990e0 commit b006b7d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/recursive_struct.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ typedef struct node *list;
6161

6262
_include_pulse(
6363
ghost fn is_list_nil_case (head: $type(node *)) (#l: list Int32.t)
64-
requires is_list head $`p l ** pure (is_null head)
65-
ensures is_list head $`p l ** pure (l == ([] #Int32.t))
64+
preserves is_list head $`p l
65+
requires pure (is_null head)
66+
ensures pure (l == [])
6667
{
6768
match l {
6869
Nil -> { () }

0 commit comments

Comments
 (0)