1--TEST--
2Test strcspn() function : usage variations - with heredoc strings, varying start and len args
3--FILE--
4<?php
5/* Prototype  : proto int strcspn(string str, string mask [, int start [, int len]])
6 * Description: Finds length of initial segment consisting entirely of characters not found in mask.
7                If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
8 * Source code: ext/standard/string.c
9 * Alias to functions: none
10*/
11
12/*
13* Testing strcspn() : with heredoc string, varying start and len arguments
14*/
15
16echo "*** Testing strcspn() : with different start and len values ***\n";
17
18// initialing required variables
19// defining different heredoc strings
20$empty_heredoc = <<<EOT
21EOT;
22
23$heredoc_with_newline = <<<EOT
24\n
25
26EOT;
27
28$heredoc_with_characters = <<<EOT
29first line of heredoc string
30second line of heredoc string
31third line of heredocstring
32EOT;
33
34$heredoc_with_newline_and_tabs = <<<EOT
35hello\tworld\nhello\nworld\n
36EOT;
37
38$heredoc_with_alphanumerics = <<<EOT
39hello123world456
401234hello\t1234
41EOT;
42
43$heredoc_with_embedded_nulls = <<<EOT
44hello\0world\0hello
45\0hello\0
46EOT;
47
48$heredoc_with_hexa_octal = <<<EOT
49hello\0\100\xaaworld\0hello
50\0hello\0
51EOT;
52
53$heredoc_strings = array(
54                   $empty_heredoc,
55                   $heredoc_with_newline,
56                   $heredoc_with_characters,
57                   $heredoc_with_newline_and_tabs,
58                   $heredoc_with_alphanumerics,
59                   $heredoc_with_embedded_nulls,
60   		   $heredoc_with_hexa_octal
61 		   );
62
63// defining array of mask strings
64$mask_array = array(
65		    "",
66		    '',
67		    "\n\trsti \l",
68		    "\t",
69		    "t\ ",
70		    " \t",
71                    "\t\i\100\xaa"
72                   );
73
74// definig array of start values
75$start_array = array(
76		    0,
77		    1,
78		    2,
79		    -1,
80		    2147483647,  // max positive integer
81		    -2147483648,  // min negative integer
82                   );
83
84// defining array of len values
85$len_array = array(
86		    0,
87		    1,
88		    2,
89		    -1,
90		    2147483647,  // max positive integer
91		    -2147483648,  // min negative integer
92                   );
93
94
95// loop through each element of the arrays for all arguments
96
97$count = 1;
98foreach($heredoc_strings as $str) {
99  echo "\n-- Iteration $count --\n";
100  foreach($mask_array as $mask) {
101    foreach($start_array as $start) {
102      foreach($len_array as $len) {
103        var_dump( strcspn($str,$mask,$start,$len) );
104      }
105    }
106  }
107  $count++;
108}
109
110echo "Done"
111?>
112--EXPECTF--
113*** Testing strcspn() : with different start and len values ***
114
115-- Iteration 1 --
116int(0)
117int(0)
118int(0)
119int(0)
120int(0)
121int(0)
122bool(false)
123bool(false)
124bool(false)
125bool(false)
126bool(false)
127bool(false)
128bool(false)
129bool(false)
130bool(false)
131bool(false)
132bool(false)
133bool(false)
134int(0)
135int(0)
136int(0)
137int(0)
138int(0)
139int(0)
140bool(false)
141bool(false)
142bool(false)
143bool(false)
144bool(false)
145bool(false)
146int(0)
147int(0)
148int(0)
149int(0)
150int(0)
151int(0)
152int(0)
153int(0)
154int(0)
155int(0)
156int(0)
157int(0)
158bool(false)
159bool(false)
160bool(false)
161bool(false)
162bool(false)
163bool(false)
164bool(false)
165bool(false)
166bool(false)
167bool(false)
168bool(false)
169bool(false)
170int(0)
171int(0)
172int(0)
173int(0)
174int(0)
175int(0)
176bool(false)
177bool(false)
178bool(false)
179bool(false)
180bool(false)
181bool(false)
182int(0)
183int(0)
184int(0)
185int(0)
186int(0)
187int(0)
188int(0)
189int(0)
190int(0)
191int(0)
192int(0)
193int(0)
194bool(false)
195bool(false)
196bool(false)
197bool(false)
198bool(false)
199bool(false)
200bool(false)
201bool(false)
202bool(false)
203bool(false)
204bool(false)
205bool(false)
206int(0)
207int(0)
208int(0)
209int(0)
210int(0)
211int(0)
212bool(false)
213bool(false)
214bool(false)
215bool(false)
216bool(false)
217bool(false)
218int(0)
219int(0)
220int(0)
221int(0)
222int(0)
223int(0)
224int(0)
225int(0)
226int(0)
227int(0)
228int(0)
229int(0)
230bool(false)
231bool(false)
232bool(false)
233bool(false)
234bool(false)
235bool(false)
236bool(false)
237bool(false)
238bool(false)
239bool(false)
240bool(false)
241bool(false)
242int(0)
243int(0)
244int(0)
245int(0)
246int(0)
247int(0)
248bool(false)
249bool(false)
250bool(false)
251bool(false)
252bool(false)
253bool(false)
254int(0)
255int(0)
256int(0)
257int(0)
258int(0)
259int(0)
260int(0)
261int(0)
262int(0)
263int(0)
264int(0)
265int(0)
266bool(false)
267bool(false)
268bool(false)
269bool(false)
270bool(false)
271bool(false)
272bool(false)
273bool(false)
274bool(false)
275bool(false)
276bool(false)
277bool(false)
278int(0)
279int(0)
280int(0)
281int(0)
282int(0)
283int(0)
284bool(false)
285bool(false)
286bool(false)
287bool(false)
288bool(false)
289bool(false)
290int(0)
291int(0)
292int(0)
293int(0)
294int(0)
295int(0)
296int(0)
297int(0)
298int(0)
299int(0)
300int(0)
301int(0)
302bool(false)
303bool(false)
304bool(false)
305bool(false)
306bool(false)
307bool(false)
308bool(false)
309bool(false)
310bool(false)
311bool(false)
312bool(false)
313bool(false)
314int(0)
315int(0)
316int(0)
317int(0)
318int(0)
319int(0)
320bool(false)
321bool(false)
322bool(false)
323bool(false)
324bool(false)
325bool(false)
326int(0)
327int(0)
328int(0)
329int(0)
330int(0)
331int(0)
332int(0)
333int(0)
334int(0)
335int(0)
336int(0)
337int(0)
338bool(false)
339bool(false)
340bool(false)
341bool(false)
342bool(false)
343bool(false)
344bool(false)
345bool(false)
346bool(false)
347bool(false)
348bool(false)
349bool(false)
350int(0)
351int(0)
352int(0)
353int(0)
354int(0)
355int(0)
356bool(false)
357bool(false)
358bool(false)
359bool(false)
360bool(false)
361bool(false)
362int(0)
363int(0)
364int(0)
365int(0)
366int(0)
367int(0)
368
369-- Iteration 2 --
370int(0)
371int(1)
372int(2)
373int(1)
374int(2)
375int(0)
376int(0)
377int(1)
378int(1)
379int(0)
380int(1)
381int(0)
382int(0)
383int(0)
384int(0)
385int(0)
386int(0)
387int(0)
388int(0)
389int(1)
390int(1)
391int(0)
392int(1)
393int(0)
394bool(false)
395bool(false)
396bool(false)
397bool(false)
398bool(false)
399bool(false)
400int(0)
401int(1)
402int(2)
403int(1)
404int(2)
405int(0)
406int(0)
407int(1)
408int(2)
409int(1)
410int(2)
411int(0)
412int(0)
413int(1)
414int(1)
415int(0)
416int(1)
417int(0)
418int(0)
419int(0)
420int(0)
421int(0)
422int(0)
423int(0)
424int(0)
425int(1)
426int(1)
427int(0)
428int(1)
429int(0)
430bool(false)
431bool(false)
432bool(false)
433bool(false)
434bool(false)
435bool(false)
436int(0)
437int(1)
438int(2)
439int(1)
440int(2)
441int(0)
442int(0)
443int(0)
444int(0)
445int(0)
446int(0)
447int(0)
448int(0)
449int(0)
450int(0)
451int(0)
452int(0)
453int(0)
454int(0)
455int(0)
456int(0)
457int(0)
458int(0)
459int(0)
460int(0)
461int(0)
462int(0)
463int(0)
464int(0)
465int(0)
466bool(false)
467bool(false)
468bool(false)
469bool(false)
470bool(false)
471bool(false)
472int(0)
473int(0)
474int(0)
475int(0)
476int(0)
477int(0)
478int(0)
479int(1)
480int(2)
481int(1)
482int(2)
483int(0)
484int(0)
485int(1)
486int(1)
487int(0)
488int(1)
489int(0)
490int(0)
491int(0)
492int(0)
493int(0)
494int(0)
495int(0)
496int(0)
497int(1)
498int(1)
499int(0)
500int(1)
501int(0)
502bool(false)
503bool(false)
504bool(false)
505bool(false)
506bool(false)
507bool(false)
508int(0)
509int(1)
510int(2)
511int(1)
512int(2)
513int(0)
514int(0)
515int(1)
516int(2)
517int(1)
518int(2)
519int(0)
520int(0)
521int(1)
522int(1)
523int(0)
524int(1)
525int(0)
526int(0)
527int(0)
528int(0)
529int(0)
530int(0)
531int(0)
532int(0)
533int(1)
534int(1)
535int(0)
536int(1)
537int(0)
538bool(false)
539bool(false)
540bool(false)
541bool(false)
542bool(false)
543bool(false)
544int(0)
545int(1)
546int(2)
547int(1)
548int(2)
549int(0)
550int(0)
551int(1)
552int(2)
553int(1)
554int(2)
555int(0)
556int(0)
557int(1)
558int(1)
559int(0)
560int(1)
561int(0)
562int(0)
563int(0)
564int(0)
565int(0)
566int(0)
567int(0)
568int(0)
569int(1)
570int(1)
571int(0)
572int(1)
573int(0)
574bool(false)
575bool(false)
576bool(false)
577bool(false)
578bool(false)
579bool(false)
580int(0)
581int(1)
582int(2)
583int(1)
584int(2)
585int(0)
586int(0)
587int(1)
588int(2)
589int(1)
590int(2)
591int(0)
592int(0)
593int(1)
594int(1)
595int(0)
596int(1)
597int(0)
598int(0)
599int(0)
600int(0)
601int(0)
602int(0)
603int(0)
604int(0)
605int(1)
606int(1)
607int(0)
608int(1)
609int(0)
610bool(false)
611bool(false)
612bool(false)
613bool(false)
614bool(false)
615bool(false)
616int(0)
617int(1)
618int(2)
619int(1)
620int(2)
621int(0)
622
623-- Iteration 3 --
624int(0)
625int(1)
626int(2)
627int(85)
628int(86)
629int(0)
630int(0)
631int(1)
632int(2)
633int(84)
634int(85)
635int(0)
636int(0)
637int(1)
638int(2)
639int(83)
640int(84)
641int(0)
642int(0)
643int(1)
644int(1)
645int(0)
646int(1)
647int(0)
648bool(false)
649bool(false)
650bool(false)
651bool(false)
652bool(false)
653bool(false)
654int(0)
655int(1)
656int(2)
657int(85)
658int(86)
659int(0)
660int(0)
661int(1)
662int(2)
663int(85)
664int(86)
665int(0)
666int(0)
667int(1)
668int(2)
669int(84)
670int(85)
671int(0)
672int(0)
673int(1)
674int(2)
675int(83)
676int(84)
677int(0)
678int(0)
679int(1)
680int(1)
681int(0)
682int(1)
683int(0)
684bool(false)
685bool(false)
686bool(false)
687bool(false)
688bool(false)
689bool(false)
690int(0)
691int(1)
692int(2)
693int(85)
694int(86)
695int(0)
696int(0)
697int(1)
698int(1)
699int(1)
700int(1)
701int(0)
702int(0)
703int(0)
704int(0)
705int(0)
706int(0)
707int(0)
708int(0)
709int(0)
710int(0)
711int(0)
712int(0)
713int(0)
714int(0)
715int(1)
716int(1)
717int(0)
718int(1)
719int(0)
720bool(false)
721bool(false)
722bool(false)
723bool(false)
724bool(false)
725bool(false)
726int(0)
727int(1)
728int(1)
729int(1)
730int(1)
731int(0)
732int(0)
733int(1)
734int(2)
735int(85)
736int(86)
737int(0)
738int(0)
739int(1)
740int(2)
741int(84)
742int(85)
743int(0)
744int(0)
745int(1)
746int(2)
747int(83)
748int(84)
749int(0)
750int(0)
751int(1)
752int(1)
753int(0)
754int(1)
755int(0)
756bool(false)
757bool(false)
758bool(false)
759bool(false)
760bool(false)
761bool(false)
762int(0)
763int(1)
764int(2)
765int(85)
766int(86)
767int(0)
768int(0)
769int(1)
770int(2)
771int(4)
772int(4)
773int(0)
774int(0)
775int(1)
776int(2)
777int(3)
778int(3)
779int(0)
780int(0)
781int(1)
782int(2)
783int(2)
784int(2)
785int(0)
786int(0)
787int(1)
788int(1)
789int(0)
790int(1)
791int(0)
792bool(false)
793bool(false)
794bool(false)
795bool(false)
796bool(false)
797bool(false)
798int(0)
799int(1)
800int(2)
801int(4)
802int(4)
803int(0)
804int(0)
805int(1)
806int(2)
807int(5)
808int(5)
809int(0)
810int(0)
811int(1)
812int(2)
813int(4)
814int(4)
815int(0)
816int(0)
817int(1)
818int(2)
819int(3)
820int(3)
821int(0)
822int(0)
823int(1)
824int(1)
825int(0)
826int(1)
827int(0)
828bool(false)
829bool(false)
830bool(false)
831bool(false)
832bool(false)
833bool(false)
834int(0)
835int(1)
836int(2)
837int(5)
838int(5)
839int(0)
840int(0)
841int(1)
842int(1)
843int(1)
844int(1)
845int(0)
846int(0)
847int(0)
848int(0)
849int(0)
850int(0)
851int(0)
852int(0)
853int(1)
854int(2)
855int(5)
856int(5)
857int(0)
858int(0)
859int(1)
860int(1)
861int(0)
862int(1)
863int(0)
864bool(false)
865bool(false)
866bool(false)
867bool(false)
868bool(false)
869bool(false)
870int(0)
871int(1)
872int(1)
873int(1)
874int(1)
875int(0)
876
877-- Iteration 4 --
878int(0)
879int(1)
880int(2)
881int(23)
882int(24)
883int(0)
884int(0)
885int(1)
886int(2)
887int(22)
888int(23)
889int(0)
890int(0)
891int(1)
892int(2)
893int(21)
894int(22)
895int(0)
896int(0)
897int(1)
898int(1)
899int(0)
900int(1)
901int(0)
902bool(false)
903bool(false)
904bool(false)
905bool(false)
906bool(false)
907bool(false)
908int(0)
909int(1)
910int(2)
911int(23)
912int(24)
913int(0)
914int(0)
915int(1)
916int(2)
917int(23)
918int(24)
919int(0)
920int(0)
921int(1)
922int(2)
923int(22)
924int(23)
925int(0)
926int(0)
927int(1)
928int(2)
929int(21)
930int(22)
931int(0)
932int(0)
933int(1)
934int(1)
935int(0)
936int(1)
937int(0)
938bool(false)
939bool(false)
940bool(false)
941bool(false)
942bool(false)
943bool(false)
944int(0)
945int(1)
946int(2)
947int(23)
948int(24)
949int(0)
950int(0)
951int(1)
952int(2)
953int(2)
954int(2)
955int(0)
956int(0)
957int(1)
958int(1)
959int(1)
960int(1)
961int(0)
962int(0)
963int(0)
964int(0)
965int(0)
966int(0)
967int(0)
968int(0)
969int(0)
970int(0)
971int(0)
972int(0)
973int(0)
974bool(false)
975bool(false)
976bool(false)
977bool(false)
978bool(false)
979bool(false)
980int(0)
981int(1)
982int(2)
983int(2)
984int(2)
985int(0)
986int(0)
987int(1)
988int(2)
989int(5)
990int(5)
991int(0)
992int(0)
993int(1)
994int(2)
995int(4)
996int(4)
997int(0)
998int(0)
999int(1)
1000int(2)
1001int(3)
1002int(3)
1003int(0)
1004int(0)
1005int(1)
1006int(1)
1007int(0)
1008int(1)
1009int(0)
1010bool(false)
1011bool(false)
1012bool(false)
1013bool(false)
1014bool(false)
1015bool(false)
1016int(0)
1017int(1)
1018int(2)
1019int(5)
1020int(5)
1021int(0)
1022int(0)
1023int(1)
1024int(2)
1025int(23)
1026int(24)
1027int(0)
1028int(0)
1029int(1)
1030int(2)
1031int(22)
1032int(23)
1033int(0)
1034int(0)
1035int(1)
1036int(2)
1037int(21)
1038int(22)
1039int(0)
1040int(0)
1041int(1)
1042int(1)
1043int(0)
1044int(1)
1045int(0)
1046bool(false)
1047bool(false)
1048bool(false)
1049bool(false)
1050bool(false)
1051bool(false)
1052int(0)
1053int(1)
1054int(2)
1055int(23)
1056int(24)
1057int(0)
1058int(0)
1059int(1)
1060int(2)
1061int(5)
1062int(5)
1063int(0)
1064int(0)
1065int(1)
1066int(2)
1067int(4)
1068int(4)
1069int(0)
1070int(0)
1071int(1)
1072int(2)
1073int(3)
1074int(3)
1075int(0)
1076int(0)
1077int(1)
1078int(1)
1079int(0)
1080int(1)
1081int(0)
1082bool(false)
1083bool(false)
1084bool(false)
1085bool(false)
1086bool(false)
1087bool(false)
1088int(0)
1089int(1)
1090int(2)
1091int(5)
1092int(5)
1093int(0)
1094int(0)
1095int(1)
1096int(2)
1097int(5)
1098int(5)
1099int(0)
1100int(0)
1101int(1)
1102int(2)
1103int(4)
1104int(4)
1105int(0)
1106int(0)
1107int(1)
1108int(2)
1109int(3)
1110int(3)
1111int(0)
1112int(0)
1113int(1)
1114int(1)
1115int(0)
1116int(1)
1117int(0)
1118bool(false)
1119bool(false)
1120bool(false)
1121bool(false)
1122bool(false)
1123bool(false)
1124int(0)
1125int(1)
1126int(2)
1127int(5)
1128int(5)
1129int(0)
1130
1131-- Iteration 5 --
1132int(0)
1133int(1)
1134int(2)
1135int(30)
1136int(31)
1137int(0)
1138int(0)
1139int(1)
1140int(2)
1141int(29)
1142int(30)
1143int(0)
1144int(0)
1145int(1)
1146int(2)
1147int(28)
1148int(29)
1149int(0)
1150int(0)
1151int(1)
1152int(1)
1153int(0)
1154int(1)
1155int(0)
1156bool(false)
1157bool(false)
1158bool(false)
1159bool(false)
1160bool(false)
1161bool(false)
1162int(0)
1163int(1)
1164int(2)
1165int(30)
1166int(31)
1167int(0)
1168int(0)
1169int(1)
1170int(2)
1171int(30)
1172int(31)
1173int(0)
1174int(0)
1175int(1)
1176int(2)
1177int(29)
1178int(30)
1179int(0)
1180int(0)
1181int(1)
1182int(2)
1183int(28)
1184int(29)
1185int(0)
1186int(0)
1187int(1)
1188int(1)
1189int(0)
1190int(1)
1191int(0)
1192bool(false)
1193bool(false)
1194bool(false)
1195bool(false)
1196bool(false)
1197bool(false)
1198int(0)
1199int(1)
1200int(2)
1201int(30)
1202int(31)
1203int(0)
1204int(0)
1205int(1)
1206int(2)
1207int(2)
1208int(2)
1209int(0)
1210int(0)
1211int(1)
1212int(1)
1213int(1)
1214int(1)
1215int(0)
1216int(0)
1217int(0)
1218int(0)
1219int(0)
1220int(0)
1221int(0)
1222int(0)
1223int(1)
1224int(1)
1225int(0)
1226int(1)
1227int(0)
1228bool(false)
1229bool(false)
1230bool(false)
1231bool(false)
1232bool(false)
1233bool(false)
1234int(0)
1235int(1)
1236int(2)
1237int(2)
1238int(2)
1239int(0)
1240int(0)
1241int(1)
1242int(2)
1243int(26)
1244int(26)
1245int(0)
1246int(0)
1247int(1)
1248int(2)
1249int(25)
1250int(25)
1251int(0)
1252int(0)
1253int(1)
1254int(2)
1255int(24)
1256int(24)
1257int(0)
1258int(0)
1259int(1)
1260int(1)
1261int(0)
1262int(1)
1263int(0)
1264bool(false)
1265bool(false)
1266bool(false)
1267bool(false)
1268bool(false)
1269bool(false)
1270int(0)
1271int(1)
1272int(2)
1273int(26)
1274int(26)
1275int(0)
1276int(0)
1277int(1)
1278int(2)
1279int(30)
1280int(31)
1281int(0)
1282int(0)
1283int(1)
1284int(2)
1285int(29)
1286int(30)
1287int(0)
1288int(0)
1289int(1)
1290int(2)
1291int(28)
1292int(29)
1293int(0)
1294int(0)
1295int(1)
1296int(1)
1297int(0)
1298int(1)
1299int(0)
1300bool(false)
1301bool(false)
1302bool(false)
1303bool(false)
1304bool(false)
1305bool(false)
1306int(0)
1307int(1)
1308int(2)
1309int(30)
1310int(31)
1311int(0)
1312int(0)
1313int(1)
1314int(2)
1315int(26)
1316int(26)
1317int(0)
1318int(0)
1319int(1)
1320int(2)
1321int(25)
1322int(25)
1323int(0)
1324int(0)
1325int(1)
1326int(2)
1327int(24)
1328int(24)
1329int(0)
1330int(0)
1331int(1)
1332int(1)
1333int(0)
1334int(1)
1335int(0)
1336bool(false)
1337bool(false)
1338bool(false)
1339bool(false)
1340bool(false)
1341bool(false)
1342int(0)
1343int(1)
1344int(2)
1345int(26)
1346int(26)
1347int(0)
1348int(0)
1349int(1)
1350int(2)
1351int(26)
1352int(26)
1353int(0)
1354int(0)
1355int(1)
1356int(2)
1357int(25)
1358int(25)
1359int(0)
1360int(0)
1361int(1)
1362int(2)
1363int(24)
1364int(24)
1365int(0)
1366int(0)
1367int(1)
1368int(1)
1369int(0)
1370int(1)
1371int(0)
1372bool(false)
1373bool(false)
1374bool(false)
1375bool(false)
1376bool(false)
1377bool(false)
1378int(0)
1379int(1)
1380int(2)
1381int(26)
1382int(26)
1383int(0)
1384
1385-- Iteration 6 --
1386int(0)
1387int(1)
1388int(2)
1389int(5)
1390int(5)
1391int(0)
1392int(0)
1393int(1)
1394int(2)
1395int(4)
1396int(4)
1397int(0)
1398int(0)
1399int(1)
1400int(2)
1401int(3)
1402int(3)
1403int(0)
1404int(0)
1405int(0)
1406int(0)
1407int(0)
1408int(0)
1409int(0)
1410bool(false)
1411bool(false)
1412bool(false)
1413bool(false)
1414bool(false)
1415bool(false)
1416int(0)
1417int(1)
1418int(2)
1419int(5)
1420int(5)
1421int(0)
1422int(0)
1423int(1)
1424int(2)
1425int(5)
1426int(5)
1427int(0)
1428int(0)
1429int(1)
1430int(2)
1431int(4)
1432int(4)
1433int(0)
1434int(0)
1435int(1)
1436int(2)
1437int(3)
1438int(3)
1439int(0)
1440int(0)
1441int(0)
1442int(0)
1443int(0)
1444int(0)
1445int(0)
1446bool(false)
1447bool(false)
1448bool(false)
1449bool(false)
1450bool(false)
1451bool(false)
1452int(0)
1453int(1)
1454int(2)
1455int(5)
1456int(5)
1457int(0)
1458int(0)
1459int(1)
1460int(2)
1461int(2)
1462int(2)
1463int(0)
1464int(0)
1465int(1)
1466int(1)
1467int(1)
1468int(1)
1469int(0)
1470int(0)
1471int(0)
1472int(0)
1473int(0)
1474int(0)
1475int(0)
1476int(0)
1477int(1)
1478int(1)
1479int(0)
1480int(1)
1481int(0)
1482bool(false)
1483bool(false)
1484bool(false)
1485bool(false)
1486bool(false)
1487bool(false)
1488int(0)
1489int(1)
1490int(2)
1491int(2)
1492int(2)
1493int(0)
1494int(0)
1495int(1)
1496int(2)
1497int(24)
1498int(25)
1499int(0)
1500int(0)
1501int(1)
1502int(2)
1503int(23)
1504int(24)
1505int(0)
1506int(0)
1507int(1)
1508int(2)
1509int(22)
1510int(23)
1511int(0)
1512int(0)
1513int(1)
1514int(1)
1515int(0)
1516int(1)
1517int(0)
1518bool(false)
1519bool(false)
1520bool(false)
1521bool(false)
1522bool(false)
1523bool(false)
1524int(0)
1525int(1)
1526int(2)
1527int(24)
1528int(25)
1529int(0)
1530int(0)
1531int(1)
1532int(2)
1533int(24)
1534int(25)
1535int(0)
1536int(0)
1537int(1)
1538int(2)
1539int(23)
1540int(24)
1541int(0)
1542int(0)
1543int(1)
1544int(2)
1545int(22)
1546int(23)
1547int(0)
1548int(0)
1549int(1)
1550int(1)
1551int(0)
1552int(1)
1553int(0)
1554bool(false)
1555bool(false)
1556bool(false)
1557bool(false)
1558bool(false)
1559bool(false)
1560int(0)
1561int(1)
1562int(2)
1563int(24)
1564int(25)
1565int(0)
1566int(0)
1567int(1)
1568int(2)
1569int(24)
1570int(25)
1571int(0)
1572int(0)
1573int(1)
1574int(2)
1575int(23)
1576int(24)
1577int(0)
1578int(0)
1579int(1)
1580int(2)
1581int(22)
1582int(23)
1583int(0)
1584int(0)
1585int(1)
1586int(1)
1587int(0)
1588int(1)
1589int(0)
1590bool(false)
1591bool(false)
1592bool(false)
1593bool(false)
1594bool(false)
1595bool(false)
1596int(0)
1597int(1)
1598int(2)
1599int(24)
1600int(25)
1601int(0)
1602int(0)
1603int(1)
1604int(2)
1605int(24)
1606int(25)
1607int(0)
1608int(0)
1609int(1)
1610int(2)
1611int(23)
1612int(24)
1613int(0)
1614int(0)
1615int(1)
1616int(2)
1617int(22)
1618int(23)
1619int(0)
1620int(0)
1621int(1)
1622int(1)
1623int(0)
1624int(1)
1625int(0)
1626bool(false)
1627bool(false)
1628bool(false)
1629bool(false)
1630bool(false)
1631bool(false)
1632int(0)
1633int(1)
1634int(2)
1635int(24)
1636int(25)
1637int(0)
1638
1639-- Iteration 7 --
1640int(0)
1641int(1)
1642int(2)
1643int(5)
1644int(5)
1645int(0)
1646int(0)
1647int(1)
1648int(2)
1649int(4)
1650int(4)
1651int(0)
1652int(0)
1653int(1)
1654int(2)
1655int(3)
1656int(3)
1657int(0)
1658int(0)
1659int(0)
1660int(0)
1661int(0)
1662int(0)
1663int(0)
1664bool(false)
1665bool(false)
1666bool(false)
1667bool(false)
1668bool(false)
1669bool(false)
1670int(0)
1671int(1)
1672int(2)
1673int(5)
1674int(5)
1675int(0)
1676int(0)
1677int(1)
1678int(2)
1679int(5)
1680int(5)
1681int(0)
1682int(0)
1683int(1)
1684int(2)
1685int(4)
1686int(4)
1687int(0)
1688int(0)
1689int(1)
1690int(2)
1691int(3)
1692int(3)
1693int(0)
1694int(0)
1695int(0)
1696int(0)
1697int(0)
1698int(0)
1699int(0)
1700bool(false)
1701bool(false)
1702bool(false)
1703bool(false)
1704bool(false)
1705bool(false)
1706int(0)
1707int(1)
1708int(2)
1709int(5)
1710int(5)
1711int(0)
1712int(0)
1713int(1)
1714int(2)
1715int(2)
1716int(2)
1717int(0)
1718int(0)
1719int(1)
1720int(1)
1721int(1)
1722int(1)
1723int(0)
1724int(0)
1725int(0)
1726int(0)
1727int(0)
1728int(0)
1729int(0)
1730int(0)
1731int(1)
1732int(1)
1733int(0)
1734int(1)
1735int(0)
1736bool(false)
1737bool(false)
1738bool(false)
1739bool(false)
1740bool(false)
1741bool(false)
1742int(0)
1743int(1)
1744int(2)
1745int(2)
1746int(2)
1747int(0)
1748int(0)
1749int(1)
1750int(2)
1751int(26)
1752int(27)
1753int(0)
1754int(0)
1755int(1)
1756int(2)
1757int(25)
1758int(26)
1759int(0)
1760int(0)
1761int(1)
1762int(2)
1763int(24)
1764int(25)
1765int(0)
1766int(0)
1767int(1)
1768int(1)
1769int(0)
1770int(1)
1771int(0)
1772bool(false)
1773bool(false)
1774bool(false)
1775bool(false)
1776bool(false)
1777bool(false)
1778int(0)
1779int(1)
1780int(2)
1781int(26)
1782int(27)
1783int(0)
1784int(0)
1785int(1)
1786int(2)
1787int(26)
1788int(27)
1789int(0)
1790int(0)
1791int(1)
1792int(2)
1793int(25)
1794int(26)
1795int(0)
1796int(0)
1797int(1)
1798int(2)
1799int(24)
1800int(25)
1801int(0)
1802int(0)
1803int(1)
1804int(1)
1805int(0)
1806int(1)
1807int(0)
1808bool(false)
1809bool(false)
1810bool(false)
1811bool(false)
1812bool(false)
1813bool(false)
1814int(0)
1815int(1)
1816int(2)
1817int(26)
1818int(27)
1819int(0)
1820int(0)
1821int(1)
1822int(2)
1823int(26)
1824int(27)
1825int(0)
1826int(0)
1827int(1)
1828int(2)
1829int(25)
1830int(26)
1831int(0)
1832int(0)
1833int(1)
1834int(2)
1835int(24)
1836int(25)
1837int(0)
1838int(0)
1839int(1)
1840int(1)
1841int(0)
1842int(1)
1843int(0)
1844bool(false)
1845bool(false)
1846bool(false)
1847bool(false)
1848bool(false)
1849bool(false)
1850int(0)
1851int(1)
1852int(2)
1853int(26)
1854int(27)
1855int(0)
1856int(0)
1857int(1)
1858int(2)
1859int(6)
1860int(6)
1861int(0)
1862int(0)
1863int(1)
1864int(2)
1865int(5)
1866int(5)
1867int(0)
1868int(0)
1869int(1)
1870int(2)
1871int(4)
1872int(4)
1873int(0)
1874int(0)
1875int(1)
1876int(1)
1877int(0)
1878int(1)
1879int(0)
1880bool(false)
1881bool(false)
1882bool(false)
1883bool(false)
1884bool(false)
1885bool(false)
1886int(0)
1887int(1)
1888int(2)
1889int(6)
1890int(6)
1891int(0)
1892Done