
(/VERSIONCHECK 2) 

(DEFPARAMETER |SegmentCategory;CAT| 'NIL) 

(DEFPARAMETER |SegmentCategory;AL| 'NIL) 

(DEFUN |SegmentCategory| (#0=#:G1816)
  (LET (#1=#:G1817)
    (COND
      ((SETQ #1# (|assoc| #2=(|devaluate| #0#) |SegmentCategory;AL|))
       (CDR #1#))
      (T (SETQ |SegmentCategory;AL|
               (|cons5| (CONS #2# (SETQ #1# (|SegmentCategory;| #0#)))
                        |SegmentCategory;AL|))
         #1#)))) 

(DEFUN |SegmentCategory;| (|t#1|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|SegmentCategory;CAT|)
                         ('T
                          (LETT |SegmentCategory;CAT|
                                (|Join| (|Type|)
                                        (|mkCategory| '|domain|
                                         '(((SEGMENT ($ |t#1| |t#1|))
                                            T)
                                           ((BY ($ $ (|Integer|))) T)
                                           ((|lo| (|t#1| $)) T)
                                           ((|hi| (|t#1| $)) T)
                                           ((|low| (|t#1| $)) T)
                                           ((|high| (|t#1| $)) T)
                                           ((|incr| ((|Integer|) $)) T)
                                           ((|segment| ($ |t#1| |t#1|))
                                            T)
                                           ((|convert| ($ |t#1|)) T))
                                         NIL '((|Integer|)) NIL))
                                . #1=(|SegmentCategory|))))) . #1#)
        (SETELT #0# 0 (LIST '|SegmentCategory| (|devaluate| |t#1|))))))) 
