blob: 99884fa8ad66fd68315525501cd264d7c8ede7e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
(/VERSIONCHECK 2)
(DEFUN |SETAGG-;symmetricDifference;3A;1| (|x| |y| $)
(SPADCALL (SPADCALL |x| |y| (|getShellEntry| $ 8))
(SPADCALL |y| |x| (|getShellEntry| $ 8)) (|getShellEntry| $ 9)))
(DEFUN |SETAGG-;union;ASA;2| (|s| |x| $)
(SPADCALL |s| (SPADCALL (LIST |x|) (|getShellEntry| $ 12))
(|getShellEntry| $ 9)))
(DEFUN |SETAGG-;union;S2A;3| (|x| |s| $)
(SPADCALL |s| (SPADCALL (LIST |x|) (|getShellEntry| $ 12))
(|getShellEntry| $ 9)))
(DEFUN |SETAGG-;difference;ASA;4| (|s| |x| $)
(SPADCALL |s| (SPADCALL (LIST |x|) (|getShellEntry| $ 12))
(|getShellEntry| $ 8)))
(DEFUN |SetAggregate&| (|#1| |#2|)
(PROG (|dv$1| |dv$2| |dv$| $ |pv$|)
(RETURN
(PROGN
(LETT |dv$1| (|devaluate| |#1|) . #0=(|SetAggregate&|))
(LETT |dv$2| (|devaluate| |#2|) . #0#)
(LETT |dv$| (LIST '|SetAggregate&| |dv$1| |dv$2|) . #0#)
(LETT $ (|newShell| 16) . #0#)
(|setShellEntry| $ 0 |dv$|)
(|setShellEntry| $ 3
(LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
(|stuffDomainSlots| $)
(|setShellEntry| $ 6 |#1|)
(|setShellEntry| $ 7 |#2|)
$))))
(MAKEPROP '|SetAggregate&| '|infovec|
(LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
(0 . |difference|) (6 . |union|)
|SETAGG-;symmetricDifference;3A;1| (|List| 7)
(12 . |brace|) |SETAGG-;union;ASA;2| |SETAGG-;union;S2A;3|
|SETAGG-;difference;ASA;4|)
'#(|union| 17 |symmetricDifference| 29 |difference| 35) 'NIL
(CONS (|makeByteWordVec2| 1 'NIL)
(CONS '#()
(CONS '#()
(|makeByteWordVec2| 15
'(2 6 0 0 0 8 2 6 0 0 0 9 1 6 0 11 12 2
0 0 7 0 14 2 0 0 0 7 13 2 0 0 0 0 10
2 0 0 0 7 15)))))
'|lookupComplete|))
(SETQ |$CategoryFrame|
(|put| '|SetAggregate&| '|isFunctor|
'(((|union| ($ |#2| $)) T (ELT $ 14))
((|union| ($ $ |#2|)) T (ELT $ 13))
((|union| ($ $ $)) T (ELT $ NIL))
((|symmetricDifference| ($ $ $)) T (ELT $ 10))
((|difference| ($ $ |#2|)) T (ELT $ 15))
((|difference| ($ $ $)) T (ELT $ NIL)))
(|addModemap| '|SetAggregate&|
'(|SetAggregate&| |#1| |#2|)
'((CATEGORY |domain|
(SIGNATURE |union| (|#1| |#2| |#1|))
(SIGNATURE |union| (|#1| |#1| |#2|))
(SIGNATURE |union| (|#1| |#1| |#1|))
(SIGNATURE |symmetricDifference|
(|#1| |#1| |#1|))
(SIGNATURE |difference| (|#1| |#1| |#2|))
(SIGNATURE |difference| (|#1| |#1| |#1|)))
(|SetAggregate| |#2|) (|SetCategory|))
T '|SetAggregate&|
(|put| '|SetAggregate&| '|mode|
'(|Mapping|
(CATEGORY |domain|
(SIGNATURE |union| (|#1| |#2| |#1|))
(SIGNATURE |union| (|#1| |#1| |#2|))
(SIGNATURE |union| (|#1| |#1| |#1|))
(SIGNATURE |symmetricDifference|
(|#1| |#1| |#1|))
(SIGNATURE |difference|
(|#1| |#1| |#2|))
(SIGNATURE |difference|
(|#1| |#1| |#1|)))
(|SetAggregate| |#2|) (|SetCategory|))
|$CategoryFrame|))))
|