finished 19 (not fully tested...)
[williamcminus.git] / assign12 / tester.j
blob38366923de0ea9cf0ede592c35a06484791f4083
1 .class public tester
2 .super java/lang/Object
5 .field private static status I
7 .method public <init>()V
9 aload_0
10 invokenonvirtual java/lang/Object/<init>()V
11 return
13 .limit locals 1
14 .limit stack 1
15 .end method
17 .method private static sum(II)I
19 .var 0 is x I
20 .var 1 is y I
21 .var 2 is sum I
24 .line 2
25 iload_0
26 iload_1
27 iadd
28 istore_2
30 iload_2
31 ireturn
33 .limit locals 3
34 .limit stack 2
35 .end method
37 .method private static run()I
39 .var 1 is run I
42 .line 5
43 getstatic java/lang/System/out Ljava/io/PrintStream;
44 ldc "%d\n"
45 iconst_1
46 anewarray java/lang/Object
47 dup
48 iconst_0
49 bipush 111
50 sipush 222
51 invokestatic tester/sum(II)I
52 invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
53 aastore
54 invokestatic java/lang/String/format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
55 invokevirtual java/io/PrintStream.print(Ljava/lang/String;)V
56 .line 6
57 iconst_0
58 istore_1
60 iload_1
61 ireturn
63 .limit locals 2
64 .limit stack 8
65 .end method
67 .method public static main([Ljava/lang/String;)V
71 .line 10
72 invokestatic tester/run()I
73 putstatic tester/status I
76 return
78 .limit locals 1
79 .limit stack 3
80 .end method