complex.in revision 272343
1272343Sngie# complexities 2272343Sngiea(((b)))c - abc abc 3272343Sngiea(b|(c))d - abd abd 4272343Sngiea(b*|c)d - abbd abbd 5272343Sngie# just gotta have one DFA-buster, of course 6272343Sngiea[ab]{20} - aaaaabaaaabaaaabaaaab aaaaabaaaabaaaabaaaab 7272343Sngie# and an inline expansion in case somebody gets tricky 8272343Sngiea[ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab] - aaaaabaaaabaaaabaaaab aaaaabaaaabaaaabaaaab 9272343Sngie# and in case somebody just slips in an NFA... 10272343Sngiea[ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab](wee|week)(knights|night) - aaaaabaaaabaaaabaaaabweeknights aaaaabaaaabaaaabaaaabweeknights 11272343Sngie# fish for anomalies as the number of states passes 32 12272343Sngie12345678901234567890123456789 - a12345678901234567890123456789b 12345678901234567890123456789 13272343Sngie123456789012345678901234567890 - a123456789012345678901234567890b 123456789012345678901234567890 14272343Sngie1234567890123456789012345678901 - a1234567890123456789012345678901b 1234567890123456789012345678901 15272343Sngie12345678901234567890123456789012 - a12345678901234567890123456789012b 12345678901234567890123456789012 16272343Sngie123456789012345678901234567890123 - a123456789012345678901234567890123b 123456789012345678901234567890123 17272343Sngie# and one really big one, beyond any plausible word width 18272343Sngie1234567890123456789012345678901234567890123456789012345678901234567890 - a1234567890123456789012345678901234567890123456789012345678901234567890b 1234567890123456789012345678901234567890123456789012345678901234567890 19272343Sngie# fish for problems as brackets go past 8 20272343Sngie[ab][cd][ef][gh][ij][kl][mn] - xacegikmoq acegikm 21272343Sngie[ab][cd][ef][gh][ij][kl][mn][op] - xacegikmoq acegikmo 22272343Sngie[ab][cd][ef][gh][ij][kl][mn][op][qr] - xacegikmoqy acegikmoq 23272343Sngie[ab][cd][ef][gh][ij][kl][mn][op][q] - xacegikmoqy acegikmoq 24