summaryrefslogtreecommitdiff
path: root/test/testinterp/t110-asrint-1.ml
blob: 173bdca29dcf814db00307b197635f4e5d39e054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
open Lib;;
if (-2 asr 1) <> -1 then raise Not_found;;

(**
       0 CONSTINT 42
       2 PUSHACC0 
       3 MAKEBLOCK1 0
       5 POP 1
       7 SETGLOBAL Lib
       9 CONSTINT -1
      11 PUSHCONST1 
      12 PUSHCONSTINT -2
      14 ASRINT 
      15 NEQ 
      16 BRANCHIFNOT 23
      18 GETGLOBAL Not_found
      20 MAKEBLOCK1 0
      22 RAISE 
      23 ATOM0 
      24 SETGLOBAL T110-asrint-1
      26 STOP 
**)