1--TEST--
2Test strspn() function : usage variations - with varying start and len args
3--FILE--
4<?php
5/* Prototype  : proto int strspn(string str, string mask [, int start [, int len]])
6 * Description: Finds length of initial segment consisting entirely of characters found in mask.
7                If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
8 * Source code: ext/standard/string.c
9 * Alias to functions: none
10*/
11
12/*
13* Testing strspn() : with varying start and len arguments
14*/
15
16echo "*** Testing strspn() : with different start and len values ***\n";
17
18// initialing required variables
19// defining different strings
20$strings = array(
21                   "",
22		   '',
23		   "\n",
24		   '\n',
25		   "hello\tworld\nhello\nworld\n",
26 		   "1234hello45world\t123",
27		   "hello\0world\012",
28		   chr(0).chr(0),
29		   chr(0)."hello\0world".chr(0),
30		   "hello".chr(0)."world",
31		   "hello\0\100\xaaaworld",
32                   );
33
34// define the array of mask strings
35$mask_array = array(
36		    "",
37		    '',
38		    "f\n\trelshti \l",
39		    'f\n\trelsthi \l',
40		    "\telh",
41		    "felh\t\ ",
42                    "fhel\t\i\100\xa"
43                   );
44
45// defining the array for start values
46$start_array = array(
47		    0,
48		    1,
49		    2,
50		    -1,
51		    2147483647,  // max positive integer
52		    -2147483648,  // min negative integer
53                   );
54
55// defining an array of len values
56$len_array = array(
57		    0,
58		    1,
59  		    2,
60		    -1,
61		    2147483647,  // max positive integer
62		    -2147483648,  // min negative integer
63                   );
64
65
66// loop through each element of the array for len argument
67$count = 1;
68foreach($strings as $str) {
69  echo "\n-- Iteration $count --\n";
70  foreach($mask_array as $mask) {
71    foreach($start_array as $start) {
72      foreach($len_array as $len) {
73        var_dump( strspn($str,$mask,$start,$len) );
74      }
75    }
76  }
77  $count++;
78}
79
80echo "Done"
81?>
82--EXPECTF--
83*** Testing strspn() : with different start and len values ***
84
85-- Iteration 1 --
86int(0)
87int(0)
88int(0)
89int(0)
90int(0)
91int(0)
92bool(false)
93bool(false)
94bool(false)
95bool(false)
96bool(false)
97bool(false)
98bool(false)
99bool(false)
100bool(false)
101bool(false)
102bool(false)
103bool(false)
104int(0)
105int(0)
106int(0)
107int(0)
108int(0)
109int(0)
110bool(false)
111bool(false)
112bool(false)
113bool(false)
114bool(false)
115bool(false)
116int(0)
117int(0)
118int(0)
119int(0)
120int(0)
121int(0)
122int(0)
123int(0)
124int(0)
125int(0)
126int(0)
127int(0)
128bool(false)
129bool(false)
130bool(false)
131bool(false)
132bool(false)
133bool(false)
134bool(false)
135bool(false)
136bool(false)
137bool(false)
138bool(false)
139bool(false)
140int(0)
141int(0)
142int(0)
143int(0)
144int(0)
145int(0)
146bool(false)
147bool(false)
148bool(false)
149bool(false)
150bool(false)
151bool(false)
152int(0)
153int(0)
154int(0)
155int(0)
156int(0)
157int(0)
158int(0)
159int(0)
160int(0)
161int(0)
162int(0)
163int(0)
164bool(false)
165bool(false)
166bool(false)
167bool(false)
168bool(false)
169bool(false)
170bool(false)
171bool(false)
172bool(false)
173bool(false)
174bool(false)
175bool(false)
176int(0)
177int(0)
178int(0)
179int(0)
180int(0)
181int(0)
182bool(false)
183bool(false)
184bool(false)
185bool(false)
186bool(false)
187bool(false)
188int(0)
189int(0)
190int(0)
191int(0)
192int(0)
193int(0)
194int(0)
195int(0)
196int(0)
197int(0)
198int(0)
199int(0)
200bool(false)
201bool(false)
202bool(false)
203bool(false)
204bool(false)
205bool(false)
206bool(false)
207bool(false)
208bool(false)
209bool(false)
210bool(false)
211bool(false)
212int(0)
213int(0)
214int(0)
215int(0)
216int(0)
217int(0)
218bool(false)
219bool(false)
220bool(false)
221bool(false)
222bool(false)
223bool(false)
224int(0)
225int(0)
226int(0)
227int(0)
228int(0)
229int(0)
230int(0)
231int(0)
232int(0)
233int(0)
234int(0)
235int(0)
236bool(false)
237bool(false)
238bool(false)
239bool(false)
240bool(false)
241bool(false)
242bool(false)
243bool(false)
244bool(false)
245bool(false)
246bool(false)
247bool(false)
248int(0)
249int(0)
250int(0)
251int(0)
252int(0)
253int(0)
254bool(false)
255bool(false)
256bool(false)
257bool(false)
258bool(false)
259bool(false)
260int(0)
261int(0)
262int(0)
263int(0)
264int(0)
265int(0)
266int(0)
267int(0)
268int(0)
269int(0)
270int(0)
271int(0)
272bool(false)
273bool(false)
274bool(false)
275bool(false)
276bool(false)
277bool(false)
278bool(false)
279bool(false)
280bool(false)
281bool(false)
282bool(false)
283bool(false)
284int(0)
285int(0)
286int(0)
287int(0)
288int(0)
289int(0)
290bool(false)
291bool(false)
292bool(false)
293bool(false)
294bool(false)
295bool(false)
296int(0)
297int(0)
298int(0)
299int(0)
300int(0)
301int(0)
302int(0)
303int(0)
304int(0)
305int(0)
306int(0)
307int(0)
308bool(false)
309bool(false)
310bool(false)
311bool(false)
312bool(false)
313bool(false)
314bool(false)
315bool(false)
316bool(false)
317bool(false)
318bool(false)
319bool(false)
320int(0)
321int(0)
322int(0)
323int(0)
324int(0)
325int(0)
326bool(false)
327bool(false)
328bool(false)
329bool(false)
330bool(false)
331bool(false)
332int(0)
333int(0)
334int(0)
335int(0)
336int(0)
337int(0)
338
339-- Iteration 2 --
340int(0)
341int(0)
342int(0)
343int(0)
344int(0)
345int(0)
346bool(false)
347bool(false)
348bool(false)
349bool(false)
350bool(false)
351bool(false)
352bool(false)
353bool(false)
354bool(false)
355bool(false)
356bool(false)
357bool(false)
358int(0)
359int(0)
360int(0)
361int(0)
362int(0)
363int(0)
364bool(false)
365bool(false)
366bool(false)
367bool(false)
368bool(false)
369bool(false)
370int(0)
371int(0)
372int(0)
373int(0)
374int(0)
375int(0)
376int(0)
377int(0)
378int(0)
379int(0)
380int(0)
381int(0)
382bool(false)
383bool(false)
384bool(false)
385bool(false)
386bool(false)
387bool(false)
388bool(false)
389bool(false)
390bool(false)
391bool(false)
392bool(false)
393bool(false)
394int(0)
395int(0)
396int(0)
397int(0)
398int(0)
399int(0)
400bool(false)
401bool(false)
402bool(false)
403bool(false)
404bool(false)
405bool(false)
406int(0)
407int(0)
408int(0)
409int(0)
410int(0)
411int(0)
412int(0)
413int(0)
414int(0)
415int(0)
416int(0)
417int(0)
418bool(false)
419bool(false)
420bool(false)
421bool(false)
422bool(false)
423bool(false)
424bool(false)
425bool(false)
426bool(false)
427bool(false)
428bool(false)
429bool(false)
430int(0)
431int(0)
432int(0)
433int(0)
434int(0)
435int(0)
436bool(false)
437bool(false)
438bool(false)
439bool(false)
440bool(false)
441bool(false)
442int(0)
443int(0)
444int(0)
445int(0)
446int(0)
447int(0)
448int(0)
449int(0)
450int(0)
451int(0)
452int(0)
453int(0)
454bool(false)
455bool(false)
456bool(false)
457bool(false)
458bool(false)
459bool(false)
460bool(false)
461bool(false)
462bool(false)
463bool(false)
464bool(false)
465bool(false)
466int(0)
467int(0)
468int(0)
469int(0)
470int(0)
471int(0)
472bool(false)
473bool(false)
474bool(false)
475bool(false)
476bool(false)
477bool(false)
478int(0)
479int(0)
480int(0)
481int(0)
482int(0)
483int(0)
484int(0)
485int(0)
486int(0)
487int(0)
488int(0)
489int(0)
490bool(false)
491bool(false)
492bool(false)
493bool(false)
494bool(false)
495bool(false)
496bool(false)
497bool(false)
498bool(false)
499bool(false)
500bool(false)
501bool(false)
502int(0)
503int(0)
504int(0)
505int(0)
506int(0)
507int(0)
508bool(false)
509bool(false)
510bool(false)
511bool(false)
512bool(false)
513bool(false)
514int(0)
515int(0)
516int(0)
517int(0)
518int(0)
519int(0)
520int(0)
521int(0)
522int(0)
523int(0)
524int(0)
525int(0)
526bool(false)
527bool(false)
528bool(false)
529bool(false)
530bool(false)
531bool(false)
532bool(false)
533bool(false)
534bool(false)
535bool(false)
536bool(false)
537bool(false)
538int(0)
539int(0)
540int(0)
541int(0)
542int(0)
543int(0)
544bool(false)
545bool(false)
546bool(false)
547bool(false)
548bool(false)
549bool(false)
550int(0)
551int(0)
552int(0)
553int(0)
554int(0)
555int(0)
556int(0)
557int(0)
558int(0)
559int(0)
560int(0)
561int(0)
562bool(false)
563bool(false)
564bool(false)
565bool(false)
566bool(false)
567bool(false)
568bool(false)
569bool(false)
570bool(false)
571bool(false)
572bool(false)
573bool(false)
574int(0)
575int(0)
576int(0)
577int(0)
578int(0)
579int(0)
580bool(false)
581bool(false)
582bool(false)
583bool(false)
584bool(false)
585bool(false)
586int(0)
587int(0)
588int(0)
589int(0)
590int(0)
591int(0)
592
593-- Iteration 3 --
594int(0)
595int(0)
596int(0)
597int(0)
598int(0)
599int(0)
600int(0)
601int(0)
602int(0)
603int(0)
604int(0)
605int(0)
606bool(false)
607bool(false)
608bool(false)
609bool(false)
610bool(false)
611bool(false)
612int(0)
613int(0)
614int(0)
615int(0)
616int(0)
617int(0)
618bool(false)
619bool(false)
620bool(false)
621bool(false)
622bool(false)
623bool(false)
624int(0)
625int(0)
626int(0)
627int(0)
628int(0)
629int(0)
630int(0)
631int(0)
632int(0)
633int(0)
634int(0)
635int(0)
636int(0)
637int(0)
638int(0)
639int(0)
640int(0)
641int(0)
642bool(false)
643bool(false)
644bool(false)
645bool(false)
646bool(false)
647bool(false)
648int(0)
649int(0)
650int(0)
651int(0)
652int(0)
653int(0)
654bool(false)
655bool(false)
656bool(false)
657bool(false)
658bool(false)
659bool(false)
660int(0)
661int(0)
662int(0)
663int(0)
664int(0)
665int(0)
666int(0)
667int(1)
668int(1)
669int(0)
670int(1)
671int(0)
672int(0)
673int(0)
674int(0)
675int(0)
676int(0)
677int(0)
678bool(false)
679bool(false)
680bool(false)
681bool(false)
682bool(false)
683bool(false)
684int(0)
685int(1)
686int(1)
687int(0)
688int(1)
689int(0)
690bool(false)
691bool(false)
692bool(false)
693bool(false)
694bool(false)
695bool(false)
696int(0)
697int(1)
698int(1)
699int(0)
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)
714bool(false)
715bool(false)
716bool(false)
717bool(false)
718bool(false)
719bool(false)
720int(0)
721int(0)
722int(0)
723int(0)
724int(0)
725int(0)
726bool(false)
727bool(false)
728bool(false)
729bool(false)
730bool(false)
731bool(false)
732int(0)
733int(0)
734int(0)
735int(0)
736int(0)
737int(0)
738int(0)
739int(0)
740int(0)
741int(0)
742int(0)
743int(0)
744int(0)
745int(0)
746int(0)
747int(0)
748int(0)
749int(0)
750bool(false)
751bool(false)
752bool(false)
753bool(false)
754bool(false)
755bool(false)
756int(0)
757int(0)
758int(0)
759int(0)
760int(0)
761int(0)
762bool(false)
763bool(false)
764bool(false)
765bool(false)
766bool(false)
767bool(false)
768int(0)
769int(0)
770int(0)
771int(0)
772int(0)
773int(0)
774int(0)
775int(0)
776int(0)
777int(0)
778int(0)
779int(0)
780int(0)
781int(0)
782int(0)
783int(0)
784int(0)
785int(0)
786bool(false)
787bool(false)
788bool(false)
789bool(false)
790bool(false)
791bool(false)
792int(0)
793int(0)
794int(0)
795int(0)
796int(0)
797int(0)
798bool(false)
799bool(false)
800bool(false)
801bool(false)
802bool(false)
803bool(false)
804int(0)
805int(0)
806int(0)
807int(0)
808int(0)
809int(0)
810int(0)
811int(1)
812int(1)
813int(0)
814int(1)
815int(0)
816int(0)
817int(0)
818int(0)
819int(0)
820int(0)
821int(0)
822bool(false)
823bool(false)
824bool(false)
825bool(false)
826bool(false)
827bool(false)
828int(0)
829int(1)
830int(1)
831int(0)
832int(1)
833int(0)
834bool(false)
835bool(false)
836bool(false)
837bool(false)
838bool(false)
839bool(false)
840int(0)
841int(1)
842int(1)
843int(0)
844int(1)
845int(0)
846
847-- Iteration 4 --
848int(0)
849int(0)
850int(0)
851int(0)
852int(0)
853int(0)
854int(0)
855int(0)
856int(0)
857int(0)
858int(0)
859int(0)
860int(0)
861int(0)
862int(0)
863int(0)
864int(0)
865int(0)
866int(0)
867int(0)
868int(0)
869int(0)
870int(0)
871int(0)
872bool(false)
873bool(false)
874bool(false)
875bool(false)
876bool(false)
877bool(false)
878int(0)
879int(0)
880int(0)
881int(0)
882int(0)
883int(0)
884int(0)
885int(0)
886int(0)
887int(0)
888int(0)
889int(0)
890int(0)
891int(0)
892int(0)
893int(0)
894int(0)
895int(0)
896int(0)
897int(0)
898int(0)
899int(0)
900int(0)
901int(0)
902int(0)
903int(0)
904int(0)
905int(0)
906int(0)
907int(0)
908bool(false)
909bool(false)
910bool(false)
911bool(false)
912bool(false)
913bool(false)
914int(0)
915int(0)
916int(0)
917int(0)
918int(0)
919int(0)
920int(0)
921int(1)
922int(1)
923int(1)
924int(1)
925int(0)
926int(0)
927int(0)
928int(0)
929int(0)
930int(0)
931int(0)
932int(0)
933int(0)
934int(0)
935int(0)
936int(0)
937int(0)
938int(0)
939int(0)
940int(0)
941int(0)
942int(0)
943int(0)
944bool(false)
945bool(false)
946bool(false)
947bool(false)
948bool(false)
949bool(false)
950int(0)
951int(1)
952int(1)
953int(1)
954int(1)
955int(0)
956int(0)
957int(1)
958int(2)
959int(1)
960int(2)
961int(0)
962int(0)
963int(1)
964int(1)
965int(0)
966int(1)
967int(0)
968int(0)
969int(0)
970int(0)
971int(0)
972int(0)
973int(0)
974int(0)
975int(1)
976int(1)
977int(0)
978int(1)
979int(0)
980bool(false)
981bool(false)
982bool(false)
983bool(false)
984bool(false)
985bool(false)
986int(0)
987int(1)
988int(2)
989int(1)
990int(2)
991int(0)
992int(0)
993int(0)
994int(0)
995int(0)
996int(0)
997int(0)
998int(0)
999int(0)
1000int(0)
1001int(0)
1002int(0)
1003int(0)
1004int(0)
1005int(0)
1006int(0)
1007int(0)
1008int(0)
1009int(0)
1010int(0)
1011int(0)
1012int(0)
1013int(0)
1014int(0)
1015int(0)
1016bool(false)
1017bool(false)
1018bool(false)
1019bool(false)
1020bool(false)
1021bool(false)
1022int(0)
1023int(0)
1024int(0)
1025int(0)
1026int(0)
1027int(0)
1028int(0)
1029int(1)
1030int(1)
1031int(1)
1032int(1)
1033int(0)
1034int(0)
1035int(0)
1036int(0)
1037int(0)
1038int(0)
1039int(0)
1040int(0)
1041int(0)
1042int(0)
1043int(0)
1044int(0)
1045int(0)
1046int(0)
1047int(0)
1048int(0)
1049int(0)
1050int(0)
1051int(0)
1052bool(false)
1053bool(false)
1054bool(false)
1055bool(false)
1056bool(false)
1057bool(false)
1058int(0)
1059int(1)
1060int(1)
1061int(1)
1062int(1)
1063int(0)
1064int(0)
1065int(1)
1066int(1)
1067int(1)
1068int(1)
1069int(0)
1070int(0)
1071int(0)
1072int(0)
1073int(0)
1074int(0)
1075int(0)
1076int(0)
1077int(0)
1078int(0)
1079int(0)
1080int(0)
1081int(0)
1082int(0)
1083int(0)
1084int(0)
1085int(0)
1086int(0)
1087int(0)
1088bool(false)
1089bool(false)
1090bool(false)
1091bool(false)
1092bool(false)
1093bool(false)
1094int(0)
1095int(1)
1096int(1)
1097int(1)
1098int(1)
1099int(0)
1100
1101-- Iteration 5 --
1102int(0)
1103int(0)
1104int(0)
1105int(0)
1106int(0)
1107int(0)
1108int(0)
1109int(0)
1110int(0)
1111int(0)
1112int(0)
1113int(0)
1114int(0)
1115int(0)
1116int(0)
1117int(0)
1118int(0)
1119int(0)
1120int(0)
1121int(0)
1122int(0)
1123int(0)
1124int(0)
1125int(0)
1126bool(false)
1127bool(false)
1128bool(false)
1129bool(false)
1130bool(false)
1131bool(false)
1132int(0)
1133int(0)
1134int(0)
1135int(0)
1136int(0)
1137int(0)
1138int(0)
1139int(0)
1140int(0)
1141int(0)
1142int(0)
1143int(0)
1144int(0)
1145int(0)
1146int(0)
1147int(0)
1148int(0)
1149int(0)
1150int(0)
1151int(0)
1152int(0)
1153int(0)
1154int(0)
1155int(0)
1156int(0)
1157int(0)
1158int(0)
1159int(0)
1160int(0)
1161int(0)
1162bool(false)
1163bool(false)
1164bool(false)
1165bool(false)
1166bool(false)
1167bool(false)
1168int(0)
1169int(0)
1170int(0)
1171int(0)
1172int(0)
1173int(0)
1174int(0)
1175int(1)
1176int(2)
1177int(4)
1178int(4)
1179int(0)
1180int(0)
1181int(1)
1182int(2)
1183int(3)
1184int(3)
1185int(0)
1186int(0)
1187int(1)
1188int(2)
1189int(2)
1190int(2)
1191int(0)
1192int(0)
1193int(1)
1194int(1)
1195int(0)
1196int(1)
1197int(0)
1198bool(false)
1199bool(false)
1200bool(false)
1201bool(false)
1202bool(false)
1203bool(false)
1204int(0)
1205int(1)
1206int(2)
1207int(4)
1208int(4)
1209int(0)
1210int(0)
1211int(1)
1212int(2)
1213int(4)
1214int(4)
1215int(0)
1216int(0)
1217int(1)
1218int(2)
1219int(3)
1220int(3)
1221int(0)
1222int(0)
1223int(1)
1224int(2)
1225int(2)
1226int(2)
1227int(0)
1228int(0)
1229int(0)
1230int(0)
1231int(0)
1232int(0)
1233int(0)
1234bool(false)
1235bool(false)
1236bool(false)
1237bool(false)
1238bool(false)
1239bool(false)
1240int(0)
1241int(1)
1242int(2)
1243int(4)
1244int(4)
1245int(0)
1246int(0)
1247int(1)
1248int(2)
1249int(4)
1250int(4)
1251int(0)
1252int(0)
1253int(1)
1254int(2)
1255int(3)
1256int(3)
1257int(0)
1258int(0)
1259int(1)
1260int(2)
1261int(2)
1262int(2)
1263int(0)
1264int(0)
1265int(0)
1266int(0)
1267int(0)
1268int(0)
1269int(0)
1270bool(false)
1271bool(false)
1272bool(false)
1273bool(false)
1274bool(false)
1275bool(false)
1276int(0)
1277int(1)
1278int(2)
1279int(4)
1280int(4)
1281int(0)
1282int(0)
1283int(1)
1284int(2)
1285int(4)
1286int(4)
1287int(0)
1288int(0)
1289int(1)
1290int(2)
1291int(3)
1292int(3)
1293int(0)
1294int(0)
1295int(1)
1296int(2)
1297int(2)
1298int(2)
1299int(0)
1300int(0)
1301int(0)
1302int(0)
1303int(0)
1304int(0)
1305int(0)
1306bool(false)
1307bool(false)
1308bool(false)
1309bool(false)
1310bool(false)
1311bool(false)
1312int(0)
1313int(1)
1314int(2)
1315int(4)
1316int(4)
1317int(0)
1318int(0)
1319int(1)
1320int(2)
1321int(4)
1322int(4)
1323int(0)
1324int(0)
1325int(1)
1326int(2)
1327int(3)
1328int(3)
1329int(0)
1330int(0)
1331int(1)
1332int(2)
1333int(2)
1334int(2)
1335int(0)
1336int(0)
1337int(1)
1338int(1)
1339int(0)
1340int(1)
1341int(0)
1342bool(false)
1343bool(false)
1344bool(false)
1345bool(false)
1346bool(false)
1347bool(false)
1348int(0)
1349int(1)
1350int(2)
1351int(4)
1352int(4)
1353int(0)
1354
1355-- Iteration 6 --
1356int(0)
1357int(0)
1358int(0)
1359int(0)
1360int(0)
1361int(0)
1362int(0)
1363int(0)
1364int(0)
1365int(0)
1366int(0)
1367int(0)
1368int(0)
1369int(0)
1370int(0)
1371int(0)
1372int(0)
1373int(0)
1374int(0)
1375int(0)
1376int(0)
1377int(0)
1378int(0)
1379int(0)
1380bool(false)
1381bool(false)
1382bool(false)
1383bool(false)
1384bool(false)
1385bool(false)
1386int(0)
1387int(0)
1388int(0)
1389int(0)
1390int(0)
1391int(0)
1392int(0)
1393int(0)
1394int(0)
1395int(0)
1396int(0)
1397int(0)
1398int(0)
1399int(0)
1400int(0)
1401int(0)
1402int(0)
1403int(0)
1404int(0)
1405int(0)
1406int(0)
1407int(0)
1408int(0)
1409int(0)
1410int(0)
1411int(0)
1412int(0)
1413int(0)
1414int(0)
1415int(0)
1416bool(false)
1417bool(false)
1418bool(false)
1419bool(false)
1420bool(false)
1421bool(false)
1422int(0)
1423int(0)
1424int(0)
1425int(0)
1426int(0)
1427int(0)
1428int(0)
1429int(0)
1430int(0)
1431int(0)
1432int(0)
1433int(0)
1434int(0)
1435int(0)
1436int(0)
1437int(0)
1438int(0)
1439int(0)
1440int(0)
1441int(0)
1442int(0)
1443int(0)
1444int(0)
1445int(0)
1446int(0)
1447int(0)
1448int(0)
1449int(0)
1450int(0)
1451int(0)
1452bool(false)
1453bool(false)
1454bool(false)
1455bool(false)
1456bool(false)
1457bool(false)
1458int(0)
1459int(0)
1460int(0)
1461int(0)
1462int(0)
1463int(0)
1464int(0)
1465int(0)
1466int(0)
1467int(0)
1468int(0)
1469int(0)
1470int(0)
1471int(0)
1472int(0)
1473int(0)
1474int(0)
1475int(0)
1476int(0)
1477int(0)
1478int(0)
1479int(0)
1480int(0)
1481int(0)
1482int(0)
1483int(0)
1484int(0)
1485int(0)
1486int(0)
1487int(0)
1488bool(false)
1489bool(false)
1490bool(false)
1491bool(false)
1492bool(false)
1493bool(false)
1494int(0)
1495int(0)
1496int(0)
1497int(0)
1498int(0)
1499int(0)
1500int(0)
1501int(0)
1502int(0)
1503int(0)
1504int(0)
1505int(0)
1506int(0)
1507int(0)
1508int(0)
1509int(0)
1510int(0)
1511int(0)
1512int(0)
1513int(0)
1514int(0)
1515int(0)
1516int(0)
1517int(0)
1518int(0)
1519int(0)
1520int(0)
1521int(0)
1522int(0)
1523int(0)
1524bool(false)
1525bool(false)
1526bool(false)
1527bool(false)
1528bool(false)
1529bool(false)
1530int(0)
1531int(0)
1532int(0)
1533int(0)
1534int(0)
1535int(0)
1536int(0)
1537int(0)
1538int(0)
1539int(0)
1540int(0)
1541int(0)
1542int(0)
1543int(0)
1544int(0)
1545int(0)
1546int(0)
1547int(0)
1548int(0)
1549int(0)
1550int(0)
1551int(0)
1552int(0)
1553int(0)
1554int(0)
1555int(0)
1556int(0)
1557int(0)
1558int(0)
1559int(0)
1560bool(false)
1561bool(false)
1562bool(false)
1563bool(false)
1564bool(false)
1565bool(false)
1566int(0)
1567int(0)
1568int(0)
1569int(0)
1570int(0)
1571int(0)
1572int(0)
1573int(0)
1574int(0)
1575int(0)
1576int(0)
1577int(0)
1578int(0)
1579int(0)
1580int(0)
1581int(0)
1582int(0)
1583int(0)
1584int(0)
1585int(0)
1586int(0)
1587int(0)
1588int(0)
1589int(0)
1590int(0)
1591int(0)
1592int(0)
1593int(0)
1594int(0)
1595int(0)
1596bool(false)
1597bool(false)
1598bool(false)
1599bool(false)
1600bool(false)
1601bool(false)
1602int(0)
1603int(0)
1604int(0)
1605int(0)
1606int(0)
1607int(0)
1608
1609-- Iteration 7 --
1610int(0)
1611int(0)
1612int(0)
1613int(0)
1614int(0)
1615int(0)
1616int(0)
1617int(0)
1618int(0)
1619int(0)
1620int(0)
1621int(0)
1622int(0)
1623int(0)
1624int(0)
1625int(0)
1626int(0)
1627int(0)
1628int(0)
1629int(0)
1630int(0)
1631int(0)
1632int(0)
1633int(0)
1634bool(false)
1635bool(false)
1636bool(false)
1637bool(false)
1638bool(false)
1639bool(false)
1640int(0)
1641int(0)
1642int(0)
1643int(0)
1644int(0)
1645int(0)
1646int(0)
1647int(0)
1648int(0)
1649int(0)
1650int(0)
1651int(0)
1652int(0)
1653int(0)
1654int(0)
1655int(0)
1656int(0)
1657int(0)
1658int(0)
1659int(0)
1660int(0)
1661int(0)
1662int(0)
1663int(0)
1664int(0)
1665int(0)
1666int(0)
1667int(0)
1668int(0)
1669int(0)
1670bool(false)
1671bool(false)
1672bool(false)
1673bool(false)
1674bool(false)
1675bool(false)
1676int(0)
1677int(0)
1678int(0)
1679int(0)
1680int(0)
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(1)
1696int(2)
1697int(2)
1698int(2)
1699int(0)
1700int(0)
1701int(1)
1702int(1)
1703int(0)
1704int(1)
1705int(0)
1706bool(false)
1707bool(false)
1708bool(false)
1709bool(false)
1710bool(false)
1711bool(false)
1712int(0)
1713int(1)
1714int(2)
1715int(4)
1716int(4)
1717int(0)
1718int(0)
1719int(1)
1720int(2)
1721int(4)
1722int(4)
1723int(0)
1724int(0)
1725int(1)
1726int(2)
1727int(3)
1728int(3)
1729int(0)
1730int(0)
1731int(1)
1732int(2)
1733int(2)
1734int(2)
1735int(0)
1736int(0)
1737int(0)
1738int(0)
1739int(0)
1740int(0)
1741int(0)
1742bool(false)
1743bool(false)
1744bool(false)
1745bool(false)
1746bool(false)
1747bool(false)
1748int(0)
1749int(1)
1750int(2)
1751int(4)
1752int(4)
1753int(0)
1754int(0)
1755int(1)
1756int(2)
1757int(4)
1758int(4)
1759int(0)
1760int(0)
1761int(1)
1762int(2)
1763int(3)
1764int(3)
1765int(0)
1766int(0)
1767int(1)
1768int(2)
1769int(2)
1770int(2)
1771int(0)
1772int(0)
1773int(0)
1774int(0)
1775int(0)
1776int(0)
1777int(0)
1778bool(false)
1779bool(false)
1780bool(false)
1781bool(false)
1782bool(false)
1783bool(false)
1784int(0)
1785int(1)
1786int(2)
1787int(4)
1788int(4)
1789int(0)
1790int(0)
1791int(1)
1792int(2)
1793int(4)
1794int(4)
1795int(0)
1796int(0)
1797int(1)
1798int(2)
1799int(3)
1800int(3)
1801int(0)
1802int(0)
1803int(1)
1804int(2)
1805int(2)
1806int(2)
1807int(0)
1808int(0)
1809int(0)
1810int(0)
1811int(0)
1812int(0)
1813int(0)
1814bool(false)
1815bool(false)
1816bool(false)
1817bool(false)
1818bool(false)
1819bool(false)
1820int(0)
1821int(1)
1822int(2)
1823int(4)
1824int(4)
1825int(0)
1826int(0)
1827int(1)
1828int(2)
1829int(4)
1830int(4)
1831int(0)
1832int(0)
1833int(1)
1834int(2)
1835int(3)
1836int(3)
1837int(0)
1838int(0)
1839int(1)
1840int(2)
1841int(2)
1842int(2)
1843int(0)
1844int(0)
1845int(1)
1846int(1)
1847int(0)
1848int(1)
1849int(0)
1850bool(false)
1851bool(false)
1852bool(false)
1853bool(false)
1854bool(false)
1855bool(false)
1856int(0)
1857int(1)
1858int(2)
1859int(4)
1860int(4)
1861int(0)
1862
1863-- Iteration 8 --
1864int(0)
1865int(0)
1866int(0)
1867int(0)
1868int(0)
1869int(0)
1870int(0)
1871int(0)
1872int(0)
1873int(0)
1874int(0)
1875int(0)
1876int(0)
1877int(0)
1878int(0)
1879int(0)
1880int(0)
1881int(0)
1882int(0)
1883int(0)
1884int(0)
1885int(0)
1886int(0)
1887int(0)
1888bool(false)
1889bool(false)
1890bool(false)
1891bool(false)
1892bool(false)
1893bool(false)
1894int(0)
1895int(0)
1896int(0)
1897int(0)
1898int(0)
1899int(0)
1900int(0)
1901int(0)
1902int(0)
1903int(0)
1904int(0)
1905int(0)
1906int(0)
1907int(0)
1908int(0)
1909int(0)
1910int(0)
1911int(0)
1912int(0)
1913int(0)
1914int(0)
1915int(0)
1916int(0)
1917int(0)
1918int(0)
1919int(0)
1920int(0)
1921int(0)
1922int(0)
1923int(0)
1924bool(false)
1925bool(false)
1926bool(false)
1927bool(false)
1928bool(false)
1929bool(false)
1930int(0)
1931int(0)
1932int(0)
1933int(0)
1934int(0)
1935int(0)
1936int(0)
1937int(0)
1938int(0)
1939int(0)
1940int(0)
1941int(0)
1942int(0)
1943int(0)
1944int(0)
1945int(0)
1946int(0)
1947int(0)
1948int(0)
1949int(0)
1950int(0)
1951int(0)
1952int(0)
1953int(0)
1954int(0)
1955int(0)
1956int(0)
1957int(0)
1958int(0)
1959int(0)
1960bool(false)
1961bool(false)
1962bool(false)
1963bool(false)
1964bool(false)
1965bool(false)
1966int(0)
1967int(0)
1968int(0)
1969int(0)
1970int(0)
1971int(0)
1972int(0)
1973int(0)
1974int(0)
1975int(0)
1976int(0)
1977int(0)
1978int(0)
1979int(0)
1980int(0)
1981int(0)
1982int(0)
1983int(0)
1984int(0)
1985int(0)
1986int(0)
1987int(0)
1988int(0)
1989int(0)
1990int(0)
1991int(0)
1992int(0)
1993int(0)
1994int(0)
1995int(0)
1996bool(false)
1997bool(false)
1998bool(false)
1999bool(false)
2000bool(false)
2001bool(false)
2002int(0)
2003int(0)
2004int(0)
2005int(0)
2006int(0)
2007int(0)
2008int(0)
2009int(0)
2010int(0)
2011int(0)
2012int(0)
2013int(0)
2014int(0)
2015int(0)
2016int(0)
2017int(0)
2018int(0)
2019int(0)
2020int(0)
2021int(0)
2022int(0)
2023int(0)
2024int(0)
2025int(0)
2026int(0)
2027int(0)
2028int(0)
2029int(0)
2030int(0)
2031int(0)
2032bool(false)
2033bool(false)
2034bool(false)
2035bool(false)
2036bool(false)
2037bool(false)
2038int(0)
2039int(0)
2040int(0)
2041int(0)
2042int(0)
2043int(0)
2044int(0)
2045int(0)
2046int(0)
2047int(0)
2048int(0)
2049int(0)
2050int(0)
2051int(0)
2052int(0)
2053int(0)
2054int(0)
2055int(0)
2056int(0)
2057int(0)
2058int(0)
2059int(0)
2060int(0)
2061int(0)
2062int(0)
2063int(0)
2064int(0)
2065int(0)
2066int(0)
2067int(0)
2068bool(false)
2069bool(false)
2070bool(false)
2071bool(false)
2072bool(false)
2073bool(false)
2074int(0)
2075int(0)
2076int(0)
2077int(0)
2078int(0)
2079int(0)
2080int(0)
2081int(0)
2082int(0)
2083int(0)
2084int(0)
2085int(0)
2086int(0)
2087int(0)
2088int(0)
2089int(0)
2090int(0)
2091int(0)
2092int(0)
2093int(0)
2094int(0)
2095int(0)
2096int(0)
2097int(0)
2098int(0)
2099int(0)
2100int(0)
2101int(0)
2102int(0)
2103int(0)
2104bool(false)
2105bool(false)
2106bool(false)
2107bool(false)
2108bool(false)
2109bool(false)
2110int(0)
2111int(0)
2112int(0)
2113int(0)
2114int(0)
2115int(0)
2116
2117-- Iteration 9 --
2118int(0)
2119int(0)
2120int(0)
2121int(0)
2122int(0)
2123int(0)
2124int(0)
2125int(0)
2126int(0)
2127int(0)
2128int(0)
2129int(0)
2130int(0)
2131int(0)
2132int(0)
2133int(0)
2134int(0)
2135int(0)
2136int(0)
2137int(0)
2138int(0)
2139int(0)
2140int(0)
2141int(0)
2142bool(false)
2143bool(false)
2144bool(false)
2145bool(false)
2146bool(false)
2147bool(false)
2148int(0)
2149int(0)
2150int(0)
2151int(0)
2152int(0)
2153int(0)
2154int(0)
2155int(0)
2156int(0)
2157int(0)
2158int(0)
2159int(0)
2160int(0)
2161int(0)
2162int(0)
2163int(0)
2164int(0)
2165int(0)
2166int(0)
2167int(0)
2168int(0)
2169int(0)
2170int(0)
2171int(0)
2172int(0)
2173int(0)
2174int(0)
2175int(0)
2176int(0)
2177int(0)
2178bool(false)
2179bool(false)
2180bool(false)
2181bool(false)
2182bool(false)
2183bool(false)
2184int(0)
2185int(0)
2186int(0)
2187int(0)
2188int(0)
2189int(0)
2190int(0)
2191int(0)
2192int(0)
2193int(0)
2194int(0)
2195int(0)
2196int(0)
2197int(1)
2198int(2)
2199int(4)
2200int(4)
2201int(0)
2202int(0)
2203int(1)
2204int(2)
2205int(3)
2206int(3)
2207int(0)
2208int(0)
2209int(0)
2210int(0)
2211int(0)
2212int(0)
2213int(0)
2214bool(false)
2215bool(false)
2216bool(false)
2217bool(false)
2218bool(false)
2219bool(false)
2220int(0)
2221int(0)
2222int(0)
2223int(0)
2224int(0)
2225int(0)
2226int(0)
2227int(0)
2228int(0)
2229int(0)
2230int(0)
2231int(0)
2232int(0)
2233int(1)
2234int(2)
2235int(4)
2236int(4)
2237int(0)
2238int(0)
2239int(1)
2240int(2)
2241int(3)
2242int(3)
2243int(0)
2244int(0)
2245int(0)
2246int(0)
2247int(0)
2248int(0)
2249int(0)
2250bool(false)
2251bool(false)
2252bool(false)
2253bool(false)
2254bool(false)
2255bool(false)
2256int(0)
2257int(0)
2258int(0)
2259int(0)
2260int(0)
2261int(0)
2262int(0)
2263int(0)
2264int(0)
2265int(0)
2266int(0)
2267int(0)
2268int(0)
2269int(1)
2270int(2)
2271int(4)
2272int(4)
2273int(0)
2274int(0)
2275int(1)
2276int(2)
2277int(3)
2278int(3)
2279int(0)
2280int(0)
2281int(0)
2282int(0)
2283int(0)
2284int(0)
2285int(0)
2286bool(false)
2287bool(false)
2288bool(false)
2289bool(false)
2290bool(false)
2291bool(false)
2292int(0)
2293int(0)
2294int(0)
2295int(0)
2296int(0)
2297int(0)
2298int(0)
2299int(0)
2300int(0)
2301int(0)
2302int(0)
2303int(0)
2304int(0)
2305int(1)
2306int(2)
2307int(4)
2308int(4)
2309int(0)
2310int(0)
2311int(1)
2312int(2)
2313int(3)
2314int(3)
2315int(0)
2316int(0)
2317int(0)
2318int(0)
2319int(0)
2320int(0)
2321int(0)
2322bool(false)
2323bool(false)
2324bool(false)
2325bool(false)
2326bool(false)
2327bool(false)
2328int(0)
2329int(0)
2330int(0)
2331int(0)
2332int(0)
2333int(0)
2334int(0)
2335int(0)
2336int(0)
2337int(0)
2338int(0)
2339int(0)
2340int(0)
2341int(1)
2342int(2)
2343int(4)
2344int(4)
2345int(0)
2346int(0)
2347int(1)
2348int(2)
2349int(3)
2350int(3)
2351int(0)
2352int(0)
2353int(0)
2354int(0)
2355int(0)
2356int(0)
2357int(0)
2358bool(false)
2359bool(false)
2360bool(false)
2361bool(false)
2362bool(false)
2363bool(false)
2364int(0)
2365int(0)
2366int(0)
2367int(0)
2368int(0)
2369int(0)
2370
2371-- Iteration 10 --
2372int(0)
2373int(0)
2374int(0)
2375int(0)
2376int(0)
2377int(0)
2378int(0)
2379int(0)
2380int(0)
2381int(0)
2382int(0)
2383int(0)
2384int(0)
2385int(0)
2386int(0)
2387int(0)
2388int(0)
2389int(0)
2390int(0)
2391int(0)
2392int(0)
2393int(0)
2394int(0)
2395int(0)
2396bool(false)
2397bool(false)
2398bool(false)
2399bool(false)
2400bool(false)
2401bool(false)
2402int(0)
2403int(0)
2404int(0)
2405int(0)
2406int(0)
2407int(0)
2408int(0)
2409int(0)
2410int(0)
2411int(0)
2412int(0)
2413int(0)
2414int(0)
2415int(0)
2416int(0)
2417int(0)
2418int(0)
2419int(0)
2420int(0)
2421int(0)
2422int(0)
2423int(0)
2424int(0)
2425int(0)
2426int(0)
2427int(0)
2428int(0)
2429int(0)
2430int(0)
2431int(0)
2432bool(false)
2433bool(false)
2434bool(false)
2435bool(false)
2436bool(false)
2437bool(false)
2438int(0)
2439int(0)
2440int(0)
2441int(0)
2442int(0)
2443int(0)
2444int(0)
2445int(1)
2446int(2)
2447int(4)
2448int(4)
2449int(0)
2450int(0)
2451int(1)
2452int(2)
2453int(3)
2454int(3)
2455int(0)
2456int(0)
2457int(1)
2458int(2)
2459int(2)
2460int(2)
2461int(0)
2462int(0)
2463int(0)
2464int(0)
2465int(0)
2466int(0)
2467int(0)
2468bool(false)
2469bool(false)
2470bool(false)
2471bool(false)
2472bool(false)
2473bool(false)
2474int(0)
2475int(1)
2476int(2)
2477int(4)
2478int(4)
2479int(0)
2480int(0)
2481int(1)
2482int(2)
2483int(4)
2484int(4)
2485int(0)
2486int(0)
2487int(1)
2488int(2)
2489int(3)
2490int(3)
2491int(0)
2492int(0)
2493int(1)
2494int(2)
2495int(2)
2496int(2)
2497int(0)
2498int(0)
2499int(0)
2500int(0)
2501int(0)
2502int(0)
2503int(0)
2504bool(false)
2505bool(false)
2506bool(false)
2507bool(false)
2508bool(false)
2509bool(false)
2510int(0)
2511int(1)
2512int(2)
2513int(4)
2514int(4)
2515int(0)
2516int(0)
2517int(1)
2518int(2)
2519int(4)
2520int(4)
2521int(0)
2522int(0)
2523int(1)
2524int(2)
2525int(3)
2526int(3)
2527int(0)
2528int(0)
2529int(1)
2530int(2)
2531int(2)
2532int(2)
2533int(0)
2534int(0)
2535int(0)
2536int(0)
2537int(0)
2538int(0)
2539int(0)
2540bool(false)
2541bool(false)
2542bool(false)
2543bool(false)
2544bool(false)
2545bool(false)
2546int(0)
2547int(1)
2548int(2)
2549int(4)
2550int(4)
2551int(0)
2552int(0)
2553int(1)
2554int(2)
2555int(4)
2556int(4)
2557int(0)
2558int(0)
2559int(1)
2560int(2)
2561int(3)
2562int(3)
2563int(0)
2564int(0)
2565int(1)
2566int(2)
2567int(2)
2568int(2)
2569int(0)
2570int(0)
2571int(0)
2572int(0)
2573int(0)
2574int(0)
2575int(0)
2576bool(false)
2577bool(false)
2578bool(false)
2579bool(false)
2580bool(false)
2581bool(false)
2582int(0)
2583int(1)
2584int(2)
2585int(4)
2586int(4)
2587int(0)
2588int(0)
2589int(1)
2590int(2)
2591int(4)
2592int(4)
2593int(0)
2594int(0)
2595int(1)
2596int(2)
2597int(3)
2598int(3)
2599int(0)
2600int(0)
2601int(1)
2602int(2)
2603int(2)
2604int(2)
2605int(0)
2606int(0)
2607int(0)
2608int(0)
2609int(0)
2610int(0)
2611int(0)
2612bool(false)
2613bool(false)
2614bool(false)
2615bool(false)
2616bool(false)
2617bool(false)
2618int(0)
2619int(1)
2620int(2)
2621int(4)
2622int(4)
2623int(0)
2624
2625-- Iteration 11 --
2626int(0)
2627int(0)
2628int(0)
2629int(0)
2630int(0)
2631int(0)
2632int(0)
2633int(0)
2634int(0)
2635int(0)
2636int(0)
2637int(0)
2638int(0)
2639int(0)
2640int(0)
2641int(0)
2642int(0)
2643int(0)
2644int(0)
2645int(0)
2646int(0)
2647int(0)
2648int(0)
2649int(0)
2650bool(false)
2651bool(false)
2652bool(false)
2653bool(false)
2654bool(false)
2655bool(false)
2656int(0)
2657int(0)
2658int(0)
2659int(0)
2660int(0)
2661int(0)
2662int(0)
2663int(0)
2664int(0)
2665int(0)
2666int(0)
2667int(0)
2668int(0)
2669int(0)
2670int(0)
2671int(0)
2672int(0)
2673int(0)
2674int(0)
2675int(0)
2676int(0)
2677int(0)
2678int(0)
2679int(0)
2680int(0)
2681int(0)
2682int(0)
2683int(0)
2684int(0)
2685int(0)
2686bool(false)
2687bool(false)
2688bool(false)
2689bool(false)
2690bool(false)
2691bool(false)
2692int(0)
2693int(0)
2694int(0)
2695int(0)
2696int(0)
2697int(0)
2698int(0)
2699int(1)
2700int(2)
2701int(4)
2702int(4)
2703int(0)
2704int(0)
2705int(1)
2706int(2)
2707int(3)
2708int(3)
2709int(0)
2710int(0)
2711int(1)
2712int(2)
2713int(2)
2714int(2)
2715int(0)
2716int(0)
2717int(0)
2718int(0)
2719int(0)
2720int(0)
2721int(0)
2722bool(false)
2723bool(false)
2724bool(false)
2725bool(false)
2726bool(false)
2727bool(false)
2728int(0)
2729int(1)
2730int(2)
2731int(4)
2732int(4)
2733int(0)
2734int(0)
2735int(1)
2736int(2)
2737int(4)
2738int(4)
2739int(0)
2740int(0)
2741int(1)
2742int(2)
2743int(3)
2744int(3)
2745int(0)
2746int(0)
2747int(1)
2748int(2)
2749int(2)
2750int(2)
2751int(0)
2752int(0)
2753int(0)
2754int(0)
2755int(0)
2756int(0)
2757int(0)
2758bool(false)
2759bool(false)
2760bool(false)
2761bool(false)
2762bool(false)
2763bool(false)
2764int(0)
2765int(1)
2766int(2)
2767int(4)
2768int(4)
2769int(0)
2770int(0)
2771int(1)
2772int(2)
2773int(4)
2774int(4)
2775int(0)
2776int(0)
2777int(1)
2778int(2)
2779int(3)
2780int(3)
2781int(0)
2782int(0)
2783int(1)
2784int(2)
2785int(2)
2786int(2)
2787int(0)
2788int(0)
2789int(0)
2790int(0)
2791int(0)
2792int(0)
2793int(0)
2794bool(false)
2795bool(false)
2796bool(false)
2797bool(false)
2798bool(false)
2799bool(false)
2800int(0)
2801int(1)
2802int(2)
2803int(4)
2804int(4)
2805int(0)
2806int(0)
2807int(1)
2808int(2)
2809int(4)
2810int(4)
2811int(0)
2812int(0)
2813int(1)
2814int(2)
2815int(3)
2816int(3)
2817int(0)
2818int(0)
2819int(1)
2820int(2)
2821int(2)
2822int(2)
2823int(0)
2824int(0)
2825int(0)
2826int(0)
2827int(0)
2828int(0)
2829int(0)
2830bool(false)
2831bool(false)
2832bool(false)
2833bool(false)
2834bool(false)
2835bool(false)
2836int(0)
2837int(1)
2838int(2)
2839int(4)
2840int(4)
2841int(0)
2842int(0)
2843int(1)
2844int(2)
2845int(4)
2846int(4)
2847int(0)
2848int(0)
2849int(1)
2850int(2)
2851int(3)
2852int(3)
2853int(0)
2854int(0)
2855int(1)
2856int(2)
2857int(2)
2858int(2)
2859int(0)
2860int(0)
2861int(0)
2862int(0)
2863int(0)
2864int(0)
2865int(0)
2866bool(false)
2867bool(false)
2868bool(false)
2869bool(false)
2870bool(false)
2871bool(false)
2872int(0)
2873int(1)
2874int(2)
2875int(4)
2876int(4)
2877int(0)
2878Done
2879