
(/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| (|#1| $$)
  (PROG ($)
    (LETT $ (QREFELT $$ 0) |MKCHSET;coerce;S$;5|)
    (RETURN
      (PROGN
        (SPADCALL (QREFELT $$ 1) (SPADCALL |#1| (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 (< (SPADCALL |x| (QREFELT $ 12))
                    (SPADCALL |y| (QREFELT $ 12)))))))) 

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

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

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

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

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

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

(DEFUN |MakeCachableSet;| (|#1|)
  (PROG (DV$1 |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT DV$1 (|devaluate| |#1|) . #0=(|MakeCachableSet|))
        (LETT |dv$| (LIST '|MakeCachableSet| DV$1) . #0#)
        (LETT $ (GETREFV 28) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|haddProp| |$ConstructorCache| '|MakeCachableSet| (LIST DV$1)
            (CONS 1 $))
        (|stuffDomainSlots| $)
        (QSETREFV $ 6 |#1|)
        (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| |MKCHSET;=;2$B;7|
             (|String|) (|SingleInteger|))
          '#(~= 25 |setPosition| 31 |position| 37 |min| 42 |max| 48
             |latex| 54 |hash| 59 |coerce| 64 >= 79 > 85 = 91 <= 97 <
             103)
          'NIL
          (CONS (|makeByteWordVec2| 1 '(0 0 0 0 0 0))
                (CONS '#(NIL |OrderedSet&| |SetCategory&| |BasicType&|
                         NIL NIL)
                      (CONS '#((|CachableSet|) (|OrderedSet|)
                               (|SetCategory|) (|BasicType|)
                               (|CoercibleTo| 6) (|CoercibleTo| 16))
                            (|makeByteWordVec2| 27
                                '(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 2 0 0 0 0 1 2 0
                                  0 0 0 1 1 0 26 0 1 1 0 27 0 1 1 0 0 6
                                  23 1 0 6 0 15 1 0 16 0 18 2 0 19 0 0
                                  1 2 0 19 0 0 1 2 0 19 0 0 25 2 0 19 0
                                  0 1 2 0 19 0 0 24)))))
          '|lookupComplete|)) 
