"STES"4#v(0C#v_0"orez fo tnuoc sah tes ytpme :DOOG">:#,_$a,v v"o lib"< >0"tnuoc dilavni sah tes ytpme :DAB">:#,_@ " v < N >5A\:5-#v_0"tes eht otni 5 tup A5 :DOOG">:#,_$a,\ v " >0"tes eht otni 5 tup ton did A5 :DAB">:#,_$a,@ 5 v < k >C1-#v_0"1 si tes rof tnuoC :DOOG">:#,_$a, v , >0"1 ton si tes rof tnuoC :DAB">:#,_$@ @ v < >5AC1-#v_0"1 llits si A5 rehtona retfa tnuoC :DOOG">:#,_$a,v >0"1 ton si A5 rehtona retfa tnuoC :DAB">:#,_$@ v < >3AC2-#v_0"2 won si tnuoc A3 retfA :DOOG">:#,_$a,v >0"2 ton si A3 retfa tnuoC :DAB">:#,_$@ v < >0" :sa tes stnirp P :FEDNU">:#,_$Pa,v v < >a,0"noitacifirev launam ,stes ni devreserp ton si redrO :ETON">:#,_$a,v v < >0".5 eno dna 3 eno evah dluohs tes tsal ,deriuqer si">:#,_$a,a,v v < >1A3A4A7AC5-#v_0"5 fo tnuoc sah A7A4A3A1 :DOOG">:#,_$a, v >0"5 fo tnuoc evah ton seod A7A4A3A1 :DAB">:#,_$@ v < >0":sa tes swohs P :FEDNU">:#,_$Pv v < >0")7,5,4,3,1 :hcae fo eno niatnoc dluohs( ">:#,_$a,v v < >5M#v_0"tes fo rebmem sa 5 wohs ton seod M5 :DAB">:#,_$@ >0"tes fo rebmem sa 5 swohs M5 :DOOG">:#,_$a,v v < >2M#v_0"tes fo rebmem ton si 2 taht swohs M2 :DOOG">:#,_$a,v >0"tes fo rebmem si 2 taht swohs M2 :DAB">:#,_$@ v < >5RC4-#v_0"4 sa tnuoc swohs R5 :DOOG">:#,_$a, v >0"4 sa tnuoc wohs ton seod R5 :DAB">:#,_$@ v < >5M#v_0"tes fo rebmem regnol on si 5 swohs M5 :DOOG">:#,_$a,v >0"tes fo rebmem sa 5 swohs llits M5 :DAB">:#,_$@ v ;v <; < >1000W00g4-#v_011p121p^ > >0"krow ton did 0,0 fo atled htiw W :DAB">:#,_$@ v -5g12p12+1g12 < < < < >21g0g:1-#v_$11g1+11p^ > | >:3-#v_$11g2+11p^ >11gf-#v_v >:4-#v_$11g4+11p^ >:7-#v_$11g8+11p^ ^ < < v < >0"yltcerroc dekrow 0,0 fo atled htiw W :DOOG">:#,_$a,nv v < >1000G#vC4-#v_0"stnemele 4 fo tes a deveirter G :DOOG">:#,_$a, v >0"tes tnemele 4 a eveirter ton did G :DAB">:#,_$@ >0"tes dilav a teg ton did ,detcelfer G retfa C :DAB">:#,_$@ v < >0":sa tes swohs P :FEDNU">:#,_$P0"7,4,3,1 niatnoc dluohs teS ">:#,_$a,v v ;v <; < >0100W00g4-#v_011p121p^ > >0"krow ton did 1,0 fo atled htiw W :DAB">:#,_$@ v -5g12p12+1g12 < < < < >021gg:1-#v_$11g1+11p^ > | >:3-#v_$11g2+11p^ >11gf-#v_v >:4-#v_$11g4+11p^ >:7-#v_$11g8+11p^ ^ < < v < >0"yltcerroc dekrow 1,0 fo atled htiw W :DOOG">:#,_$a,nv v < >0100G#vC4-#v_0"stnemele 4 fo tes a deveirter G :DOOG">:#,_$a, v >0"tes tnemele 4 a eveirter ton did G :DAB">:#,_$@ >0"tes dilav a teg ton did ,detcelfer G retfa C :DAB">:#,_$@ v < >0":sa tes swohs P :FEDNU">:#,_$P0"7,4,3,1 niatnoc dluohs teS ">:#,_$a,v v < >n12344 34564I0":secudorp )6 5 4 3( dna )4 3 2 1( htiw I :FEDNU">:#,_$Pv v < >0")4 3( eb dluohS ">:#,_$a,v v < >0" :kcats no )6 5 4 3( evael dluohs Z :FEDNU">:#,_$ZPa,v v < > v >U0":secudorp )6 5 4 3( dna )4 3 2 1( htiw U :FEDNU">:#,_$#^PZv v < >0")6 5 4 3 2 1( eb dluohS ">:#,_$a,v >0"detcelfer P :DAB">:#,_$@ v < ^ < < >S0":secudorp )6 5 4 3( dna )4 3 2 1( htiw S :FEDNU">:#,_$#^PZv v < >0")2 1( eb dluohS ">:#,_$a,v v < >n342Z#vP0"tcelfer ton did PZ243n :DAB">:#,_$@ >0"detcelfer PZ243n :DOOG">:#,_$a,v v < >n342DZ0":)4 3( wohs dluohs PZDs43 :FEDNU">:#,_$#vPa,$v v < v ;>0"detcelfer PZD243 :DAB">:#,_$@; < >0":)6 5()4 3( wohs dluohs PZPX265243 :FEDNU">:#,_$n342562X#vPZ#vPa,v >,#:_v:"BAD: 342562XPZP reflected"0< < v ;@; < >n32#vC0"tcelfer ton seod C23n :DAB">:#,_$@ >0"stcelfer C23n :DOOG">:#,_$a,v v < >n01-#vC0"tcelfer ton seod C-10n :DAB">:#,_$@ >0"stcelfer C-10n :DOOG">:#,_$a,@ Expected output: ---------------- GOOD: empty set has count of zero GOOD: 5A put 5 into the set GOOD: Count for set is 1 GOOD: Count after another 5A is still 1 GOOD: After 3A count is now 2 UNDEF: P prints set as: (5 3) NOTE: Order is not preserved in sets, manual verification is required, last set should have one 3 and one 5. GOOD: 1A3A4A7A has count of 5 UNDEF: P shows set as:(4 1 5 3 7) (should contain one of each: 1,3,4,5,7) GOOD: 5M shows 5 as member of set GOOD: 2M shows that 2 is not member of set GOOD: 5R shows count as 4 GOOD: 5M shows 5 is no longer member of set GOOD: W with delta of 0,0 worked correctly GOOD: G retrieved a set of 4 elements UNDEF: P shows set as:(4 1 3 7) Set should contain 1,3,4,7 GOOD: W with delta of 0,1 worked correctly GOOD: G retrieved a set of 4 elements UNDEF: P shows set as:(7 3 1 4) Set should contain 1,3,4,7 UNDEF: I with (1 2 3 4) and (3 4 5 6) produces:(3 4) Should be (3 4) UNDEF: Z should leave (3 4 5 6) on stack: (3 4 5 6) UNDEF: U with (1 2 3 4) and (3 4 5 6) produces:(2 1 3 4 5 6) Should be (1 2 3 4 5 6) UNDEF: S with (1 2 3 4) and (3 4 5 6) produces:(1 2) Should be (1 2) GOOD: n342ZP reflected UNDEF: 34sDZP should show (3 4):(3 4) UNDEF: 342562XPZP should show (3 4)(5 6):(3 4)(5 6) GOOD: n32C reflects GOOD: n01-C reflects