-
Notifications
You must be signed in to change notification settings - Fork 0
/
OSSQ.j
107 lines (100 loc) · 1.92 KB
/
OSSQ.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
.class OSSQ
.super Procedure
.field public static final t LLispObject;
.method static <clinit>()V
.limit locals 0
.limit stack 1
ldc_w "t"
invokestatic Symbol.intern(Ljava/lang/String;)LSymbol;
putstatic OSSQ/t LLispObject;
return
.end method
.method public <init>()V
.limit stack 2
.limit locals 1
aload_0
ldc "OSSQ"
invokenonvirtual Procedure.<init>(Ljava/lang/String;)V
return
.end method
.method public run([LLispObject;)LLispObject;
.limit stack 255
.limit locals 255
;; (lambda (key alist) (if (eq? alist nil) ((lambda nil nil)) (if (eq? key (car (car alist))) (car alist) (assq key (cdr alist)))))
aload_1
ldc_w 0
aaload
astore 5
aload_1
ldc_w 1
aaload
astore 6
Lselftail:
;; (if (eq? alist nil) ((lambda nil nil)) (if (eq? key (car (car alist))) (car alist) (assq key (cdr alist))))
aload 6
aconst_null
if_acmpne L67
getstatic OSSQ/t LLispObject;
goto L66
L67:
aconst_null
L66:
ifnonnull L65 ; branches to the true-expr
;; (if (eq? key (car (car alist))) (car alist) (assq key (cdr alist)))
aload 5
aload 6
dup
ifnull L73
checkcast Cons
getfield Cons/car LLispObject;
L73:
dup
ifnull L72
checkcast Cons
getfield Cons/car LLispObject;
L72:
if_acmpne L71
getstatic OSSQ/t LLispObject;
goto L70
L71:
aconst_null
L70:
ifnonnull L69 ; branches to the true-expr
;; self-recursive tail-call args: (key (cdr alist))
aload 5
aload 6
dup
ifnull L74
checkcast Cons
getfield Cons/cdr LLispObject;
L74:
astore 6
astore 5
goto Lselftail
goto L68 ; Don't also run the true-expr like a fool
L69:
aload 6
dup
ifnull L75
checkcast Cons
getfield Cons/car LLispObject;
L75:
L68:
;; endif
goto L64 ; Don't also run the true-expr like a fool
L65:
;; ((lambda nil nil))
new FUN1158867388
dup
invokenonvirtual FUN1158867388.<init>()V
checkcast Procedure
; preparing args
ldc_w 0
anewarray LispObject
; end preparing args
invokevirtual Procedure.run([LLispObject;)LLispObject;
L64:
;; endif
areturn
;; endlambda
.end method