Skip to content

Commit 8557ec5

Browse files
authored
use == instead of ptr_eq to compare u32 values (#83)
1 parent fe2d682 commit 8557ec5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/examples/slf_incr2.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ predicate { u32 pv, u32 qv } BothOwned (pointer p, pointer q)
1616
void incr2 (unsigned int *p, unsigned int *q)
1717
/*@ requires take vs = BothOwned(p,q);
1818
ensures take vs_ = BothOwned(p,q);
19-
ptr_eq (vs_.pv,
20-
(!ptr_eq(p,q)) ? (vs.pv + 1u32) : (vs.pv + 2u32));
21-
ptr_eq (vs_.qv,
22-
(!ptr_eq(p,q)) ? (vs.qv + 1u32) : vs_.pv);
19+
vs_.pv == (!ptr_eq(p,q) ? (vs.pv + 1u32) : (vs.pv + 2u32));
20+
vs_.qv == (!ptr_eq(p,q) ? (vs.qv + 1u32) : vs_.pv);
2321
@*/
2422
{
2523
/*@ split_case ptr_eq(p,q); @*/

0 commit comments

Comments
 (0)