--- a/progs/fib.j Thu Apr 09 07:42:23 2015 +0100
+++ b/progs/fib.j Fri Apr 10 18:02:04 2015 +0100
@@ -3,28 +3,19 @@
.super java/lang/Object
.method public <init>()V
- aload_0
- invokenonvirtual java/lang/Object/<init>()V
- return
+ aload_0
+ invokenonvirtual java/lang/Object/<init>()V
+ return
.end method
.method public static write(I)V
- .limit locals 5
- .limit stack 5
- iload 0
- getstatic java/lang/System/out Ljava/io/PrintStream;
- swap
- invokevirtual java/io/PrintStream/println(I)V
- return
-.end method
-
-.method public static writes(Ljava/lang/String;)V
- .limit stack 2
- .limit locals 2
- getstatic java/lang/System/out Ljava/io/PrintStream;
- aload 0
- invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
- return
+ .limit locals 5
+ .limit stack 5
+ iload 0
+ getstatic java/lang/System/out Ljava/io/PrintStream;
+ swap
+ invokevirtual java/io/PrintStream/println(I)V
+ return
.end method
.method public static read()I
@@ -61,18 +52,19 @@
ireturn
.end method
+
.method public static main([Ljava/lang/String;)V
- .limit locals 200
- .limit stack 200
+ .limit locals 200
+ .limit stack 200
-ldc "Fib"
-invokestatic fib/fib/writes(Ljava/lang/String;)V
invokestatic fib/fib/read()I
istore 0
ldc 0
istore 1
ldc 1
istore 2
+ldc 0
+istore 3
Loop_begin_0:
@@ -95,12 +87,11 @@
Loop_end_1:
-ldc "Result"
-invokestatic fib/fib/writes(Ljava/lang/String;)V
iload 2
invokestatic fib/fib/write(I)V
- return
+ return
.end method
+