Skip to content

Commit 227fa99

Browse files
committed
Improve test.
1 parent bd23320 commit 227fa99

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/antiquot.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include "c2pulse.h"
22

33
void test_rvalue_antiquot(int *x)
4-
_ensures((_slprop) _inline_pulse(pure ($(*x) = $(*x))))
4+
_ensures((_slprop) _inline_pulse(pure (Int32.v $(*x) > 0)))
55
{
6-
return;
6+
_assert((_slprop) _inline_pulse($&(x) |-> $(x)));
7+
*x = 6 + 7;
78
}

0 commit comments

Comments
 (0)