Debian Codegraph @

src/plugins/wp/tests/wp_acsl/oracle/struct_use_case.res.oracle

raw
1 # frama-c -wp -wp-model 'Typed (Caveat)' [...]
2 [kernel] Parsing struct_use_case.i (no preprocessing)
3 [wp] Running WP plugin...
4 [wp] Warning: Missing RTE guards
5 ------------------------------------------------------------
6 Function f
7 ------------------------------------------------------------
8
9 Goal Post-condition 'ko' in 'f':
10 Let a = var_0.F1_b.
11 Let a_1 = { var_0 with F1_b = a[0 <- y][1 <- x] }.
12 Assume { Type: IsS1(var_0) /\ is_uint32(x) /\ is_uint32(y) /\ IsS1(a_1). }
13 Prove: EqS1(a_1, { var_0 with F1_b = a[1 <- x] }).
14
15 ------------------------------------------------------------
16
17 Goal Post-condition 'ok' in 'f':
18 Let a = var_0.F1_b.
19 Let a_1 = { var_0 with F1_b = a[0 <- y][1 <- x] }.
20 Assume { Type: IsS1(var_0) /\ is_uint32(x) /\ is_uint32(y) /\ IsS1(a_1). }
21 Prove: EqS1(a_1, { var_0 with F1_b = a[1 <- x][0 <- y] }).
22
23 ------------------------------------------------------------
24 ------------------------------------------------------------
25 Function g
26 ------------------------------------------------------------
27
28 Goal Post-condition 'ko' in 'g':
29 Let a = (var_0.F1_b)[1 <- x].
30 Let a_1 = { F1_a = y ; F1_b = a }.
31 Assume { Type: IsS1(var_0) /\ is_uint32(x) /\ is_uint32(y) /\ IsS1(a_1). }
32 Prove: EqS1(a_1, { var_0 with F1_b = a }).
33
34 ------------------------------------------------------------
35
36 Goal Post-condition 'ok' in 'g':
37 Prove: true.
38
39 ------------------------------------------------------------