aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/URAGG-.lsp
blob: b1961279fd213813633acddbdeaffad9b8d9e3c1 (plain)
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
(/VERSIONCHECK 2) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Thing|)
                |URAGG-;elt;AfirstS;1|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Thing|)
                |URAGG-;elt;AlastS;2|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Thing|)
                |URAGG-;elt;ArestA;3|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;second;AS;4|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;third;AS;5|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Boolean|)
                |URAGG-;cyclic?;AB;6|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;last;AS;7|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%List|)
                |URAGG-;nodes;AL;8|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%List|)
                |URAGG-;children;AL;9|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Boolean|)
                |URAGG-;leaf?;AB;10|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;value;AS;11|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| (|%IntegerSection| 0) |%Shell|)
                    |%Boolean|)
                |URAGG-;less?;ANniB;12|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| (|%IntegerSection| 0) |%Shell|)
                    |%Boolean|)
                |URAGG-;more?;ANniB;13|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| (|%IntegerSection| 0) |%Shell|)
                    |%Boolean|)
                |URAGG-;size?;ANniB;14|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) (|%IntegerSection| 0))
                |URAGG-;#;ANni;15|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;tail;2A;16|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;findCycle|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;cycleTail;2A;18|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;cycleEntry;2A;19|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) (|%IntegerSection| 0))
                |URAGG-;cycleLength;ANni;20|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| (|%IntegerSection| 0) |%Shell|)
                    |%Thing|)
                |URAGG-;rest;ANniA;21|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| (|%IntegerSection| 0) |%Shell|)
                    |%Thing|)
                |URAGG-;last;ANniA;22|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Boolean|)
                |URAGG-;=;2AB;23|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Boolean|)
                |URAGG-;node?;2AB;24|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Thing| |%Shell|)
                    |%Thing|)
                |URAGG-;setelt;Afirst2S;25|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Thing| |%Shell|)
                    |%Thing|)
                |URAGG-;setelt;Alast2S;26|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Thing| |%Shell|)
                    |%Thing|)
                |URAGG-;setelt;Arest2A;27|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Thing|)
                |URAGG-;concat;3A;28|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Thing|)
                |URAGG-;setlast!;A2S;29|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%List| |%Shell|) |%Thing|)
                |URAGG-;setchildren!;ALA;30|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Thing|)
                |URAGG-;setvalue!;A2S;31|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Integer| |%Shell|) |%Thing|)
                |URAGG-;split!;AIA;32|)) 

(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
                |URAGG-;cycleSplit!;2A;33|)) 

(DEFUN |URAGG-;elt;AfirstS;1| (|x| T0 $)
  (SPADCALL |x| (|shellEntry| $ 8))) 

(DEFUN |URAGG-;elt;AlastS;2| (|x| T1 $)
  (SPADCALL |x| (|shellEntry| $ 11))) 

(DEFUN |URAGG-;elt;ArestA;3| (|x| T2 $)
  (SPADCALL |x| (|shellEntry| $ 14))) 

(DEFUN |URAGG-;second;AS;4| (|x| $)
  (SPADCALL (SPADCALL |x| (|shellEntry| $ 14)) (|shellEntry| $ 8))) 

(DEFUN |URAGG-;third;AS;5| (|x| $)
  (SPADCALL
      (SPADCALL (SPADCALL |x| (|shellEntry| $ 14)) (|shellEntry| $ 14))
      (|shellEntry| $ 8))) 

(DEFUN |URAGG-;cyclic?;AB;6| (|x| $)
  (COND
    ((SPADCALL |x| (|shellEntry| $ 20)) NIL)
    (T (NOT (SPADCALL (|URAGG-;findCycle| |x| $) (|shellEntry| $ 20)))))) 

(DEFUN |URAGG-;last;AS;7| (|x| $)
  (SPADCALL (SPADCALL |x| (|shellEntry| $ 24)) (|shellEntry| $ 8))) 

(DEFUN |URAGG-;nodes;AL;8| (|x| $)
  (LET ((|l| NIL))
    (SEQ (LOOP
           (COND
             ((NOT (NOT (SPADCALL |x| (|shellEntry| $ 20))))
              (RETURN NIL))
             (T (SEQ (SETQ |l| (CONS |x| |l|))
                     (EXIT (SETQ |x|
                                 (SPADCALL |x| (|shellEntry| $ 14))))))))
         (EXIT (NREVERSE |l|))))) 

(DEFUN |URAGG-;children;AL;9| (|x| $)
  (LET ((|l| NIL))
    (COND
      ((SPADCALL |x| (|shellEntry| $ 20)) |l|)
      (T (CONS (SPADCALL |x| (|shellEntry| $ 14)) |l|))))) 

(DEFUN |URAGG-;leaf?;AB;10| (|x| $)
  (SPADCALL |x| (|shellEntry| $ 20))) 

(DEFUN |URAGG-;value;AS;11| (|x| $)
  (COND
    ((SPADCALL |x| (|shellEntry| $ 20))
     (|error| "value of empty object"))
    (T (SPADCALL |x| (|shellEntry| $ 8))))) 

(DEFUN |URAGG-;less?;ANniB;12| (|l| |n| $)
  (LET ((|i| |n|))
    (SEQ (LOOP
           (COND
             ((NOT (COND
                     ((PLUSP |i|)
                      (NOT (SPADCALL |l| (|shellEntry| $ 20))))
                     (T NIL)))
              (RETURN NIL))
             (T (SEQ (SETQ |l| (SPADCALL |l| (|shellEntry| $ 14)))
                     (EXIT (SETQ |i| (- |i| 1)))))))
         (EXIT (PLUSP |i|))))) 

(DEFUN |URAGG-;more?;ANniB;13| (|l| |n| $)
  (LET ((|i| |n|))
    (SEQ (LOOP
           (COND
             ((NOT (COND
                     ((PLUSP |i|)
                      (NOT (SPADCALL |l| (|shellEntry| $ 20))))
                     (T NIL)))
              (RETURN NIL))
             (T (SEQ (SETQ |l| (SPADCALL |l| (|shellEntry| $ 14)))
                     (EXIT (SETQ |i| (- |i| 1)))))))
         (EXIT (COND
                 ((ZEROP |i|) (NOT (SPADCALL |l| (|shellEntry| $ 20))))
                 (T NIL)))))) 

(DEFUN |URAGG-;size?;ANniB;14| (|l| |n| $)
  (LET ((|i| |n|))
    (SEQ (LOOP
           (COND
             ((NOT (COND
                     ((SPADCALL |l| (|shellEntry| $ 20)) NIL)
                     (T (PLUSP |i|))))
              (RETURN NIL))
             (T (SEQ (SETQ |l| (SPADCALL |l| (|shellEntry| $ 14)))
                     (EXIT (SETQ |i| (- |i| 1)))))))
         (EXIT (COND
                 ((SPADCALL |l| (|shellEntry| $ 20)) (ZEROP |i|))
                 (T NIL)))))) 

(DEFUN |URAGG-;#;ANni;15| (|x| $)
  (LET ((|k| 0))
    (SEQ (LOOP
           (COND
             ((NOT (NOT (SPADCALL |x| (|shellEntry| $ 20))))
              (RETURN NIL))
             (T (COND
                  ((AND (EQL |k| 1000)
                        (SPADCALL |x| (|shellEntry| $ 48)))
                   (|error| "cyclic list"))
                  (T (SEQ (SETQ |x| (SPADCALL |x| (|shellEntry| $ 14)))
                          (EXIT (SETQ |k| (+ |k| 1)))))))))
         (EXIT |k|)))) 

(DEFUN |URAGG-;tail;2A;16| (|x| $)
  (COND
    ((SPADCALL |x| (|shellEntry| $ 20)) (|error| "empty list"))
    (T (LET ((|y| (SPADCALL |x| (|shellEntry| $ 14))))
         (SEQ (LET ((|k| 0))
                (LOOP
                  (COND
                    ((NOT (NOT (SPADCALL |y| (|shellEntry| $ 20))))
                     (RETURN NIL))
                    (T (COND
                         ((AND (EQL |k| 1000)
                               (SPADCALL |x| (|shellEntry| $ 48)))
                          (|error| "cyclic list"))
                         (T (SETQ |y|
                                  (SPADCALL (SETQ |x| |y|)
                                      (|shellEntry| $ 14)))))))
                  (SETQ |k| (+ |k| 1))))
              (EXIT |x|)))))) 

(DEFUN |URAGG-;findCycle| (|x| $)
  (LET ((|y| (SPADCALL |x| (|shellEntry| $ 14))))
    (SEQ (LOOP
           (COND
             ((NOT (NOT (SPADCALL |y| (|shellEntry| $ 20))))
              (RETURN NIL))
             (T (SEQ (COND
                       ((SPADCALL |x| |y| (|shellEntry| $ 54))
                        (RETURN-FROM |URAGG-;findCycle| |x|)))
                     (SETQ |x| (SPADCALL |x| (|shellEntry| $ 14)))
                     (SETQ |y| (SPADCALL |y| (|shellEntry| $ 14)))
                     (COND
                       ((SPADCALL |y| (|shellEntry| $ 20))
                        (RETURN-FROM |URAGG-;findCycle| |y|)))
                     (COND
                       ((SPADCALL |x| |y| (|shellEntry| $ 54))
                        (RETURN-FROM |URAGG-;findCycle| |y|)))
                     (EXIT (SETQ |y|
                                 (SPADCALL |y| (|shellEntry| $ 14))))))))
         (EXIT |y|)))) 

(DEFUN |URAGG-;cycleTail;2A;18| (|x| $)
  (PROG (|y| |z|)
    (RETURN
      (COND
        ((SPADCALL
             (LETT |y| (SETQ |x| (SPADCALL |x| (|shellEntry| $ 55)))
                   |URAGG-;cycleTail;2A;18|)
             (|shellEntry| $ 20))
         |x|)
        (T (SEQ (LETT |z| (SPADCALL |x| (|shellEntry| $ 14))
                      |URAGG-;cycleTail;2A;18|)
                (LOOP
                  (COND
                    ((NOT (NOT (SPADCALL |x| |z| (|shellEntry| $ 54))))
                     (RETURN NIL))
                    (T (SEQ (SETQ |y| |z|)
                            (EXIT (SETQ |z|
                                        (SPADCALL |z|
                                         (|shellEntry| $ 14))))))))
                (EXIT |y|))))))) 

(DEFUN |URAGG-;cycleEntry;2A;19| (|x| $)
  (PROG (|y| |z| |l|)
    (RETURN
      (COND
        ((SPADCALL |x| (|shellEntry| $ 20)) |x|)
        ((SPADCALL
             (LETT |y| (|URAGG-;findCycle| |x| $)
                   |URAGG-;cycleEntry;2A;19|)
             (|shellEntry| $ 20))
         |y|)
        (T (SEQ (LETT |z| (SPADCALL |y| (|shellEntry| $ 14))
                      |URAGG-;cycleEntry;2A;19|)
                (LETT |l| 1 |URAGG-;cycleEntry;2A;19|)
                (LOOP
                  (COND
                    ((NOT (NOT (SPADCALL |y| |z| (|shellEntry| $ 54))))
                     (RETURN NIL))
                    (T (SEQ (SETQ |z|
                                  (SPADCALL |z| (|shellEntry| $ 14)))
                            (EXIT (SETQ |l| (+ |l| 1)))))))
                (SETQ |y| |x|)
                (LET ((|k| 1))
                  (LOOP
                    (COND
                      ((> |k| |l|) (RETURN NIL))
                      (T (SETQ |y| (SPADCALL |y| (|shellEntry| $ 14)))))
                    (SETQ |k| (+ |k| 1))))
                (LOOP
                  (COND
                    ((NOT (NOT (SPADCALL |x| |y| (|shellEntry| $ 54))))
                     (RETURN NIL))
                    (T (SEQ (SETQ |x|
                                  (SPADCALL |x| (|shellEntry| $ 14)))
                            (EXIT (SETQ |y|
                                        (SPADCALL |y|
                                         (|shellEntry| $ 14))))))))
                (EXIT |x|))))))) 

(DEFUN |URAGG-;cycleLength;ANni;20| (|x| $)
  (COND
    ((OR (SPADCALL |x| (|shellEntry| $ 20))
         (SPADCALL (SETQ |x| (|URAGG-;findCycle| |x| $))
             (|shellEntry| $ 20)))
     0)
    (T (LET ((|y| (SPADCALL |x| (|shellEntry| $ 14))) (|k| 1))
         (SEQ (LOOP
                (COND
                  ((NOT (NOT (SPADCALL |x| |y| (|shellEntry| $ 54))))
                   (RETURN NIL))
                  (T (SEQ (SETQ |y| (SPADCALL |y| (|shellEntry| $ 14)))
                          (EXIT (SETQ |k| (+ |k| 1)))))))
              (EXIT |k|)))))) 

(DEFUN |URAGG-;rest;ANniA;21| (|x| |n| $)
  (SEQ (LET ((|i| 1))
         (LOOP
           (COND
             ((> |i| |n|) (RETURN NIL))
             (T (COND
                  ((SPADCALL |x| (|shellEntry| $ 20))
                   (|error| "Index out of range"))
                  (T (SETQ |x| (SPADCALL |x| (|shellEntry| $ 14)))))))
           (SETQ |i| (+ |i| 1))))
       (EXIT |x|))) 

(DEFUN |URAGG-;last;ANniA;22| (|x| |n| $)
  (LET ((|m| (SPADCALL |x| (|shellEntry| $ 60))))
    (COND
      ((< |m| |n|) (|error| "index out of range"))
      (T (SPADCALL
             (SPADCALL |x|
                 (LET ((#0=#:G1477 (- |m| |n|)))
                   (|check-subtype| (NOT (MINUSP #0#))
                       '(|NonNegativeInteger|) #0#))
                 (|shellEntry| $ 62))
             (|shellEntry| $ 63)))))) 

(DEFUN |URAGG-;=;2AB;23| (|x| |y| $)
  (COND
    ((SPADCALL |x| |y| (|shellEntry| $ 54)) T)
    (T (SEQ (LET ((|k| 0))
              (LOOP
                (COND
                  ((NOT (COND
                          ((SPADCALL |x| (|shellEntry| $ 20)) NIL)
                          (T (NOT (SPADCALL |y| (|shellEntry| $ 20))))))
                   (RETURN NIL))
                  (T (COND
                       ((AND (EQL |k| 1000)
                             (SPADCALL |x| (|shellEntry| $ 48)))
                        (|error| "cyclic list"))
                       ((SPADCALL (SPADCALL |x| (|shellEntry| $ 8))
                            (SPADCALL |y| (|shellEntry| $ 8))
                            (|shellEntry| $ 66))
                        (RETURN-FROM |URAGG-;=;2AB;23| NIL))
                       (T (SEQ (SETQ |x|
                                     (SPADCALL |x| (|shellEntry| $ 14)))
                               (EXIT (SETQ |y|
                                      (SPADCALL |y|
                                       (|shellEntry| $ 14)))))))))
                (SETQ |k| (+ |k| 1))))
            (EXIT (COND
                    ((SPADCALL |x| (|shellEntry| $ 20))
                     (SPADCALL |y| (|shellEntry| $ 20)))
                    (T NIL))))))) 

(DEFUN |URAGG-;node?;2AB;24| (|u| |v| $)
  (SEQ (LET ((|k| 0))
         (LOOP
           (COND
             ((NOT (NOT (SPADCALL |v| (|shellEntry| $ 20))))
              (RETURN NIL))
             (T (COND
                  ((SPADCALL |u| |v| (|shellEntry| $ 68))
                   (RETURN-FROM |URAGG-;node?;2AB;24| T))
                  ((AND (EQL |k| 1000)
                        (SPADCALL |v| (|shellEntry| $ 48)))
                   (|error| "cyclic list"))
                  (T (SETQ |v| (SPADCALL |v| (|shellEntry| $ 14)))))))
           (SETQ |k| (+ |k| 1))))
       (EXIT (SPADCALL |u| |v| (|shellEntry| $ 68))))) 

(DEFUN |URAGG-;setelt;Afirst2S;25| (|x| T3 |a| $)
  (SPADCALL |x| |a| (|shellEntry| $ 70))) 

(DEFUN |URAGG-;setelt;Alast2S;26| (|x| T4 |a| $)
  (SPADCALL |x| |a| (|shellEntry| $ 72))) 

(DEFUN |URAGG-;setelt;Arest2A;27| (|x| T5 |a| $)
  (SPADCALL |x| |a| (|shellEntry| $ 74))) 

(DEFUN |URAGG-;concat;3A;28| (|x| |y| $)
  (SPADCALL (SPADCALL |x| (|shellEntry| $ 63)) |y| (|shellEntry| $ 76))) 

(DEFUN |URAGG-;setlast!;A2S;29| (|x| |s| $)
  (COND
    ((SPADCALL |x| (|shellEntry| $ 20))
     (|error| "setlast: empty list"))
    (T (SEQ (SPADCALL (SPADCALL |x| (|shellEntry| $ 24)) |s|
                (|shellEntry| $ 70))
            (EXIT |s|))))) 

(DEFUN |URAGG-;setchildren!;ALA;30| (|u| |lv| $)
  (COND
    ((EQL (LIST-LENGTH |lv|) 1)
     (SPADCALL |u| (|SPADfirst| |lv|) (|shellEntry| $ 74)))
    (T (|error| "wrong number of children specified")))) 

(DEFUN |URAGG-;setvalue!;A2S;31| (|u| |s| $)
  (SPADCALL |u| |s| (|shellEntry| $ 70))) 

(DEFUN |URAGG-;split!;AIA;32| (|p| |n| $)
  (PROG (|q|)
    (RETURN
      (COND
        ((< |n| 1) (|error| "index out of range"))
        (T (SEQ (SETQ |p|
                      (SPADCALL |p|
                          (LET ((#0=#:G1503 (- |n| 1)))
                            (|check-subtype| (NOT (MINUSP #0#))
                                '(|NonNegativeInteger|) #0#))
                          (|shellEntry| $ 62)))
                (LETT |q| (SPADCALL |p| (|shellEntry| $ 14))
                      |URAGG-;split!;AIA;32|)
                (SPADCALL |p| (SPADCALL (|shellEntry| $ 84))
                    (|shellEntry| $ 74))
                (EXIT |q|))))))) 

(DEFUN |URAGG-;cycleSplit!;2A;33| (|x| $)
  (PROG (|y| |z|)
    (RETURN
      (COND
        ((OR (SPADCALL
                 (LETT |y| (SPADCALL |x| (|shellEntry| $ 55))
                       |URAGG-;cycleSplit!;2A;33|)
                 (|shellEntry| $ 20))
             (SPADCALL |x| |y| (|shellEntry| $ 54)))
         |y|)
        (T (SEQ (LETT |z| (SPADCALL |x| (|shellEntry| $ 14))
                      |URAGG-;cycleSplit!;2A;33|)
                (LOOP
                  (COND
                    ((NOT (NOT (SPADCALL |z| |y| (|shellEntry| $ 54))))
                     (RETURN NIL))
                    (T (SEQ (SETQ |x| |z|)
                            (EXIT (SETQ |z|
                                        (SPADCALL |z|
                                         (|shellEntry| $ 14))))))))
                (SPADCALL |x| (SPADCALL (|shellEntry| $ 84))
                    (|shellEntry| $ 74))
                (EXIT |y|))))))) 

(DEFUN |UnaryRecursiveAggregate&| (|#1| |#2|)
  (LET* ((|dv$1| (|devaluate| |#1|)) (|dv$2| (|devaluate| |#2|))
         (|dv$| (LIST '|UnaryRecursiveAggregate&| |dv$1| |dv$2|))
         ($ (|newShell| 88))
         (|pv$| (|buildPredVector| 0 0
                    (LIST (|HasAttribute| |#1| '|shallowlyMutable|)))))
    (SETF (|shellEntry| $ 0) |dv$|)
    (SETF (|shellEntry| $ 3) |pv$|)
    (|stuffDomainSlots| $)
    (SETF (|shellEntry| $ 6) |#1|)
    (SETF (|shellEntry| $ 7) |#2|)
    (COND
      ((|HasAttribute| |#1| '|finiteAggregate|)
       (SETF (|shellEntry| $ 64)
             (CONS (|dispatchFunction| |URAGG-;last;ANniA;22|) $))))
    (COND
      ((|HasCategory| |#2| '(|SetCategory|))
       (PROGN
         (SETF (|shellEntry| $ 67)
               (CONS (|dispatchFunction| |URAGG-;=;2AB;23|) $))
         (SETF (|shellEntry| $ 69)
               (CONS (|dispatchFunction| |URAGG-;node?;2AB;24|) $)))))
    (COND
      ((|testBitVector| |pv$| 1)
       (PROGN
         (SETF (|shellEntry| $ 71)
               (CONS (|dispatchFunction| |URAGG-;setelt;Afirst2S;25|)
                     $))
         (SETF (|shellEntry| $ 73)
               (CONS (|dispatchFunction| |URAGG-;setelt;Alast2S;26|) $))
         (SETF (|shellEntry| $ 75)
               (CONS (|dispatchFunction| |URAGG-;setelt;Arest2A;27|) $))
         (SETF (|shellEntry| $ 77)
               (CONS (|dispatchFunction| |URAGG-;concat;3A;28|) $))
         (SETF (|shellEntry| $ 78)
               (CONS (|dispatchFunction| |URAGG-;setlast!;A2S;29|) $))
         (SETF (|shellEntry| $ 81)
               (CONS (|dispatchFunction| |URAGG-;setchildren!;ALA;30|)
                     $))
         (SETF (|shellEntry| $ 82)
               (CONS (|dispatchFunction| |URAGG-;setvalue!;A2S;31|) $))
         (SETF (|shellEntry| $ 85)
               (CONS (|dispatchFunction| |URAGG-;split!;AIA;32|) $))
         (SETF (|shellEntry| $ 86)
               (CONS (|dispatchFunction| |URAGG-;cycleSplit!;2A;33|) $)))))
    $)) 

(MAKEPROP '|UnaryRecursiveAggregate&| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
             (0 . |first|) '"first" |URAGG-;elt;AfirstS;1| (5 . |last|)
             '"last" |URAGG-;elt;AlastS;2| (10 . |rest|) '"rest"
             |URAGG-;elt;ArestA;3| |URAGG-;second;AS;4|
             |URAGG-;third;AS;5| (|Boolean|) (15 . |empty?|)
             (20 . |false|) (24 . |not|) |URAGG-;cyclic?;AB;6|
             (29 . |tail|) |URAGG-;last;AS;7| (|List| 6) (34 . |empty|)
             (38 . |concat|) (44 . |reverse!|) (|List| $)
             |URAGG-;nodes;AL;8| |URAGG-;children;AL;9|
             |URAGG-;leaf?;AB;10| |URAGG-;value;AS;11|
             (|NonNegativeInteger|) (49 . |Zero|) (|Integer|)
             (53 . |Zero|) (57 . >) (63 . |One|) (67 . |One|) (71 . -)
             |URAGG-;less?;ANniB;12| (77 . |zero?|)
             |URAGG-;more?;ANniB;13| |URAGG-;size?;ANniB;14| (82 . =)
             (88 . |cyclic?|) (|PositiveInteger|) (93 . |One|) (97 . +)
             |URAGG-;#;ANni;15| |URAGG-;tail;2A;16| (103 . |eq?|)
             (109 . |cycleEntry|) |URAGG-;cycleTail;2A;18|
             |URAGG-;cycleEntry;2A;19| |URAGG-;cycleLength;ANni;20|
             |URAGG-;rest;ANniA;21| (114 . |#|) (119 . >)
             (125 . |rest|) (131 . |copy|) (136 . |last|)
             (142 . |true|) (146 . ~=) (152 . =) (158 . =)
             (164 . |node?|) (170 . |setfirst!|) (176 . |setelt|)
             (183 . |setlast!|) (189 . |setelt|) (196 . |setrest!|)
             (202 . |setelt|) (209 . |concat!|) (215 . |concat|)
             (221 . |setlast!|) (227 . |#|) (232 . |first|)
             (237 . |setchildren!|) (243 . |setvalue!|) (249 . <)
             (255 . |empty|) (259 . |split!|) (265 . |cycleSplit!|)
             '"value")
          '#(|value| 270 |third| 275 |tail| 280 |split!| 285 |size?|
             291 |setvalue!| 297 |setlast!| 303 |setelt| 309
             |setchildren!| 330 |second| 336 |rest| 341 |nodes| 347
             |node?| 352 |more?| 358 |less?| 364 |leaf?| 370 |last| 375
             |elt| 386 |cyclic?| 404 |cycleTail| 409 |cycleSplit!| 414
             |cycleLength| 419 |cycleEntry| 424 |concat| 429 |children|
             435 = 440 |#| 446)
          'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 86
                                '(1 6 7 0 8 1 6 7 0 11 1 6 0 0 14 1 6
                                  19 0 20 0 19 0 21 1 19 0 0 22 1 6 0 0
                                  24 0 26 0 27 2 26 0 6 0 28 1 26 0 0
                                  29 0 35 0 36 0 37 0 38 2 37 19 0 0 39
                                  0 35 0 40 0 37 0 41 2 37 0 0 0 42 1
                                  37 19 0 44 2 35 19 0 0 47 1 6 19 0 48
                                  0 49 0 50 2 35 0 0 0 51 2 6 19 0 0 54
                                  1 6 0 0 55 1 6 35 0 60 2 35 19 0 0 61
                                  2 6 0 0 35 62 1 6 0 0 63 2 0 0 0 35
                                  64 0 19 0 65 2 7 19 0 0 66 2 0 19 0 0
                                  67 2 6 19 0 0 68 2 0 19 0 0 69 2 6 7
                                  0 7 70 3 0 7 0 9 7 71 2 6 7 0 7 72 3
                                  0 7 0 12 7 73 2 6 0 0 0 74 3 0 0 0 15
                                  0 75 2 6 0 0 0 76 2 0 0 0 0 77 2 0 7
                                  0 7 78 1 26 35 0 79 1 26 6 0 80 2 0 0
                                  0 30 81 2 0 7 0 7 82 2 37 19 0 0 83 0
                                  6 0 84 2 0 0 0 37 85 1 0 0 0 86 1 0 7
                                  0 34 1 0 7 0 18 1 0 0 0 53 2 0 0 0 37
                                  85 2 0 19 0 35 46 2 0 7 0 7 82 2 0 7
                                  0 7 78 3 0 7 0 12 7 73 3 0 7 0 9 7 71
                                  3 0 0 0 15 0 75 2 0 0 0 30 81 1 0 7 0
                                  17 2 0 0 0 35 59 1 0 30 0 31 2 0 19 0
                                  0 69 2 0 19 0 35 45 2 0 19 0 35 43 1
                                  0 19 0 33 2 0 0 0 35 64 1 0 7 0 25 2
                                  0 7 0 12 13 2 0 0 0 15 16 2 0 7 0 9
                                  10 1 0 19 0 23 1 0 0 0 56 1 0 0 0 86
                                  1 0 35 0 58 1 0 0 0 57 2 0 0 0 0 77 1
                                  0 30 0 32 2 0 19 0 0 67 1 0 35 0 52)))))
          '|lookupComplete|))