
(/VERSIONCHECK 2) 

(DEFPARAMETER |EltableAggregate;CAT| 'NIL) 

(DEFPARAMETER |EltableAggregate;AL| 'NIL) 

(DEFUN |EltableAggregate| (&REST #0=#:G1816)
  (LET (#1=#:G1817)
    (COND
      ((SETQ #1#
             (|assoc| #2=(|devaluateList| #0#) |EltableAggregate;AL|))
       (CDR #1#))
      (T (SETQ |EltableAggregate;AL|
               (|cons5| (CONS #2#
                              (SETQ #1#
                                    (APPLY #'|EltableAggregate;| #0#)))
                        |EltableAggregate;AL|))
         #1#)))) 

(DEFUN |EltableAggregate;| (|t#1| |t#2|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1| |t#2|)
                             (LIST (|devaluate| |t#1|)
                                   (|devaluate| |t#2|)))
                       (COND
                         (|EltableAggregate;CAT|)
                         ('T
                          (LETT |EltableAggregate;CAT|
                                (|Join| (|Eltable| '|t#1| '|t#2|)
                                        (|mkCategory| '|domain|
                                         '(((|elt|
                                             (|t#2| $ |t#1| |t#2|))
                                            T)
                                           ((|qelt| (|t#2| $ |t#1|)) T)
                                           ((|setelt|
                                             (|t#2| $ |t#1| |t#2|))
                                            (|has| $
                                             (|shallowlyMutable|)))
                                           ((|qsetelt!|
                                             (|t#2| $ |t#1| |t#2|))
                                            (|has| $
                                             (|shallowlyMutable|))))
                                         NIL 'NIL NIL))
                                . #1=(|EltableAggregate|))))) . #1#)
        (SETELT #0# 0
                (LIST '|EltableAggregate| (|devaluate| |t#1|)
                      (|devaluate| |t#2|))))))) 
