1--TEST--
2Test strcspn() function : usage variations - with 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 varying start and len arguments
14*/
15
16echo "*** Testing strcspn() : with different start and len values ***\n";
17
18// initialing required variables
19// initialing required variables
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\xaworld",
32                   );
33
34// defining array of mask strings
35$mask_array = array(
36                    "",
37                    '',
38                    "\n\trsti \l",
39                    "\t",
40                    "t\ ",
41                    "\t\i\100\xa"
42                   );
43
44//defining array of start values
45$start_array = array(
46		    0,
47		    1,
48		    2,
49		    -1,
50		    2147483647,  // max positive integer
51		    -2147483648  // min negative integer
52                   );
53
54//defining array of len values
55$len_array = array(
56		    0,
57		    1,
58		    2,
59		    -1,
60		    2147483647,  // max positive integer
61		    -2147483648  // min negative integer
62                   );
63
64
65// loop through each element of the arrays for str,mask,start and len arguments
66
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( strcspn($str,$mask,$start,$len) );
74      }
75    }
76  }
77  $count++;
78}
79
80echo "Done"
81?>
82--EXPECT--
83*** Testing strcspn() : 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)
302
303-- Iteration 2 --
304int(0)
305int(0)
306int(0)
307int(0)
308int(0)
309int(0)
310bool(false)
311bool(false)
312bool(false)
313bool(false)
314bool(false)
315bool(false)
316bool(false)
317bool(false)
318bool(false)
319bool(false)
320bool(false)
321bool(false)
322int(0)
323int(0)
324int(0)
325int(0)
326int(0)
327int(0)
328bool(false)
329bool(false)
330bool(false)
331bool(false)
332bool(false)
333bool(false)
334int(0)
335int(0)
336int(0)
337int(0)
338int(0)
339int(0)
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)
520
521-- Iteration 3 --
522int(0)
523int(1)
524int(1)
525int(0)
526int(1)
527int(0)
528int(0)
529int(0)
530int(0)
531int(0)
532int(0)
533int(0)
534bool(false)
535bool(false)
536bool(false)
537bool(false)
538bool(false)
539bool(false)
540int(0)
541int(1)
542int(1)
543int(0)
544int(1)
545int(0)
546bool(false)
547bool(false)
548bool(false)
549bool(false)
550bool(false)
551bool(false)
552int(0)
553int(1)
554int(1)
555int(0)
556int(1)
557int(0)
558int(0)
559int(1)
560int(1)
561int(0)
562int(1)
563int(0)
564int(0)
565int(0)
566int(0)
567int(0)
568int(0)
569int(0)
570bool(false)
571bool(false)
572bool(false)
573bool(false)
574bool(false)
575bool(false)
576int(0)
577int(1)
578int(1)
579int(0)
580int(1)
581int(0)
582bool(false)
583bool(false)
584bool(false)
585bool(false)
586bool(false)
587bool(false)
588int(0)
589int(1)
590int(1)
591int(0)
592int(1)
593int(0)
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(1)
632int(1)
633int(0)
634int(1)
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(1)
650int(1)
651int(0)
652int(1)
653int(0)
654bool(false)
655bool(false)
656bool(false)
657bool(false)
658bool(false)
659bool(false)
660int(0)
661int(1)
662int(1)
663int(0)
664int(1)
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)
738
739-- Iteration 4 --
740int(0)
741int(1)
742int(2)
743int(1)
744int(2)
745int(0)
746int(0)
747int(1)
748int(1)
749int(0)
750int(1)
751int(0)
752int(0)
753int(0)
754int(0)
755int(0)
756int(0)
757int(0)
758int(0)
759int(1)
760int(1)
761int(0)
762int(1)
763int(0)
764bool(false)
765bool(false)
766bool(false)
767bool(false)
768bool(false)
769bool(false)
770int(0)
771int(1)
772int(2)
773int(1)
774int(2)
775int(0)
776int(0)
777int(1)
778int(2)
779int(1)
780int(2)
781int(0)
782int(0)
783int(1)
784int(1)
785int(0)
786int(1)
787int(0)
788int(0)
789int(0)
790int(0)
791int(0)
792int(0)
793int(0)
794int(0)
795int(1)
796int(1)
797int(0)
798int(1)
799int(0)
800bool(false)
801bool(false)
802bool(false)
803bool(false)
804bool(false)
805bool(false)
806int(0)
807int(1)
808int(2)
809int(1)
810int(2)
811int(0)
812int(0)
813int(0)
814int(0)
815int(0)
816int(0)
817int(0)
818int(0)
819int(1)
820int(1)
821int(0)
822int(1)
823int(0)
824int(0)
825int(0)
826int(0)
827int(0)
828int(0)
829int(0)
830int(0)
831int(1)
832int(1)
833int(0)
834int(1)
835int(0)
836bool(false)
837bool(false)
838bool(false)
839bool(false)
840bool(false)
841bool(false)
842int(0)
843int(0)
844int(0)
845int(0)
846int(0)
847int(0)
848int(0)
849int(1)
850int(2)
851int(1)
852int(2)
853int(0)
854int(0)
855int(1)
856int(1)
857int(0)
858int(1)
859int(0)
860int(0)
861int(0)
862int(0)
863int(0)
864int(0)
865int(0)
866int(0)
867int(1)
868int(1)
869int(0)
870int(1)
871int(0)
872bool(false)
873bool(false)
874bool(false)
875bool(false)
876bool(false)
877bool(false)
878int(0)
879int(1)
880int(2)
881int(1)
882int(2)
883int(0)
884int(0)
885int(0)
886int(0)
887int(0)
888int(0)
889int(0)
890int(0)
891int(1)
892int(1)
893int(0)
894int(1)
895int(0)
896int(0)
897int(0)
898int(0)
899int(0)
900int(0)
901int(0)
902int(0)
903int(1)
904int(1)
905int(0)
906int(1)
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(0)
922int(0)
923int(0)
924int(0)
925int(0)
926int(0)
927int(1)
928int(1)
929int(0)
930int(1)
931int(0)
932int(0)
933int(0)
934int(0)
935int(0)
936int(0)
937int(0)
938int(0)
939int(1)
940int(1)
941int(0)
942int(1)
943int(0)
944bool(false)
945bool(false)
946bool(false)
947bool(false)
948bool(false)
949bool(false)
950int(0)
951int(0)
952int(0)
953int(0)
954int(0)
955int(0)
956
957-- Iteration 5 --
958int(0)
959int(1)
960int(2)
961int(23)
962int(24)
963int(0)
964int(0)
965int(1)
966int(2)
967int(22)
968int(23)
969int(0)
970int(0)
971int(1)
972int(2)
973int(21)
974int(22)
975int(0)
976int(0)
977int(1)
978int(1)
979int(0)
980int(1)
981int(0)
982bool(false)
983bool(false)
984bool(false)
985bool(false)
986bool(false)
987bool(false)
988int(0)
989int(1)
990int(2)
991int(23)
992int(24)
993int(0)
994int(0)
995int(1)
996int(2)
997int(23)
998int(24)
999int(0)
1000int(0)
1001int(1)
1002int(2)
1003int(22)
1004int(23)
1005int(0)
1006int(0)
1007int(1)
1008int(2)
1009int(21)
1010int(22)
1011int(0)
1012int(0)
1013int(1)
1014int(1)
1015int(0)
1016int(1)
1017int(0)
1018bool(false)
1019bool(false)
1020bool(false)
1021bool(false)
1022bool(false)
1023bool(false)
1024int(0)
1025int(1)
1026int(2)
1027int(23)
1028int(24)
1029int(0)
1030int(0)
1031int(1)
1032int(2)
1033int(2)
1034int(2)
1035int(0)
1036int(0)
1037int(1)
1038int(1)
1039int(1)
1040int(1)
1041int(0)
1042int(0)
1043int(0)
1044int(0)
1045int(0)
1046int(0)
1047int(0)
1048int(0)
1049int(0)
1050int(0)
1051int(0)
1052int(0)
1053int(0)
1054bool(false)
1055bool(false)
1056bool(false)
1057bool(false)
1058bool(false)
1059bool(false)
1060int(0)
1061int(1)
1062int(2)
1063int(2)
1064int(2)
1065int(0)
1066int(0)
1067int(1)
1068int(2)
1069int(5)
1070int(5)
1071int(0)
1072int(0)
1073int(1)
1074int(2)
1075int(4)
1076int(4)
1077int(0)
1078int(0)
1079int(1)
1080int(2)
1081int(3)
1082int(3)
1083int(0)
1084int(0)
1085int(1)
1086int(1)
1087int(0)
1088int(1)
1089int(0)
1090bool(false)
1091bool(false)
1092bool(false)
1093bool(false)
1094bool(false)
1095bool(false)
1096int(0)
1097int(1)
1098int(2)
1099int(5)
1100int(5)
1101int(0)
1102int(0)
1103int(1)
1104int(2)
1105int(23)
1106int(24)
1107int(0)
1108int(0)
1109int(1)
1110int(2)
1111int(22)
1112int(23)
1113int(0)
1114int(0)
1115int(1)
1116int(2)
1117int(21)
1118int(22)
1119int(0)
1120int(0)
1121int(1)
1122int(1)
1123int(0)
1124int(1)
1125int(0)
1126bool(false)
1127bool(false)
1128bool(false)
1129bool(false)
1130bool(false)
1131bool(false)
1132int(0)
1133int(1)
1134int(2)
1135int(23)
1136int(24)
1137int(0)
1138int(0)
1139int(1)
1140int(2)
1141int(5)
1142int(5)
1143int(0)
1144int(0)
1145int(1)
1146int(2)
1147int(4)
1148int(4)
1149int(0)
1150int(0)
1151int(1)
1152int(2)
1153int(3)
1154int(3)
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(1)
1170int(2)
1171int(5)
1172int(5)
1173int(0)
1174
1175-- Iteration 6 --
1176int(0)
1177int(1)
1178int(2)
1179int(19)
1180int(20)
1181int(0)
1182int(0)
1183int(1)
1184int(2)
1185int(18)
1186int(19)
1187int(0)
1188int(0)
1189int(1)
1190int(2)
1191int(17)
1192int(18)
1193int(0)
1194int(0)
1195int(1)
1196int(1)
1197int(0)
1198int(1)
1199int(0)
1200bool(false)
1201bool(false)
1202bool(false)
1203bool(false)
1204bool(false)
1205bool(false)
1206int(0)
1207int(1)
1208int(2)
1209int(19)
1210int(20)
1211int(0)
1212int(0)
1213int(1)
1214int(2)
1215int(19)
1216int(20)
1217int(0)
1218int(0)
1219int(1)
1220int(2)
1221int(18)
1222int(19)
1223int(0)
1224int(0)
1225int(1)
1226int(2)
1227int(17)
1228int(18)
1229int(0)
1230int(0)
1231int(1)
1232int(1)
1233int(0)
1234int(1)
1235int(0)
1236bool(false)
1237bool(false)
1238bool(false)
1239bool(false)
1240bool(false)
1241bool(false)
1242int(0)
1243int(1)
1244int(2)
1245int(19)
1246int(20)
1247int(0)
1248int(0)
1249int(1)
1250int(2)
1251int(6)
1252int(6)
1253int(0)
1254int(0)
1255int(1)
1256int(2)
1257int(5)
1258int(5)
1259int(0)
1260int(0)
1261int(1)
1262int(2)
1263int(4)
1264int(4)
1265int(0)
1266int(0)
1267int(1)
1268int(1)
1269int(0)
1270int(1)
1271int(0)
1272bool(false)
1273bool(false)
1274bool(false)
1275bool(false)
1276bool(false)
1277bool(false)
1278int(0)
1279int(1)
1280int(2)
1281int(6)
1282int(6)
1283int(0)
1284int(0)
1285int(1)
1286int(2)
1287int(16)
1288int(16)
1289int(0)
1290int(0)
1291int(1)
1292int(2)
1293int(15)
1294int(15)
1295int(0)
1296int(0)
1297int(1)
1298int(2)
1299int(14)
1300int(14)
1301int(0)
1302int(0)
1303int(1)
1304int(1)
1305int(0)
1306int(1)
1307int(0)
1308bool(false)
1309bool(false)
1310bool(false)
1311bool(false)
1312bool(false)
1313bool(false)
1314int(0)
1315int(1)
1316int(2)
1317int(16)
1318int(16)
1319int(0)
1320int(0)
1321int(1)
1322int(2)
1323int(19)
1324int(20)
1325int(0)
1326int(0)
1327int(1)
1328int(2)
1329int(18)
1330int(19)
1331int(0)
1332int(0)
1333int(1)
1334int(2)
1335int(17)
1336int(18)
1337int(0)
1338int(0)
1339int(1)
1340int(1)
1341int(0)
1342int(1)
1343int(0)
1344bool(false)
1345bool(false)
1346bool(false)
1347bool(false)
1348bool(false)
1349bool(false)
1350int(0)
1351int(1)
1352int(2)
1353int(19)
1354int(20)
1355int(0)
1356int(0)
1357int(1)
1358int(2)
1359int(16)
1360int(16)
1361int(0)
1362int(0)
1363int(1)
1364int(2)
1365int(15)
1366int(15)
1367int(0)
1368int(0)
1369int(1)
1370int(2)
1371int(14)
1372int(14)
1373int(0)
1374int(0)
1375int(1)
1376int(1)
1377int(0)
1378int(1)
1379int(0)
1380bool(false)
1381bool(false)
1382bool(false)
1383bool(false)
1384bool(false)
1385bool(false)
1386int(0)
1387int(1)
1388int(2)
1389int(16)
1390int(16)
1391int(0)
1392
1393-- Iteration 7 --
1394int(0)
1395int(1)
1396int(2)
1397int(5)
1398int(5)
1399int(0)
1400int(0)
1401int(1)
1402int(2)
1403int(4)
1404int(4)
1405int(0)
1406int(0)
1407int(1)
1408int(2)
1409int(3)
1410int(3)
1411int(0)
1412int(0)
1413int(1)
1414int(1)
1415int(0)
1416int(1)
1417int(0)
1418bool(false)
1419bool(false)
1420bool(false)
1421bool(false)
1422bool(false)
1423bool(false)
1424int(0)
1425int(1)
1426int(2)
1427int(5)
1428int(5)
1429int(0)
1430int(0)
1431int(1)
1432int(2)
1433int(5)
1434int(5)
1435int(0)
1436int(0)
1437int(1)
1438int(2)
1439int(4)
1440int(4)
1441int(0)
1442int(0)
1443int(1)
1444int(2)
1445int(3)
1446int(3)
1447int(0)
1448int(0)
1449int(1)
1450int(1)
1451int(0)
1452int(1)
1453int(0)
1454bool(false)
1455bool(false)
1456bool(false)
1457bool(false)
1458bool(false)
1459bool(false)
1460int(0)
1461int(1)
1462int(2)
1463int(5)
1464int(5)
1465int(0)
1466int(0)
1467int(1)
1468int(2)
1469int(2)
1470int(2)
1471int(0)
1472int(0)
1473int(1)
1474int(1)
1475int(1)
1476int(1)
1477int(0)
1478int(0)
1479int(0)
1480int(0)
1481int(0)
1482int(0)
1483int(0)
1484int(0)
1485int(0)
1486int(0)
1487int(0)
1488int(0)
1489int(0)
1490bool(false)
1491bool(false)
1492bool(false)
1493bool(false)
1494bool(false)
1495bool(false)
1496int(0)
1497int(1)
1498int(2)
1499int(2)
1500int(2)
1501int(0)
1502int(0)
1503int(1)
1504int(2)
1505int(11)
1506int(12)
1507int(0)
1508int(0)
1509int(1)
1510int(2)
1511int(10)
1512int(11)
1513int(0)
1514int(0)
1515int(1)
1516int(2)
1517int(9)
1518int(10)
1519int(0)
1520int(0)
1521int(1)
1522int(1)
1523int(0)
1524int(1)
1525int(0)
1526bool(false)
1527bool(false)
1528bool(false)
1529bool(false)
1530bool(false)
1531bool(false)
1532int(0)
1533int(1)
1534int(2)
1535int(11)
1536int(12)
1537int(0)
1538int(0)
1539int(1)
1540int(2)
1541int(11)
1542int(12)
1543int(0)
1544int(0)
1545int(1)
1546int(2)
1547int(10)
1548int(11)
1549int(0)
1550int(0)
1551int(1)
1552int(2)
1553int(9)
1554int(10)
1555int(0)
1556int(0)
1557int(1)
1558int(1)
1559int(0)
1560int(1)
1561int(0)
1562bool(false)
1563bool(false)
1564bool(false)
1565bool(false)
1566bool(false)
1567bool(false)
1568int(0)
1569int(1)
1570int(2)
1571int(11)
1572int(12)
1573int(0)
1574int(0)
1575int(1)
1576int(2)
1577int(11)
1578int(11)
1579int(0)
1580int(0)
1581int(1)
1582int(2)
1583int(10)
1584int(10)
1585int(0)
1586int(0)
1587int(1)
1588int(2)
1589int(9)
1590int(9)
1591int(0)
1592int(0)
1593int(0)
1594int(0)
1595int(0)
1596int(0)
1597int(0)
1598bool(false)
1599bool(false)
1600bool(false)
1601bool(false)
1602bool(false)
1603bool(false)
1604int(0)
1605int(1)
1606int(2)
1607int(11)
1608int(11)
1609int(0)
1610
1611-- Iteration 8 --
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)
1634int(0)
1635int(0)
1636bool(false)
1637bool(false)
1638bool(false)
1639bool(false)
1640bool(false)
1641bool(false)
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)
1670int(0)
1671int(0)
1672bool(false)
1673bool(false)
1674bool(false)
1675bool(false)
1676bool(false)
1677bool(false)
1678int(0)
1679int(0)
1680int(0)
1681int(0)
1682int(0)
1683int(0)
1684int(0)
1685int(1)
1686int(2)
1687int(1)
1688int(2)
1689int(0)
1690int(0)
1691int(1)
1692int(1)
1693int(0)
1694int(1)
1695int(0)
1696int(0)
1697int(0)
1698int(0)
1699int(0)
1700int(0)
1701int(0)
1702int(0)
1703int(1)
1704int(1)
1705int(0)
1706int(1)
1707int(0)
1708bool(false)
1709bool(false)
1710bool(false)
1711bool(false)
1712bool(false)
1713bool(false)
1714int(0)
1715int(1)
1716int(2)
1717int(1)
1718int(2)
1719int(0)
1720int(0)
1721int(1)
1722int(2)
1723int(1)
1724int(2)
1725int(0)
1726int(0)
1727int(1)
1728int(1)
1729int(0)
1730int(1)
1731int(0)
1732int(0)
1733int(0)
1734int(0)
1735int(0)
1736int(0)
1737int(0)
1738int(0)
1739int(1)
1740int(1)
1741int(0)
1742int(1)
1743int(0)
1744bool(false)
1745bool(false)
1746bool(false)
1747bool(false)
1748bool(false)
1749bool(false)
1750int(0)
1751int(1)
1752int(2)
1753int(1)
1754int(2)
1755int(0)
1756int(0)
1757int(1)
1758int(2)
1759int(1)
1760int(2)
1761int(0)
1762int(0)
1763int(1)
1764int(1)
1765int(0)
1766int(1)
1767int(0)
1768int(0)
1769int(0)
1770int(0)
1771int(0)
1772int(0)
1773int(0)
1774int(0)
1775int(1)
1776int(1)
1777int(0)
1778int(1)
1779int(0)
1780bool(false)
1781bool(false)
1782bool(false)
1783bool(false)
1784bool(false)
1785bool(false)
1786int(0)
1787int(1)
1788int(2)
1789int(1)
1790int(2)
1791int(0)
1792int(0)
1793int(1)
1794int(2)
1795int(1)
1796int(2)
1797int(0)
1798int(0)
1799int(1)
1800int(1)
1801int(0)
1802int(1)
1803int(0)
1804int(0)
1805int(0)
1806int(0)
1807int(0)
1808int(0)
1809int(0)
1810int(0)
1811int(1)
1812int(1)
1813int(0)
1814int(1)
1815int(0)
1816bool(false)
1817bool(false)
1818bool(false)
1819bool(false)
1820bool(false)
1821bool(false)
1822int(0)
1823int(1)
1824int(2)
1825int(1)
1826int(2)
1827int(0)
1828
1829-- Iteration 9 --
1830int(0)
1831int(0)
1832int(0)
1833int(0)
1834int(0)
1835int(0)
1836int(0)
1837int(1)
1838int(2)
1839int(5)
1840int(5)
1841int(0)
1842int(0)
1843int(1)
1844int(2)
1845int(4)
1846int(4)
1847int(0)
1848int(0)
1849int(0)
1850int(0)
1851int(0)
1852int(0)
1853int(0)
1854bool(false)
1855bool(false)
1856bool(false)
1857bool(false)
1858bool(false)
1859bool(false)
1860int(0)
1861int(0)
1862int(0)
1863int(0)
1864int(0)
1865int(0)
1866int(0)
1867int(0)
1868int(0)
1869int(0)
1870int(0)
1871int(0)
1872int(0)
1873int(1)
1874int(2)
1875int(5)
1876int(5)
1877int(0)
1878int(0)
1879int(1)
1880int(2)
1881int(4)
1882int(4)
1883int(0)
1884int(0)
1885int(0)
1886int(0)
1887int(0)
1888int(0)
1889int(0)
1890bool(false)
1891bool(false)
1892bool(false)
1893bool(false)
1894bool(false)
1895bool(false)
1896int(0)
1897int(0)
1898int(0)
1899int(0)
1900int(0)
1901int(0)
1902int(0)
1903int(1)
1904int(2)
1905int(3)
1906int(3)
1907int(0)
1908int(0)
1909int(1)
1910int(2)
1911int(2)
1912int(2)
1913int(0)
1914int(0)
1915int(1)
1916int(1)
1917int(1)
1918int(1)
1919int(0)
1920int(0)
1921int(1)
1922int(1)
1923int(0)
1924int(1)
1925int(0)
1926bool(false)
1927bool(false)
1928bool(false)
1929bool(false)
1930bool(false)
1931bool(false)
1932int(0)
1933int(1)
1934int(2)
1935int(3)
1936int(3)
1937int(0)
1938int(0)
1939int(1)
1940int(2)
1941int(12)
1942int(13)
1943int(0)
1944int(0)
1945int(1)
1946int(2)
1947int(11)
1948int(12)
1949int(0)
1950int(0)
1951int(1)
1952int(2)
1953int(10)
1954int(11)
1955int(0)
1956int(0)
1957int(1)
1958int(1)
1959int(0)
1960int(1)
1961int(0)
1962bool(false)
1963bool(false)
1964bool(false)
1965bool(false)
1966bool(false)
1967bool(false)
1968int(0)
1969int(1)
1970int(2)
1971int(12)
1972int(13)
1973int(0)
1974int(0)
1975int(1)
1976int(2)
1977int(12)
1978int(13)
1979int(0)
1980int(0)
1981int(1)
1982int(2)
1983int(11)
1984int(12)
1985int(0)
1986int(0)
1987int(1)
1988int(2)
1989int(10)
1990int(11)
1991int(0)
1992int(0)
1993int(1)
1994int(1)
1995int(0)
1996int(1)
1997int(0)
1998bool(false)
1999bool(false)
2000bool(false)
2001bool(false)
2002bool(false)
2003bool(false)
2004int(0)
2005int(1)
2006int(2)
2007int(12)
2008int(13)
2009int(0)
2010int(0)
2011int(1)
2012int(2)
2013int(12)
2014int(13)
2015int(0)
2016int(0)
2017int(1)
2018int(2)
2019int(11)
2020int(12)
2021int(0)
2022int(0)
2023int(1)
2024int(2)
2025int(10)
2026int(11)
2027int(0)
2028int(0)
2029int(1)
2030int(1)
2031int(0)
2032int(1)
2033int(0)
2034bool(false)
2035bool(false)
2036bool(false)
2037bool(false)
2038bool(false)
2039bool(false)
2040int(0)
2041int(1)
2042int(2)
2043int(12)
2044int(13)
2045int(0)
2046
2047-- Iteration 10 --
2048int(0)
2049int(1)
2050int(2)
2051int(5)
2052int(5)
2053int(0)
2054int(0)
2055int(1)
2056int(2)
2057int(4)
2058int(4)
2059int(0)
2060int(0)
2061int(1)
2062int(2)
2063int(3)
2064int(3)
2065int(0)
2066int(0)
2067int(1)
2068int(1)
2069int(0)
2070int(1)
2071int(0)
2072bool(false)
2073bool(false)
2074bool(false)
2075bool(false)
2076bool(false)
2077bool(false)
2078int(0)
2079int(1)
2080int(2)
2081int(5)
2082int(5)
2083int(0)
2084int(0)
2085int(1)
2086int(2)
2087int(5)
2088int(5)
2089int(0)
2090int(0)
2091int(1)
2092int(2)
2093int(4)
2094int(4)
2095int(0)
2096int(0)
2097int(1)
2098int(2)
2099int(3)
2100int(3)
2101int(0)
2102int(0)
2103int(1)
2104int(1)
2105int(0)
2106int(1)
2107int(0)
2108bool(false)
2109bool(false)
2110bool(false)
2111bool(false)
2112bool(false)
2113bool(false)
2114int(0)
2115int(1)
2116int(2)
2117int(5)
2118int(5)
2119int(0)
2120int(0)
2121int(1)
2122int(2)
2123int(2)
2124int(2)
2125int(0)
2126int(0)
2127int(1)
2128int(1)
2129int(1)
2130int(1)
2131int(0)
2132int(0)
2133int(0)
2134int(0)
2135int(0)
2136int(0)
2137int(0)
2138int(0)
2139int(1)
2140int(1)
2141int(0)
2142int(1)
2143int(0)
2144bool(false)
2145bool(false)
2146bool(false)
2147bool(false)
2148bool(false)
2149bool(false)
2150int(0)
2151int(1)
2152int(2)
2153int(2)
2154int(2)
2155int(0)
2156int(0)
2157int(1)
2158int(2)
2159int(10)
2160int(11)
2161int(0)
2162int(0)
2163int(1)
2164int(2)
2165int(9)
2166int(10)
2167int(0)
2168int(0)
2169int(1)
2170int(2)
2171int(8)
2172int(9)
2173int(0)
2174int(0)
2175int(1)
2176int(1)
2177int(0)
2178int(1)
2179int(0)
2180bool(false)
2181bool(false)
2182bool(false)
2183bool(false)
2184bool(false)
2185bool(false)
2186int(0)
2187int(1)
2188int(2)
2189int(10)
2190int(11)
2191int(0)
2192int(0)
2193int(1)
2194int(2)
2195int(10)
2196int(11)
2197int(0)
2198int(0)
2199int(1)
2200int(2)
2201int(9)
2202int(10)
2203int(0)
2204int(0)
2205int(1)
2206int(2)
2207int(8)
2208int(9)
2209int(0)
2210int(0)
2211int(1)
2212int(1)
2213int(0)
2214int(1)
2215int(0)
2216bool(false)
2217bool(false)
2218bool(false)
2219bool(false)
2220bool(false)
2221bool(false)
2222int(0)
2223int(1)
2224int(2)
2225int(10)
2226int(11)
2227int(0)
2228int(0)
2229int(1)
2230int(2)
2231int(10)
2232int(11)
2233int(0)
2234int(0)
2235int(1)
2236int(2)
2237int(9)
2238int(10)
2239int(0)
2240int(0)
2241int(1)
2242int(2)
2243int(8)
2244int(9)
2245int(0)
2246int(0)
2247int(1)
2248int(1)
2249int(0)
2250int(1)
2251int(0)
2252bool(false)
2253bool(false)
2254bool(false)
2255bool(false)
2256bool(false)
2257bool(false)
2258int(0)
2259int(1)
2260int(2)
2261int(10)
2262int(11)
2263int(0)
2264
2265-- Iteration 11 --
2266int(0)
2267int(1)
2268int(2)
2269int(5)
2270int(5)
2271int(0)
2272int(0)
2273int(1)
2274int(2)
2275int(4)
2276int(4)
2277int(0)
2278int(0)
2279int(1)
2280int(2)
2281int(3)
2282int(3)
2283int(0)
2284int(0)
2285int(1)
2286int(1)
2287int(0)
2288int(1)
2289int(0)
2290bool(false)
2291bool(false)
2292bool(false)
2293bool(false)
2294bool(false)
2295bool(false)
2296int(0)
2297int(1)
2298int(2)
2299int(5)
2300int(5)
2301int(0)
2302int(0)
2303int(1)
2304int(2)
2305int(5)
2306int(5)
2307int(0)
2308int(0)
2309int(1)
2310int(2)
2311int(4)
2312int(4)
2313int(0)
2314int(0)
2315int(1)
2316int(2)
2317int(3)
2318int(3)
2319int(0)
2320int(0)
2321int(1)
2322int(1)
2323int(0)
2324int(1)
2325int(0)
2326bool(false)
2327bool(false)
2328bool(false)
2329bool(false)
2330bool(false)
2331bool(false)
2332int(0)
2333int(1)
2334int(2)
2335int(5)
2336int(5)
2337int(0)
2338int(0)
2339int(1)
2340int(2)
2341int(2)
2342int(2)
2343int(0)
2344int(0)
2345int(1)
2346int(1)
2347int(1)
2348int(1)
2349int(0)
2350int(0)
2351int(0)
2352int(0)
2353int(0)
2354int(0)
2355int(0)
2356int(0)
2357int(1)
2358int(1)
2359int(0)
2360int(1)
2361int(0)
2362bool(false)
2363bool(false)
2364bool(false)
2365bool(false)
2366bool(false)
2367bool(false)
2368int(0)
2369int(1)
2370int(2)
2371int(2)
2372int(2)
2373int(0)
2374int(0)
2375int(1)
2376int(2)
2377int(12)
2378int(13)
2379int(0)
2380int(0)
2381int(1)
2382int(2)
2383int(11)
2384int(12)
2385int(0)
2386int(0)
2387int(1)
2388int(2)
2389int(10)
2390int(11)
2391int(0)
2392int(0)
2393int(1)
2394int(1)
2395int(0)
2396int(1)
2397int(0)
2398bool(false)
2399bool(false)
2400bool(false)
2401bool(false)
2402bool(false)
2403bool(false)
2404int(0)
2405int(1)
2406int(2)
2407int(12)
2408int(13)
2409int(0)
2410int(0)
2411int(1)
2412int(2)
2413int(12)
2414int(13)
2415int(0)
2416int(0)
2417int(1)
2418int(2)
2419int(11)
2420int(12)
2421int(0)
2422int(0)
2423int(1)
2424int(2)
2425int(10)
2426int(11)
2427int(0)
2428int(0)
2429int(1)
2430int(1)
2431int(0)
2432int(1)
2433int(0)
2434bool(false)
2435bool(false)
2436bool(false)
2437bool(false)
2438bool(false)
2439bool(false)
2440int(0)
2441int(1)
2442int(2)
2443int(12)
2444int(13)
2445int(0)
2446int(0)
2447int(1)
2448int(2)
2449int(6)
2450int(6)
2451int(0)
2452int(0)
2453int(1)
2454int(2)
2455int(5)
2456int(5)
2457int(0)
2458int(0)
2459int(1)
2460int(2)
2461int(4)
2462int(4)
2463int(0)
2464int(0)
2465int(1)
2466int(1)
2467int(0)
2468int(1)
2469int(0)
2470bool(false)
2471bool(false)
2472bool(false)
2473bool(false)
2474bool(false)
2475bool(false)
2476int(0)
2477int(1)
2478int(2)
2479int(6)
2480int(6)
2481int(0)
2482Done
2483