
(/VERSIONCHECK 2) 

(DEFUN |POLY2UP;univariate;PVUp;1| (|p| |y| $)
  (PROG (|q|)
    (RETURN
      (SEQ (LETT |q| (SPADCALL |p| (QREFELT $ 6) (QREFELT $ 11))
                 |POLY2UP;univariate;PVUp;1|)
           (EXIT (SPADCALL (LIST #'|POLY2UP;univariate;PVUp;1!0|) |q|
                     (QREFELT $ 16))))))) 

(DEFUN |POLY2UP;univariate;PVUp;1!0| (|#1| $$) |#1|) 

(DEFUN |PolynomialToUnivariatePolynomial| (&REST #0=#:G1818)
  (PROG ()
    (RETURN
      (PROG (#1=#:G1819)
        (RETURN
          (COND
            ((LETT #1#
                   (|lassocShiftWithFunction| (|devaluateList| #0#)
                       (HGET |$ConstructorCache|
                             '|PolynomialToUnivariatePolynomial|)
                       '|domainEqualList|)
                   . #2=(|PolynomialToUnivariatePolynomial|))
             (|CDRwithIncrement| #1#))
            ('T
             (UNWIND-PROTECT
               (PROG1 (APPLY (|function|
                                 |PolynomialToUnivariatePolynomial;|)
                             #0#)
                 (LETT #1# T . #2#))
               (COND
                 ((NOT #1#)
                  (HREM |$ConstructorCache|
                        '|PolynomialToUnivariatePolynomial|))))))))))) 

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

(MAKEPROP '|PolynomialToUnivariatePolynomial| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
             (|SparseUnivariatePolynomial| $) (|Symbol|)
             (|Polynomial| 7) (0 . |univariate|)
             (|UnivariatePolynomial| 6 10) (|Mapping| 10 10)
             (|SparseUnivariatePolynomial| 10)
             (|UnivariatePolynomialCategoryFunctions2| 10 14 10 12)
             (6 . |map|) (|Variable| 6) |POLY2UP;univariate;PVUp;1|)
          '#(|univariate| 12) 'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 18
                                '(2 10 8 0 9 11 2 15 12 13 14 16 2 0 12
                                  10 17 18)))))
          '|lookupComplete|)) 
