5 main(int argc
, char *argv
[])
7 static const size_t lens
[] = { 0, 1, 0, 2, 0, 1, 0, 3,
8 0, 1, 0, 2, 0, 1, 0, 4 };
12 for (base
= 0; base
< 32; ++base
)
14 char *buf
= basebuf
+ base
;
17 for (words
= 0; words
< 4; ++words
)
20 memset (buf
, 'a', words
* 4);
22 for (last
= 0; last
< 16; ++last
)
24 buf
[words
* 4 + 0] = (last
& 1) != 0 ? 'b' : '\0';
25 buf
[words
* 4 + 1] = (last
& 2) != 0 ? 'c' : '\0';
26 buf
[words
* 4 + 2] = (last
& 4) != 0 ? 'd' : '\0';
27 buf
[words
* 4 + 3] = (last
& 8) != 0 ? 'e' : '\0';
28 buf
[words
* 4 + 4] = '\0';
30 if (strlen (buf
) != words
* 4 + lens
[last
])
32 printf ("failed for base=%d, words=%d, and last=%d\n",