
(/VERSIONCHECK 2) 

(DEFUN |MSET;elt| (|t| |s| $)
  (PROG (|a|)
    (RETURN
     (SEQ (LETT |a| (SPADCALL |s| |t| (QREFELT $ 10)) |MSET;elt|)
          (EXIT (COND ((QEQCAR |a| 1) 0) ('T (QCDR |a|)))))))) 

(DEFUN |MSET;empty;$;2| ($) (CONS 0 (SPADCALL (QREFELT $ 11)))) 

(DEFUN |MSET;multiset;$;3| ($) (SPADCALL (QREFELT $ 12))) 

(DEFUN |MSET;dictionary;$;4| ($) (SPADCALL (QREFELT $ 12))) 

(DEFUN |MSET;set;$;5| ($) (SPADCALL (QREFELT $ 12))) 

(DEFUN |MSET;brace;$;6| ($) (SPADCALL (QREFELT $ 12))) 

(DEFUN |MSET;construct;L$;7| (|l| $)
  (PROG (|n| #1=#:G1829 |e| |t|)
    (RETURN
     (SEQ (LETT |t| (SPADCALL (QREFELT $ 11)) . #2=(|MSET;construct;L$;7|))
          (LETT |n| 0 . #2#)
          (SEQ (LETT |e| NIL . #2#) (LETT #1# |l| . #2#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |e| (CAR #1#) . #2#) NIL))
                 (GO G191)))
               (SEQ
                (SPADCALL |t| |e| (+ (|MSET;elt| |t| |e| $) 1) (QREFELT $ 18))
                (EXIT (LETT |n| (+ |n| 1) . #2#)))
               (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
          (EXIT (CONS |n| |t|)))))) 

(DEFUN |MSET;multiset;L$;8| (|l| $) (SPADCALL |l| (QREFELT $ 20))) 

(DEFUN |MSET;bag;L$;9| (|l| $) (SPADCALL |l| (QREFELT $ 20))) 

(DEFUN |MSET;dictionary;L$;10| (|l| $) (SPADCALL |l| (QREFELT $ 20))) 

(DEFUN |MSET;set;L$;11| (|l| $) (SPADCALL |l| (QREFELT $ 20))) 

(DEFUN |MSET;brace;L$;12| (|l| $) (SPADCALL |l| (QREFELT $ 20))) 

(DEFUN |MSET;multiset;S$;13| (|s| $) (SPADCALL (LIST |s|) (QREFELT $ 20))) 

(DEFUN |MSET;convert;$If;14| (|ms| $)
  (SPADCALL
   (LIST (SPADCALL '|multiset| (QREFELT $ 29))
         (SPADCALL (SPADCALL |ms| (QREFELT $ 30)) (QREFELT $ 31)))
   (QREFELT $ 33))) 

(DEFUN |MSET;members;$L;15| (|ms| $) (SPADCALL (QCDR |ms|) (QREFELT $ 35))) 

(DEFUN |MSET;coerce;$Of;16| (|ms| $)
  (PROG (|l| |item| |n| |ex| #1=#:G1849 |e| |colon| |t|)
    (RETURN
     (SEQ (LETT |l| NIL . #2=(|MSET;coerce;$Of;16|))
          (LETT |t| (QCDR |ms|) . #2#) (LETT |colon| ": " . #2#)
          (SEQ (LETT |e| NIL . #2#)
               (LETT #1# (SPADCALL |t| (QREFELT $ 35)) . #2#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |e| (CAR #1#) . #2#) NIL))
                 (GO G191)))
               (SEQ (LETT |ex| (SPADCALL |e| (QREFELT $ 38)) . #2#)
                    (LETT |n| (|MSET;elt| |t| |e| $) . #2#)
                    (LETT |item|
                          (COND
                           ((< 1 |n|)
                            (SPADCALL
                             (LIST (SPADCALL |n| (QREFELT $ 39)) |colon| |ex|)
                             (QREFELT $ 40)))
                           ('T |ex|))
                          . #2#)
                    (EXIT (LETT |l| (CONS |item| |l|) . #2#)))
               (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
          (EXIT (SPADCALL |l| (QREFELT $ 41))))))) 

(DEFUN |MSET;duplicates;$L;17| (|ms| $)
  (PROG (|ld| #1=#:G1851 |n| #2=#:G1857 |e| |t|)
    (RETURN
     (SEQ (LETT |ld| NIL . #3=(|MSET;duplicates;$L;17|))
          (LETT |t| (QCDR |ms|) . #3#)
          (SEQ (LETT |e| NIL . #3#)
               (LETT #2# (SPADCALL |t| (QREFELT $ 35)) . #3#) G190
               (COND
                ((OR (ATOM #2#) (PROGN (LETT |e| (CAR #2#) . #3#) NIL))
                 (GO G191)))
               (SEQ
                (EXIT
                 (COND
                  ((< 1 (LETT |n| (|MSET;elt| |t| |e| $) . #3#))
                   (LETT |ld|
                         (CONS
                          (CONS |e|
                                (PROG1 (LETT #1# |n| . #3#)
                                  (|check-subtype| (>= #1# 0)
                                                   '(|NonNegativeInteger|)
                                                   #1#)))
                          |ld|)
                         . #3#)))))
               (LETT #2# (CDR #2#) . #3#) (GO G190) G191 (EXIT NIL))
          (EXIT |ld|))))) 

(DEFUN |MSET;extract!;$S;18| (|ms| $)
  (PROG (|n| |e| |t|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |ms| (QREFELT $ 47)) (|error| "extract: Empty multiset"))
       (#1='T
        (SEQ (PROGN (RPLACA |ms| (- (QCAR |ms|) 1)) (QCAR |ms|))
             (LETT |t| (QCDR |ms|) . #2=(|MSET;extract!;$S;18|))
             (LETT |e| (QCAR (SPADCALL |t| (QREFELT $ 49))) . #2#)
             (SEQ (LETT |n| (|MSET;elt| |t| |e| $) . #2#)
                  (EXIT
                   (COND
                    ((< 1 |n|) (SPADCALL |t| |e| (- |n| 1) (QREFELT $ 18)))
                    (#1# (SPADCALL |e| |t| (QREFELT $ 50))))))
             (EXIT |e|)))))))) 

(DEFUN |MSET;inspect;$S;19| (|ms| $)
  (QCAR (SPADCALL (QCDR |ms|) (QREFELT $ 49)))) 

(DEFUN |MSET;insert!;S2$;20| (|e| |ms| $)
  (SEQ (PROGN (RPLACA |ms| (+ (QCAR |ms|) 1)) (QCAR |ms|))
       (SPADCALL (QCDR |ms|) |e| (+ (|MSET;elt| (QCDR |ms|) |e| $) 1)
                 (QREFELT $ 18))
       (EXIT |ms|))) 

(DEFUN |MSET;member?;S$B;21| (|e| |ms| $)
  (SPADCALL |e| (SPADCALL (QCDR |ms|) (QREFELT $ 35)) (QREFELT $ 54))) 

(DEFUN |MSET;empty?;$B;22| (|ms| $) (EQL (QCAR |ms|) 0)) 

(DEFUN |MSET;#;$Nni;23| (|ms| $)
  (PROG (#1=#:G1875)
    (RETURN
     (PROG1 (LETT #1# (QCAR |ms|) |MSET;#;$Nni;23|)
       (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))))) 

(DEFUN |MSET;count;S$Nni;24| (|e| |ms| $)
  (PROG (#1=#:G1877)
    (RETURN
     (PROG1 (LETT #1# (|MSET;elt| (QCDR |ms|) |e| $) |MSET;count;S$Nni;24|)
       (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))))) 

(DEFUN |MSET;remove!;S$I$;25| (|e| |ms| |max| $)
  (PROG (|n| #1=#:G1886 |t|)
    (RETURN
     (SEQ
      (COND ((ZEROP |max|) (SPADCALL |e| |ms| (QREFELT $ 59)))
            (#2='T
             (SEQ (LETT |t| (QCDR |ms|) . #3=(|MSET;remove!;S$I$;25|))
                  (COND
                   ((SPADCALL |e| (SPADCALL |t| (QREFELT $ 35)) (QREFELT $ 54))
                    (SEQ
                     (EXIT
                      (SEQ
                       (SEQ (LETT |n| (|MSET;elt| |t| |e| $) . #3#)
                            (EXIT
                             (COND
                              ((NULL (< |max| |n|))
                               (PROGN
                                (LETT #1#
                                      (SEQ (SPADCALL |e| |t| (QREFELT $ 50))
                                           (EXIT
                                            (PROGN
                                             (RPLACA |ms| (- (QCAR |ms|) |n|))
                                             (QCAR |ms|))))
                                      . #3#)
                                (GO #1#))))))
                       (EXIT
                        (COND
                         ((< 0 |max|)
                          (SEQ (SPADCALL |t| |e| (- |n| |max|) (QREFELT $ 18))
                               (EXIT
                                (PROGN
                                 (RPLACA |ms| (- (QCAR |ms|) |max|))
                                 (QCAR |ms|)))))
                         (#2#
                          (SEQ (LETT |n| (+ |n| |max|) . #3#)
                               (EXIT
                                (COND
                                 ((< 0 |n|)
                                  (SEQ
                                   (SPADCALL |t| |e| (- |max|) (QREFELT $ 18))
                                   (EXIT
                                    (PROGN
                                     (RPLACA |ms| (- (QCAR |ms|) |n|))
                                     (QCAR |ms|)))))))))))))
                     #1# (EXIT #1#))))
                  (EXIT |ms|)))))))) 

(DEFUN |MSET;remove!;M$I$;26| (|p| |ms| |max| $)
  (PROG (#1=#:G1896 |n| #2=#:G1897 #3=#:G1902 |e| |t|)
    (RETURN
     (SEQ
      (COND ((ZEROP |max|) (SPADCALL |p| |ms| (QREFELT $ 62)))
            ('T
             (SEQ (LETT |t| (QCDR |ms|) . #4=(|MSET;remove!;M$I$;26|))
                  (SEQ (LETT |e| NIL . #4#)
                       (LETT #3# (SPADCALL |t| (QREFELT $ 35)) . #4#) G190
                       (COND
                        ((OR (ATOM #3#) (PROGN (LETT |e| (CAR #3#) . #4#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (COND
                          ((SPADCALL |e| |p|)
                           (SEQ
                            (EXIT
                             (SEQ
                              (SEQ (LETT |n| (|MSET;elt| |t| |e| $) . #4#)
                                   (EXIT
                                    (COND
                                     ((NULL (< |max| |n|))
                                      (PROGN
                                       (LETT #2#
                                             (SEQ
                                              (SPADCALL |e| |t| (QREFELT $ 50))
                                              (EXIT
                                               (PROGN
                                                (RPLACA |ms|
                                                        (- (QCAR |ms|) |n|))
                                                (QCAR |ms|))))
                                             . #4#)
                                       (GO #2#))))))
                              (EXIT
                               (COND
                                ((< 0 |max|)
                                 (SEQ
                                  (SPADCALL |t| |e| (- |n| |max|)
                                            (QREFELT $ 18))
                                  (EXIT
                                   (PROGN
                                    (RPLACA |ms| (- (QCAR |ms|) |max|))
                                    (QCAR |ms|)))))
                                ('T
                                 (SEQ
                                  (EXIT
                                   (SEQ (LETT |n| (+ |n| |max|) . #4#)
                                        (EXIT
                                         (COND
                                          ((< 0 |n|)
                                           (PROGN
                                            (LETT #1#
                                                  (SEQ
                                                   (SPADCALL |t| |e| (- |max|)
                                                             (QREFELT $ 18))
                                                   (EXIT
                                                    (PROGN
                                                     (RPLACA |ms|
                                                             (- (QCAR |ms|)
                                                                |n|))
                                                     (QCAR |ms|))))
                                                  . #4#)
                                            (GO #1#)))))))
                                  #1# (EXIT #1#)))))))
                            #2# (EXIT #2#))))))
                       (LETT #3# (CDR #3#) . #4#) (GO G190) G191 (EXIT NIL))
                  (EXIT |ms|)))))))) 

(DEFUN |MSET;remove;S$I$;27| (|e| |ms| |max| $)
  (SPADCALL |e| (SPADCALL |ms| (QREFELT $ 64)) |max| (QREFELT $ 60))) 

(DEFUN |MSET;remove;M$I$;28| (|p| |ms| |max| $)
  (SPADCALL |p| (SPADCALL |ms| (QREFELT $ 64)) |max| (QREFELT $ 63))) 

(DEFUN |MSET;remove!;S2$;29| (|e| |ms| $)
  (PROG (|t|)
    (RETURN
     (SEQ (LETT |t| (QCDR |ms|) |MSET;remove!;S2$;29|)
          (COND
           ((SPADCALL |e| (SPADCALL |t| (QREFELT $ 35)) (QREFELT $ 54))
            (SEQ
             (PROGN
              (RPLACA |ms| (- (QCAR |ms|) (|MSET;elt| |t| |e| $)))
              (QCAR |ms|))
             (EXIT (SPADCALL |e| |t| (QREFELT $ 50))))))
          (EXIT |ms|))))) 

(DEFUN |MSET;remove!;M2$;30| (|p| |ms| $)
  (PROG (#1=#:G1915 |e| |t|)
    (RETURN
     (SEQ (LETT |t| (QCDR |ms|) . #2=(|MSET;remove!;M2$;30|))
          (SEQ (LETT |e| NIL . #2#)
               (LETT #1# (SPADCALL |t| (QREFELT $ 35)) . #2#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |e| (CAR #1#) . #2#) NIL))
                 (GO G191)))
               (SEQ
                (EXIT
                 (COND
                  ((SPADCALL |e| |p|)
                   (SEQ
                    (PROGN
                     (RPLACA |ms| (- (QCAR |ms|) (|MSET;elt| |t| |e| $)))
                     (QCAR |ms|))
                    (EXIT (SPADCALL |e| |t| (QREFELT $ 50))))))))
               (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
          (EXIT |ms|))))) 

(DEFUN |MSET;select!;M2$;31| (|p| |ms| $)
  (PROG ()
    (RETURN
     (SPADCALL (CONS #'|MSET;select!;M2$;31!0| (VECTOR $ |p|)) |ms|
               (QREFELT $ 62))))) 

(DEFUN |MSET;select!;M2$;31!0| (|s1| $$)
  (PROG (|p| $)
    (LETT |p| (QREFELT $$ 1) . #1=(|MSET;select!;M2$;31|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (COND ((SPADCALL |s1| |p|) (|spadConstant| $ 67))
            ('T (|spadConstant| $ 68))))))) 

(DEFUN |MSET;removeDuplicates!;2$;32| (|ms| $)
  (PROG (#1=#:G1923 |e| |l| |t|)
    (RETURN
     (SEQ (LETT |t| (QCDR |ms|) . #2=(|MSET;removeDuplicates!;2$;32|))
          (LETT |l| (SPADCALL |t| (QREFELT $ 35)) . #2#)
          (SEQ (LETT |e| NIL . #2#) (LETT #1# |l| . #2#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |e| (CAR #1#) . #2#) NIL))
                 (GO G191)))
               (SEQ (EXIT (SPADCALL |t| |e| 1 (QREFELT $ 18))))
               (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
          (PROGN (RPLACA |ms| (LENGTH |l|)) (QCAR |ms|)) (EXIT |ms|))))) 

(DEFUN |MSET;insert!;S$Nni$;33| (|e| |ms| |more| $)
  (SEQ (PROGN (RPLACA |ms| (+ (QCAR |ms|) |more|)) (QCAR |ms|))
       (SPADCALL (QCDR |ms|) |e| (+ (|MSET;elt| (QCDR |ms|) |e| $) |more|)
                 (QREFELT $ 18))
       (EXIT |ms|))) 

(DEFUN |MSET;map!;M2$;34| (|f| |ms| $)
  (PROG (#1=#:G1932 |e| |t1| |t|)
    (RETURN
     (SEQ (LETT |t| (QCDR |ms|) . #2=(|MSET;map!;M2$;34|))
          (LETT |t1| (SPADCALL (QREFELT $ 11)) . #2#)
          (SEQ (LETT |e| NIL . #2#)
               (LETT #1# (SPADCALL |t| (QREFELT $ 35)) . #2#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |e| (CAR #1#) . #2#) NIL))
                 (GO G191)))
               (SEQ
                (SPADCALL |t1| (SPADCALL |e| |f|) (|MSET;elt| |t| |e| $)
                          (QREFELT $ 18))
                (EXIT (SPADCALL |e| |t| (QREFELT $ 50))))
               (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
          (PROGN (RPLACD |ms| |t1|) (QCDR |ms|)) (EXIT |ms|))))) 

(DEFUN |MSET;map;M2$;35| (|f| |ms| $)
  (SPADCALL |f| (SPADCALL |ms| (QREFELT $ 64)) (QREFELT $ 73))) 

(DEFUN |MSET;parts;$L;36| (|m| $)
  (PROG (|l| #1=#:G1940 |i| #2=#:G1939 |e| |t|)
    (RETURN
     (SEQ (LETT |l| NIL . #3=(|MSET;parts;$L;36|)) (LETT |t| (QCDR |m|) . #3#)
          (SEQ (LETT |e| NIL . #3#)
               (LETT #2# (SPADCALL |t| (QREFELT $ 35)) . #3#) G190
               (COND
                ((OR (ATOM #2#) (PROGN (LETT |e| (CAR #2#) . #3#) NIL))
                 #4=(GO G191)))
               (SEQ
                (EXIT
                 (SEQ (LETT |i| 1 . #3#)
                      (LETT #1# (|MSET;elt| |t| |e| $) . #3#) G190
                      (COND ((QSGREATERP |i| #1#) #4#))
                      (SEQ (EXIT (LETT |l| (CONS |e| |l|) . #3#)))
                      (LETT |i| (QSADD1 |i|) . #3#) #5=(GO G190) G191
                      (EXIT NIL))))
               (LETT #2# (CDR #2#) . #3#) #5# G191 (EXIT NIL))
          (EXIT |l|))))) 

(DEFUN |MSET;union;3$;37| (|m1| |m2| $)
  (PROG (#1=#:G1946 |e| #2=#:G1945 |t2| |t1| |t|)
    (RETURN
     (SEQ (LETT |t| (SPADCALL (QREFELT $ 11)) . #3=(|MSET;union;3$;37|))
          (LETT |t1| (QCDR |m1|) . #3#) (LETT |t2| (QCDR |m2|) . #3#)
          (SEQ (LETT |e| NIL . #3#)
               (LETT #2# (SPADCALL |t1| (QREFELT $ 35)) . #3#) G190
               (COND
                ((OR (ATOM #2#) (PROGN (LETT |e| (CAR #2#) . #3#) NIL))
                 #4=(GO G191)))
               (SEQ
                (EXIT
                 (SPADCALL |t| |e| (|MSET;elt| |t1| |e| $) (QREFELT $ 18))))
               (LETT #2# (CDR #2#) . #3#) #5=(GO G190) G191 (EXIT NIL))
          (SEQ (LETT |e| NIL . #3#)
               (LETT #1# (SPADCALL |t2| (QREFELT $ 35)) . #3#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |e| (CAR #1#) . #3#) NIL)) #4#))
               (SEQ
                (EXIT
                 (SPADCALL |t| |e|
                           (+ (|MSET;elt| |t2| |e| $) (|MSET;elt| |t| |e| $))
                           (QREFELT $ 18))))
               (LETT #1# (CDR #1#) . #3#) #5# G191 (EXIT NIL))
          (EXIT (CONS (+ (QCAR |m1|) (QCAR |m2|)) |t|)))))) 

(DEFUN |MSET;intersect;3$;38| (|m1| |m2| $)
  (PROG (|n| |m| #1=#:G1952 |e| |t2| |t1| |t|)
    (RETURN
     (SEQ (LETT |t| (SPADCALL (QREFELT $ 11)) . #2=(|MSET;intersect;3$;38|))
          (LETT |t1| (QCDR |m1|) . #2#) (LETT |t2| (QCDR |m2|) . #2#)
          (LETT |n| 0 . #2#)
          (SEQ (LETT |e| NIL . #2#)
               (LETT #1# (SPADCALL |t1| (QREFELT $ 35)) . #2#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |e| (CAR #1#) . #2#) NIL))
                 (GO G191)))
               (SEQ
                (LETT |m| (MIN (|MSET;elt| |t1| |e| $) (|MSET;elt| |t2| |e| $))
                      . #2#)
                (EXIT
                 (COND
                  ((< 0 |m|)
                   (SEQ
                    (LETT |m|
                          (+ (|MSET;elt| |t1| |e| $) (|MSET;elt| |t2| |e| $))
                          . #2#)
                    (SPADCALL |t| |e| |m| (QREFELT $ 18))
                    (EXIT (LETT |n| (+ |n| |m|) . #2#)))))))
               (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
          (EXIT (CONS |n| |t|)))))) 

(DEFUN |MSET;difference;3$;39| (|m1| |m2| $)
  (PROG (|n| |k2| |k1| #1=#:G1958 |e| |t2| |t1| |t|)
    (RETURN
     (SEQ (LETT |t| (SPADCALL (QREFELT $ 11)) . #2=(|MSET;difference;3$;39|))
          (LETT |t1| (QCDR |m1|) . #2#) (LETT |t2| (QCDR |m2|) . #2#)
          (LETT |n| 0 . #2#)
          (SEQ (LETT |e| NIL . #2#)
               (LETT #1# (SPADCALL |t1| (QREFELT $ 35)) . #2#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |e| (CAR #1#) . #2#) NIL))
                 (GO G191)))
               (SEQ (LETT |k1| (|MSET;elt| |t1| |e| $) . #2#)
                    (LETT |k2| (|MSET;elt| |t2| |e| $) . #2#)
                    (EXIT
                     (COND
                      ((< 0 |k1|)
                       (COND
                        ((EQL |k2| 0)
                         (SEQ (SPADCALL |t| |e| |k1| (QREFELT $ 18))
                              (EXIT (LETT |n| (+ |n| |k1|) . #2#)))))))))
               (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
          (EXIT
           (COND ((EQL |n| 0) (SPADCALL (QREFELT $ 12)))
                 ('T (CONS |n| |t|)))))))) 

(DEFUN |MSET;symmetricDifference;3$;40| (|m1| |m2| $)
  (SPADCALL (SPADCALL |m1| |m2| (QREFELT $ 77))
            (SPADCALL |m2| |m1| (QREFELT $ 77)) (QREFELT $ 75))) 

(DEFUN |MSET;=;2$B;41| (|m1| |m2| $)
  (PROG (#1=#:G1965 #2=#:G1967 #3=#:G1969 |e| #4=#:G1963 #5=#:G1968 |t2| |t1|)
    (RETURN
     (SEQ
      (EXIT
       (COND ((NULL (EQL (QCAR |m1|) (QCAR |m2|))) 'NIL)
             ('T
              (SEQ (LETT |t1| (QCDR |m1|) . #6=(|MSET;=;2$B;41|))
                   (LETT |t2| (QCDR |m2|) . #6#)
                   (SEQ
                    (EXIT
                     (SEQ (LETT |e| NIL . #6#)
                          (LETT #5# (SPADCALL |t1| (QREFELT $ 35)) . #6#) G190
                          (COND
                           ((OR (ATOM #5#)
                                (PROGN (LETT |e| (CAR #5#) . #6#) NIL))
                            #7=(GO G191)))
                          (SEQ
                           (EXIT
                            (COND
                             ((NULL
                               (EQL (|MSET;elt| |t1| |e| $)
                                    (|MSET;elt| |t2| |e| $)))
                              (PROGN
                               (LETT #4# (PROGN (LETT #2# 'NIL . #6#) (GO #2#))
                                     . #6#)
                               (GO #4#))))))
                          (LETT #5# (CDR #5#) . #6#) #8=(GO G190) G191
                          (EXIT NIL)))
                    #4# (EXIT #4#))
                   (SEQ
                    (EXIT
                     (SEQ (LETT |e| NIL . #6#)
                          (LETT #3# (SPADCALL |t2| (QREFELT $ 35)) . #6#) G190
                          (COND
                           ((OR (ATOM #3#)
                                (PROGN (LETT |e| (CAR #3#) . #6#) NIL))
                            #7#))
                          (SEQ
                           (EXIT
                            (COND
                             ((NULL
                               (EQL (|MSET;elt| |t1| |e| $)
                                    (|MSET;elt| |t2| |e| $)))
                              (PROGN
                               (LETT #1# (PROGN (LETT #2# 'NIL . #6#) (GO #2#))
                                     . #6#)
                               (GO #1#))))))
                          (LETT #3# (CDR #3#) . #6#) #8# G191 (EXIT NIL)))
                    #1# (EXIT #1#))
                   (EXIT 'T)))))
      #2# (EXIT #2#))))) 

(DEFUN |MSET;<;2$B;42| (|m1| |m2| $)
  (PROG (#1=#:G1973 #2=#:G1975 #3=#:G1976 |e| |t2| |t1|)
    (RETURN
     (SEQ
      (EXIT
       (COND ((NULL (< (QCAR |m1|) (QCAR |m2|))) 'NIL)
             ('T
              (SEQ (LETT |t1| (QCDR |m1|) . #4=(|MSET;<;2$B;42|))
                   (LETT |t2| (QCDR |m2|) . #4#)
                   (SEQ
                    (EXIT
                     (SEQ (LETT |e| NIL . #4#)
                          (LETT #3# (SPADCALL |t1| (QREFELT $ 35)) . #4#) G190
                          (COND
                           ((OR (ATOM #3#)
                                (PROGN (LETT |e| (CAR #3#) . #4#) NIL))
                            (GO G191)))
                          (SEQ
                           (EXIT
                            (COND
                             ((< (|MSET;elt| |t2| |e| $)
                                 (|MSET;elt| |t1| |e| $))
                              (PROGN
                               (LETT #1# (PROGN (LETT #2# 'NIL . #4#) (GO #2#))
                                     . #4#)
                               (GO #1#))))))
                          (LETT #3# (CDR #3#) . #4#) (GO G190) G191
                          (EXIT NIL)))
                    #1# (EXIT #1#))
                   (EXIT (< (QCAR |m1|) (QCAR |m2|)))))))
      #2# (EXIT #2#))))) 

(DEFUN |MSET;subset?;2$B;43| (|m1| |m2| $)
  (PROG (#1=#:G1979 #2=#:G1982 #3=#:G1983 |e| |t2| |t1|)
    (RETURN
     (SEQ
      (EXIT
       (COND ((< (QCAR |m2|) (QCAR |m1|)) 'NIL)
             ('T
              (SEQ (LETT |t1| (QCDR |m1|) . #4=(|MSET;subset?;2$B;43|))
                   (LETT |t2| (QCDR |m2|) . #4#)
                   (SEQ
                    (EXIT
                     (SEQ (LETT |e| NIL . #4#)
                          (LETT #3# (SPADCALL |t1| (QREFELT $ 35)) . #4#) G190
                          (COND
                           ((OR (ATOM #3#)
                                (PROGN (LETT |e| (CAR #3#) . #4#) NIL))
                            (GO G191)))
                          (SEQ
                           (EXIT
                            (COND
                             ((< (|MSET;elt| |t2| |e| $)
                                 (|MSET;elt| |t1| |e| $))
                              (PROGN
                               (LETT #1# (PROGN (LETT #2# 'NIL . #4#) (GO #2#))
                                     . #4#)
                               (GO #1#))))))
                          (LETT #3# (CDR #3#) . #4#) (GO G190) G191
                          (EXIT NIL)))
                    #1# (EXIT #1#))
                   (EXIT 'T)))))
      #2# (EXIT #2#))))) 

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

(DEFUN |Multiset;| (|#1|)
  (PROG (#1=#:G1989 |pv$| #2=#:G1988 $ |dv$| DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #3=(|Multiset|))
      (LETT |dv$| (LIST '|Multiset| DV$1) . #3#)
      (LETT $ (GETREFV 88) . #3#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (|HasCategory| |#1|
                                                         '(|ConvertibleTo|
                                                           (|InputForm|)))
                                          (LETT #2#
                                                (|HasCategory| |#1|
                                                               '(|SetCategory|))
                                                . #3#)
                                          (AND
                                           (|HasCategory| |#1|
                                                          (LIST '|Evalable|
                                                                (|devaluate|
                                                                 |#1|)))
                                           #2#)))
                      . #3#))
      (|haddProp| |$ConstructorCache| '|Multiset| (LIST DV$1) (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (AND (|HasCategory| $ '(|shallowlyMutable|)) (|augmentPredVector| $ 8))
      (AND (LETT #1# (|HasCategory| $ '(|finiteAggregate|)) . #3#)
           (|augmentPredVector| $ 16))
      (AND #2# #1# (|augmentPredVector| $ 32))
      (QSETREFV $ 7
                (|Record| (|:| |count| (|Integer|))
                          (|:| |table| (|Table| |#1| (|Integer|)))))
      (COND
       ((|testBitVector| |pv$| 1)
        (QSETREFV $ 34 (CONS (|dispatchFunction| |MSET;convert;$If;14|) $))))
      $)))) 

(MAKEPROP '|Multiset| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) '|Rep|
              (|Union| 17 '"failed") (|Table| 6 17) (0 . |search|)
              (6 . |table|) |MSET;empty;$;2| |MSET;multiset;$;3|
              |MSET;dictionary;$;4| |MSET;set;$;5| |MSET;brace;$;6| (|Integer|)
              (10 . |setelt|) (|List| 6) |MSET;construct;L$;7|
              |MSET;multiset;L$;8| |MSET;bag;L$;9| |MSET;dictionary;L$;10|
              |MSET;set;L$;11| |MSET;brace;L$;12| |MSET;multiset;S$;13|
              (|Symbol|) (|InputForm|) (17 . |convert|) |MSET;parts;$L;36|
              (22 . |convert|) (|List| $) (27 . |convert|) (32 . |convert|)
              (37 . |keys|) |MSET;members;$L;15| (|OutputForm|) (42 . |coerce|)
              (47 . |coerce|) (52 . |hconcat|) (57 . |brace|)
              |MSET;coerce;$Of;16| (|Record| (|:| |entry| 6) (|:| |count| 56))
              (|List| 43) |MSET;duplicates;$L;17| (|Boolean|)
              |MSET;empty?;$B;22| (|Record| (|:| |key| 6) (|:| |entry| 17))
              (62 . |inspect|) (67 . |remove!|) |MSET;extract!;$S;18|
              |MSET;inspect;$S;19| |MSET;insert!;S2$;20| (73 . |member?|)
              |MSET;member?;S$B;21| (|NonNegativeInteger|) |MSET;#;$Nni;23|
              |MSET;count;S$Nni;24| |MSET;remove!;S2$;29|
              |MSET;remove!;S$I$;25| (|Mapping| 46 6) |MSET;remove!;M2$;30|
              |MSET;remove!;M$I$;26| (79 . |copy|) |MSET;remove;S$I$;27|
              |MSET;remove;M$I$;28| (84 . |false|) (88 . |true|)
              |MSET;select!;M2$;31| |MSET;removeDuplicates!;2$;32|
              |MSET;insert!;S$Nni$;33| (|Mapping| 6 6) |MSET;map!;M2$;34|
              |MSET;map;M2$;35| |MSET;union;3$;37| |MSET;intersect;3$;38|
              |MSET;difference;3$;39| |MSET;symmetricDifference;3$;40|
              |MSET;=;2$B;41| |MSET;<;2$B;42| |MSET;subset?;2$B;43|
              (|Mapping| 6 6 6) (|Equation| 6) (|List| 83) (|SingleInteger|)
              (|String|) (|Union| 6 '"failed"))
           '#(~= 92 |union| 98 |symmetricDifference| 116 |subset?| 122 |size?|
              128 |set| 134 |select!| 143 |select| 149 |sample| 155
              |removeDuplicates!| 159 |removeDuplicates| 164 |remove!| 169
              |remove| 195 |reduce| 221 |parts| 242 |multiset| 247 |more?| 261
              |members| 267 |member?| 272 |map!| 278 |map| 284 |less?| 290
              |latex| 296 |intersect| 301 |inspect| 307 |insert!| 312 |hash|
              325 |find| 330 |extract!| 336 |every?| 341 |eval| 347 |eq?| 373
              |empty?| 379 |empty| 384 |duplicates| 388 |difference| 393
              |dictionary| 405 |count| 414 |copy| 426 |convert| 431 |construct|
              436 |coerce| 441 |brace| 446 |bag| 455 |any?| 460 = 466 < 472 |#|
              478)
           'NIL
           (CONS (|makeByteWordVec2| 3 '(0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 3 1))
                 (CONS
                  '#(NIL NIL |DictionaryOperations&| |SetAggregate&|
                     |BagAggregate&| |Collection&| |HomogeneousAggregate&|
                     |SetCategory&| |Aggregate&| |Evalable&| NIL NIL
                     |BasicType&| NIL NIL NIL |InnerEvalable&| NIL)
                  (CONS
                   '#((|MultisetAggregate| 6) (|MultiDictionary| 6)
                      (|DictionaryOperations| 6) (|SetAggregate| 6)
                      (|BagAggregate| 6) (|Collection| 6)
                      (|HomogeneousAggregate| 6) (|SetCategory|) (|Aggregate|)
                      (|Evalable| 6) (|finiteAggregate|)
                      (|partiallyOrderedSet|) (|BasicType|) (|Type|)
                      (|shallowlyMutable|) (|CoercibleTo| 37)
                      (|InnerEvalable| 6 6) (|ConvertibleTo| 28))
                   (|makeByteWordVec2| 87
                                       '(2 9 8 6 0 10 0 9 0 11 3 9 17 0 6 17 18
                                         1 28 0 27 29 1 19 28 0 31 1 28 0 32 33
                                         1 0 28 0 34 1 9 19 0 35 1 6 37 0 38 1
                                         17 37 0 39 1 37 0 32 40 1 37 0 32 41 1
                                         9 48 0 49 2 9 8 6 0 50 2 19 46 6 0 54
                                         1 0 0 0 64 0 46 0 67 0 46 0 68 2 0 46
                                         0 0 1 2 0 0 0 6 1 2 0 0 0 0 75 2 0 0 6
                                         0 1 2 0 0 0 0 78 2 0 46 0 0 81 2 0 46
                                         0 56 1 0 0 0 15 1 0 0 19 24 2 5 0 61 0
                                         69 2 5 0 61 0 1 0 0 0 1 1 0 0 0 70 1 6
                                         0 0 1 2 5 0 61 0 62 2 5 0 6 0 59 3 0 0
                                         6 0 17 60 3 0 0 61 0 17 63 2 6 0 6 0 1
                                         2 5 0 61 0 1 3 0 0 6 0 17 65 3 0 0 61
                                         0 17 66 4 6 6 82 0 6 6 1 3 5 6 82 0 6
                                         1 2 5 6 82 0 1 1 5 19 0 30 1 0 0 19 21
                                         0 0 0 13 1 0 0 6 26 2 0 46 0 56 1 1 0
                                         19 0 36 2 6 46 6 0 55 2 4 0 72 0 73 2
                                         0 0 72 0 74 2 0 46 0 56 1 1 0 86 0 1 2
                                         0 0 0 0 76 1 0 6 0 52 3 0 0 6 0 56 71
                                         2 0 0 6 0 53 1 0 85 0 1 2 0 87 61 0 1
                                         1 0 6 0 51 2 5 46 61 0 1 3 3 0 0 19 19
                                         1 2 3 0 0 83 1 3 3 0 0 6 6 1 2 3 0 0
                                         84 1 2 0 46 0 0 1 1 0 46 0 47 0 0 0 12
                                         1 0 44 0 45 2 0 0 0 6 1 2 0 0 0 0 77 0
                                         0 0 14 1 0 0 19 23 2 6 56 6 0 58 2 5
                                         56 61 0 1 1 0 0 0 64 1 1 28 0 34 1 0 0
                                         19 20 1 0 37 0 42 0 0 0 16 1 0 0 19 25
                                         1 0 0 19 22 2 5 46 61 0 1 2 0 46 0 0
                                         79 2 0 46 0 0 80 1 5 56 0 57)))))
           '|lookupComplete|)) 
