
(/VERSIONCHECK 2) 

(DEFUN |TYPED;var;S$;1| (|n| $) (CONS |n| (SPADCALL (QREFELT $ 8)))) 

(PUT '|TYPED;var;SIl$;2| '|SPADreplace| 'CONS) 

(DEFUN |TYPED;var;SIl$;2| (|n| |t| $) (CONS |n| |t|)) 

(PUT '|TYPED;getName;$S;3| '|SPADreplace| 'QCAR) 

(DEFUN |TYPED;getName;$S;3| (|v| $) (QCAR |v|)) 

(PUT '|TYPED;getType;$Il;4| '|SPADreplace| 'QCDR) 

(DEFUN |TYPED;getType;$Il;4| (|v| $) (QCDR |v|)) 

(DEFUN |TYPED;toString;$S;5| (|v| $)
  (PROG (|s|)
    (RETURN
     (SEQ
      (LETT |s|
            (SPADCALL
             (LIST (QCAR |v|) ":" (SPADCALL (QCDR |v|) (QREFELT $ 14)))
             (QREFELT $ 16))
            |TYPED;toString;$S;5|)
      (EXIT |s|))))) 

(DEFUN |TYPED;parseVarTerm;SNniR;6| (|t1| |pin| $)
  (PROG (#1=#:G1824 |pt| |r| |ch| |vnm|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |vnm| "" . #2=(|TYPED;parseVarTerm;SNniR;6|))
            (LETT |pt| |pin| . #2#)
            (LETT |ch| (SPADCALL |t1| |pt| (QREFELT $ 20)) . #2#)
            (SEQ G190 (COND ((NULL (SPADCALL |ch| (QREFELT $ 22))) (GO G191)))
                 (SEQ (LETT |vnm| (SPADCALL |vnm| |ch| (QREFELT $ 23)) . #2#)
                      (LETT |pt| (+ |pt| 1) . #2#)
                      (COND
                       ((SPADCALL |pt| (SPADCALL |t1| (QREFELT $ 24))
                                  (QREFELT $ 25))
                        (PROGN
                         (LETT #1# (CONS (SPADCALL |vnm| (QREFELT $ 10)) |pt|)
                               . #2#)
                         (GO #1#))))
                      (EXIT
                       (LETT |ch| (SPADCALL |t1| |pt| (QREFELT $ 20)) . #2#)))
                 NIL (GO G190) G191 (EXIT NIL))
            (COND
             ((SPADCALL |ch| (SPADCALL ":" (QREFELT $ 26)) (QREFELT $ 27))
              (SEQ (LETT |pt| (+ |pt| 1) . #2#)
                   (COND
                    ((SPADCALL |pt| (SPADCALL |t1| (QREFELT $ 24))
                               (QREFELT $ 25))
                     (PROGN
                      (LETT #1# (CONS (SPADCALL |vnm| (QREFELT $ 10)) |pt|)
                            . #2#)
                      (GO #1#))))
                   (LETT |r| (SPADCALL |t1| |pt| (QREFELT $ 30)) . #2#)
                   (LETT |pt| (QCDR |r|) . #2#)
                   (EXIT
                    (PROGN
                     (LETT #1#
                           (CONS (SPADCALL |vnm| (QCAR |r|) (QREFELT $ 11))
                                 |pt|)
                           . #2#)
                     (GO #1#))))))
            (EXIT (CONS (SPADCALL |vnm| (QREFELT $ 10)) |pt|))))
      #1# (EXIT #1#))))) 

(DEFUN |TYPED;parseVar;S$;7| (|t1| $)
  (PROG (|r|)
    (RETURN
     (SEQ (LETT |r| (SPADCALL |t1| 1 (QREFELT $ 31)) |TYPED;parseVar;S$;7|)
          (EXIT (QCAR |r|)))))) 

(DEFUN |TYPED;=;2$B;8| (|x| |y| $)
  (COND
   ((EQUAL (QCAR |x|) (QCAR |y|))
    (SPADCALL (QCDR |x|) (QCDR |y|) (QREFELT $ 33)))
   ('T 'NIL))) 

(DEFUN |TYPED;coerce;$Of;9| (|n| $)
  (SPADCALL (SPADCALL |n| (QREFELT $ 17)) (QREFELT $ 36))) 

(DEFUN |Typed| #1=()
  (PROG #1#
    (RETURN
     (PROG (#2=#:G1833)
       (RETURN
        (COND
         ((LETT #2# (HGET |$ConstructorCache| '|Typed|) . #3=(|Typed|))
          (|CDRwithIncrement| (CDAR #2#)))
         ('T
          (UNWIND-PROTECT
              (PROG1
                  (CDDAR
                   (HPUT |$ConstructorCache| '|Typed|
                         (LIST (CONS NIL (CONS 1 (|Typed;|))))))
                (LETT #2# T . #3#))
            (COND ((NOT #2#) (HREM |$ConstructorCache| '|Typed|))))))))))) 

(DEFUN |Typed;| ()
  (PROG (|dv$| $ |pv$|)
    (RETURN
     (PROGN
      (LETT |dv$| '(|Typed|) . #1=(|Typed|))
      (LETT $ (GETREFV 38) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|haddProp| |$ConstructorCache| '|Typed| NIL (CONS 1 $))
      (|stuffDomainSlots| $)
      (SETF |pv$| (QREFELT $ 3))
      (QSETREFV $ 6 (|Record| (|:| |nme| (|String|)) (|:| |typ| (|ILogic|))))
      $)))) 

(MAKEPROP '|Typed| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL '|Rep| (|ILogic|) (0 . |logicT|)
              (|String|) |TYPED;var;S$;1| |TYPED;var;SIl$;2|
              |TYPED;getName;$S;3| |TYPED;getType;$Il;4| (4 . |toString|)
              (|List| $) (9 . |concat|) |TYPED;toString;$S;5| (|Character|)
              (|Integer|) (14 . |qelt|) (|Boolean|) (20 . |alphanumeric?|)
              (25 . |concat|) (31 . |maxIndex|) (36 . >) (42 . |char|) (47 . =)
              (|Record| (|:| |rft| $) (|:| |pout| 29)) (|NonNegativeInteger|)
              (53 . |parseIL2|) |TYPED;parseVarTerm;SNniR;6|
              |TYPED;parseVar;S$;7| (59 . =) |TYPED;=;2$B;8| (|OutputForm|)
              (65 . |coerce|) |TYPED;coerce;$Of;9|)
           '#(|var| 70 |toString| 81 |parseVarTerm| 86 |parseVar| 92 |getType|
              97 |getName| 102 |coerce| 107 = 112)
           'NIL
           (CONS (|makeByteWordVec2| 1 '(0 0 0))
                 (CONS '#(NIL NIL NIL)
                       (CONS '#((|VarCat|) (|Type|) (|CoercibleTo| 35))
                             (|makeByteWordVec2| 37
                                                 '(0 7 0 8 1 7 9 0 14 1 9 0 15
                                                   16 2 9 18 0 19 20 1 18 21 0
                                                   22 2 9 0 0 18 23 1 9 19 0 24
                                                   2 19 21 0 0 25 1 18 0 9 26 2
                                                   18 21 0 0 27 2 7 28 9 29 30
                                                   2 7 21 0 0 33 1 9 35 0 36 1
                                                   0 0 9 10 2 0 0 9 7 11 1 0 9
                                                   0 17 2 0 28 9 29 31 1 0 0 9
                                                   32 1 0 7 0 13 1 0 9 0 12 1 0
                                                   35 0 37 2 0 21 0 0 34)))))
           '|lookupComplete|)) 

(MAKEPROP '|Typed| 'NILADIC T) 
