
(/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| (|x1| $$) |x1|) 

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

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