
(SDEFUN |ODERED;matF2L| ((|m| (|Matrix| F)) (% (|Matrix| L)))
        (SPADCALL (ELT % 13) |m| (QREFELT % 18))) 

(SDEFUN |ODERED;get_sys| ((|l| (LO)) (% (|Matrix| L)))
        (SPROG
         ((|mdi| (|Matrix| L)) (|sys| #1=(|Matrix| L)) (#2=#:G12 NIL) (|i| NIL)
          (#3=#:G10 NIL) (#4=#:G11 NIL) (|j| NIL) (|md| #1#))
         (SEQ
          (LETT |md|
                (|ODERED;matF2L|
                 (SPADCALL
                  (SPADCALL (SPADCALL (QREFELT % 20))
                            (CONS #'|ODERED;get_sys!0|
                                  (VECTOR % (QREFELT % 12)))
                            (QREFELT % 23))
                  (QREFELT % 24))
                 %))
          (SEQ (LETT |j| (PROGN |md| 1))
               (LETT #4# (SPADCALL |md| (QREFELT % 27)))
               (LETT |i| (PROGN |md| 1))
               (LETT #3# (SPADCALL |md| (QREFELT % 26))) G190
               (COND ((OR (> |i| #3#) (> |j| #4#)) (GO G191)))
               (SEQ
                (EXIT
                 (SPADCALL |md| |i| |j|
                           (SPADCALL (QREFELT % 12)
                                     (SPADCALL |md| |i| |j| (QREFELT % 28))
                                     (QREFELT % 29))
                           (QREFELT % 30))))
               (LETT |i| (PROG1 (+ |i| 1) (LETT |j| (+ |j| 1)))) (GO G190) G191
               (EXIT NIL))
          (LETT |mdi| (SPADCALL |md| (QREFELT % 31)))
          (LETT |sys|
                (|ODERED;matF2L|
                 (SPADCALL (SPADCALL |l| 0 (QREFELT % 35)) (QREFELT % 36)) %))
          (SEQ (LETT |i| 1) (LETT #2# (SPADCALL |l| (QREFELT % 37))) G190
               (COND ((|greater_SI| |i| #2#) (GO G191)))
               (SEQ
                (LETT |sys|
                      (SPADCALL |sys|
                                (SPADCALL
                                 (|ODERED;matF2L|
                                  (SPADCALL (SPADCALL |l| |i| (QREFELT % 35))
                                            (QREFELT % 36))
                                  %)
                                 |mdi| (QREFELT % 38))
                                (QREFELT % 39)))
                (EXIT (LETT |mdi| (SPADCALL |md| |mdi| (QREFELT % 38)))))
               (LETT |i| (|inc_SI| |i|)) (GO G190) G191 (EXIT NIL))
          (EXIT |sys|)))) 

(SDEFUN |ODERED;get_sys!0| ((|f1| NIL) ($$ NIL))
        (PROG (|diff| %)
          (LETT |diff| (QREFELT $$ 1))
          (LETT % (QREFELT $$ 0))
          (RETURN (PROGN (SPADCALL |diff| |f1| (QREFELT % 21)))))) 

(SDEFUN |ODERED;reduceLODE;LOAR;3|
        ((|l| (LO)) (|g| (A))
         (% (|Record| (|:| |mat| (|Matrix| L)) (|:| |vec| (|Vector| F)))))
        (CONS (|ODERED;get_sys| |l| %) (SPADCALL |g| (QREFELT % 41)))) 

(SDEFUN |ODERED;reduceLODE;LOLR;4|
        ((|l| (LO)) (|lg| (|List| A))
         (%
          (|Record| (|:| |mat| (|Matrix| L))
                    (|:| |vecs| (|List| (|Vector| F))))))
        (SPROG ((#1=#:G22 NIL) (|g| NIL) (#2=#:G21 NIL))
               (SEQ
                (CONS (|ODERED;get_sys| |l| %)
                      (PROGN
                       (LETT #2# NIL)
                       (SEQ (LETT |g| NIL) (LETT #1# |lg|) G190
                            (COND
                             ((OR (ATOM #1#) (PROGN (LETT |g| (CAR #1#)) NIL))
                              (GO G191)))
                            (SEQ
                             (EXIT
                              (LETT #2#
                                    (CONS (SPADCALL |g| (QREFELT % 41)) #2#))))
                            (LETT #1# (CDR #1#)) (GO G190) G191
                            (EXIT (NREVERSE #2#)))))))) 

(DECLAIM (NOTINLINE |ReduceLODE;|)) 

(DEFUN |ReduceLODE;| (|#1| |#2| |#3| |#4| |#5|)
  (SPROG
   ((|pv$| NIL) (% NIL) (|dv$| NIL) (DV$5 NIL) (DV$4 NIL) (DV$3 NIL) (DV$2 NIL)
    (DV$1 NIL))
   (PROGN
    (LETT DV$1 (|devaluate| |#1|))
    (LETT DV$2 (|devaluate| |#2|))
    (LETT DV$3 (|devaluate| |#3|))
    (LETT DV$4 (|devaluate| |#4|))
    (LETT DV$5 (|devaluate| |#5|))
    (LETT |dv$| (LIST '|ReduceLODE| DV$1 DV$2 DV$3 DV$4 DV$5))
    (LETT % (GETREFV 47))
    (QSETREFV % 0 |dv$|)
    (QSETREFV % 3 (LETT |pv$| (|buildPredVector| 0 0 NIL)))
    (|haddProp| |$ConstructorCache| '|ReduceLODE|
                (LIST DV$1 DV$2 DV$3 DV$4 DV$5) (CONS 1 %))
    (|stuffDomainSlots| %)
    (QSETREFV % 6 |#1|)
    (QSETREFV % 7 |#2|)
    (QSETREFV % 8 |#3|)
    (QSETREFV % 9 |#4|)
    (QSETREFV % 10 |#5|)
    (SETF |pv$| (QREFELT % 3))
    (QSETREFV % 12 (SPADCALL (QREFELT % 11)))
    %))) 

(DEFUN |ReduceLODE| (&REST #1=#:G23)
  (SPROG NIL
         (PROG (#2=#:G24)
           (RETURN
            (COND
             ((LETT #2#
                    (|lassocShiftWithFunction| (|devaluateList| #1#)
                                               (HGET |$ConstructorCache|
                                                     '|ReduceLODE|)
                                               '|domainEqualList|))
              (|CDRwithIncrement| #2#))
             ('T
              (UNWIND-PROTECT
                  (PROG1 (APPLY (|function| |ReduceLODE;|) #1#) (LETT #2# T))
                (COND
                 ((NOT #2#) (HREM |$ConstructorCache| '|ReduceLODE|)))))))))) 

(MAKEPROP '|ReduceLODE| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
              (|local| |#3|) (|local| |#4|) (|local| |#5|) (0 . D) '|diff|
              (4 . |coerce|) (|Matrix| 7) (|Mapping| 7 6) (|Matrix| 6)
              (|MatrixCategoryFunctions2| 6 40 40 16 7 (|Vector| 7)
                                          (|Vector| 7) 14)
              (9 . |map|) (|Vector| %) (15 . |basis|) (19 . |elt|)
              (|Mapping| 6 6) (25 . |derivationCoordinates|) (31 . |transpose|)
              (|Integer|) (36 . |maxRowIndex|) (41 . |maxColIndex|)
              (46 . |elt|) (53 . +) (59 . |setelt!|) (67 . |copy|)
              (72 . |Zero|) (76 . |Zero|) (|NonNegativeInteger|)
              (80 . |coefficient|) (86 . |regularRepresentation|)
              (91 . |degree|) (96 . *) (102 . +) (|Vector| 6)
              (108 . |coordinates|) (|Record| (|:| |mat| 14) (|:| |vec| 40))
              |ODERED;reduceLODE;LOAR;3|
              (|Record| (|:| |mat| 14) (|:| |vecs| (|List| 40))) (|List| 9)
              |ODERED;reduceLODE;LOLR;4|)
           '#(|reduceLODE| 113) 'NIL
           (CONS (|makeByteWordVec2| 1 '(0))
                 (CONS '#(NIL)
                       (CONS
                        '#((|Join|
                            (|mkCategory|
                             (LIST
                              '((|reduceLODE|
                                 ((|Record| (|:| |mat| (|Matrix| |#2|))
                                            (|:| |vec| (|Vector| |#1|)))
                                  |#5| |#4|))
                                T)
                              '((|reduceLODE|
                                 ((|Record| (|:| |mat| (|Matrix| |#2|))
                                            (|:| |vecs|
                                                 (|List| (|Vector| |#1|))))
                                  |#5| (|List| |#4|)))
                                T))
                             (LIST) NIL NIL)))
                        (|makeByteWordVec2| 46
                                            '(0 7 0 11 1 7 0 6 13 2 17 14 15 16
                                              18 0 9 19 20 2 7 6 0 6 21 2 9 16
                                              19 22 23 1 16 0 0 24 1 14 25 0 26
                                              1 14 25 0 27 3 14 7 0 25 25 28 2
                                              7 0 0 0 29 4 14 7 0 25 25 7 30 1
                                              14 0 0 31 0 6 0 32 0 7 0 33 2 10
                                              9 0 34 35 1 9 16 0 36 1 10 34 0
                                              37 2 14 0 0 0 38 2 14 0 0 0 39 1
                                              9 40 0 41 2 0 42 10 9 43 2 0 44
                                              10 45 46)))))
           '|lookupComplete|)) 
