
(PUT '|ANY;obj;$N;1| '|SPADreplace| 'QCDR) 

(SDEFUN |ANY;obj;$N;1| ((|x| $) ($ |None|)) (QCDR |x|)) 

(PUT '|ANY;dom;$Se;2| '|SPADreplace| 'QCAR) 

(SDEFUN |ANY;dom;$Se;2| ((|x| $) ($ |SExpression|)) (QCAR |x|)) 

(SDEFUN |ANY;domainOf;$Of;3| ((|x| $) ($ |OutputForm|))
        (|typeToOutputForm| (QCAR |x|))) 

(SDEFUN |ANY;=;2$B;4| ((|x| $) (|y| $) ($ |Boolean|))
        (SPROG ((|Dx| (|Type|)) (|dy| #1=(|SExpression|)) (|dx| #1#))
               (SEQ (LETT |dx| (SPADCALL |x| (QREFELT $ 14)))
                    (LETT |dy| (SPADCALL |y| (QREFELT $ 14)))
                    (EXIT
                     (COND ((SPADCALL |dx| |dy| (QREFELT $ 17)) NIL)
                           (#2='T
                            (SEQ (LETT |Dx| (|evalType| |dx|))
                                 (EXIT
                                  (COND
                                   ((|HasCategory| |Dx| '(|BasicType|))
                                    (SPADCALL (SPADCALL |x| (QREFELT $ 12))
                                              (SPADCALL |y| (QREFELT $ 12))
                                              (|compiledLookupCheck| '=
                                                                     (LIST
                                                                      (LIST
                                                                       '|Boolean|)
                                                                      '$ '$)
                                                                     |Dx|)))
                                   (#2#
                                    (EQ (SPADCALL |x| (QREFELT $ 12))
                                        (SPADCALL |y| (QREFELT $ 12))))))))))))) 

(SDEFUN |ANY;objectOf;$Of;5| ((|x| $) ($ |OutputForm|))
        (|spad2BootCoerce| (QCDR |x|) (QCAR |x|)
                           (SPADCALL '|OutputForm| (QREFELT $ 21)))) 

(SDEFUN |ANY;showTypeInOutput;BS;6| ((|b| |Boolean|) ($ |String|))
        (SEQ (SETELT $ 10 (SPADCALL |b| (QREFELT $ 9)))
             (EXIT
              (COND
               (|b|
                "Type of object will be displayed in output of a member of Any")
               ('T
                "Type of object will not be displayed in output of a member of Any"))))) 

(SDEFUN |ANY;coerce;$Of;7| ((|x| $) ($ |OutputForm|))
        (SPROG
         ((|dom1| (|List| (|OutputForm|))) (|p| (|SExpression|))
          (|obj1| (|OutputForm|)))
         (SEQ (LETT |obj1| (SPADCALL |x| (QREFELT $ 22)))
              (COND
               ((NULL (SPADCALL (QREFELT $ 10) (QREFELT $ 25))) (EXIT |obj1|)))
              (LETT |dom1|
                    (SEQ (LETT |p| (|prefix2String| (|devaluate| (QCAR |x|))))
                         (EXIT
                          (COND
                           ((SPADCALL |p| (QREFELT $ 26))
                            (SPADCALL |p| (QREFELT $ 28)))
                           ('T |p|)))))
              (EXIT
               (SPADCALL
                (CONS |obj1| (CONS (SPADCALL ":" (QREFELT $ 29)) |dom1|))
                (QREFELT $ 31)))))) 

(SDEFUN |ANY;any;SeN$;8| ((|domain| |SExpression|) (|object| |None|) ($ $))
        (SEQ
         (COND ((|isValidType| |domain|) (CONS |domain| |object|))
               (#1='T
                (SEQ (LETT |domain| (|devaluate| |domain|))
                     (EXIT
                      (COND ((|isValidType| |domain|) (CONS |domain| |object|))
                            (#1#
                             (|error|
                              "function any must have a domain as first argument"))))))))) 

(DECLAIM (NOTINLINE |Any;|)) 

(DEFUN |Any| ()
  (SPROG NIL
         (PROG (#1=#:G728)
           (RETURN
            (COND
             ((LETT #1# (HGET |$ConstructorCache| '|Any|))
              (|CDRwithIncrement| (CDAR #1#)))
             ('T
              (UNWIND-PROTECT
                  (PROG1
                      (CDDAR
                       (HPUT |$ConstructorCache| '|Any|
                             (LIST (CONS NIL (CONS 1 (|Any;|))))))
                    (LETT #1# T))
                (COND ((NOT #1#) (HREM |$ConstructorCache| '|Any|)))))))))) 

(DEFUN |Any;| ()
  (SPROG ((|dv$| NIL) ($ NIL) (|pv$| NIL))
         (PROGN
          (LETT |dv$| '(|Any|))
          (LETT $ (GETREFV 36))
          (QSETREFV $ 0 |dv$|)
          (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL)))
          (|haddProp| |$ConstructorCache| '|Any| NIL (CONS 1 $))
          (|stuffDomainSlots| $)
          (SETF |pv$| (QREFELT $ 3))
          (QSETREFV $ 6
                    (|Record| (|:| |dm| (|SExpression|)) (|:| |ob| (|None|))))
          (QSETREFV $ 10 (SPADCALL NIL (QREFELT $ 9)))
          $))) 

(MAKEPROP '|Any| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL '|Rep| (|Boolean|) (|Reference| 7)
              (0 . |ref|) '|printTypeInOutputP| (|None|) |ANY;obj;$N;1|
              (|SExpression|) |ANY;dom;$Se;2| (|OutputForm|)
              |ANY;domainOf;$Of;3| (5 . ~=) |ANY;=;2$B;4| (|Symbol|)
              (|List| 19) (11 . |list|) |ANY;objectOf;$Of;5| (|String|)
              |ANY;showTypeInOutput;BS;6| (16 . |deref|) (21 . |atom?|)
              (|List| 15) (26 . |list|) (31 . |message|) (|List| $)
              (36 . |hconcat|) |ANY;coerce;$Of;7| |ANY;any;SeN$;8|
              (|SingleInteger|) (|HashState|))
           '#(~= 41 |showTypeInOutput| 47 |objectOf| 52 |obj| 57 |latex| 62
              |hashUpdate!| 67 |hash| 73 |domainOf| 78 |dom| 83 |coerce| 88
              |any| 93 = 99)
           'NIL
           (CONS (|makeByteWordVec2| 1 '(0 0 0))
                 (CONS '#(|SetCategory&| |BasicType&| NIL)
                       (CONS
                        '#((|SetCategory|) (|BasicType|) (|CoercibleTo| 15))
                        (|makeByteWordVec2| 35
                                            '(1 8 0 7 9 2 13 7 0 0 17 1 20 0 19
                                              21 1 8 7 0 25 1 13 7 0 26 1 27 0
                                              15 28 1 15 0 23 29 1 15 0 30 31 2
                                              0 7 0 0 1 1 0 23 7 24 1 0 15 0 22
                                              1 0 11 0 12 1 0 23 0 1 2 0 35 35
                                              0 1 1 0 34 0 1 1 0 15 0 16 1 0 13
                                              0 14 1 0 15 0 32 2 0 0 13 11 33 2
                                              0 7 0 0 18)))))
           '|lookupComplete|)) 

(MAKEPROP '|Any| 'NILADIC T) 
