
(/VERSIONCHECK 2) 

(DEFUN |LZSTAGG-;=;2AB;1| (|x| |y| $)
  (SEQ
   (COND ((SPADCALL |x| |y| (QREFELT $ 9)) 'T)
         (#1='T
          (SEQ
           (COND
            ((SPADCALL |x| (QREFELT $ 10))
             (COND
              ((SPADCALL |y| (QREFELT $ 10))
               (EXIT
                (SPADCALL (SPADCALL |x| (QREFELT $ 12))
                          (SPADCALL |y| (QREFELT $ 12)) (QREFELT $ 13)))))))
           (COND
            ((SPADCALL |x| (QREFELT $ 14))
             (COND
              ((SPADCALL |y| (QREFELT $ 14))
               (EXIT
                (COND
                 ((SPADCALL (SPADCALL |x| (QREFELT $ 15))
                            (SPADCALL |y| (QREFELT $ 15)) (QREFELT $ 16))
                  (EQ (SPADCALL |x| (QREFELT $ 17))
                      (SPADCALL |y| (QREFELT $ 17))))
                 (#1# 'NIL)))))))
           (EXIT 'NIL)))))) 

(DEFUN |LZSTAGG-;less?;ANniB;2| (|x| |n| $)
  (PROG (#1=#:G1912)
    (RETURN
     (COND ((EQL |n| 0) 'NIL) ((SPADCALL |x| (QREFELT $ 19)) 'T)
           ('T
            (SPADCALL (SPADCALL |x| (QREFELT $ 17))
                      (PROG1 (LETT #1# (- |n| 1) |LZSTAGG-;less?;ANniB;2|)
                        (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|)
                                         #1#))
                      (QREFELT $ 21))))))) 

(DEFUN |LZSTAGG-;more?;ANniB;3| (|x| |n| $)
  (PROG (#1=#:G1915)
    (RETURN
     (COND ((SPADCALL |x| (QREFELT $ 19)) 'NIL) ((EQL |n| 0) 'T)
           ('T
            (SPADCALL (SPADCALL |x| (QREFELT $ 17))
                      (PROG1 (LETT #1# (- |n| 1) |LZSTAGG-;more?;ANniB;3|)
                        (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|)
                                         #1#))
                      (QREFELT $ 23))))))) 

(DEFUN |LZSTAGG-;size?;ANniB;4| (|x| |n| $)
  (PROG (#1=#:G1918)
    (RETURN
     (COND ((SPADCALL |x| (QREFELT $ 19)) (EQL |n| 0))
           ('T
            (SPADCALL (SPADCALL |x| (QREFELT $ 17))
                      (PROG1 (LETT #1# (- |n| 1) |LZSTAGG-;size?;ANniB;4|)
                        (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|)
                                         #1#))
                      (QREFELT $ 25))))))) 

(DEFUN |LZSTAGG-;#;ANni;5| (|x| $)
  (PROG (#1=#:G1923 |y| #2=#:G1928 |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;#;ANni;5|))
            (EXIT
             (SEQ (LETT |i| 0 . #3#) G190 NIL
                  (SEQ
                   (EXIT
                    (COND
                     ((SPADCALL |y| (QREFELT $ 27))
                      (PROGN (LETT #2# |i| . #3#) (GO #2#)))
                     ((SPADCALL |y| (QREFELT $ 28))
                      (|error| "#: infinite stream"))
                     ('T
                      (SEQ
                       (EXIT
                        (SEQ (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                             (COND
                              ((ODDP |i|)
                               (LETT |x| (SPADCALL |x| (QREFELT $ 17)) . #3#)))
                             (EXIT
                              (COND
                               ((SPADCALL |x| |y| (QREFELT $ 9))
                                (PROGN
                                 (LETT #1# (|error| "#: infinite stream")
                                       . #3#)
                                 (GO #1#)))))))
                       #1# (EXIT #1#))))))
                  (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;any?;MAB;6| (|f| |x| $)
  (PROG (#1=#:G1930 #2=#:G1937 |y| |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;any?;MAB;6|))
            (EXIT
             (SEQ (LETT |i| 0 . #3#) G190 NIL
                  (SEQ
                   (EXIT
                    (COND
                     ((SPADCALL |y| (QREFELT $ 27))
                      (PROGN (LETT #2# 'NIL . #3#) (GO #2#)))
                     ((SPADCALL |y| (QREFELT $ 28))
                      (|error| "any?: infinite stream"))
                     ((SPADCALL (SPADCALL |y| (QREFELT $ 15)) |f|)
                      (PROGN (LETT #2# 'T . #3#) (GO #2#)))
                     ('T
                      (SEQ
                       (EXIT
                        (SEQ (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                             (COND
                              ((ODDP |i|)
                               (LETT |x| (SPADCALL |x| (QREFELT $ 17)) . #3#)))
                             (EXIT
                              (COND
                               ((SPADCALL |x| |y| (QREFELT $ 9))
                                (PROGN
                                 (LETT #1#
                                       (PROGN (LETT #2# 'NIL . #3#) (GO #2#))
                                       . #3#)
                                 (GO #1#)))))))
                       #1# (EXIT #1#))))))
                  (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;every?;MAB;7| (|f| |x| $)
  (PROG (#1=#:G1940 #2=#:G1945 |y| |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;every?;MAB;7|))
            (EXIT
             (SEQ (LETT |i| 0 . #3#) G190 NIL
                  (SEQ
                   (EXIT
                    (COND
                     ((SPADCALL |y| (QREFELT $ 27))
                      (PROGN (LETT #2# 'T . #3#) (GO #2#)))
                     ((SPADCALL |y| (QREFELT $ 28))
                      (|error| "every?: infinite stream"))
                     ('T
                      (SEQ
                       (EXIT
                        (COND
                         ((NULL (SPADCALL (SPADCALL |y| (QREFELT $ 15)) |f|))
                          (PROGN (LETT #2# 'NIL . #3#) (GO #2#)))
                         ('T
                          (SEQ (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                               (COND
                                ((ODDP |i|)
                                 (LETT |x| (SPADCALL |x| (QREFELT $ 17))
                                       . #3#)))
                               (EXIT
                                (COND
                                 ((SPADCALL |x| |y| (QREFELT $ 9))
                                  (PROGN
                                   (LETT #1#
                                         (PROGN (LETT #2# 'T . #3#) (GO #2#))
                                         . #3#)
                                   (GO #1#)))))))))
                       #1# (EXIT #1#))))))
                  (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;entries;AL;8| (|x| $)
  (PROG (#1=#:G1947 |y| |l| #2=#:G1952 |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;entries;AL;8|)) (LETT |l| NIL . #3#)
            (EXIT
             (SEQ (LETT |i| 0 . #3#) G190 NIL
                  (SEQ
                   (EXIT
                    (COND
                     ((SPADCALL |y| (QREFELT $ 27))
                      (PROGN (LETT #2# (NREVERSE |l|) . #3#) (GO #2#)))
                     ((SPADCALL |y| (QREFELT $ 28))
                      (|error| "infinite stream"))
                     ('T
                      (SEQ
                       (EXIT
                        (SEQ
                         (LETT |l| (CONS (SPADCALL |y| (QREFELT $ 15)) |l|)
                               . #3#)
                         (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                         (COND
                          ((ODDP |i|)
                           (LETT |x| (SPADCALL |x| (QREFELT $ 17)) . #3#)))
                         (EXIT
                          (COND
                           ((SPADCALL |x| |y| (QREFELT $ 9))
                            (PROGN
                             (LETT #1# (|error| "infinite stream") . #3#)
                             (GO #1#)))))))
                       #1# (EXIT #1#))))))
                  (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;construct;LA;9| (|l| $)
  (COND ((NULL |l|) (SPADCALL (QREFELT $ 34)))
        ('T
         (SPADCALL (|SPADfirst| |l|) (SPADCALL (CDR |l|) (QREFELT $ 35))
                   (QREFELT $ 36))))) 

(DEFUN |LZSTAGG-;elt;AIS;10| (|x| |n| $)
  (COND
   ((OR (< |n| 1) (SPADCALL |x| (QREFELT $ 19)))
    (|error| "elt: no such element"))
   ('T
    (COND ((EQL |n| 1) (SPADCALL |x| (QREFELT $ 15)))
          ('T
           (SPADCALL (SPADCALL |x| (QREFELT $ 17)) (- |n| 1)
                     (QREFELT $ 39))))))) 

(DEFUN |LZSTAGG-;elt;AI2S;11| (|x| |n| |s| $)
  (COND ((OR (< |n| 1) (SPADCALL |x| (QREFELT $ 19))) |s|)
        ('T
         (COND ((EQL |n| 1) (SPADCALL |x| (QREFELT $ 15)))
               ('T
                (SPADCALL (SPADCALL |x| (QREFELT $ 17)) (- |n| 1)
                          (QREFELT $ 39))))))) 

(DEFUN |LZSTAGG-;indexx?| (|n| |x| $)
  (COND ((SPADCALL |x| (QREFELT $ 19)) 'NIL) ((EQL |n| 1) 'T)
        ('T (|LZSTAGG-;indexx?| (- |n| 1) (SPADCALL |x| (QREFELT $ 17)) $)))) 

(DEFUN |LZSTAGG-;index?;IAB;13| (|n| |x| $)
  (COND ((< |n| 1) 'NIL) ('T (|LZSTAGG-;indexx?| |n| |x| $)))) 

(DEFUN |LZSTAGG-;indices;AL;14| (|x| $)
  (PROG (#1=#:G1965 |y| |l| #2=#:G1970 |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;indices;AL;14|)) (LETT |l| NIL . #3#)
            (EXIT
             (SEQ (LETT |i| 1 . #3#) G190 NIL
                  (SEQ
                   (EXIT
                    (COND
                     ((SPADCALL |y| (QREFELT $ 27))
                      (PROGN (LETT #2# (NREVERSE |l|) . #3#) (GO #2#)))
                     ((SPADCALL |y| (QREFELT $ 28))
                      (|error| "indices: infinite stream"))
                     ('T
                      (SEQ
                       (EXIT
                        (SEQ (LETT |l| (CONS |i| |l|) . #3#)
                             (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                             (COND
                              ((ODDP |i|)
                               (LETT |x| (SPADCALL |x| (QREFELT $ 17)) . #3#)))
                             (EXIT
                              (COND
                               ((SPADCALL |x| |y| (QREFELT $ 9))
                                (PROGN
                                 (LETT #1# (|error| "indices: infinite stream")
                                       . #3#)
                                 (GO #1#)))))))
                       #1# (EXIT #1#))))))
                  (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;maxIndex;AI;15| (|x| $)
  (PROG (#1=#:G1972 |y| #2=#:G1978 |i|)
    (RETURN
     (SEQ
      (EXIT
       (COND
        ((SPADCALL |x| (QREFELT $ 19))
         (|error| "maxIndex: no maximal index for empty stream"))
        ('T
         (SEQ
          (LETT |y| (SPADCALL |x| (QREFELT $ 17))
                . #3=(|LZSTAGG-;maxIndex;AI;15|))
          (EXIT
           (SEQ (LETT |i| 1 . #3#) G190 NIL
                (SEQ
                 (EXIT
                  (COND
                   ((SPADCALL |y| (QREFELT $ 27))
                    (PROGN (LETT #2# |i| . #3#) (GO #2#)))
                   ((SPADCALL |y| (QREFELT $ 28))
                    (|error| "maxIndex: infinite stream"))
                   ('T
                    (SEQ
                     (EXIT
                      (SEQ (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                           (COND
                            ((ODDP |i|)
                             (LETT |x| (SPADCALL |x| (QREFELT $ 17)) . #3#)))
                           (EXIT
                            (COND
                             ((SPADCALL |x| |y| (QREFELT $ 9))
                              (PROGN
                               (LETT #1# (|error| "maxIndex: infinite stream")
                                     . #3#)
                               (GO #1#)))))))
                     #1# (EXIT #1#))))))
                (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;minIndex;AI;16| (|x| $)
  (COND
   ((SPADCALL |x| (QREFELT $ 19))
    (|error| "minIndex: no minimal index for empty stream"))
   ('T 1))) 

(DEFUN |LZSTAGG-;delete;AIA;17| (|x| |n| $)
  (PROG (#1=#:G1983 #2=#:G1982)
    (RETURN
     (COND
      ((NULL (SPADCALL |n| |x| (QREFELT $ 47)))
       (|error| "delete: index out of range"))
      ('T
       (SPADCALL
        (SPADCALL |x|
                  (PROG1 (LETT #2# (- |n| 1) . #3=(|LZSTAGG-;delete;AIA;17|))
                    (|check-subtype| (>= #2# 0) '(|NonNegativeInteger|) #2#))
                  (QREFELT $ 48))
        (SPADCALL |x|
                  (PROG1 (LETT #1# (+ (- |n| 1) 1) . #3#)
                    (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
                  (QREFELT $ 49))
        (QREFELT $ 50))))))) 

(DEFUN |LZSTAGG-;delete;AUsA;18| (|x| |seg| $)
  (PROG (#1=#:G1993 #2=#:G1989 #3=#:G1988 |high| |low|)
    (RETURN
     (SEQ
      (LETT |low| (SPADCALL |seg| (QREFELT $ 53))
            . #4=(|LZSTAGG-;delete;AUsA;18|))
      (EXIT
       (COND
        ((SPADCALL |seg| (QREFELT $ 54))
         (SEQ (LETT |high| (SPADCALL |seg| (QREFELT $ 55)) . #4#)
              (EXIT
               (COND ((< |high| |low|) (SPADCALL |x| (QREFELT $ 56)))
                     (#5='T
                      (SEQ
                       (COND
                        ((SPADCALL |low| |x| (QREFELT $ 47))
                         (COND
                          ((NULL (SPADCALL |high| |x| (QREFELT $ 47)))
                           (EXIT (|error| #6="delete: index out of range")))))
                        (#5# (EXIT (|error| #6#))))
                       (EXIT
                        (SPADCALL
                         (SPADCALL |x|
                                   (PROG1 (LETT #3# (- |low| 1) . #4#)
                                     (|check-subtype| (>= #3# 0)
                                                      '(|NonNegativeInteger|)
                                                      #3#))
                                   (QREFELT $ 48))
                         (SPADCALL |x|
                                   (PROG1 (LETT #2# (+ (- |high| 1) 1) . #4#)
                                     (|check-subtype| (>= #2# 0)
                                                      '(|NonNegativeInteger|)
                                                      #2#))
                                   (QREFELT $ 49))
                         (QREFELT $ 50)))))))))
        ((NULL (SPADCALL |low| |x| (QREFELT $ 47)))
         (|error| "delete: index out of range"))
        ('T
         (SPADCALL |x|
                   (PROG1 (LETT #1# (- |low| 1) . #4#)
                     (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
                   (QREFELT $ 48))))))))) 

(DEFUN |LZSTAGG-;elt;AUsA;19| (|x| |seg| $)
  (PROG (#1=#:G2004 #2=#:G2000 #3=#:G1999 |high| |low|)
    (RETURN
     (SEQ
      (LETT |low| (SPADCALL |seg| (QREFELT $ 53))
            . #4=(|LZSTAGG-;elt;AUsA;19|))
      (EXIT
       (COND
        ((SPADCALL |seg| (QREFELT $ 54))
         (SEQ (LETT |high| (SPADCALL |seg| (QREFELT $ 55)) . #4#)
              (EXIT
               (COND ((< |high| |low|) (SPADCALL (QREFELT $ 34)))
                     (#5='T
                      (SEQ
                       (COND
                        ((SPADCALL |low| |x| (QREFELT $ 47))
                         (COND
                          ((NULL (SPADCALL |high| |x| (QREFELT $ 47)))
                           (EXIT (|error| #6="elt: index out of range")))))
                        (#5# (EXIT (|error| #6#))))
                       (EXIT
                        (SPADCALL
                         (SPADCALL |x|
                                   (PROG1 (LETT #3# (- |low| 1) . #4#)
                                     (|check-subtype| (>= #3# 0)
                                                      '(|NonNegativeInteger|)
                                                      #3#))
                                   (QREFELT $ 49))
                         (PROG1 (LETT #2# (+ (- |high| |low|) 1) . #4#)
                           (|check-subtype| (>= #2# 0) '(|NonNegativeInteger|)
                                            #2#))
                         (QREFELT $ 48)))))))))
        ((NULL (SPADCALL |low| |x| (QREFELT $ 47)))
         (|error| "elt: index out of range"))
        ('T
         (SPADCALL |x|
                   (PROG1 (LETT #1# (- |low| 1) . #4#)
                     (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
                   (QREFELT $ 49))))))))) 

(DEFUN |LZSTAGG-;insert;SAIA;20| (|s| |x| |n| $)
  (PROG (|nn| #1=#:G2009)
    (RETURN
     (SEQ
      (COND
       ((NULL (SPADCALL |n| |x| (QREFELT $ 47)))
        (|error| "insert: index out of range"))
       ('T
        (SEQ
         (LETT |nn|
               (PROG1 (LETT #1# (- |n| 1) . #2=(|LZSTAGG-;insert;SAIA;20|))
                 (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
               . #2#)
         (EXIT
          (SPADCALL
           (LIST (SPADCALL |x| |nn| (QREFELT $ 48))
                 (SPADCALL |s| (SPADCALL (QREFELT $ 34)) (QREFELT $ 36))
                 (SPADCALL |x| |nn| (QREFELT $ 49)))
           (QREFELT $ 60)))))))))) 

(DEFUN |LZSTAGG-;insert;2AIA;21| (|y| |x| |n| $)
  (PROG (|nn| #1=#:G2013)
    (RETURN
     (SEQ
      (COND
       ((NULL (SPADCALL |n| |x| (QREFELT $ 47)))
        (|error| "insert: index out of range"))
       ('T
        (SEQ
         (LETT |nn|
               (PROG1 (LETT #1# (- |n| 1) . #2=(|LZSTAGG-;insert;2AIA;21|))
                 (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
               . #2#)
         (EXIT
          (SPADCALL
           (LIST (SPADCALL |x| |nn| (QREFELT $ 48)) |y|
                 (SPADCALL |x| |nn| (QREFELT $ 49)))
           (QREFELT $ 60)))))))))) 

(DEFUN |LZSTAGG-;cycleElt| (|x| $) (SPADCALL |x| (QREFELT $ 65))) 

(DEFUN |LZSTAGG-;cyclic?;AB;23| (|x| $)
  (COND ((QEQCAR (|LZSTAGG-;cycleElt| |x| $) 1) 'NIL) ('T 'T))) 

(DEFUN |LZSTAGG-;child?;2AB;24| (|x| |y| $)
  (COND ((SPADCALL |y| (QREFELT $ 19)) (|error| "child: no children"))
        ('T (SPADCALL |x| (SPADCALL |y| (QREFELT $ 17)) (QREFELT $ 67))))) 

(DEFUN |LZSTAGG-;children;AL;25| (|x| $)
  (COND ((SPADCALL |x| (QREFELT $ 19)) (|error| "children: no children"))
        ('T (LIST (SPADCALL |x| (QREFELT $ 17)))))) 

(DEFUN |LZSTAGG-;distance;2AI;26| (|x| |z| $)
  (PROG (#1=#:G2035 |y| #2=#:G2039 |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;distance;2AI;26|))
            (EXIT
             (SEQ (LETT |i| 0 . #3#) G190 NIL
                  (SEQ
                   (EXIT
                    (COND
                     ((SPADCALL |y| |z| (QREFELT $ 9))
                      (PROGN (LETT #2# |i| . #3#) (GO #2#)))
                     ('T
                      (SEQ
                       (EXIT
                        (COND
                         ((OR (SPADCALL |y| (QREFELT $ 27))
                              (SPADCALL |y| (QREFELT $ 28)))
                          (|error|
                           "distance: 2nd arg not a descendent of the 1st"))
                         ('T
                          (SEQ (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                               (COND
                                ((ODDP |i|)
                                 (LETT |x| (SPADCALL |x| (QREFELT $ 17))
                                       . #3#)))
                               (EXIT
                                (COND
                                 ((SPADCALL |x| |y| (QREFELT $ 9))
                                  (PROGN
                                   (LETT #1#
                                         (|error|
                                          "distance: 2nd arg not a descendent of the 1st")
                                         . #3#)
                                   (GO #1#)))))))))
                       #1# (EXIT #1#))))))
                  (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;node?;2AB;27| (|z| |x| $)
  (PROG (#1=#:G2041 #2=#:G2046 |y| |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;node?;2AB;27|))
            (EXIT
             (SEQ (LETT |i| 0 . #3#) G190 NIL
                  (SEQ
                   (EXIT
                    (COND
                     ((SPADCALL |z| |y| (QREFELT $ 67))
                      (PROGN (LETT #2# 'T . #3#) (GO #2#)))
                     ((SPADCALL |y| (QREFELT $ 27))
                      (PROGN (LETT #2# 'NIL . #3#) (GO #2#)))
                     ((SPADCALL |y| (QREFELT $ 28))
                      (|error| "node?: infinite stream"))
                     ('T
                      (SEQ
                       (EXIT
                        (SEQ (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                             (COND
                              ((ODDP |i|)
                               (LETT |x| (SPADCALL |x| (QREFELT $ 17)) . #3#)))
                             (EXIT
                              (COND
                               ((SPADCALL |x| |y| (QREFELT $ 9))
                                (PROGN
                                 (LETT #1#
                                       (PROGN (LETT #2# 'NIL . #3#) (GO #2#))
                                       . #3#)
                                 (GO #1#)))))))
                       #1# (EXIT #1#))))))
                  (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;nodes;AL;28| (|x| $)
  (PROG (#1=#:G2048 |y| |l| #2=#:G2053 |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;nodes;AL;28|)) (LETT |l| NIL . #3#)
            (SEQ (LETT |i| 0 . #3#) G190 NIL
                 (SEQ
                  (EXIT
                   (COND
                    ((SPADCALL |y| (QREFELT $ 27))
                     (PROGN (LETT #2# (NREVERSE |l|) . #3#) (GO #2#)))
                    ((SPADCALL |y| (QREFELT $ 28))
                     (|error| "nodes: infinite stream"))
                    ('T
                     (SEQ
                      (EXIT
                       (SEQ (LETT |l| (CONS |y| |l|) . #3#)
                            (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                            (COND
                             ((ODDP |i|)
                              (LETT |x| (SPADCALL |x| (QREFELT $ 17)) . #3#)))
                            (EXIT
                             (COND
                              ((SPADCALL |x| |y| (QREFELT $ 9))
                               (PROGN
                                (LETT #1# (|error| "nodes: infinite stream")
                                      . #3#)
                                (GO #1#)))))))
                      #1# (EXIT #1#))))))
                 (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL))
            (EXIT |l|)))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;leaf?;AB;29| (|x| $)
  (SPADCALL (SPADCALL |x| (QREFELT $ 73)) (QREFELT $ 19))) 

(DEFUN |LZSTAGG-;value;AS;30| (|x| $) (SPADCALL |x| (QREFELT $ 75))) 

(DEFUN |LZSTAGG-;computeCycleLength| (|cycElt| $)
  (SPADCALL |cycElt| (QREFELT $ 77))) 

(DEFUN |LZSTAGG-;computeCycleEntry| (|x| |cycElt| $)
  (SPADCALL |x| |cycElt| (QREFELT $ 78))) 

(DEFUN |LZSTAGG-;cycleEntry;2A;33| (|x| $)
  (PROG (|cycElt|)
    (RETURN
     (SEQ
      (LETT |cycElt| (|LZSTAGG-;cycleElt| |x| $) |LZSTAGG-;cycleEntry;2A;33|)
      (EXIT
       (COND ((QEQCAR |cycElt| 1) (|error| "cycleEntry: non-cyclic stream"))
             ('T (|LZSTAGG-;computeCycleEntry| |x| (QCDR |cycElt|) $)))))))) 

(DEFUN |LZSTAGG-;cycleLength;ANni;34| (|x| $)
  (PROG (|cycElt|)
    (RETURN
     (SEQ
      (LETT |cycElt| (|LZSTAGG-;cycleElt| |x| $)
            |LZSTAGG-;cycleLength;ANni;34|)
      (EXIT
       (COND ((QEQCAR |cycElt| 1) (|error| "cycleLength: non-cyclic stream"))
             ('T (|LZSTAGG-;computeCycleLength| (QCDR |cycElt|) $)))))))) 

(DEFUN |LZSTAGG-;cycleTail;2A;35| (|x| $)
  (PROG (|z| |y| #1=#:G2076 |cycElt|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |cycElt| (|LZSTAGG-;cycleElt| |x| $)
              . #2=(|LZSTAGG-;cycleTail;2A;35|))
        (EXIT
         (COND ((QEQCAR |cycElt| 1) (|error| "cycleTail: non-cyclic stream"))
               ('T
                (SEQ
                 (LETT |y|
                       (LETT |x|
                             (|LZSTAGG-;computeCycleEntry| |x| (QCDR |cycElt|)
                              $)
                             . #2#)
                       . #2#)
                 (LETT |z| (SPADCALL |x| (QREFELT $ 17)) . #2#)
                 (EXIT
                  (SEQ G190 NIL
                       (SEQ
                        (EXIT
                         (COND
                          ((SPADCALL |x| |z| (QREFELT $ 9))
                           (PROGN (LETT #1# |y| . #2#) (GO #1#)))
                          ('T
                           (SEQ (LETT |y| |z| . #2#)
                                (EXIT
                                 (LETT |z| (SPADCALL |z| (QREFELT $ 17))
                                       . #2#)))))))
                       NIL (GO G190) G191 (EXIT NIL)))))))))
      #1# (EXIT #1#))))) 

(DEFUN |LZSTAGG-;elt;AfirstS;36| (|x| T1 $) (SPADCALL |x| (QREFELT $ 75))) 

(DEFUN |LZSTAGG-;first;ANniA;37| (|x| |n| $)
  (PROG (#1=#:G2079)
    (RETURN
     (COND
      ((OR (EQL |n| 0) (SPADCALL |x| (QREFELT $ 19)))
       (SPADCALL (QREFELT $ 34)))
      ('T
       (SPADCALL (SPADCALL |x| (QREFELT $ 15))
                 (SPADCALL (SPADCALL |x| (QREFELT $ 17))
                           (PROG1
                               (LETT #1# (- |n| 1) |LZSTAGG-;first;ANniA;37|)
                             (|check-subtype| (>= #1# 0)
                                              '(|NonNegativeInteger|) #1#))
                           (QREFELT $ 48))
                 (QREFELT $ 36))))))) 

(DEFUN |LZSTAGG-;rest;2A;38| (|x| $)
  (COND
   ((SPADCALL |x| (QREFELT $ 19))
    (|error| "Can't take the rest of an empty stream."))
   ('T (SPADCALL |x| (QREFELT $ 17))))) 

(DEFUN |LZSTAGG-;elt;ArestA;39| (|x| T2 $) (SPADCALL |x| (QREFELT $ 73))) 

(DEFUN |LZSTAGG-;rest;ANniA;40| (|x| |n| $)
  (PROG (#1=#:G2086)
    (RETURN
     (COND ((OR (EQL |n| 0) (SPADCALL |x| (QREFELT $ 19))) |x|)
           ('T
            (SPADCALL (SPADCALL |x| (QREFELT $ 17))
                      (PROG1 (LETT #1# (- |n| 1) |LZSTAGG-;rest;ANniA;40|)
                        (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|)
                                         #1#))
                      (QREFELT $ 49))))))) 

(DEFUN |LZSTAGG-;last;AS;41| (|x| $)
  (PROG (#1=#:G2090 |y2| |y1| #2=#:G2096 |i|)
    (RETURN
     (SEQ
      (EXIT
       (COND ((SPADCALL |x| (QREFELT $ 19)) (|error| "last: empty stream"))
             ('T
              (SEQ (LETT |y1| |x| . #3=(|LZSTAGG-;last;AS;41|))
                   (LETT |y2| (SPADCALL |x| (QREFELT $ 17)) . #3#)
                   (EXIT
                    (SEQ (LETT |i| 0 . #3#) G190 NIL
                         (SEQ
                          (EXIT
                           (COND
                            ((SPADCALL |y2| (QREFELT $ 27))
                             (PROGN
                              (LETT #2# (SPADCALL |y1| (QREFELT $ 15)) . #3#)
                              (GO #2#)))
                            ((SPADCALL |y2| (QREFELT $ 28))
                             (|error| "last: infinite stream"))
                            ('T
                             (SEQ
                              (EXIT
                               (SEQ (LETT |y1| |y2| . #3#)
                                    (LETT |y2| (SPADCALL |y2| (QREFELT $ 17))
                                          . #3#)
                                    (COND
                                     ((ODDP |i|)
                                      (LETT |x| (SPADCALL |x| (QREFELT $ 17))
                                            . #3#)))
                                    (EXIT
                                     (COND
                                      ((SPADCALL |x| |y2| (QREFELT $ 9))
                                       (PROGN
                                        (LETT #1#
                                              (|error| "last: infinite stream")
                                              . #3#)
                                        (GO #1#)))))))
                              #1# (EXIT #1#))))))
                         (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191
                         (EXIT NIL)))))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;last;ANniA;42| (|x| |n| $)
  (PROG (#1=#:G2097 |m|)
    (RETURN
     (SEQ
      (COND ((SPADCALL |x| (QREFELT $ 90)) (|error| "last: infinite stream"))
            (#2='T
             (SEQ
              (LETT |m| (SPADCALL |x| (QREFELT $ 91))
                    . #3=(|LZSTAGG-;last;ANniA;42|))
              (EXIT
               (COND ((< |m| |n|) (|error| "last: index out of range"))
                     (#2#
                      (SPADCALL
                       (SPADCALL |x|
                                 (PROG1 (LETT #1# (- |m| |n|) . #3#)
                                   (|check-subtype| (>= #1# 0)
                                                    '(|NonNegativeInteger|)
                                                    #1#))
                                 (QREFELT $ 49))
                       (QREFELT $ 56)))))))))))) 

(DEFUN |LZSTAGG-;elt;AlastS;43| (|x| T3 $) (SPADCALL |x| (QREFELT $ 93))) 

(DEFUN |LZSTAGG-;tail;2A;44| (|x| $)
  (PROG (#1=#:G2103 |y2| |y1| #2=#:G2109 |i|)
    (RETURN
     (SEQ
      (EXIT
       (COND ((SPADCALL |x| (QREFELT $ 19)) (|error| "tail: empty stream"))
             ('T
              (SEQ (LETT |y1| |x| . #3=(|LZSTAGG-;tail;2A;44|))
                   (LETT |y2| (SPADCALL |x| (QREFELT $ 17)) . #3#)
                   (EXIT
                    (SEQ (LETT |i| 0 . #3#) G190 NIL
                         (SEQ
                          (EXIT
                           (COND
                            ((SPADCALL |y2| (QREFELT $ 27))
                             (PROGN (LETT #2# |y1| . #3#) (GO #2#)))
                            ((SPADCALL |y2| (QREFELT $ 28))
                             (|error| "tail: infinite stream"))
                            ('T
                             (SEQ
                              (EXIT
                               (SEQ (LETT |y1| |y2| . #3#)
                                    (LETT |y2| (SPADCALL |y2| (QREFELT $ 17))
                                          . #3#)
                                    (COND
                                     ((ODDP |i|)
                                      (LETT |x| (SPADCALL |x| (QREFELT $ 17))
                                            . #3#)))
                                    (EXIT
                                     (COND
                                      ((SPADCALL |x| |y2| (QREFELT $ 9))
                                       (PROGN
                                        (LETT #1#
                                              (|error| "tail: infinite stream")
                                              . #3#)
                                        (GO #1#)))))))
                              #1# (EXIT #1#))))))
                         (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191
                         (EXIT NIL)))))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;possiblyInfinite?;AB;45| (|x| $)
  (PROG (#1=#:G2111 #2=#:G2116 |y| |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |y| |x| . #3=(|LZSTAGG-;possiblyInfinite?;AB;45|))
            (EXIT
             (SEQ (LETT |i| 0 . #3#) G190 NIL
                  (SEQ
                   (EXIT
                    (COND
                     ((SPADCALL |y| (QREFELT $ 27))
                      (PROGN (LETT #2# 'NIL . #3#) (GO #2#)))
                     ((SPADCALL |y| (QREFELT $ 28))
                      (PROGN (LETT #2# 'T . #3#) (GO #2#)))
                     ('T
                      (SEQ
                       (EXIT
                        (SEQ
                         (COND
                          ((ODDP |i|)
                           (LETT |x| (SPADCALL |x| (QREFELT $ 17)) . #3#)))
                         (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #3#)
                         (EXIT
                          (COND
                           ((SPADCALL |x| |y| (QREFELT $ 9))
                            (PROGN
                             (LETT #1# (PROGN (LETT #2# 'T . #3#) (GO #2#))
                                   . #3#)
                             (GO #1#)))))))
                       #1# (EXIT #1#))))))
                  (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL)))))
      #2# (EXIT #2#))))) 

(DEFUN |LZSTAGG-;explicitlyFinite?;AB;46| (|x| $)
  (COND ((SPADCALL |x| (QREFELT $ 90)) 'NIL) ('T 'T))) 

(DEFUN |LZSTAGG-;extend;AIA;47| (|x| |n| $)
  (PROG (|y| |i|)
    (RETURN
     (SEQ (LETT |y| |x| . #1=(|LZSTAGG-;extend;AIA;47|))
          (SEQ (LETT |i| 1 . #1#) G190
               (COND
                ((OR (QSGREATERP |i| |n|)
                     (NULL
                      (COND ((SPADCALL |y| (QREFELT $ 19)) 'NIL) ('T 'T))))
                 (GO G191)))
               (SEQ (EXIT (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #1#)))
               (LETT |i| (QSADD1 |i|) . #1#) (GO G190) G191 (EXIT NIL))
          (EXIT |x|))))) 

(DEFUN |LZSTAGG-;complete;2A;48| (|x| $)
  (PROG (|y|)
    (RETURN
     (SEQ (LETT |y| |x| . #1=(|LZSTAGG-;complete;2A;48|))
          (SEQ G190
               (COND
                ((NULL (COND ((SPADCALL |y| (QREFELT $ 19)) 'NIL) ('T 'T)))
                 (GO G191)))
               (SEQ (EXIT (LETT |y| (SPADCALL |y| (QREFELT $ 17)) . #1#))) NIL
               (GO G190) G191 (EXIT NIL))
          (EXIT |x|))))) 

(DEFUN |LazyStreamAggregate&| (|#1| |#2|)
  (PROG (|pv$| $ |dv$| DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|LazyStreamAggregate&|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT |dv$| (LIST '|LazyStreamAggregate&| DV$1 DV$2) . #1#)
      (LETT $ (GETREFV 102) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (COND
       ((|HasCategory| |#2| '(|SetCategory|))
        (QSETREFV $ 18 (CONS (|dispatchFunction| |LZSTAGG-;=;2AB;1|) $))))
      (COND
       ((|HasCategory| |#2| '(|SetCategory|))
        (QSETREFV $ 68
                  (CONS (|dispatchFunction| |LZSTAGG-;child?;2AB;24|) $))))
      (COND
       ((|HasCategory| |#2| '(|SetCategory|))
        (QSETREFV $ 71 (CONS (|dispatchFunction| |LZSTAGG-;node?;2AB;27|) $))))
      (COND
       ((|HasCategory| |#1| '(|finiteAggregate|))
        (QSETREFV $ 92
                  (CONS (|dispatchFunction| |LZSTAGG-;last;ANniA;42|) $))))
      $)))) 

(MAKEPROP '|LazyStreamAggregate&| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|) (|Boolean|)
              (0 . |eq?|) (6 . |explicitlyFinite?|) (|List| 7) (11 . |entries|)
              (16 . =) (22 . |explicitEntries?|) (27 . |frst|) (32 . =)
              (38 . |rst|) (43 . =) (49 . |empty?|) (|NonNegativeInteger|)
              (54 . |less?|) |LZSTAGG-;less?;ANniB;2| (60 . |more?|)
              |LZSTAGG-;more?;ANniB;3| (66 . |size?|) |LZSTAGG-;size?;ANniB;4|
              (72 . |explicitlyEmpty?|) (77 . |lazy?|) |LZSTAGG-;#;ANni;5|
              (|Mapping| 8 7) |LZSTAGG-;any?;MAB;6| |LZSTAGG-;every?;MAB;7|
              |LZSTAGG-;entries;AL;8| (82 . |empty|) (86 . |construct|)
              (91 . |concat|) |LZSTAGG-;construct;LA;9| (|Integer|)
              (97 . |elt|) |LZSTAGG-;elt;AIS;10| |LZSTAGG-;elt;AI2S;11|
              |LZSTAGG-;index?;IAB;13| (|List| 38) |LZSTAGG-;indices;AL;14|
              |LZSTAGG-;maxIndex;AI;15| |LZSTAGG-;minIndex;AI;16|
              (103 . |index?|) (109 . |first|) (115 . |rest|) (121 . |concat|)
              |LZSTAGG-;delete;AIA;17| (|UniversalSegment| 38) (127 . |lo|)
              (132 . |hasHi|) (137 . |hi|) (142 . |copy|)
              |LZSTAGG-;delete;AUsA;18| |LZSTAGG-;elt;AUsA;19| (|List| $)
              (147 . |concat|) |LZSTAGG-;insert;SAIA;20|
              |LZSTAGG-;insert;2AIA;21| (|Union| 6 '"failed")
              (|CyclicStreamTools| 7 6) (152 . |cycleElt|)
              |LZSTAGG-;cyclic?;AB;23| (157 . =) (163 . |child?|)
              |LZSTAGG-;children;AL;25| |LZSTAGG-;distance;2AI;26|
              (169 . |node?|) |LZSTAGG-;nodes;AL;28| (175 . |rest|)
              |LZSTAGG-;leaf?;AB;29| (180 . |first|) |LZSTAGG-;value;AS;30|
              (185 . |computeCycleLength|) (190 . |computeCycleEntry|)
              |LZSTAGG-;cycleEntry;2A;33| |LZSTAGG-;cycleLength;ANni;34|
              |LZSTAGG-;cycleTail;2A;35| '"first" |LZSTAGG-;elt;AfirstS;36|
              |LZSTAGG-;first;ANniA;37| |LZSTAGG-;rest;2A;38| '"rest"
              |LZSTAGG-;elt;ArestA;39| |LZSTAGG-;rest;ANniA;40|
              |LZSTAGG-;last;AS;41| (196 . |possiblyInfinite?|) (201 . |#|)
              (206 . |last|) (212 . |last|) '"last" |LZSTAGG-;elt;AlastS;43|
              |LZSTAGG-;tail;2A;44| |LZSTAGG-;possiblyInfinite?;AB;45|
              |LZSTAGG-;explicitlyFinite?;AB;46| |LZSTAGG-;extend;AIA;47|
              |LZSTAGG-;complete;2A;48| '"value")
           '#(|value| 217 |tail| 222 |size?| 227 |rest| 233 |possiblyInfinite?|
              244 |nodes| 249 |node?| 254 |more?| 260 |minIndex| 266 |maxIndex|
              271 |less?| 276 |leaf?| 282 |last| 287 |insert| 298 |indices| 312
              |index?| 317 |first| 323 |extend| 329 |explicitlyFinite?| 335
              |every?| 340 |entries| 346 |elt| 351 |distance| 388 |delete| 394
              |cyclic?| 406 |cycleTail| 411 |cycleLength| 416 |cycleEntry| 421
              |construct| 426 |complete| 431 |children| 436 |child?| 441 |any?|
              447 = 453 |#| 459)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 100
                                                 '(2 6 8 0 0 9 1 6 8 0 10 1 6
                                                   11 0 12 2 11 8 0 0 13 1 6 8
                                                   0 14 1 6 7 0 15 2 7 8 0 0 16
                                                   1 6 0 0 17 2 0 8 0 0 18 1 6
                                                   8 0 19 2 6 8 0 20 21 2 6 8 0
                                                   20 23 2 6 8 0 20 25 1 6 8 0
                                                   27 1 6 8 0 28 0 6 0 34 1 6 0
                                                   11 35 2 6 0 7 0 36 2 6 7 0
                                                   38 39 2 6 8 38 0 47 2 6 0 0
                                                   20 48 2 6 0 0 20 49 2 6 0 0
                                                   0 50 1 52 38 0 53 1 52 8 0
                                                   54 1 52 38 0 55 1 6 0 0 56 1
                                                   6 0 59 60 1 64 63 6 65 2 6 8
                                                   0 0 67 2 0 8 0 0 68 2 0 8 0
                                                   0 71 1 6 0 0 73 1 6 7 0 75 1
                                                   64 20 6 77 2 64 6 6 6 78 1 6
                                                   8 0 90 1 6 20 0 91 2 0 0 0
                                                   20 92 1 6 7 0 93 1 0 7 0 76
                                                   1 0 0 0 96 2 0 8 0 20 26 2 0
                                                   0 0 20 88 1 0 0 0 85 1 0 8 0
                                                   97 1 0 59 0 72 2 0 8 0 0 71
                                                   2 0 8 0 20 24 1 0 38 0 46 1
                                                   0 38 0 45 2 0 8 0 20 22 1 0
                                                   8 0 74 2 0 0 0 20 92 1 0 7 0
                                                   89 3 0 0 0 0 38 62 3 0 0 7 0
                                                   38 61 1 0 43 0 44 2 0 8 38 0
                                                   42 2 0 0 0 20 84 2 0 0 0 38
                                                   99 1 0 8 0 98 2 0 8 30 0 32
                                                   1 0 11 0 33 3 0 7 0 38 7 41
                                                   2 0 7 0 38 40 2 0 0 0 52 58
                                                   2 0 7 0 94 95 2 0 0 0 86 87
                                                   2 0 7 0 82 83 2 0 38 0 0 70
                                                   2 0 0 0 38 51 2 0 0 0 52 57
                                                   1 0 8 0 66 1 0 0 0 81 1 0 20
                                                   0 80 1 0 0 0 79 1 0 0 11 37
                                                   1 0 0 0 100 1 0 59 0 69 2 0
                                                   8 0 0 68 2 0 8 30 0 31 2 0 8
                                                   0 0 18 1 0 20 0 29)))))
           '|lookupComplete|)) 
