-
Notifications
You must be signed in to change notification settings - Fork 3
/
cs315_group17.test.txt
74 lines (70 loc) · 1.44 KB
/
cs315_group17.test.txt
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
main(){
# indetifier initialization #
count <== 6;
# set initialization and operations#
$set1 <== new Set;
$set1 <== inputElements();
$set2.input();
$set1 <== $set1.intersection($set2);
$set1 <== $set1.union($set2);
$set1 <== $set1.cart($set2);
# adding operation #
$set.add(1);
$set.add('naci');
$set.add(count);
$set.add($set1);
bool <== $set1.isSuperset($set2);
while($set1.isSuperset($set2)){
if($set2.isSubset($ser5)){
$set2.delete();
}
else{
pass;
}
}
bool1 <== $set.contain(5);
bool2 <== $set.contain('zeynep');
bool3 <== $set.contain(count);
bool4 <== $set.contain($set2);
foo1 <== 4;
func foo(foo1){
$set.add(foo1);
$set.add(count);
$set.add($set1);
return $set;
}
$set1 <== foo(foo1);
for(i = 1:3){
$set1.print();
}
if(bool1 || bool2){
$set2.input();
}
else{
$set1.print();
}
temp <== 4;
temp1 <== 67;
while(temp <= temp1){
if($set1.isSubset($set2)){
temp <== 68;
}
else{
$set1.add($set2);
}
}
while(foo(foo1)){
if($set1.isSubset($set2)){
temp <== 68;
}
else{
$set1.add($set2);
}
}
if(foo(foo1)){
temp <== 68;
}
else{
$set1.add($set2);
}
}