
(/VERSIONCHECK 2) 

(DEFUN |LNAGG-;indices;AL;1| (|a| $)
  (PROG (#1=#:G2500 |i| #2=#:G2499)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|LNAGG-;indices;AL;1|))
       (SEQ (LETT |i| (SPADCALL |a| (QREFELT $ 9)) . #3#)
            (LETT #1# (SPADCALL |a| (QREFELT $ 10)) . #3#) G190
            (COND ((> |i| #1#) (GO G191)))
            (SEQ (EXIT (LETT #2# (CONS |i| #2#) . #3#)))
            (LETT |i| (+ |i| 1) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |LNAGG-;index?;IAB;2| (|i| |a| $)
  (COND
   ((OR (< |i| (SPADCALL |a| (QREFELT $ 9)))
        (< (SPADCALL |a| (QREFELT $ 10)) |i|))
    'NIL)
   ('T 'T))) 

(DEFUN |LNAGG-;concat;ASA;3| (|a| |x| $)
  (SPADCALL |a| (SPADCALL 1 |x| (QREFELT $ 16)) (QREFELT $ 17))) 

(DEFUN |LNAGG-;concat;S2A;4| (|x| |y| $)
  (SPADCALL (SPADCALL 1 |x| (QREFELT $ 16)) |y| (QREFELT $ 17))) 

(DEFUN |LNAGG-;insert;SAIA;5| (|x| |a| |i| $)
  (SPADCALL (SPADCALL 1 |x| (QREFELT $ 16)) |a| |i| (QREFELT $ 20))) 

(DEFUN |LNAGG-;maxIndex;AI;6| (|l| $)
  (+ (- (SPADCALL |l| (QREFELT $ 22)) 1) (SPADCALL |l| (QREFELT $ 9)))) 

(DEFUN |LinearAggregate&| (|#1| |#2|)
  (PROG (|pv$| $ |dv$| DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|LinearAggregate&|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT |dv$| (LIST '|LinearAggregate&| DV$1 DV$2) . #1#)
      (LETT $ (GETREFV 25) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (|HasCategory| |#1|
                                                         '(|shallowlyMutable|))))
                      . #1#))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (COND
       ((|HasCategory| |#1| '(|finiteAggregate|))
        (QSETREFV $ 23 (CONS (|dispatchFunction| |LNAGG-;maxIndex;AI;6|) $))))
      $)))) 

(MAKEPROP '|LinearAggregate&| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|) (|Integer|)
              (0 . |minIndex|) (5 . |maxIndex|) (|List| 8)
              |LNAGG-;indices;AL;1| (|Boolean|) |LNAGG-;index?;IAB;2|
              (|NonNegativeInteger|) (10 . |new|) (16 . |concat|)
              |LNAGG-;concat;ASA;3| |LNAGG-;concat;S2A;4| (22 . |insert|)
              |LNAGG-;insert;SAIA;5| (29 . |#|) (34 . |maxIndex|) (|List| $))
           '#(|maxIndex| 39 |insert| 44 |indices| 51 |index?| 56 |concat| 62)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 23
                                                 '(1 6 8 0 9 1 6 8 0 10 2 6 0
                                                   15 7 16 2 6 0 0 0 17 3 6 0 0
                                                   0 8 20 1 6 15 0 22 1 0 8 0
                                                   23 1 0 8 0 23 3 0 0 7 0 8 21
                                                   1 0 11 0 12 2 0 13 8 0 14 2
                                                   0 0 0 7 18 2 0 0 7 0 19)))))
           '|lookupComplete|)) 
