| 1 |
# frama-c -wp [...] |
| 2 |
[kernel] Parsing equal.i (no preprocessing) |
| 3 |
[wp] Running WP plugin... |
| 4 |
[wp] Warning: Missing RTE guards |
| 5 |
------------------------------------------------------------ |
| 6 |
Function simple_array |
| 7 |
------------------------------------------------------------ |
| 8 |
|
| 9 |
Goal Post-condition (file equal.i, line 22) in 'simple_array': |
| 10 |
Let x = t0_0[0]. |
| 11 |
Let x_1 = t0_0[1]. |
| 12 |
Assume { |
| 13 |
Type: IsArray_sint32(t0_0) /\ IsArray_sint32(t1_0) /\ is_sint32(x) /\ |
| 14 |
is_sint32(x_1). |
| 15 |
} |
| 16 |
Prove: EqArray_int(2, t0_0, t1_0[0 <- x][1 <- x_1]). |
| 17 |
|
| 18 |
------------------------------------------------------------ |
| 19 |
------------------------------------------------------------ |
| 20 |
Function simple_struct |
| 21 |
------------------------------------------------------------ |
| 22 |
|
| 23 |
Goal Post-condition (file equal.i, line 16) in 'simple_struct': |
| 24 |
Prove: true. |
| 25 |
|
| 26 |
------------------------------------------------------------ |
| 27 |
------------------------------------------------------------ |
| 28 |
Function with_array_struct |
| 29 |
------------------------------------------------------------ |
| 30 |
|
| 31 |
Goal Post-condition (file equal.i, line 28) in 'with_array_struct': |
| 32 |
Let a = st0_0.F2_St_tab. |
| 33 |
Let a_1 = st1_0.F2_St_tab. |
| 34 |
Assume { |
| 35 |
Type: IsS2_St(st0_0) /\ IsS2_St(st1_0) /\ IsArray_sint32(a) /\ |
| 36 |
IsArray_sint32(a_1). |
| 37 |
(* Goal *) |
| 38 |
When: EqArray_int(10, a, a_1). |
| 39 |
} |
| 40 |
Prove: EqS2_St(st0_0, st1_0). |
| 41 |
|
| 42 |
------------------------------------------------------------ |
| 43 |
------------------------------------------------------------ |
| 44 |
Function with_ptr_and_array_struct |
| 45 |
------------------------------------------------------------ |
| 46 |
|
| 47 |
Goal Post-condition (file equal.i, line 47) in 'with_ptr_and_array_struct': |
| 48 |
Let a = q1_0.F4_Q_qp. |
| 49 |
Let a_1 = q0_0.F4_Q_qp. |
| 50 |
Let a_2 = q0_0.F4_Q_qs. |
| 51 |
Let a_3 = q1_0.F4_Q_qs. |
| 52 |
Let a_4 = q0_0.F4_Q_qt. |
| 53 |
Let a_5 = q1_0.F4_Q_qt. |
| 54 |
Assume { |
| 55 |
Type: IsS4_Q(q0_0) /\ IsS4_Q(q1_0) /\ IsArray_sint32(a_4) /\ |
| 56 |
IsArray_sint32(a_5) /\ IsS1_S(a_2) /\ IsS1_S(a_3). |
| 57 |
(* Heap *) |
| 58 |
Type: (region(a_1.base) <= 0) /\ (region(a.base) <= 0). |
| 59 |
(* Goal *) |
| 60 |
When: (a = a_1) /\ EqS1_S(a_2, a_3) /\ EqArray_int(2, a_4, a_5). |
| 61 |
} |
| 62 |
Prove: EqS4_Q(q0_0, q1_0). |
| 63 |
|
| 64 |
------------------------------------------------------------ |
| 65 |
------------------------------------------------------------ |
| 66 |
Function with_ptr_array |
| 67 |
------------------------------------------------------------ |
| 68 |
|
| 69 |
Goal Post-condition (file equal.i, line 40) in 'with_ptr_array': |
| 70 |
Assume { |
| 71 |
(* Heap *) |
| 72 |
Type: (forall i : Z. region(tp0_0[i].base) <= 0) /\ |
| 73 |
(forall i : Z. region(tp1_0[i].base) <= 0). |
| 74 |
(* Goal *) |
| 75 |
When: forall i : Z. ((0 <= i) -> ((i <= 4) -> (tp1_0[i] = tp0_0[i]))). |
| 76 |
} |
| 77 |
Prove: EqArray_ptr(5, tp0_0, tp1_0). |
| 78 |
|
| 79 |
------------------------------------------------------------ |
| 80 |
------------------------------------------------------------ |
| 81 |
Function with_ptr_struct |
| 82 |
------------------------------------------------------------ |
| 83 |
|
| 84 |
Goal Post-condition (file equal.i, line 34) in 'with_ptr_struct': |
| 85 |
Let a = sp1_0.F3_Sp_p. |
| 86 |
Let a_1 = sp0_0.F3_Sp_p. |
| 87 |
Assume { |
| 88 |
(* Heap *) |
| 89 |
Type: (region(a_1.base) <= 0) /\ (region(a.base) <= 0). |
| 90 |
(* Goal *) |
| 91 |
When: a = a_1. |
| 92 |
} |
| 93 |
Prove: EqS3_Sp(sp0_0, sp1_0). |
| 94 |
|
| 95 |
------------------------------------------------------------ |