
(/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 (#1=#:G664 #2=#:G663 #3=#:G665 #4=#:G667 |a|)
    (RETURN
     (SEQ
      (|SYMFUNC;signFix|
       (PROGN
        (LETT #1# NIL . #5=(|SYMFUNC;symFunc;LV;2|))
        (SEQ (LETT |a| NIL . #5#) (LETT #4# |l| . #5#) G190
             (COND
              ((OR (ATOM #4#) (PROGN (LETT |a| (CAR #4#) . #5#) NIL))
               (GO G191)))
             (SEQ
              (EXIT
               (PROGN
                (LETT #3#
                      (SPADCALL
                       (SPADCALL (|spadConstant| $ 7) 1 (QREFELT $ 10))
                       (SPADCALL |a| (QREFELT $ 11)) (QREFELT $ 12))
                      . #5#)
                (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 18)) . #5#))
                      ('T (PROGN (LETT #2# #3# . #5#) (LETT #1# 'T . #5#)))))))
             (LETT #4# (CDR #4#) . #5#) (GO G190) G191 (EXIT NIL))
        (COND (#1# #2#) ('T (|spadConstant| $ 17))))
       (+ 1 (LENGTH |l|)) $))))) 

(DEFUN |SYMFUNC;signFix| (|p| |n| $)
  (PROG (#1=#:G673 #2=#:G669 |i| |m| |v|)
    (RETURN
     (SEQ
      (LETT |m|
            (+
             (SPADCALL
              (LETT |v| (SPADCALL |p| |n| (QREFELT $ 21))
                    . #3=(|SYMFUNC;signFix|))
              (QREFELT $ 23))
             1)
            . #3#)
      (SEQ (LETT |i| 0 . #3#)
           (LETT #1#
                 (PROG1 (LETT #2# (- (QUOTIENT2 (QVSIZE |v|) 2) 1) . #3#)
                   (|check-subtype| (>= #2# 0) '(|NonNegativeInteger|) #2#))
                 . #3#)
           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|) . #3#) (GO G190) G191 (EXIT NIL))
      (EXIT (SPADCALL |v| (QREFELT $ 28))))))) 

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

(DEFUN |SymmetricFunctions;| (|#1|)
  (PROG (|pv$| $ |dv$| DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|SymmetricFunctions|))
      (LETT |dv$| (LIST '|SymmetricFunctions| DV$1) . #1#)
      (LETT $ (GETREFV 29) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|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|)) 
