-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnestedWhile.j
More file actions
58 lines (58 loc) · 1.04 KB
/
nestedWhile.j
File metadata and controls
58 lines (58 loc) · 1.04 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.bytecode 50.0
.class public nestedWhile
.super java/lang/Object
.method public <init>()V
.limit stack 1
.limit locals 1
aload_0
invokespecial java/lang/Object/<init>()V
return
.end method
.method public static main([Ljava/lang/String;)V
.limit stack 11
.limit locals 3
ldc 8
istore 1
ldc 25
istore 2
getstatic java/lang/System/out Ljava/io/PrintStream;
iload 1
invokevirtual java/io/PrintStream/println(I)V
LabelWhile0:
ldc 100
iload 1
isub
iflt LabelTrue0
bipush 0
goto LabelCompareEnd0
LabelTrue0:
bipush 1
LabelCompareEnd0:
ifeq LabelWhileEnd0
LabelWhile1:
ldc 25
iload 2
isub
ifeq LabelTrue1
bipush 0
goto LabelCompareEnd1
LabelTrue1:
bipush 1
LabelCompareEnd1:
ifeq LabelWhileEnd1
getstatic java/lang/System/out Ljava/io/PrintStream;
iload 1
invokevirtual java/io/PrintStream/println(Z)V
iload 1
ldc 1
iadd
istore 1
getstatic java/lang/System/out Ljava/io/PrintStream;
iload 1
invokevirtual java/io/PrintStream/println(I)V
goto LabelWhile1
LabelWhileEnd0:
goto LabelWhile0
LabelWhileEnd1:
return
.end method