int main(argc, argv)
int argc;
char **argv;
{
  int bitsize;
  int msb;
  char *ms;
  int big_endian;
  if (argc != 4)
    usage(1);
  if (strcmp(argv[1], "32") == 0)
    bitsize = 32;
  else if (strcmp(argv[1], "64") == 0)
    bitsize = 64;
  else
    usage(2);
  if (strcmp(argv[2], "0") == 0)
    msb = 0;
  else if (strcmp(argv[2], "31") == 0 && bitsize == 32)
    msb = 31;
  else if (strcmp(argv[2], "63") == 0 && bitsize == 64)
    msb = 63;
  else
    usage(3);
  if (msb == 0)
    ms = "MS";
  else
    ms = "LS";
  if (strcmp(argv[3], "big") == 0)
    big_endian = 1;
  else if (strcmp(argv[3], "little") == 0)
    big_endian = 0;
  else
    usage(4);
  printf("#define WITH_TARGET_WORD_BITSIZE %d\n", bitsize);
  printf("#define WITH_TARGET_WORD_MSB %d\n", msb);
  printf("#define WITH_HOST_WORD_BITSIZE %d\n", sizeof(int) * 8);
  printf("#define WITH_TARGET_BYTE_ORDER %s\n",
         big_endian ? "BIG_ENDIAN" : "LITTLE_ENDIAN");
  printf("\n");
  printf("#define SIM_BITS_INLINE (ALL_H_INLINE)\n");
  printf("\n");
  printf("#define ASSERT(X) do { if (!(X)) abort(); } while (0)\n");
  printf("\n");
  printf("#include \"sim-basics.h\"\n");
  gen_struct();
  printf("#define DO_BIT_TESTS\n");
  gen_bit(4, msb, "BIT4", 4);
  gen_bit(5, msb, "BIT5", 5);
  gen_bit(8, msb, "BIT8", 8);
  gen_bit(10, msb, "BIT10", 10);
  gen_bit(16, msb, "BIT16", 16);
  gen_bit(32, msb, "BIT32", 32);
  gen_bit(64, msb, "BIT64", 64);
  gen_bit(bitsize, msb, "BIT", 64);
  gen_bit(8, 8 - 1, "LSBIT8", 8);
  gen_bit(16, 16 - 1, "LSBIT16", 16);
  gen_bit(32, 32 - 1, "LSBIT32", 32);
  gen_bit(64, 64 - 1, "LSBIT64", 64);
  gen_bit(bitsize, bitsize - 1, "LSBIT", 64);
  gen_bit(8, 0, "MSBIT8", 8);
  gen_bit(16, 0, "MSBIT16", 16);
  gen_bit(32, 0, "MSBIT32", 32);
  gen_bit(64, 0, "MSBIT64", 64);
  gen_bit(bitsize, 0, "MSBIT", 64);
  printf("test_spec *(bit_tests[]) = {\n");
  printf("  &BIT4_test,\n");
  printf("  &BIT5_test,\n");
  printf("  &BIT8_test,\n");
  printf("  &BIT10_test,\n");
  printf("  &BIT16_test,\n");
  printf("  &BIT32_test,\n");
  printf("  &BIT64_test,\n");
  printf("  &BIT_test,\n");
  printf("  &LSBIT8_test,\n");
  printf("  &LSBIT16_test,\n");
  printf("  &LSBIT32_test,\n");
  printf("  &LSBIT64_test,\n");
  printf("  &LSBIT_test,\n");
  printf("  &MSBIT8_test,\n");
  printf("  &MSBIT16_test,\n");
  printf("  &MSBIT32_test,\n");
  printf("  &MSBIT64_test,\n");
  printf("  &MSBIT_test,\n");
  printf("  0,\n");
  printf("};\n\n");
  gen_enum("BIT", 64);
  gen_enum("LSBIT", 64);
  gen_enum("MSBIT", 64);
  gen_enum("BIT32", 32);
  gen_enum("LSBIT32", 32);
  gen_enum("MSBIT32", 32);
  printf("#define DO_MASK_TESTS\n");
  gen_mask(8, ms, "MASK8", 8);
  gen_mask(16, ms, "MASK16", 16);
  gen_mask(32, ms, "MASK32", 32);
  gen_mask(64, ms, "MASK64", 64);
  gen_mask(bitsize, ms, "MASK", 64);
  printf("test_spec *(mask_tests[]) = {\n");
  printf("  &MASK8_test,\n");
  printf("  &MASK16_test,\n");
  printf("  &MASK32_test,\n");
  printf("  &MASK64_test,\n");
  printf("  &MASK_test,\n");
  printf("  0,\n");
  printf("};\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
je     119c <main+0x2c>
mov    $0x1,%edi
mov    $0x0,%al
call   1090 <usage@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x1173(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    11c5 <main+0x55>
movl   $0x20,-0x14(%rbp)
jmp    11ff <main+0x8f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x1151(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    11ee <main+0x7e>
movl   $0x40,-0x14(%rbp)
jmp    11fa <main+0x8a>
mov    $0x2,%edi
mov    $0x0,%al
call   1090 <usage@plt>
jmp    11ff <main+0x8f>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xf4a(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1228 <main+0xb8>
movl   $0x0,-0x18(%rbp)
jmp    12a4 <main+0x134>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdc9(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    125b <main+0xeb>
cmpl   $0x20,-0x14(%rbp)
jne    125b <main+0xeb>
movl   $0x1f,-0x18(%rbp)
jmp    129f <main+0x12f>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd99(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    128e <main+0x11e>
cmpl   $0x40,-0x14(%rbp)
jne    128e <main+0x11e>
movl   $0x3f,-0x18(%rbp)
jmp    129a <main+0x12a>
mov    $0x3,%edi
mov    $0x0,%al
call   1090 <usage@plt>
jmp    129f <main+0x12f>
jmp    12a4 <main+0x134>
cmpl   $0x0,-0x18(%rbp)
jne    12be <main+0x14e>
lea    0xd51(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    12c9 <main+0x159>
lea    0xd44(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xd34(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    12f2 <main+0x182>
movl   $0x1,-0x24(%rbp)
jmp    132c <main+0x1bc>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xd0f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    131b <main+0x1ab>
movl   $0x0,-0x24(%rbp)
jmp    1327 <main+0x1b7>
mov    $0x4,%edi
mov    $0x0,%al
call   1090 <usage@plt>
jmp    132c <main+0x1bc>
mov    -0x14(%rbp),%esi
lea    0xce1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xcf5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd08(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%ecx
lea    0xd43(%rip),%rsi
lea    0xd31(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf66(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf4a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <gen_struct@plt>
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%esi
mov    $0x4,%ecx
lea    0xd4b(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x18(%rbp),%esi
mov    $0x5,%ecx
lea    0xd38(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x18(%rbp),%esi
mov    $0x8,%ecx
lea    0xd2d(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x18(%rbp),%esi
mov    $0xa,%ecx
lea    0xd0d(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x18(%rbp),%esi
mov    $0x10,%ecx
lea    0xd04(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x18(%rbp),%esi
mov    $0x20,%ecx
lea    0xcf4(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x18(%rbp),%esi
mov    $0x40,%ecx
lea    0xce4(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    0xcd6(%rip),%rdx
mov    $0x40,%ecx
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    $0x8,%ecx
mov    $0x7,%esi
lea    0xc98(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    $0x10,%ecx
mov    $0xf,%esi
lea    0xc85(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    $0x20,%ecx
mov    $0x1f,%esi
lea    0xc73(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    $0x40,%ecx
mov    $0x3f,%esi
lea    0xc61(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x14(%rbp),%edi
mov    -0x14(%rbp),%esi
sub    $0x1,%esi
lea    0xc50(%rip),%rdx
mov    $0x40,%ecx
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    $0x8,%ecx
xor    %esi,%esi
lea    0xc3c(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    $0x10,%ecx
xor    %esi,%esi
lea    0xc2c(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    $0x20,%ecx
xor    %esi,%esi
lea    0xc1d(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    $0x40,%ecx
xor    %esi,%esi
lea    0xc0e(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1050 <gen_bit@plt>
mov    -0x14(%rbp),%edi
xor    %esi,%esi
lea    0xc01(%rip),%rdx
mov    $0x40,%ecx
mov    $0x0,%al
call   1050 <gen_bit@plt>
lea    0xbf4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc0b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc16(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc2b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc2f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc29(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xaa5(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <gen_enum@plt>
lea    0xa90(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <gen_enum@plt>
lea    0xaa2(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <gen_enum@plt>
lea    0xa5c(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <gen_enum@plt>
lea    0xa47(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <gen_enum@plt>
lea    0xa59(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <gen_enum@plt>
lea    0xbae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rsi
mov    $0x8,%ecx
lea    0xbae(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1070 <gen_mask@plt>
mov    -0x20(%rbp),%rsi
mov    $0x10,%ecx
lea    0xb9b(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1070 <gen_mask@plt>
mov    -0x20(%rbp),%rsi
mov    $0x20,%ecx
lea    0xb89(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1070 <gen_mask@plt>
mov    -0x20(%rbp),%rsi
mov    $0x40,%ecx
lea    0xb77(%rip),%rdx
mov    %ecx,%edi
mov    $0x0,%al
call   1070 <gen_mask@plt>
mov    -0x14(%rbp),%edi
mov    -0x20(%rbp),%rsi
lea    0xb67(%rip),%rdx
mov    $0x40,%ecx
mov    $0x0,%al
call   1070 <gen_mask@plt>
lea    0xb59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb6f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xac3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xabb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r15
cmp    $0x4,%edi
je     11af <main+0x1f>
mov    $0x1,%edi
xor    %eax,%eax
call   10b0 <usage@plt>
mov    0x8(%r15),%rbx
lea    0xf6d(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
xor    %ebp,%ebp
test   %eax,%eax
je     11ed <main+0x5d>
lea    0xf5f(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     11fe <main+0x6e>
mov    $0x2,%edi
xor    %eax,%eax
call   10b0 <usage@plt>
mov    %rax,(%rsp)
jmp    120d <main+0x7d>
mov    $0x20,%eax
mov    %rax,(%rsp)
mov    $0x1,%r14b
xor    %r13d,%r13d
jmp    120d <main+0x7d>
mov    $0x40,%eax
mov    %rax,(%rsp)
mov    $0x1,%r13b
xor    %r14d,%r14d
mov    0x10(%r15),%rbx
lea    0xeb2(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
lea    0xddf(%rip),%r12
test   %eax,%eax
je     1281 <main+0xf1>
lea    0xdce(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
sete   %al
lea    0xdc3(%rip),%r12
mov    $0x1f,%ebp
test   %r14b,%al
jne    1281 <main+0xf1>
lea    0xdac(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
sete   %al
mov    $0x3f,%ebp
test   %r13b,%al
jne    1281 <main+0xf1>
mov    $0x3,%edi
xor    %eax,%eax
call   10b0 <usage@plt>
lea    0xd85(%rip),%r12
mov    0x18(%r15),%rbx
lea    0xd80(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
lea    0xe08(%rip),%r15
test   %eax,%eax
je     12c7 <main+0x137>
lea    0xd6a(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     12c0 <main+0x130>
mov    $0x4,%edi
xor    %eax,%eax
call   10b0 <usage@plt>
jmp    12c7 <main+0x137>
lea    0xde7(%rip),%r15
lea    0xd49(%rip),%rdi
mov    (%rsp),%rbx
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd5a(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd6b(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd7b(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe16(%rip),%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe27(%rip),%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe47(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <gen_struct@plt>
lea    0xe4c(%rip),%rdi
call   1050 <puts@plt>
lea    0xd51(%rip),%rdx
mov    $0x4,%edi
mov    %ebp,%esi
mov    $0x4,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xd3c(%rip),%rdx
mov    $0x5,%edi
mov    %ebp,%esi
mov    $0x5,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xd2f(%rip),%rdx
mov    $0x8,%edi
mov    %ebp,%esi
mov    $0x8,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xd0d(%rip),%rdx
mov    $0xa,%edi
mov    %ebp,%esi
mov    $0xa,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xd02(%rip),%rdx
mov    $0x10,%edi
mov    %ebp,%esi
mov    $0x10,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xcf0(%rip),%rdx
mov    $0x20,%edi
mov    %ebp,%esi
mov    $0x20,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xcde(%rip),%rdx
mov    $0x40,%edi
mov    %ebp,%esi
mov    $0x40,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xccc(%rip),%rdx
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x40,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xc94(%rip),%rdx
mov    $0x8,%edi
mov    $0x7,%esi
mov    $0x8,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xc7e(%rip),%rdx
mov    $0x10,%edi
mov    $0xf,%esi
mov    $0x10,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xc69(%rip),%rdx
mov    $0x20,%edi
mov    $0x1f,%esi
mov    $0x20,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xc54(%rip),%rdx
mov    $0x40,%edi
mov    $0x3f,%esi
mov    $0x40,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    -0x1(%rbx),%esi
lea    0xc3c(%rip),%rdx
mov    %ebx,%edi
mov    $0x40,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xc2d(%rip),%rdx
mov    $0x8,%edi
xor    %esi,%esi
mov    $0x8,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xc1a(%rip),%rdx
mov    $0x10,%edi
xor    %esi,%esi
mov    $0x10,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xc08(%rip),%r15
mov    $0x20,%edi
xor    %esi,%esi
mov    %r15,%rdx
mov    $0x20,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xbf3(%rip),%rdx
mov    $0x40,%edi
xor    %esi,%esi
mov    $0x40,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xbe1(%rip),%r14
mov    %ebx,%edi
xor    %esi,%esi
mov    %r14,%rdx
mov    $0x40,%ecx
xor    %eax,%eax
call   1070 <gen_bit@plt>
lea    0xc77(%rip),%rdi
call   1050 <puts@plt>
lea    0xc88(%rip),%rdi
call   1050 <puts@plt>
lea    0xc8a(%rip),%rdi
call   1050 <puts@plt>
lea    0xc8c(%rip),%rdi
call   1050 <puts@plt>
lea    0xc8e(%rip),%rdi
call   1050 <puts@plt>
lea    0xc91(%rip),%rdi
call   1050 <puts@plt>
lea    0xc94(%rip),%rdi
call   1050 <puts@plt>
lea    0xc97(%rip),%rdi
call   1050 <puts@plt>
lea    0xc9a(%rip),%rdi
call   1050 <puts@plt>
lea    0xc9b(%rip),%rdi
call   1050 <puts@plt>
lea    0xc9f(%rip),%rdi
call   1050 <puts@plt>
lea    0xca4(%rip),%rdi
call   1050 <puts@plt>
lea    0xca9(%rip),%rdi
call   1050 <puts@plt>
lea    0xcae(%rip),%rdi
call   1050 <puts@plt>
lea    0xcb1(%rip),%rdi
call   1050 <puts@plt>
lea    0xcb5(%rip),%rdi
call   1050 <puts@plt>
lea    0xcba(%rip),%rdi
call   1050 <puts@plt>
lea    0xcbf(%rip),%rdi
call   1050 <puts@plt>
lea    0xcc4(%rip),%rdi
call   1050 <puts@plt>
lea    0xd48(%rip),%r13
mov    %r13,%rdi
call   1050 <puts@plt>
lea    0xd3e(%rip),%rbp
mov    %rbp,%rdi
call   1050 <puts@plt>
lea    0xaa2(%rip),%rdi
mov    $0x40,%esi
xor    %eax,%eax
call   1040 <gen_enum@plt>
lea    0xa8d(%rip),%rdi
mov    $0x40,%esi
xor    %eax,%eax
call   1040 <gen_enum@plt>
mov    %r14,%rdi
mov    $0x40,%esi
xor    %eax,%eax
call   1040 <gen_enum@plt>
lea    0xa5d(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1040 <gen_enum@plt>
lea    0xa48(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1040 <gen_enum@plt>
mov    %r15,%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1040 <gen_enum@plt>
lea    0xc3f(%rip),%rdi
call   1050 <puts@plt>
lea    0xa55(%rip),%rdx
mov    $0x8,%edi
mov    %r12,%rsi
mov    $0x8,%ecx
xor    %eax,%eax
call   1090 <gen_mask@plt>
lea    0xa40(%rip),%rdx
mov    $0x10,%edi
mov    %r12,%rsi
mov    $0x10,%ecx
xor    %eax,%eax
call   1090 <gen_mask@plt>
lea    0xa2c(%rip),%rdx
mov    $0x20,%edi
mov    %r12,%rsi
mov    $0x20,%ecx
xor    %eax,%eax
call   1090 <gen_mask@plt>
lea    0xa18(%rip),%rdx
mov    $0x40,%edi
mov    %r12,%rsi
mov    $0x40,%ecx
xor    %eax,%eax
call   1090 <gen_mask@plt>
lea    0xa04(%rip),%rdx
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x40,%ecx
xor    %eax,%eax
call   1090 <gen_mask@plt>
lea    0xbc5(%rip),%rdi
call   1050 <puts@plt>
lea    0xbd7(%rip),%rdi
call   1050 <puts@plt>
lea    0xbda(%rip),%rdi
call   1050 <puts@plt>
lea    0xbde(%rip),%rdi
call   1050 <puts@plt>
lea    0xbe2(%rip),%rdi
call   1050 <puts@plt>
lea    0xbe6(%rip),%rdi
call   1050 <puts@plt>
mov    %r13,%rdi
call   1050 <puts@plt>
mov    %rbp,%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"32\00"
@.str.1 = [3 x i8] c"64\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [3 x i8] c"31\00"
@.str.4 = [3 x i8] c"63\00"
@.str.5 = [3 x i8] c"MS\00"
@.str.6 = [3 x i8] c"LS\00"
@.str.7 = [4 x i8] c"big\00"
@.str.8 = [7 x i8] c"little\00"
@.str.9 = [37 x i8] c"#define WITH_TARGET_WORD_BITSIZE %d\0A\00"
@.str.10 = [33 x i8] c"#define WITH_TARGET_WORD_MSB %d\0A\00"
@.str.11 = [35 x i8] c"#define WITH_HOST_WORD_BITSIZE %d\0A\00"
@.str.12 = [35 x i8] c"#define WITH_TARGET_BYTE_ORDER %s\0A\00"
@.str.13 = [11 x i8] c"BIG_ENDIAN\00"
@.str.14 = [14 x i8] c"LITTLE_ENDIAN\00"
@.str.15 = [2 x i8] c"\0A\00"
@.str.16 = [40 x i8] c"#define SIM_BITS_INLINE (ALL_H_INLINE)\0A\00"
@.str.17 = [55 x i8] c"#define ASSERT(X) do { if (!(X)) abort(); } while (0)\0A\00"
@.str.18 = [25 x i8] c"#include \22sim-basics.h\22\0A\00"
@.str.19 = [22 x i8] c"#define DO_BIT_TESTS\0A\00"
@.str.20 = [5 x i8] c"BIT4\00"
@.str.21 = [5 x i8] c"BIT5\00"
@.str.22 = [5 x i8] c"BIT8\00"
@.str.23 = [6 x i8] c"BIT10\00"
@.str.24 = [6 x i8] c"BIT16\00"
@.str.25 = [6 x i8] c"BIT32\00"
@.str.26 = [6 x i8] c"BIT64\00"
@.str.27 = [4 x i8] c"BIT\00"
@.str.28 = [7 x i8] c"LSBIT8\00"
@.str.29 = [8 x i8] c"LSBIT16\00"
@.str.30 = [8 x i8] c"LSBIT32\00"
@.str.31 = [8 x i8] c"LSBIT64\00"
@.str.32 = [6 x i8] c"LSBIT\00"
@.str.33 = [7 x i8] c"MSBIT8\00"
@.str.34 = [8 x i8] c"MSBIT16\00"
@.str.35 = [8 x i8] c"MSBIT32\00"
@.str.36 = [8 x i8] c"MSBIT64\00"
@.str.37 = [6 x i8] c"MSBIT\00"
@.str.38 = [30 x i8] c"test_spec *(bit_tests[]) = {\0A\00"
@.str.39 = [15 x i8] c" &BIT4_test,\0A\00"
@.str.40 = [15 x i8] c" &BIT5_test,\0A\00"
@.str.41 = [15 x i8] c" &BIT8_test,\0A\00"
@.str.42 = [16 x i8] c" &BIT10_test,\0A\00"
@.str.43 = [16 x i8] c" &BIT16_test,\0A\00"
@.str.44 = [16 x i8] c" &BIT32_test,\0A\00"
@.str.45 = [16 x i8] c" &BIT64_test,\0A\00"
@.str.46 = [14 x i8] c" &BIT_test,\0A\00"
@.str.47 = [17 x i8] c" &LSBIT8_test,\0A\00"
@.str.48 = [18 x i8] c" &LSBIT16_test,\0A\00"
@.str.49 = [18 x i8] c" &LSBIT32_test,\0A\00"
@.str.50 = [18 x i8] c" &LSBIT64_test,\0A\00"
@.str.51 = [16 x i8] c" &LSBIT_test,\0A\00"
@.str.52 = [17 x i8] c" &MSBIT8_test,\0A\00"
@.str.53 = [18 x i8] c" &MSBIT16_test,\0A\00"
@.str.54 = [18 x i8] c" &MSBIT32_test,\0A\00"
@.str.55 = [18 x i8] c" &MSBIT64_test,\0A\00"
@.str.56 = [16 x i8] c" &MSBIT_test,\0A\00"
@.str.57 = [6 x i8] c" 0,\0A\00"
@.str.58 = [5 x i8] c"};\0A\0A\00"
@.str.59 = [23 x i8] c"#define DO_MASK_TESTS\0A\00"
@.str.60 = [6 x i8] c"MASK8\00"
@.str.61 = [7 x i8] c"MASK16\00"
@.str.62 = [7 x i8] c"MASK32\00"
@.str.63 = [7 x i8] c"MASK64\00"
@.str.64 = [5 x i8] c"MASK\00"
@.str.65 = [31 x i8] c"test_spec *(mask_tests[]) = {\0A\00"
@.str.66 = [16 x i8] c" &MASK8_test,\0A\00"
@.str.67 = [17 x i8] c" &MASK16_test,\0A\00"
@.str.68 = [17 x i8] c" &MASK32_test,\0A\00"
@.str.69 = [17 x i8] c" &MASK64_test,\0A\00"
@.str.70 = [15 x i8] c" &MASK_test,\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 4
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 1)
br label %14
14: ; preds = %12, %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @strcmp(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %14
store i32 32, i32* %6
br label %31
21: ; preds = %14
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32 @strcmp(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %21
store i32 64, i32* %6
br label %30
28: ; preds = %21
%29 = call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 2)
br label %30
30: ; preds = %28, %27
br label %31
31: ; preds = %30, %20
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 2
%34 = load i8*, i8** %33
%35 = call i32 @strcmp(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %31
store i32 0, i32* %7
br label %62
38: ; preds = %31
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 2
%41 = load i8*, i8** %40
%42 = call i32 @strcmp(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %38
%45 = load i32, i32* %6
%46 = icmp eq i32 %45, 32
br i1 %46, label %47, label %48
47: ; preds = %44
store i32 31, i32* %7
br label %61
48: ; preds = %44, %38
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 2
%51 = load i8*, i8** %50
%52 = call i32 @strcmp(i8* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %48
%55 = load i32, i32* %6
%56 = icmp eq i32 %55, 64
br i1 %56, label %57, label %58
57: ; preds = %54
store i32 63, i32* %7
br label %60
58: ; preds = %54, %48
%59 = call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 3)
br label %60
60: ; preds = %58, %57
br label %61
61: ; preds = %60, %47
br label %62
62: ; preds = %61, %37
%63 = load i32, i32* %7
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %62
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8** %8
br label %67
66: ; preds = %62
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8** %8
br label %67
67: ; preds = %66, %65
%68 = load i8**, i8*** %5
%69 = getelementptr inbounds i8*, i8** %68, i64 3
%70 = load i8*, i8** %69
%71 = call i32 @strcmp(i8* %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %67
store i32 1, i32* %9
br label %84
74: ; preds = %67
%75 = load i8**, i8*** %5
%76 = getelementptr inbounds i8*, i8** %75, i64 3
%77 = load i8*, i8** %76
%78 = call i32 @strcmp(i8* %77, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %74
store i32 0, i32* %9
br label %83
81: ; preds = %74
%82 = call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 4)
br label %83
83: ; preds = %81, %80
br label %84
84: ; preds = %83, %73
%85 = load i32, i32* %6
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i32 %85)
%87 = load i32, i32* %7
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i64 32)
%90 = load i32, i32* %9
%91 = icmp ne i32 %90, 0
%92 = zext i1 %91 to i64
%93 = select i1 %91, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0)
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i8* %93)
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.17, i64 0, i64 0))
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0))
%101 = call i32 (...) @gen_struct()
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
%103 = load i32, i32* %7
%104 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 4, i32 %103, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 4)
%105 = load i32, i32* %7
%106 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 5, i32 %105, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 5)
%107 = load i32, i32* %7
%108 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 8, i32 %107, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i32 8)
%109 = load i32, i32* %7
%110 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 10, i32 %109, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i32 10)
%111 = load i32, i32* %7
%112 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 16, i32 %111, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i32 16)
%113 = load i32, i32* %7
%114 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 32, i32 %113, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), i32 32)
%115 = load i32, i32* %7
%116 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 64, i32 %115, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i32 64)
%117 = load i32, i32* %6
%118 = load i32, i32* %7
%119 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 %117, i32 %118, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), i32 64)
%120 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 8, i32 7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0), i32 8)
%121 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 16, i32 15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0), i32 16)
%122 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 32, i32 31, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i32 32)
%123 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 64, i32 63, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), i32 64)
%124 = load i32, i32* %6
%125 = load i32, i32* %6
%126 = sub nsw i32 %125, 1
%127 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 %124, i32 %126, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0), i32 64)
%128 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 8, i32 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.33, i64 0, i64 0), i32 8)
%129 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 16, i32 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.34, i64 0, i64 0), i32 16)
%130 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 32, i32 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.35, i64 0, i64 0), i32 32)
%131 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 64, i32 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.36, i64 0, i64 0), i32 64)
%132 = load i32, i32* %6
%133 = call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 %132, i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.37, i64 0, i64 0), i32 64)
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.38, i64 0, i64 0))
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.39, i64 0, i64 0))
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.40, i64 0, i64 0))
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.41, i64 0, i64 0))
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.42, i64 0, i64 0))
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.43, i64 0, i64 0))
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.44, i64 0, i64 0))
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.45, i64 0, i64 0))
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.46, i64 0, i64 0))
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.47, i64 0, i64 0))
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.48, i64 0, i64 0))
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.49, i64 0, i64 0))
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.50, i64 0, i64 0))
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.51, i64 0, i64 0))
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.52, i64 0, i64 0))
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.53, i64 0, i64 0))
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.54, i64 0, i64 0))
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.55, i64 0, i64 0))
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.56, i64 0, i64 0))
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.57, i64 0, i64 0))
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.58, i64 0, i64 0))
%155 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), i32 64)
%156 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0), i32 64)
%157 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.37, i64 0, i64 0), i32 64)
%158 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), i32 32)
%159 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i32 32)
%160 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.35, i64 0, i64 0), i32 32)
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.59, i64 0, i64 0))
%162 = load i8*, i8** %8
%163 = call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 8, i8* %162, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.60, i64 0, i64 0), i32 8)
%164 = load i8*, i8** %8
%165 = call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 16, i8* %164, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.61, i64 0, i64 0), i32 16)
%166 = load i8*, i8** %8
%167 = call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 32, i8* %166, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.62, i64 0, i64 0), i32 32)
%168 = load i8*, i8** %8
%169 = call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 64, i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.63, i64 0, i64 0), i32 64)
%170 = load i32, i32* %6
%171 = load i8*, i8** %8
%172 = call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 %170, i8* %171, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.64, i64 0, i64 0), i32 64)
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.65, i64 0, i64 0))
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.66, i64 0, i64 0))
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.67, i64 0, i64 0))
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.68, i64 0, i64 0))
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.69, i64 0, i64 0))
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.70, i64 0, i64 0))
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.57, i64 0, i64 0))
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.58, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"32\00"
@.str.1 = [3 x i8] c"64\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [3 x i8] c"31\00"
@.str.4 = [3 x i8] c"63\00"
@.str.5 = [3 x i8] c"MS\00"
@.str.6 = [3 x i8] c"LS\00"
@.str.7 = [4 x i8] c"big\00"
@.str.8 = [7 x i8] c"little\00"
@.str.9 = [37 x i8] c"#define WITH_TARGET_WORD_BITSIZE %d\0A\00"
@.str.10 = [33 x i8] c"#define WITH_TARGET_WORD_MSB %d\0A\00"
@.str.11 = [35 x i8] c"#define WITH_HOST_WORD_BITSIZE %d\0A\00"
@.str.12 = [35 x i8] c"#define WITH_TARGET_BYTE_ORDER %s\0A\00"
@.str.13 = [11 x i8] c"BIG_ENDIAN\00"
@.str.14 = [14 x i8] c"LITTLE_ENDIAN\00"
@.str.20 = [5 x i8] c"BIT4\00"
@.str.21 = [5 x i8] c"BIT5\00"
@.str.22 = [5 x i8] c"BIT8\00"
@.str.23 = [6 x i8] c"BIT10\00"
@.str.24 = [6 x i8] c"BIT16\00"
@.str.25 = [6 x i8] c"BIT32\00"
@.str.26 = [6 x i8] c"BIT64\00"
@.str.27 = [4 x i8] c"BIT\00"
@.str.28 = [7 x i8] c"LSBIT8\00"
@.str.29 = [8 x i8] c"LSBIT16\00"
@.str.30 = [8 x i8] c"LSBIT32\00"
@.str.31 = [8 x i8] c"LSBIT64\00"
@.str.32 = [6 x i8] c"LSBIT\00"
@.str.33 = [7 x i8] c"MSBIT8\00"
@.str.34 = [8 x i8] c"MSBIT16\00"
@.str.35 = [8 x i8] c"MSBIT32\00"
@.str.36 = [8 x i8] c"MSBIT64\00"
@.str.37 = [6 x i8] c"MSBIT\00"
@.str.60 = [6 x i8] c"MASK8\00"
@.str.61 = [7 x i8] c"MASK16\00"
@.str.62 = [7 x i8] c"MASK32\00"
@.str.63 = [7 x i8] c"MASK64\00"
@.str.64 = [5 x i8] c"MASK\00"
@str = [39 x i8] c"#define SIM_BITS_INLINE (ALL_H_INLINE)\00"
@str.71 = [54 x i8] c"#define ASSERT(X) do { if (!(X)) abort(); } while (0)\00"
@str.72 = [24 x i8] c"#include \22sim-basics.h\22\00"
@str.73 = [21 x i8] c"#define DO_BIT_TESTS\00"
@str.74 = [29 x i8] c"test_spec *(bit_tests[]) = {\00"
@str.75 = [14 x i8] c" &BIT4_test,\00"
@str.76 = [14 x i8] c" &BIT5_test,\00"
@str.77 = [14 x i8] c" &BIT8_test,\00"
@str.78 = [15 x i8] c" &BIT10_test,\00"
@str.79 = [15 x i8] c" &BIT16_test,\00"
@str.80 = [15 x i8] c" &BIT32_test,\00"
@str.81 = [15 x i8] c" &BIT64_test,\00"
@str.82 = [13 x i8] c" &BIT_test,\00"
@str.83 = [16 x i8] c" &LSBIT8_test,\00"
@str.84 = [17 x i8] c" &LSBIT16_test,\00"
@str.85 = [17 x i8] c" &LSBIT32_test,\00"
@str.86 = [17 x i8] c" &LSBIT64_test,\00"
@str.87 = [15 x i8] c" &LSBIT_test,\00"
@str.88 = [16 x i8] c" &MSBIT8_test,\00"
@str.89 = [17 x i8] c" &MSBIT16_test,\00"
@str.90 = [17 x i8] c" &MSBIT32_test,\00"
@str.91 = [17 x i8] c" &MSBIT64_test,\00"
@str.92 = [15 x i8] c" &MSBIT_test,\00"
@str.95 = [22 x i8] c"#define DO_MASK_TESTS\00"
@str.96 = [30 x i8] c"test_spec *(mask_tests[]) = {\00"
@str.97 = [15 x i8] c" &MASK8_test,\00"
@str.98 = [16 x i8] c" &MASK16_test,\00"
@str.99 = [16 x i8] c" &MASK32_test,\00"
@str.100 = [16 x i8] c" &MASK64_test,\00"
@str.101 = [14 x i8] c" &MASK_test,\00"
@str.102 = [5 x i8] c" 0,\00"
@str.103 = [4 x i8] c"};\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 4
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 1)
br label %6
6: ; preds = %4, %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @strcmp(i8* dereferenceable(1) %8, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %16, label %11
11: ; preds = %6
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %8, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 2)
br label %16
16: ; preds = %11, %6, %14
%17 = phi i1 [ undef, %14 ], [ true, %6 ], [ false, %11 ]
%18 = phi i1 [ undef, %14 ], [ false, %6 ], [ true, %11 ]
%19 = phi i32 [ undef, %14 ], [ 32, %6 ], [ 64, %11 ]
%20 = getelementptr inbounds i8*, i8** %1, i64 2
%21 = load i8*, i8** %20
%22 = tail call i32 @strcmp(i8* dereferenceable(1) %21, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %34, label %24
24: ; preds = %16
%25 = tail call i32 @strcmp(i8* dereferenceable(1) %21, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
%27 = select i1 %26, i1 %17, i1 false
br i1 %27, label %34, label %28
28: ; preds = %24
%29 = tail call i32 @strcmp(i8* dereferenceable(1) %21, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i1 %18, i1 false
br i1 %31, label %34, label %32
32: ; preds = %28
%33 = tail call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 3)
br label %34
34: ; preds = %28, %24, %16, %32
%35 = phi i32 [ undef, %32 ], [ 0, %16 ], [ 63, %28 ], [ 31, %24 ]
%36 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), %32 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), %16 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), %28 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), %24 ]
%37 = getelementptr inbounds i8*, i8** %1, i64 3
%38 = load i8*, i8** %37
%39 = tail call i32 @strcmp(i8* dereferenceable(1) %38, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %46, label %41
41: ; preds = %34
%42 = tail call i32 @strcmp(i8* dereferenceable(1) %38, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%43 = icmp eq i32 %42, 0
br i1 %43, label %46, label %44
44: ; preds = %41
%45 = tail call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 4)
br label %46
46: ; preds = %41, %34, %44
%47 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), %44 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), %34 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), %41 ]
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %35)
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i64 32)
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i8* %47)
%52 = tail call i32 @putchar(i32 10)
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%54 = tail call i32 @putchar(i32 10)
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.71, i64 0, i64 0))
%56 = tail call i32 @putchar(i32 10)
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.72, i64 0, i64 0))
%58 = tail call i32 (...) @gen_struct()
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.73, i64 0, i64 0))
%60 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 4, i32 %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 4)
%61 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 5, i32 %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 5)
%62 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 8, i32 %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i32 8)
%63 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 10, i32 %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i32 10)
%64 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 16, i32 %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i32 16)
%65 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 32, i32 %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), i32 32)
%66 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 64, i32 %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i32 64)
%67 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 %19, i32 %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), i32 64)
%68 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 8, i32 7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0), i32 8)
%69 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 16, i32 15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0), i32 16)
%70 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 32, i32 31, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i32 32)
%71 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 64, i32 63, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), i32 64)
%72 = add nsw i32 %19, -1
%73 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 %19, i32 %72, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0), i32 64)
%74 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 8, i32 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.33, i64 0, i64 0), i32 8)
%75 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 16, i32 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.34, i64 0, i64 0), i32 16)
%76 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 32, i32 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.35, i64 0, i64 0), i32 32)
%77 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 64, i32 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.36, i64 0, i64 0), i32 64)
%78 = tail call i32 (i32, i32, i8*, i32, ...) bitcast (i32 (...)* @gen_bit to i32 (i32, i32, i8*, i32, ...)*)(i32 %19, i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.37, i64 0, i64 0), i32 64)
%79 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.74, i64 0, i64 0))
%80 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.75, i64 0, i64 0))
%81 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.76, i64 0, i64 0))
%82 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.77, i64 0, i64 0))
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.78, i64 0, i64 0))
%84 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.79, i64 0, i64 0))
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.80, i64 0, i64 0))
%86 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.81, i64 0, i64 0))
%87 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.82, i64 0, i64 0))
%88 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.83, i64 0, i64 0))
%89 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.84, i64 0, i64 0))
%90 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.85, i64 0, i64 0))
%91 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.86, i64 0, i64 0))
%92 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.87, i64 0, i64 0))
%93 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.88, i64 0, i64 0))
%94 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.89, i64 0, i64 0))
%95 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.90, i64 0, i64 0))
%96 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.91, i64 0, i64 0))
%97 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.92, i64 0, i64 0))
%98 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.102, i64 0, i64 0))
%99 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.103, i64 0, i64 0))
%100 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), i32 64)
%101 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0), i32 64)
%102 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.37, i64 0, i64 0), i32 64)
%103 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), i32 32)
%104 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i32 32)
%105 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @gen_enum to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.35, i64 0, i64 0), i32 32)
%106 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.95, i64 0, i64 0))
%107 = tail call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 8, i8* %36, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.60, i64 0, i64 0), i32 8)
%108 = tail call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 16, i8* %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.61, i64 0, i64 0), i32 16)
%109 = tail call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 32, i8* %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.62, i64 0, i64 0), i32 32)
%110 = tail call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 64, i8* %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.63, i64 0, i64 0), i32 64)
%111 = tail call i32 (i32, i8*, i8*, i32, ...) bitcast (i32 (...)* @gen_mask to i32 (i32, i8*, i8*, i32, ...)*)(i32 %19, i8* %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.64, i64 0, i64 0), i32 64)
%112 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.96, i64 0, i64 0))
%113 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.97, i64 0, i64 0))
%114 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.98, i64 0, i64 0))
%115 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.99, i64 0, i64 0))
%116 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.100, i64 0, i64 0))
%117 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.101, i64 0, i64 0))
%118 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.102, i64 0, i64 0))
%119 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.103, i64 0, i64 0))
ret i32 0
}