
(/VERSIONCHECK 2) 

(DEFUN |SYMFUNC;symFunc;RPiV;1| (|x| |n| $)
  (|SYMFUNC;signFix|
      (SPADCALL
          (SPADCALL (SPADCALL (|spadConstant| $ 7) 1 (QREFELT $ 10))
              (SPADCALL |x| (QREFELT $ 11)) (QREFELT $ 12))
          |n| (QREFELT $ 13))
      (+ 1 |n|) $)) 

(DEFUN |SYMFUNC;symFunc;LV;2| (|l| $)
  (PROG (|a| #0=#:G1821 #1=#:G1819 #2=#:G1817 #3=#:G1818)
    (RETURN
      (SEQ (|SYMFUNC;signFix|
               (PROGN
                 (LETT #3# NIL . #4=(|SYMFUNC;symFunc;LV;2|))
                 (SEQ (LETT |a| NIL . #4#) (LETT #0# |l| . #4#) G190
                      (COND
                        ((OR (ATOM #0#)
                             (PROGN (LETT |a| (CAR #0#) . #4#) NIL))
                         (GO G191)))
                      (SEQ (EXIT (PROGN
                                   (LETT #1#
                                    (SPADCALL
                                     (SPADCALL (|spadConstant| $ 7) 1
                                      (QREFELT $ 10))
                                     (SPADCALL |a| (QREFELT $ 11))
                                     (QREFELT $ 12)) . #4#)
                                   (COND
                                     (#3#
                                      (LETT #2#
                                       (SPADCALL #2# #1#
                                        (QREFELT $ 18)) . #4#))
                                     ('T
                                      (PROGN
                                        (LETT #2# #1# . #4#)
                                        (LETT #3# 'T . #4#)))))))
                      (LETT #0# (CDR #0#) . #4#) (GO G190) G191
                      (EXIT NIL))
                 (COND (#3# #2#) ('T (|spadConstant| $ 17))))
               (+ 1 (LENGTH |l|)) $))))) 

(DEFUN |SYMFUNC;signFix| (|p| |n| $)
  (PROG (|v| |m| |i| #0=#:G1823 #1=#:G1827)
    (RETURN
      (SEQ (LETT |m|
                 (+ (SPADCALL
                        (LETT |v| (SPADCALL |p| |n| (QREFELT $ 21))
                              . #2=(|SYMFUNC;signFix|))
                        (QREFELT $ 23))
                    1) . #2#)
           (SEQ (LETT |i| 0 . #2#)
                (LETT #1#
                      (PROG1 (LETT #0#
                                   (- (QUOTIENT2 (QVSIZE |v|) 2) 1) . #2#)
                        (|check-subtype| (>= #0# 0)
                            '(|NonNegativeInteger|) #0#)) . #2#)
                G190 (COND ((QSGREATERP |i| #1#) (GO G191)))
                (SEQ (EXIT (SPADCALL |v|
                               (+ (SPADCALL 2 |i| (QREFELT $ 24)) |m|)
                               (SPADCALL
                                   (SPADCALL |v|
                                    (+ (SPADCALL 2 |i| (QREFELT $ 24))
                                     |m|)
                                    (QREFELT $ 25))
                                   (QREFELT $ 26))
                               (QREFELT $ 27))))
                (LETT |i| (QSADD1 |i|) . #2#) (GO G190) G191
                (EXIT NIL))
           (EXIT (SPADCALL |v| (QREFELT $ 28))))))) 

(DEFUN |SymmetricFunctions| (#0=#:G1828)
  (PROG ()
    (RETURN
      (PROG (#1=#:G1829)
        (RETURN
          (COND
            ((LETT #1#
                   (|lassocShiftWithFunction| (LIST (|devaluate| #0#))
                       (HGET |$ConstructorCache| '|SymmetricFunctions|)
                       '|domainEqualList|)
                   . #2=(|SymmetricFunctions|))
             (|CDRwithIncrement| #1#))
            ('T
             (UNWIND-PROTECT
               (PROG1 (|SymmetricFunctions;| #0#) (LETT #1# T . #2#))
               (COND
                 ((NOT #1#)
                  (HREM |$ConstructorCache| '|SymmetricFunctions|))))))))))) 

(DEFUN |SymmetricFunctions;| (|#1|)
  (PROG (DV$1 |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT DV$1 (|devaluate| |#1|) . #0=(|SymmetricFunctions|))
        (LETT |dv$| (LIST '|SymmetricFunctions| DV$1) . #0#)
        (LETT $ (GETREFV 29) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|haddProp| |$ConstructorCache| '|SymmetricFunctions|
            (LIST DV$1) (CONS 1 $))
        (|stuffDomainSlots| $)
        (QSETREFV $ 6 |#1|)
        $)))) 

(MAKEPROP '|SymmetricFunctions| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (0 . |One|)
             (|NonNegativeInteger|) (|SparseUnivariatePolynomial| 6)
             (4 . |monomial|) (10 . |coerce|) (15 . -) (21 . **)
             (|Vector| 6) (|PositiveInteger|) |SYMFUNC;symFunc;RPiV;1|
             (27 . |One|) (31 . *) (|List| 6) |SYMFUNC;symFunc;LV;2|
             (37 . |vectorise|) (|Integer|) (43 . |minIndex|) (48 . *)
             (54 . |qelt|) (60 . -) (65 . |qsetelt!|)
             (72 . |reverse!|))
          '#(|symFunc| 77) 'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 28
                                '(0 6 0 7 2 9 0 6 8 10 1 9 0 6 11 2 9 0
                                  0 0 12 2 9 0 0 8 13 0 9 0 17 2 9 0 0
                                  0 18 2 9 14 0 8 21 1 14 22 0 23 2 8 0
                                  15 0 24 2 14 6 0 22 25 1 6 0 0 26 3
                                  14 6 0 22 6 27 1 14 0 0 28 2 0 14 6
                                  15 16 1 0 14 19 20)))))
          '|lookupComplete|)) 
