diff --git a/src/plugins/wp/tests/wp_typed/oracle/user_bitwise.0.res.oracle b/src/plugins/wp/tests/wp_typed/oracle/user_bitwise.0.res.oracle index 4e4f0bbf55a16a97adedf3c2357f132c3e3b91f2..ba38a185ae087539cb75fb934ed528a88d75dd8c 100644 --- a/src/plugins/wp/tests/wp_typed/oracle/user_bitwise.0.res.oracle +++ b/src/plugins/wp/tests/wp_typed/oracle/user_bitwise.0.res.oracle @@ -33,7 +33,7 @@ Assume { Type: is_uint32(x) /\ is_sint32(n) /\ is_uint32(x_2). (* Goal *) When: (0 <= i) /\ (i < n) /\ is_sint32(i). - (* Pre-condition *) + (* Pre-condition 'r' *) Have: (0 < n) /\ (n <= 31). } Prove: (land(lor(to_uint32(lsl(x, n)), x_2), lsl(1, i)) != 0) <-> @@ -48,7 +48,7 @@ Assume { Type: is_uint32(x) /\ is_sint32(n) /\ is_uint32(x_2). (* Goal *) When: (0 <= i) /\ (x_1 <= 31) /\ is_sint32(i). - (* Pre-condition *) + (* Pre-condition 'r' *) Have: (0 < n) /\ (n <= 31). } Prove: (land(lor(to_uint32(lsl(x, n)), x_2), lsl(1, x_1)) != 0) <-> @@ -66,7 +66,7 @@ Assume { Type: is_sint32(n) /\ is_uint64(x) /\ is_uint64(x_2). (* Goal *) When: (0 <= i) /\ (i < n) /\ is_sint32(i). - (* Pre-condition *) + (* Pre-condition 'r' *) Have: (0 < n) /\ (n <= 63). } Prove: (land(lor(to_uint64(lsl(x, n)), x_2), lsl(1, i)) != 0) <-> @@ -81,7 +81,7 @@ Assume { Type: is_sint32(n) /\ is_uint64(x) /\ is_uint64(x_2). (* Goal *) When: (0 <= i) /\ (x_1 <= 63) /\ is_sint32(i). - (* Pre-condition *) + (* Pre-condition 'r' *) Have: (0 < n) /\ (n <= 63). } Prove: (land(lor(to_uint64(lsl(x, n)), x_2), lsl(1, x_1)) != 0) <-> @@ -120,7 +120,7 @@ Assume { Type: is_uint32(x) /\ is_sint32(n) /\ is_uint32(x_1). (* Goal *) When: (0 <= i) /\ (i < n) /\ is_sint32(i). - (* Pre-condition *) + (* Pre-condition 'r' *) Have: (0 < n) /\ (n <= 31). } Prove: (land(lor(x_1, to_uint32(lsl(x, 32 - n))), lsl(1, 32 + i - n)) != 0) <-> @@ -135,7 +135,7 @@ Assume { Type: is_uint32(x) /\ is_sint32(n) /\ is_uint32(x_2). (* Goal *) When: (0 <= i) /\ (x_1 <= 31) /\ is_sint32(i). - (* Pre-condition *) + (* Pre-condition 'r' *) Have: (0 < n) /\ (n <= 31). } Prove: (land(lor(x_2, to_uint32(lsl(x, 32 - n))), lsl(1, i)) != 0) <-> @@ -153,7 +153,7 @@ Assume { Type: is_sint32(n) /\ is_uint64(x) /\ is_uint64(x_1). (* Goal *) When: (0 <= i) /\ (i < n) /\ is_sint32(i). - (* Pre-condition *) + (* Pre-condition 'r' *) Have: (0 < n) /\ (n <= 63). } Prove: (land(lor(x_1, to_uint64(lsl(x, 64 - n))), lsl(1, 64 + i - n)) != 0) <-> @@ -168,7 +168,7 @@ Assume { Type: is_sint32(n) /\ is_uint64(x) /\ is_uint64(x_2). (* Goal *) When: (0 <= i) /\ (x_1 <= 63) /\ is_sint32(i). - (* Pre-condition *) + (* Pre-condition 'r' *) Have: (0 < n) /\ (n <= 63). } Prove: (land(lor(x_2, to_uint64(lsl(x, 64 - n))), lsl(1, i)) != 0) <-> diff --git a/src/plugins/wp/tests/wp_typed/oracle/user_swap.0.res.oracle b/src/plugins/wp/tests/wp_typed/oracle/user_swap.0.res.oracle index ed045c6b7826dd899433716233552a553451921a..ae4e2e2a55212a89431c6284bd01dda38420daf5 100644 --- a/src/plugins/wp/tests/wp_typed/oracle/user_swap.0.res.oracle +++ b/src/plugins/wp/tests/wp_typed/oracle/user_swap.0.res.oracle @@ -35,7 +35,9 @@ Assume { (* Heap *) Type: (region(a.base) <= 0) /\ (region(b.base) <= 0) /\ linked(Malloc_0). (* Pre-condition *) - Have: valid_rw(Malloc_0, a, 1) /\ valid_rw(Malloc_0, b, 1). + Have: valid_rw(Malloc_0, a, 1). + (* Pre-condition *) + Have: valid_rw(Malloc_0, b, 1). } Prove: x_2 = x_1.