
(/VERSIONCHECK 2) 

(DEFUN |ORDSET-;max;3S;1| (|x| |y| $)
  (COND ((SPADCALL |y| |x| (QREFELT $ 8)) |x|) ('T |y|))) 

(DEFUN |ORDSET-;min;3S;2| (|x| |y| $)
  (COND ((SPADCALL |y| |x| (QREFELT $ 8)) |y|) ('T |x|))) 

(DEFUN |ORDSET-;>;2SB;3| (|x| |y| $) (SPADCALL |y| |x| (QREFELT $ 8))) 

(DEFUN |ORDSET-;>=;2SB;4| (|x| |y| $)
  (COND ((SPADCALL |x| |y| (QREFELT $ 8)) 'NIL) ('T 'T))) 

(DEFUN |ORDSET-;<=;2SB;5| (|x| |y| $)
  (COND ((SPADCALL |y| |x| (QREFELT $ 8)) 'NIL) ('T 'T))) 

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

(MAKEPROP '|OrderedSet&| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Boolean|) (0 . <)
             |ORDSET-;max;3S;1| |ORDSET-;min;3S;2| |ORDSET-;>;2SB;3|
             |ORDSET-;>=;2SB;4| |ORDSET-;<=;2SB;5|)
          '#(|min| 6 |max| 12 >= 18 > 24 <= 30) 'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 13
                                '(2 6 7 0 0 8 2 0 0 0 0 10 2 0 0 0 0 9
                                  2 0 7 0 0 12 2 0 7 0 0 11 2 0 7 0 0
                                  13)))))
          '|lookupComplete|)) 
