Debian Codegraph @

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

raw
1 # frama-c -wp [...]
2 [kernel] Parsing predicates_functions.i (no preprocessing)
3 [wp] Running WP plugin...
4 [wp] 1 goal scheduled
5 [wp:print-generated]
6 theory WP
7 (* use why3.BuiltIn.BuiltIn *)
8
9 (* use bool.Bool *)
10
11 (* use int.Int *)
12
13 (* use int.ComputerDivision *)
14
15 (* use real.RealInfix *)
16
17 (* use frama_c_wp.qed.Qed *)
18
19 (* use map.Map *)
20
21 predicate P_P (i:int) = i = 42
22
23 predicate P_RP int
24
25 axiom P_RP_def :
26 forall i:int. i <= 0 \/ P_P i /\ P_RP ((- 1) + i) <-> P_RP i
27
28 function L_F (i:int) : int = 2 * i
29
30 function L_RF int : int
31
32 axiom L_RF_def :
33 forall i:int. L_RF i = (if i <= 0 then 0 else L_F i + L_RF ((- 1) + i))
34
35 goal wp_goal : forall i:int. 0 < i -> P_RP (L_RF i)
36 end
37 [wp] 1 goal generated
38 ------------------------------------------------------------
39 Global
40 ------------------------------------------------------------
41
42 Lemma foo:
43 Prove: (0<i_0) -> (P_RP (L_RF i_0))
44
45 ------------------------------------------------------------