
(/VERSIONCHECK 2) 

(DEFUN |MONADWU-;one?;SB;1| (|x| $)
  (SPADCALL |x| (|spadConstant| $ 7) (QREFELT $ 9))) 

(DEFUN |MONADWU-;**;SNniS;2| (|x| |n| $)
  (COND
    ((ZEROP |n|) (|spadConstant| $ 7))
    ('T (SPADCALL |x| |n| (QREFELT $ 13))))) 

(DEFUN |MONADWU-;rightPower;SNniS;3| (|a| |n| $)
  (PROG (|i| |res|)
    (RETURN
      (SEQ (COND
             ((ZEROP |n|) (|spadConstant| $ 7))
             ('T
              (SEQ (LETT |res| (|spadConstant| $ 7)
                         . #0=(|MONADWU-;rightPower;SNniS;3|))
                   (SEQ (LETT |i| 1 . #0#) G190
                        (COND ((QSGREATERP |i| |n|) (GO G191)))
                        (SEQ (EXIT (LETT |res|
                                    (SPADCALL |res| |a| (QREFELT $ 16)) . #0#)))
                        (LETT |i| (QSADD1 |i|) . #0#) (GO G190) G191
                        (EXIT NIL))
                   (EXIT |res|)))))))) 

(DEFUN |MONADWU-;leftPower;SNniS;4| (|a| |n| $)
  (PROG (|i| |res|)
    (RETURN
      (SEQ (COND
             ((ZEROP |n|) (|spadConstant| $ 7))
             ('T
              (SEQ (LETT |res| (|spadConstant| $ 7)
                         . #0=(|MONADWU-;leftPower;SNniS;4|))
                   (SEQ (LETT |i| 1 . #0#) G190
                        (COND ((QSGREATERP |i| |n|) (GO G191)))
                        (SEQ (EXIT (LETT |res|
                                    (SPADCALL |a| |res| (QREFELT $ 16)) . #0#)))
                        (LETT |i| (QSADD1 |i|) . #0#) (GO G190) G191
                        (EXIT NIL))
                   (EXIT |res|)))))))) 

(DEFUN |MonadWithUnit&| (|#1|)
  (PROG (DV$1 |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT DV$1 (|devaluate| |#1|) . #0=(|MonadWithUnit&|))
        (LETT |dv$| (LIST '|MonadWithUnit&| DV$1) . #0#)
        (LETT $ (GETREFV 19) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|stuffDomainSlots| $)
        (QSETREFV $ 6 |#1|)
        $)))) 

(MAKEPROP '|MonadWithUnit&| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (0 . |One|)
             (|Boolean|) (4 . =) |MONADWU-;one?;SB;1|
             (|PositiveInteger|) (|RepeatedSquaring| 6) (10 . |expt|)
             (|NonNegativeInteger|) |MONADWU-;**;SNniS;2| (16 . *)
             |MONADWU-;rightPower;SNniS;3|
             |MONADWU-;leftPower;SNniS;4|)
          '#(|rightPower| 22 |one?| 28 |leftPower| 33 ** 39) 'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 18
                                '(0 6 0 7 2 6 8 0 0 9 2 12 6 6 11 13 2
                                  6 0 0 0 16 2 0 0 0 14 17 1 0 8 0 10 2
                                  0 0 0 14 18 2 0 0 0 14 15)))))
          '|lookupComplete|)) 
