Debian Codegraph @

test-suite/output/reduction.out

raw
1 = a
2 : nat
3 = n + 0
4 : nat
5 = S (1 + 2)
6 : nat
7 = S (1 + 2)
8 : nat
9 = S
10 ((fix add (n m : nat) {struct n} : nat :=
11 match n with
12 | 0 => m
13 | S p => S (add p m)
14 end)
15 1 2)
16 : nat
17 = 4
18 : nat
19 = (fix add (n m : nat) {struct n} : nat :=
20 match n with
21 | 0 => m
22 | S p => S (add p m)
23 end)
24 2 2
25 : nat
26 = S (1 + (2 + 2))
27 : nat
28 = S (1 + 2 + 2)
29 : nat
30 = 6
31 : nat
32 = ignore (fun x : nat => 1 + x)
33 : unit
34 = ignore (fun x : nat => 1 + x)
35 : unit
36 = ignore (fun x : nat => 1 + x)
37 : unit
38 = ignore (fun x : nat => 1 + x)
39 : unit
40 - : constr = constr:(4)
41 - : constr = constr:(2 + 2)
42 = let x := 2 in 2 + 2
43 : nat
44 = let x := 2 in 4
45 : nat
46 = (let x := 2 in fun x0 : nat => 1 + x0) 2
47 : nat
48 = match n with
49 | 0 => 1 + 1
50 | S n => 1 + n
51 end
52 : nat
53 = fix f (n : nat) : nat :=
54 match 0 + n with
55 | 0 => 1 + 1
56 | S n0 => 1 + f n0
57 end
58 : nat -> nat
59 = 4%uint63
60 : int
61 = add 2 x
62 : int
63 = 1%float
64 : float