summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/testsuite/tests/tool-ocaml/t172-pushenvacc1.ml
blob: 06c4011a01905e20e6162a468225ae38833eba17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
open Lib;;
let x = 5 in
let f _ = x + x in
if f 0 <> 10 then raise Not_found
;;

(**
       0 CONSTINT 42
       2 PUSHACC0 
       3 MAKEBLOCK1 0
       5 POP 1
       7 SETGLOBAL Lib
       9 BRANCH 16
      11 ENVACC1 
      12 PUSHENVACC1 
      13 ADDINT 
      14 RETURN 1
      16 CONSTINT 5
      18 PUSHACC0 
      19 CLOSURE 1, 11
      22 PUSHCONSTINT 10
      24 PUSHCONST0 
      25 PUSHACC2 
      26 APPLY1 
      27 NEQ 
      28 BRANCHIFNOT 35
      30 GETGLOBAL Not_found
      32 MAKEBLOCK1 0
      34 RAISE 
      35 POP 2
      37 ATOM0 
      38 SETGLOBAL T172-pushenvacc1
      40 STOP 
**)