
(/VERSIONCHECK 2) 

(PUT '|MKCHSET;position;$Nni;1| '|SPADreplace| 'QCDR) 

(DEFUN |MKCHSET;position;$Nni;1| (|x| $) (QCDR |x|)) 

(DEFUN |MKCHSET;setPosition;$NniV;2| (|x| |n| $)
  (SEQ (PROGN (RPLACD |x| |n|) (QCDR |x|)) (EXIT (SPADCALL (QREFELT $ 13))))) 

(PUT '|MKCHSET;coerce;$S;3| '|SPADreplace| 'QCAR) 

(DEFUN |MKCHSET;coerce;$S;3| (|x| $) (QCAR |x|)) 

(DEFUN |MKCHSET;coerce;$Of;4| (|x| $)
  (SPADCALL (SPADCALL |x| (QREFELT $ 15)) (QREFELT $ 17))) 

(DEFUN |MKCHSET;coerce;S$;5| (|s| $)
  (PROG ()
    (RETURN
     (SPADCALL (CONS |s| 0) (CONS #'|MKCHSET;coerce;S$;5!0| (VECTOR $ |s|))
               (QREFELT $ 22))))) 

(DEFUN |MKCHSET;coerce;S$;5!0| (|x1| $$)
  (PROG (|s| $)
    (LETT |s| (QREFELT $$ 1) . #1=(|MKCHSET;coerce;S$;5|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN (SPADCALL |s| (SPADCALL |x1| (QREFELT $ 15)) (QREFELT $ 20)))))) 

(DEFUN |MKCHSET;=;2$B;6| (|x| |y| $)
  (PROG ()
    (RETURN
     (SEQ
      (COND
       ((EQL (SPADCALL |x| (QREFELT $ 12)) 0)
        (SPADCALL |x| (CONS #'|MKCHSET;=;2$B;6!0| (VECTOR $ |x|))
                  (QREFELT $ 22))))
      (COND
       ((EQL (SPADCALL |y| (QREFELT $ 12)) 0)
        (SPADCALL |y| (CONS #'|MKCHSET;=;2$B;6!1| (VECTOR $ |y|))
                  (QREFELT $ 22))))
      (EXIT
       (EQL (SPADCALL |x| (QREFELT $ 12)) (SPADCALL |y| (QREFELT $ 12)))))))) 

(DEFUN |MKCHSET;=;2$B;6!1| (|x1| $$)
  (PROG (|y| $)
    (LETT |y| (QREFELT $$ 1) . #1=(|MKCHSET;=;2$B;6|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (SPADCALL (SPADCALL |y| (QREFELT $ 15)) (SPADCALL |x1| (QREFELT $ 15))
                (QREFELT $ 20)))))) 

(DEFUN |MKCHSET;=;2$B;6!0| (|x1| $$)
  (PROG (|x| $)
    (LETT |x| (QREFELT $$ 1) . #1=(|MKCHSET;=;2$B;6|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (SPADCALL (SPADCALL |x| (QREFELT $ 15)) (SPADCALL |x1| (QREFELT $ 15))
                (QREFELT $ 20)))))) 

(DEFUN |MakeCachableSet| (#1=#:G1819)
  (PROG ()
    (RETURN
     (PROG (#2=#:G1820)
       (RETURN
        (COND
         ((LETT #2#
                (|lassocShiftWithFunction| (LIST (|devaluate| #1#))
                                           (HGET |$ConstructorCache|
                                                 '|MakeCachableSet|)
                                           '|domainEqualList|)
                . #3=(|MakeCachableSet|))
          (|CDRwithIncrement| #2#))
         ('T
          (UNWIND-PROTECT (PROG1 (|MakeCachableSet;| #1#) (LETT #2# T . #3#))
            (COND
             ((NOT #2#) (HREM |$ConstructorCache| '|MakeCachableSet|))))))))))) 

(DEFUN |MakeCachableSet;| (|#1|)
  (PROG (|pv$| $ |dv$| DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|MakeCachableSet|))
      (LETT |dv$| (LIST '|MakeCachableSet| DV$1) . #1#)
      (LETT $ (GETREFV 27) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|haddProp| |$ConstructorCache| '|MakeCachableSet| (LIST DV$1)
                  (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (SETF |pv$| (QREFELT $ 3))
      (QSETREFV $ 7
                (|Record| (|:| |setpart| |#1|)
                          (|:| |pos| (|NonNegativeInteger|))))
      (SPADCALL (QREFELT $ 10))
      $)))) 

(MAKEPROP '|MakeCachableSet| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) '|Rep| (|Void|)
              (|SortedCache| $$) (0 . |clearCache|) (|NonNegativeInteger|)
              |MKCHSET;position;$Nni;1| (4 . |void|)
              |MKCHSET;setPosition;$NniV;2| |MKCHSET;coerce;$S;3|
              (|OutputForm|) (8 . |coerce|) |MKCHSET;coerce;$Of;4| (|Boolean|)
              (13 . =) (|Mapping| 19 $$) (19 . |enterInCache|)
              |MKCHSET;coerce;S$;5| |MKCHSET;=;2$B;6| (|SingleInteger|)
              (|String|))
           '#(~= 25 |setPosition| 31 |position| 37 |latex| 42 |hash| 47
              |coerce| 52 = 67)
           'NIL
           (CONS (|makeByteWordVec2| 1 '(0 0 0 0 0))
                 (CONS '#(NIL |SetCategory&| |BasicType&| NIL NIL)
                       (CONS
                        '#((|CachableSet|) (|SetCategory|) (|BasicType|)
                           (|CoercibleTo| 6) (|CoercibleTo| 16))
                        (|makeByteWordVec2| 26
                                            '(0 9 8 10 0 8 0 13 1 6 16 0 17 2 6
                                              19 0 0 20 2 9 2 2 21 22 2 0 19 0
                                              0 1 2 0 8 0 11 14 1 0 11 0 12 1 0
                                              26 0 1 1 0 25 0 1 1 0 6 0 15 1 0
                                              0 6 23 1 0 16 0 18 2 0 19 0 0
                                              24)))))
           '|lookupComplete|)) 
