-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxref.j
executable file
·1074 lines (1005 loc) · 19.7 KB
/
xref.j
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.class public xref
.super java/lang/Object
.field private static _runTimer LRunTimer;
.field private static _standardIn LPascalTextIn;
.field private static linenumber I
.field private static newline Z
.field private static nextnumberindex I
.field private static nextwordindex I
.field private static numbertable [Ljava/util/HashMap;
.field private static numbertablefull Z
.field private static wordtable [Ljava/util/HashMap;
.field private static wordtablefull Z
.method public <init>()V
aload_0
invokenonvirtual java/lang/Object/<init>()V
return
.limit locals 1
.limit stack 1
.end method
.method private static nextchar()C
.var 0 is ch C
.var 1 is nextchar C
.line 57
getstatic xref/_standardIn LPascalTextIn;
invokevirtual PascalTextIn.atEoln()Z
putstatic xref/newline Z
.line 58
getstatic xref/newline Z
ifeq L001
.line 59
getstatic xref/_standardIn LPascalTextIn;
invokevirtual PascalTextIn.nextLine()V
.line 60
getstatic java/lang/System/out Ljava/io/PrintStream;
invokevirtual java/io/PrintStream.println()V
.line 61
getstatic xref/linenumber I
iconst_1
iadd
dup
iconst_1
sipush 999
invokestatic RangeChecker/check(III)V
putstatic xref/linenumber I
.line 62
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "%5d : "
iconst_1
anewarray java/lang/Object
dup
iconst_0
getstatic xref/linenumber I
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
aastore
invokestatic java/lang/String/format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java/io/PrintStream.print(Ljava/lang/String;)V
L001:
.line 64
getstatic xref/newline Z
getstatic xref/_standardIn LPascalTextIn;
invokevirtual PascalTextIn.atEof()Z
ior
ifeq L003
.line 65
bipush 32
istore_0
goto L002
L003:
.line 68
getstatic xref/_standardIn LPascalTextIn;
invokevirtual PascalTextIn.readChar()C
istore_0
.line 69
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "%c"
iconst_1
anewarray java/lang/Object
dup
iconst_0
iload_0
invokestatic java/lang/Character.valueOf(C)Ljava/lang/Character;
aastore
invokestatic java/lang/String/format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java/io/PrintStream.print(Ljava/lang/String;)V
L002:
.line 71
iload_0
istore_1
iload_1
ireturn
.limit locals 2
.limit stack 7
.end method
.method private static isletter(C)Z
.var 0 is ch C
.var 1 is isletter Z
.line 80
iload_0
bipush 97
if_icmpge L004
iconst_0
goto L005
L004:
iconst_1
L005:
iload_0
bipush 122
if_icmple L006
iconst_0
goto L007
L006:
iconst_1
L007:
iand
iload_0
bipush 65
if_icmpge L008
iconst_0
goto L009
L008:
iconst_1
L009:
iload_0
bipush 90
if_icmple L010
iconst_0
goto L011
L010:
iconst_1
L011:
iand
ior
istore_1
iload_1
ireturn
.limit locals 2
.limit stack 4
.end method
.method private static readword(Ljava/lang/StringBuilder;)Z
.var 0 is buffer Ljava/lang/StringBuilder;
.var 2 is ch C
.var 1 is charcount I
.var 3 is readword Z
.line 97
iconst_0
istore_3
.line 98
bipush 32
istore_2
.line 101
getstatic xref/_standardIn LPascalTextIn;
invokevirtual PascalTextIn.atEof()Z
iconst_1
ixor
ifeq L012
.line 102
L013:
.line 103
invokestatic xref/nextchar()C
istore_2
getstatic xref/_standardIn LPascalTextIn;
invokevirtual PascalTextIn.atEof()Z
iload_2
invokestatic xref/isletter(C)Z
ior
ifne L014
goto L013
L014:
L012:
.line 108
getstatic xref/_standardIn LPascalTextIn;
invokevirtual PascalTextIn.atEof()Z
iconst_1
ixor
ifeq L015
.line 109
iconst_0
istore_1
.line 113
L016:
iload_2
invokestatic xref/isletter(C)Z
iconst_1
ixor
ifne L017
.line 114
iload_1
bipush 20
if_icmplt L019
iconst_0
goto L020
L019:
iconst_1
L020:
ifeq L018
.line 115
iload_2
bipush 65
if_icmpge L022
iconst_0
goto L023
L022:
iconst_1
L023:
iload_2
bipush 90
if_icmple L024
iconst_0
goto L025
L024:
iconst_1
L025:
iand
ifeq L021
.line 116
iload_2
bipush 97
bipush 65
isub
iadd
i2c
istore_2
L021:
.line 118
iload_1
iconst_1
iadd
istore_1
.line 119
aload_0
iload_1
iconst_1
isub
iload_2
invokevirtual java/lang/StringBuilder.setCharAt(IC)V
L018:
.line 121
invokestatic xref/nextchar()C
istore_2
goto L016
L017:
.line 125
iload_1
iconst_1
iadd
istore_1
.line 125
L026:
iload_1
bipush 20
if_icmpgt L028
iconst_0
goto L029
L028:
iconst_1
L029:
ifne L027
.line 126
aload_0
iload_1
iconst_1
isub
bipush 32
invokevirtual java/lang/StringBuilder.setCharAt(IC)V
.line 125
iload_1
iconst_1
iadd
istore_1
goto L026
L027:
.line 129
iconst_1
istore_3
L015:
iload_3
ireturn
.limit locals 4
.limit stack 3
.end method
.method private static appendlinenumber(Ljava/util/HashMap;)V
.var 0 is entry Ljava/util/HashMap;
.line 140
getstatic xref/nextnumberindex I
sipush 2000
if_icmplt L031
iconst_0
goto L032
L031:
iconst_1
L032:
ifeq L033
.line 146
aload_0
ldc "lastnumberindex"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/Integer
invokevirtual java/lang/Integer.intValue()I
iconst_0
if_icmpeq L035
iconst_0
goto L036
L035:
iconst_1
L036:
ifeq L037
.line 147
aload_0
ldc "firstnumberindex"
getstatic xref/nextnumberindex I
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
goto L034
L037:
.line 150
getstatic xref/numbertable [Ljava/util/HashMap;
aload_0
ldc "lastnumberindex"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/Integer
invokevirtual java/lang/Integer.intValue()I
aaload
ldc "nextindex"
getstatic xref/nextnumberindex I
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
L034:
.line 155
getstatic xref/numbertable [Ljava/util/HashMap;
getstatic xref/nextnumberindex I
aaload
ldc "number"
getstatic xref/linenumber I
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
.line 156
getstatic xref/numbertable [Ljava/util/HashMap;
getstatic xref/nextnumberindex I
aaload
ldc "nextindex"
iconst_0
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
.line 157
aload_0
ldc "lastnumberindex"
getstatic xref/nextnumberindex I
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
.line 158
getstatic xref/nextnumberindex I
iconst_1
iadd
dup
iconst_0
sipush 2000
invokestatic RangeChecker/check(III)V
putstatic xref/nextnumberindex I
goto L030
L033:
.line 161
iconst_1
putstatic xref/numbertablefull Z
L030:
return
.limit locals 1
.limit stack 4
.end method
.method private static enterword()V
.var 0 is i I
.line 178
getstatic xref/newline Z
ifeq L038
.line 178
getstatic xref/linenumber I
iconst_1
isub
dup
iconst_1
sipush 999
invokestatic RangeChecker/check(III)V
putstatic xref/linenumber I
L038:
.line 183
iconst_1
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
istore_0
.line 184
L039:
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
aaload
ldc "word"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/StringBuilder
invokevirtual java/lang/StringBuilder.toString()Ljava/lang/String;
getstatic xref/wordtable [Ljava/util/HashMap;
getstatic xref/nextwordindex I
iconst_1
isub
aaload
ldc "word"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/StringBuilder
invokevirtual java/lang/StringBuilder.toString()Ljava/lang/String;
invokevirtual java/lang/String.compareTo(Ljava/lang/String;)I
ifne L041
iconst_0
goto L042
L041:
iconst_1
L042:
iconst_1
ixor
ifne L040
.line 186
iload_0
iconst_1
iadd
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
istore_0
goto L039
L040:
.line 190
iload_0
getstatic xref/nextwordindex I
if_icmplt L044
iconst_0
goto L045
L044:
iconst_1
L045:
ifeq L046
.line 191
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
aaload
invokestatic xref/appendlinenumber(Ljava/util/HashMap;)V
goto L043
L046:
.line 195
getstatic xref/nextwordindex I
sipush 500
if_icmplt L048
iconst_0
goto L049
L048:
iconst_1
L049:
ifeq L050
.line 196
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
aaload
ldc "lastnumberindex"
iconst_0
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
.line 197
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
aaload
invokestatic xref/appendlinenumber(Ljava/util/HashMap;)V
.line 198
getstatic xref/nextwordindex I
iconst_1
iadd
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
putstatic xref/nextwordindex I
goto L047
L050:
.line 202
iconst_1
putstatic xref/wordtablefull Z
L047:
L043:
.line 204
getstatic xref/newline Z
ifeq L051
.line 204
getstatic xref/linenumber I
iconst_1
iadd
dup
iconst_1
sipush 999
invokestatic RangeChecker/check(III)V
putstatic xref/linenumber I
L051:
return
.limit locals 1
.limit stack 4
.end method
.method private static sortwords()V
.var 0 is i I
.var 1 is j I
.var 2 is temp Ljava/util/HashMap;
new java/util/HashMap
dup
invokenonvirtual java/util/HashMap/<init>()V
dup
ldc "firstnumberindex"
iconst_0
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
dup
ldc "lastnumberindex"
iconst_0
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
dup
ldc "word"
bipush 20
invokestatic PaddedString.create(I)Ljava/lang/StringBuilder;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
astore_2
.line 217
iconst_1
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
istore_0
.line 217
L052:
iload_0
getstatic xref/nextwordindex I
iconst_2
isub
if_icmpgt L054
iconst_0
goto L055
L054:
iconst_1
L055:
ifne L053
.line 218
iload_0
iconst_1
iadd
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
istore_1
.line 218
L056:
iload_1
getstatic xref/nextwordindex I
iconst_1
isub
if_icmpgt L058
iconst_0
goto L059
L058:
iconst_1
L059:
ifne L057
.line 219
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
aaload
ldc "word"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/StringBuilder
invokevirtual java/lang/StringBuilder.toString()Ljava/lang/String;
getstatic xref/wordtable [Ljava/util/HashMap;
iload_1
iconst_1
isub
aaload
ldc "word"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/StringBuilder
invokevirtual java/lang/StringBuilder.toString()Ljava/lang/String;
invokevirtual java/lang/String.compareTo(Ljava/lang/String;)I
ifgt L061
iconst_0
goto L062
L061:
iconst_1
L062:
ifeq L060
.line 220
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
aaload
astore_2
.line 221
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
getstatic xref/wordtable [Ljava/util/HashMap;
iload_1
iconst_1
isub
aaload
aastore
.line 222
getstatic xref/wordtable [Ljava/util/HashMap;
iload_1
iconst_1
isub
aload_2
aastore
L060:
.line 218
iload_1
iconst_1
iadd
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
istore_1
goto L056
L057:
.line 217
iload_0
iconst_1
iadd
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
istore_0
goto L052
L053:
return
.limit locals 3
.limit stack 5
.end method
.method private static printnumbers(I)V
.var 0 is i I
.line 234
L063:
.line 235
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "%4d"
iconst_1
anewarray java/lang/Object
dup
iconst_0
getstatic xref/numbertable [Ljava/util/HashMap;
iload_0
aaload
ldc "number"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/Integer
invokevirtual java/lang/Integer.intValue()I
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
aastore
invokestatic java/lang/String/format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java/io/PrintStream.print(Ljava/lang/String;)V
.line 236
getstatic xref/numbertable [Ljava/util/HashMap;
iload_0
aaload
ldc "nextindex"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/Integer
invokevirtual java/lang/Integer.intValue()I
dup
iconst_0
sipush 2000
invokestatic RangeChecker/check(III)V
istore_0
iload_0
iconst_0
if_icmpeq L065
iconst_0
goto L066
L065:
iconst_1
L066:
ifne L064
goto L063
L064:
.line 238
getstatic java/lang/System/out Ljava/io/PrintStream;
invokevirtual java/io/PrintStream.println()V
return
.limit locals 1
.limit stack 8
.end method
.method private static printxref()V
.var 0 is i I
.line 250
getstatic java/lang/System/out Ljava/io/PrintStream;
invokevirtual java/io/PrintStream.println()V
.line 251
getstatic java/lang/System/out Ljava/io/PrintStream;
invokevirtual java/io/PrintStream.println()V
.line 252
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "Cross-reference\n"
invokevirtual java/io/PrintStream.print(Ljava/lang/String;)V
.line 253
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "---------------\n"
invokevirtual java/io/PrintStream.print(Ljava/lang/String;)V
.line 254
getstatic java/lang/System/out Ljava/io/PrintStream;
invokevirtual java/io/PrintStream.println()V
.line 255
invokestatic xref/sortwords()V
.line 256
iconst_1
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
istore_0
.line 256
L067:
iload_0
getstatic xref/nextwordindex I
iconst_1
isub
if_icmpgt L069
iconst_0
goto L070
L069:
iconst_1
L070:
ifne L068
.line 257
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "%s"
iconst_1
anewarray java/lang/Object
dup
iconst_0
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
aaload
ldc "word"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/StringBuilder
aastore
invokestatic java/lang/String/format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java/io/PrintStream.print(Ljava/lang/String;)V
.line 258
getstatic xref/wordtable [Ljava/util/HashMap;
iload_0
iconst_1
isub
aaload
ldc "firstnumberindex"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/Integer
invokevirtual java/lang/Integer.intValue()I
dup
iconst_0
sipush 2000
invokestatic RangeChecker/check(III)V
invokestatic xref/printnumbers(I)V
.line 256
iload_0
iconst_1
iadd
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
istore_0
goto L067
L068:
return
.limit locals 1
.limit stack 9
.end method
.method public static main([Ljava/lang/String;)V
new RunTimer
dup
invokenonvirtual RunTimer/<init>()V
putstatic xref/_runTimer LRunTimer;
new PascalTextIn
dup
invokenonvirtual PascalTextIn/<init>()V
putstatic xref/_standardIn LPascalTextIn;
sipush 2001
anewarray java/util/HashMap
iconst_0
istore_1
L071:
iload_1
sipush 2001
if_icmpge L072
dup
iload_1
new java/util/HashMap
dup
invokenonvirtual java/util/HashMap/<init>()V
dup
ldc "nextindex"
iconst_0
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
dup
ldc "number"
iconst_0
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
aastore
iinc 1 1
goto L071
L072:
putstatic xref/numbertable [Ljava/util/HashMap;
sipush 500
anewarray java/util/HashMap
iconst_0
istore_1
L073:
iload_1
sipush 500
if_icmpge L074
dup
iload_1
new java/util/HashMap
dup
invokenonvirtual java/util/HashMap/<init>()V
dup
ldc "firstnumberindex"
iconst_0
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
dup
ldc "lastnumberindex"
iconst_0
invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
dup
ldc "word"
bipush 20
invokestatic PaddedString.create(I)Ljava/lang/StringBuilder;
invokevirtual java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
aastore
iinc 1 1
goto L073
L074:
putstatic xref/wordtable [Ljava/util/HashMap;
.line 264
iconst_0
putstatic xref/wordtablefull Z
.line 265
iconst_0
putstatic xref/numbertablefull Z
.line 266
iconst_1
dup
iconst_1
sipush 500
invokestatic RangeChecker/check(III)V
putstatic xref/nextwordindex I
.line 267
iconst_1
dup
iconst_0
sipush 2000
invokestatic RangeChecker/check(III)V
putstatic xref/nextnumberindex I
.line 268
iconst_1
dup
iconst_1
sipush 999
invokestatic RangeChecker/check(III)V
putstatic xref/linenumber I
.line 269
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc " 1 : "
invokevirtual java/io/PrintStream.print(Ljava/lang/String;)V
.line 272
L075:
getstatic xref/_standardIn LPascalTextIn;
invokevirtual PascalTextIn.atEof()Z
getstatic xref/wordtablefull Z
ior
getstatic xref/numbertablefull Z
ior
iconst_1
ixor
iconst_1
ixor
ifne L076
.line 276
getstatic xref/wordtable [Ljava/util/HashMap;
getstatic xref/nextwordindex I
iconst_1
isub
aaload
ldc "word"
invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java/lang/StringBuilder
invokestatic xref/readword(Ljava/lang/StringBuilder;)Z