void test_arg_string(const char *s) {
  do {
    int n = __builtin_snprintf(0, 0, "%-s", "");
    do {
      extern void failure_on_line_104(int);
      extern void success_on_line_104(int);
      if (n == 0)
        success_on_line_104(n);
      else
        failure_on_line_104(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%%");
    do {
      extern void failure_on_line_105(int);
      extern void success_on_line_105(int);
      if (n == 1)
        success_on_line_105(n);
      else
        failure_on_line_105(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%-s", "1");
    do {
      extern void failure_on_line_106(int);
      extern void success_on_line_106(int);
      if (n == 1)
        success_on_line_106(n);
      else
        failure_on_line_106(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%-s", "12");
    do {
      extern void failure_on_line_107(int);
      extern void success_on_line_107(int);
      if (n == 2)
        success_on_line_107(n);
      else
        failure_on_line_107(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%-s", "123");
    do {
      extern void failure_on_line_108(int);
      extern void success_on_line_108(int);
      if (n == 3)
        success_on_line_108(n);
      else
        failure_on_line_108(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "s=%s", "123");
    do {
      extern void failure_on_line_109(int);
      extern void success_on_line_109(int);
      if (n == 5)
        success_on_line_109(n);
      else
        failure_on_line_109(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%%s=\"%s\"", "12345");
    do {
      extern void failure_on_line_110(int);
      extern void success_on_line_110(int);
      if (n == 10)
        success_on_line_110(n);
      else
        failure_on_line_110(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%.*s", 1, "123");
    do {
      extern void failure_on_line_112(int);
      extern void success_on_line_112(int);
      if (n == 1)
        success_on_line_112(n);
      else
        failure_on_line_112(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%.*s", 2, "123");
    do {
      extern void failure_on_line_113(int);
      extern void success_on_line_113(int);
      if (n == 2)
        success_on_line_113(n);
      else
        failure_on_line_113(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%.*s", 3, "123");
    do {
      extern void failure_on_line_114(int);
      extern void success_on_line_114(int);
      if (n == 3)
        success_on_line_114(n);
      else
        failure_on_line_114(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%.*s", 4, "123");
    do {
      extern void failure_on_line_115(int);
      extern void success_on_line_115(int);
      if (n == 3)
        success_on_line_115(n);
      else
        failure_on_line_115(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%1.*s", 1, "123");
    do {
      extern void failure_on_line_117(int);
      extern void success_on_line_117(int);
      if (n == 1)
        success_on_line_117(n);
      else
        failure_on_line_117(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%1.*s", 2, "123");
    do {
      extern void failure_on_line_118(int);
      extern void success_on_line_118(int);
      if (n == 2)
        success_on_line_118(n);
      else
        failure_on_line_118(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%1.*s", 3, "123");
    do {
      extern void failure_on_line_119(int);
      extern void success_on_line_119(int);
      if (n == 3)
        success_on_line_119(n);
      else
        failure_on_line_119(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%1.*s", 4, "123");
    do {
      extern void failure_on_line_120(int);
      extern void success_on_line_120(int);
      if (n == 3)
        success_on_line_120(n);
      else
        failure_on_line_120(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%4.*s", 1, "123");
    do {
      extern void failure_on_line_121(int);
      extern void success_on_line_121(int);
      if (n == 4)
        success_on_line_121(n);
      else
        failure_on_line_121(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%4.*s", 2, "123");
    do {
      extern void failure_on_line_122(int);
      extern void success_on_line_122(int);
      if (n == 4)
        success_on_line_122(n);
      else
        failure_on_line_122(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%4.*s", 3, "123");
    do {
      extern void failure_on_line_123(int);
      extern void success_on_line_123(int);
      if (n == 4)
        success_on_line_123(n);
      else
        failure_on_line_123(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%4.*s", 4, "123");
    do {
      extern void failure_on_line_124(int);
      extern void success_on_line_124(int);
      if (n == 4)
        success_on_line_124(n);
      else
        failure_on_line_124(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%4.*s", 5, "123");
    do {
      extern void failure_on_line_125(int);
      extern void success_on_line_125(int);
      if (n == 4)
        success_on_line_125(n);
      else
        failure_on_line_125(n);
    } while (0);
  } while (0);
  const char *a = "123";
  const char *b = "456";
  do {
    int n = __builtin_snprintf(0, 0, "%-s", s ? a : b);
    do {
      extern void failure_on_line_130(int);
      extern void success_on_line_130(int);
      if (n == 3)
        success_on_line_130(n);
      else
        failure_on_line_130(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%.0s", s);
    do {
      extern void failure_on_line_131(int);
      extern void success_on_line_131(int);
      if (n == 0)
        success_on_line_131(n);
      else
        failure_on_line_131(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%1.1s", s);
    do {
      extern void failure_on_line_132(int);
      extern void success_on_line_132(int);
      if (n == 1)
        success_on_line_132(n);
      else
        failure_on_line_132(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%2.2s", s);
    do {
      extern void failure_on_line_133(int);
      extern void success_on_line_133(int);
      if (n == 2)
        success_on_line_133(n);
      else
        failure_on_line_133(n);
    } while (0);
  } while (0);
  do {
    int n = __builtin_snprintf(0, 0, "%2.1s", s);
    do {
      extern void failure_on_line_134(int);
      extern void success_on_line_134(int);
      if (n == 2)
        success_on_line_134(n);
      else
        failure_on_line_134(n);
    } while (0);
  } while (0);
}


x86 assembly (clang, -O0):
<test_arg_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%esi
lea    0xbb6(%rip),%rdx
lea    0xbcc(%rip),%rcx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    2475 <test_arg_string+0x45>
mov    -0xc(%rbp),%edi
call   2320 <success_on_line_104@plt>
jmp    247d <test_arg_string+0x4d>
mov    -0xc(%rbp),%edi
call   2330 <failure_on_line_104@plt>
jmp    2482 <test_arg_string+0x52>
jmp    2487 <test_arg_string+0x57>
jmp    248c <test_arg_string+0x5c>
xor    %eax,%eax
mov    %eax,%esi
lea    0xb6d(%rip),%rdx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x1,-0x10(%rbp)
jne    24bb <test_arg_string+0x8b>
mov    -0x10(%rbp),%edi
call   2170 <success_on_line_105@plt>
jmp    24c3 <test_arg_string+0x93>
mov    -0x10(%rbp),%edi
call   21a0 <failure_on_line_105@plt>
jmp    24c8 <test_arg_string+0x98>
jmp    24cd <test_arg_string+0x9d>
jmp    24d2 <test_arg_string+0xa2>
xor    %eax,%eax
mov    %eax,%esi
lea    0xb23(%rip),%rdx
lea    0xb23(%rip),%rcx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    2508 <test_arg_string+0xd8>
mov    -0x14(%rbp),%edi
call   2350 <success_on_line_106@plt>
jmp    2510 <test_arg_string+0xe0>
mov    -0x14(%rbp),%edi
call   2310 <failure_on_line_106@plt>
jmp    2515 <test_arg_string+0xe5>
jmp    251a <test_arg_string+0xea>
jmp    251f <test_arg_string+0xef>
xor    %eax,%eax
mov    %eax,%esi
lea    0xad6(%rip),%rdx
lea    0xad8(%rip),%rcx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jne    2555 <test_arg_string+0x125>
mov    -0x18(%rbp),%edi
call   21b0 <success_on_line_107@plt>
jmp    255d <test_arg_string+0x12d>
mov    -0x18(%rbp),%edi
call   2190 <failure_on_line_107@plt>
jmp    2562 <test_arg_string+0x132>
jmp    2567 <test_arg_string+0x137>
jmp    256c <test_arg_string+0x13c>
xor    %eax,%eax
mov    %eax,%esi
lea    0xa89(%rip),%rdx
lea    0xa8e(%rip),%rcx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jne    25a2 <test_arg_string+0x172>
mov    -0x1c(%rbp),%edi
call   2340 <success_on_line_108@plt>
jmp    25aa <test_arg_string+0x17a>
mov    -0x1c(%rbp),%edi
call   2300 <failure_on_line_108@plt>
jmp    25af <test_arg_string+0x17f>
jmp    25b4 <test_arg_string+0x184>
jmp    25b9 <test_arg_string+0x189>
xor    %eax,%eax
mov    %eax,%esi
lea    0xa4c(%rip),%rdx
lea    0xa41(%rip),%rcx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x5,-0x20(%rbp)
jne    25ef <test_arg_string+0x1bf>
mov    -0x20(%rbp),%edi
call   21c0 <success_on_line_109@plt>
jmp    25f7 <test_arg_string+0x1c7>
mov    -0x20(%rbp),%edi
call   2180 <failure_on_line_109@plt>
jmp    25fc <test_arg_string+0x1cc>
jmp    2601 <test_arg_string+0x1d1>
jmp    2606 <test_arg_string+0x1d6>
xor    %eax,%eax
mov    %eax,%esi
lea    0xa04(%rip),%rdx
lea    0xa06(%rip),%rcx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0xa,-0x24(%rbp)
jne    263c <test_arg_string+0x20c>
mov    -0x24(%rbp),%edi
call   2240 <success_on_line_110@plt>
jmp    2644 <test_arg_string+0x214>
mov    -0x24(%rbp),%edi
call   2090 <failure_on_line_110@plt>
jmp    2649 <test_arg_string+0x219>
jmp    264e <test_arg_string+0x21e>
jmp    2653 <test_arg_string+0x223>
xor    %eax,%eax
mov    %eax,%esi
lea    0x9c6(%rip),%rdx
mov    $0x1,%ecx
lea    0x9a2(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x1,-0x28(%rbp)
jne    268e <test_arg_string+0x25e>
mov    -0x28(%rbp),%edi
call   2200 <success_on_line_112@plt>
jmp    2696 <test_arg_string+0x266>
mov    -0x28(%rbp),%edi
call   2080 <failure_on_line_112@plt>
jmp    269b <test_arg_string+0x26b>
jmp    26a0 <test_arg_string+0x270>
jmp    26a5 <test_arg_string+0x275>
xor    %eax,%eax
mov    %eax,%esi
lea    0x974(%rip),%rdx
mov    $0x2,%ecx
lea    0x950(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jne    26e0 <test_arg_string+0x2b0>
mov    -0x2c(%rbp),%edi
call   2030 <success_on_line_113@plt>
jmp    26e8 <test_arg_string+0x2b8>
mov    -0x2c(%rbp),%edi
call   2210 <failure_on_line_113@plt>
jmp    26ed <test_arg_string+0x2bd>
jmp    26f2 <test_arg_string+0x2c2>
jmp    26f7 <test_arg_string+0x2c7>
xor    %eax,%eax
mov    %eax,%esi
lea    0x922(%rip),%rdx
mov    $0x3,%ecx
lea    0x8fe(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0x3,-0x30(%rbp)
jne    2732 <test_arg_string+0x302>
mov    -0x30(%rbp),%edi
call   21f0 <success_on_line_114@plt>
jmp    273a <test_arg_string+0x30a>
mov    -0x30(%rbp),%edi
call   2040 <failure_on_line_114@plt>
jmp    273f <test_arg_string+0x30f>
jmp    2744 <test_arg_string+0x314>
jmp    2749 <test_arg_string+0x319>
xor    %eax,%eax
mov    %eax,%esi
lea    0x8d0(%rip),%rdx
mov    $0x4,%ecx
lea    0x8ac(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jne    2784 <test_arg_string+0x354>
mov    -0x34(%rbp),%edi
call   2070 <success_on_line_115@plt>
jmp    278c <test_arg_string+0x35c>
mov    -0x34(%rbp),%edi
call   2220 <failure_on_line_115@plt>
jmp    2791 <test_arg_string+0x361>
jmp    2796 <test_arg_string+0x366>
jmp    279b <test_arg_string+0x36b>
xor    %eax,%eax
mov    %eax,%esi
lea    0x883(%rip),%rdx
mov    $0x1,%ecx
lea    0x85a(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x1,-0x38(%rbp)
jne    27d6 <test_arg_string+0x3a6>
mov    -0x38(%rbp),%edi
call   2060 <success_on_line_117@plt>
jmp    27de <test_arg_string+0x3ae>
mov    -0x38(%rbp),%edi
call   21e0 <failure_on_line_117@plt>
jmp    27e3 <test_arg_string+0x3b3>
jmp    27e8 <test_arg_string+0x3b8>
jmp    27ed <test_arg_string+0x3bd>
xor    %eax,%eax
mov    %eax,%esi
lea    0x831(%rip),%rdx
mov    $0x2,%ecx
lea    0x808(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x2,-0x3c(%rbp)
jne    2828 <test_arg_string+0x3f8>
mov    -0x3c(%rbp),%edi
call   2230 <success_on_line_118@plt>
jmp    2830 <test_arg_string+0x400>
mov    -0x3c(%rbp),%edi
call   2050 <failure_on_line_118@plt>
jmp    2835 <test_arg_string+0x405>
jmp    283a <test_arg_string+0x40a>
jmp    283f <test_arg_string+0x40f>
xor    %eax,%eax
mov    %eax,%esi
lea    0x7df(%rip),%rdx
mov    $0x3,%ecx
lea    0x7b6(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0x3,-0x40(%rbp)
jne    287a <test_arg_string+0x44a>
mov    -0x40(%rbp),%edi
call   20e0 <success_on_line_119@plt>
jmp    2882 <test_arg_string+0x452>
mov    -0x40(%rbp),%edi
call   21d0 <failure_on_line_119@plt>
jmp    2887 <test_arg_string+0x457>
jmp    288c <test_arg_string+0x45c>
jmp    2891 <test_arg_string+0x461>
xor    %eax,%eax
mov    %eax,%esi
lea    0x78d(%rip),%rdx
mov    $0x4,%ecx
lea    0x764(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x3,-0x44(%rbp)
jne    28cc <test_arg_string+0x49c>
mov    -0x44(%rbp),%edi
call   2260 <success_on_line_120@plt>
jmp    28d4 <test_arg_string+0x4a4>
mov    -0x44(%rbp),%edi
call   22a0 <failure_on_line_120@plt>
jmp    28d9 <test_arg_string+0x4a9>
jmp    28de <test_arg_string+0x4ae>
jmp    28e3 <test_arg_string+0x4b3>
xor    %eax,%eax
mov    %eax,%esi
lea    0x741(%rip),%rdx
mov    $0x1,%ecx
lea    0x712(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x4,-0x48(%rbp)
jne    291e <test_arg_string+0x4ee>
mov    -0x48(%rbp),%edi
call   20a0 <success_on_line_121@plt>
jmp    2926 <test_arg_string+0x4f6>
mov    -0x48(%rbp),%edi
call   2100 <failure_on_line_121@plt>
jmp    292b <test_arg_string+0x4fb>
jmp    2930 <test_arg_string+0x500>
jmp    2935 <test_arg_string+0x505>
xor    %eax,%eax
mov    %eax,%esi
lea    0x6ef(%rip),%rdx
mov    $0x2,%ecx
lea    0x6c0(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x4,-0x4c(%rbp)
jne    2970 <test_arg_string+0x540>
mov    -0x4c(%rbp),%edi
call   2250 <success_on_line_122@plt>
jmp    2978 <test_arg_string+0x548>
mov    -0x4c(%rbp),%edi
call   2290 <failure_on_line_122@plt>
jmp    297d <test_arg_string+0x54d>
jmp    2982 <test_arg_string+0x552>
jmp    2987 <test_arg_string+0x557>
xor    %eax,%eax
mov    %eax,%esi
lea    0x69d(%rip),%rdx
mov    $0x3,%ecx
lea    0x66e(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x50(%rbp)
cmpl   $0x4,-0x50(%rbp)
jne    29c2 <test_arg_string+0x592>
mov    -0x50(%rbp),%edi
call   20d0 <success_on_line_123@plt>
jmp    29ca <test_arg_string+0x59a>
mov    -0x50(%rbp),%edi
call   20f0 <failure_on_line_123@plt>
jmp    29cf <test_arg_string+0x59f>
jmp    29d4 <test_arg_string+0x5a4>
jmp    29d9 <test_arg_string+0x5a9>
xor    %eax,%eax
mov    %eax,%esi
lea    0x64b(%rip),%rdx
mov    $0x4,%ecx
lea    0x61c(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jne    2a14 <test_arg_string+0x5e4>
mov    -0x54(%rbp),%edi
call   2280 <success_on_line_124@plt>
jmp    2a1c <test_arg_string+0x5ec>
mov    -0x54(%rbp),%edi
call   2270 <failure_on_line_124@plt>
jmp    2a21 <test_arg_string+0x5f1>
jmp    2a26 <test_arg_string+0x5f6>
jmp    2a2b <test_arg_string+0x5fb>
xor    %eax,%eax
mov    %eax,%esi
lea    0x5f9(%rip),%rdx
mov    $0x5,%ecx
lea    0x5ca(%rip),%r8
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x58(%rbp)
cmpl   $0x4,-0x58(%rbp)
jne    2a66 <test_arg_string+0x636>
mov    -0x58(%rbp),%edi
call   20c0 <success_on_line_125@plt>
jmp    2a6e <test_arg_string+0x63e>
mov    -0x58(%rbp),%edi
call   20b0 <failure_on_line_125@plt>
jmp    2a73 <test_arg_string+0x643>
jmp    2a78 <test_arg_string+0x648>
lea    0x58d(%rip),%rax
mov    %rax,-0x60(%rbp)
lea    0x5ab(%rip),%rax
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     2aa9 <test_arg_string+0x679>
mov    -0x60(%rbp),%rax
mov    %rax,-0x88(%rbp)
jmp    2ab4 <test_arg_string+0x684>
mov    -0x68(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%esi
lea    0x53a(%rip),%rdx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x6c(%rbp)
cmpl   $0x3,-0x6c(%rbp)
jne    2aea <test_arg_string+0x6ba>
mov    -0x6c(%rbp),%edi
call   2130 <success_on_line_130@plt>
jmp    2af2 <test_arg_string+0x6c2>
mov    -0x6c(%rbp),%edi
call   22d0 <failure_on_line_130@plt>
jmp    2af7 <test_arg_string+0x6c7>
jmp    2afc <test_arg_string+0x6cc>
jmp    2b01 <test_arg_string+0x6d1>
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%esi
lea    0x529(%rip),%rdx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x70(%rbp)
cmpl   $0x0,-0x70(%rbp)
jne    2b34 <test_arg_string+0x704>
mov    -0x70(%rbp),%edi
call   22f0 <success_on_line_131@plt>
jmp    2b3c <test_arg_string+0x70c>
mov    -0x70(%rbp),%edi
call   2150 <failure_on_line_131@plt>
jmp    2b41 <test_arg_string+0x711>
jmp    2b46 <test_arg_string+0x716>
jmp    2b4b <test_arg_string+0x71b>
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%esi
lea    0x4e4(%rip),%rdx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x74(%rbp)
cmpl   $0x1,-0x74(%rbp)
jne    2b7e <test_arg_string+0x74e>
mov    -0x74(%rbp),%edi
call   2140 <success_on_line_132@plt>
jmp    2b86 <test_arg_string+0x756>
mov    -0x74(%rbp),%edi
call   22b0 <failure_on_line_132@plt>
jmp    2b8b <test_arg_string+0x75b>
jmp    2b90 <test_arg_string+0x760>
jmp    2b95 <test_arg_string+0x765>
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%esi
lea    0x4a0(%rip),%rdx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x78(%rbp)
cmpl   $0x2,-0x78(%rbp)
jne    2bc8 <test_arg_string+0x798>
mov    -0x78(%rbp),%edi
call   22c0 <success_on_line_133@plt>
jmp    2bd0 <test_arg_string+0x7a0>
mov    -0x78(%rbp),%edi
call   2120 <failure_on_line_133@plt>
jmp    2bd5 <test_arg_string+0x7a5>
jmp    2bda <test_arg_string+0x7aa>
jmp    2bdf <test_arg_string+0x7af>
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%esi
lea    0x45c(%rip),%rdx
mov    %rsi,%rdi
mov    $0x0,%al
call   2110 <snprintf@plt>
mov    %eax,-0x7c(%rbp)
cmpl   $0x2,-0x7c(%rbp)
jne    2c12 <test_arg_string+0x7e2>
mov    -0x7c(%rbp),%edi
call   2160 <success_on_line_134@plt>
jmp    2c1a <test_arg_string+0x7ea>
mov    -0x7c(%rbp),%edi
call   22e0 <failure_on_line_134@plt>
jmp    2c1f <test_arg_string+0x7ef>
jmp    2c24 <test_arg_string+0x7f4>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_arg_string>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xbc2(%rip),%rdx
lea    0xbd8(%rip),%rcx
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   2110 <snprintf@plt>
test   %eax,%eax
je     245d <test_arg_string+0x2d>
mov    %eax,%edi
call   2330 <failure_on_line_104@plt>
jmp    2464 <test_arg_string+0x34>
xor    %edi,%edi
call   2320 <success_on_line_104@plt>
lea    0xb99(%rip),%rdx
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x1,%eax
jne    2487 <test_arg_string+0x57>
mov    $0x1,%edi
call   2170 <success_on_line_105@plt>
jmp    248e <test_arg_string+0x5e>
mov    %eax,%edi
call   21a0 <failure_on_line_105@plt>
lea    0xb6b(%rip),%rdx
lea    0xb6b(%rip),%rcx
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x1,%eax
jne    24b8 <test_arg_string+0x88>
mov    $0x1,%edi
call   2350 <success_on_line_106@plt>
jmp    24bf <test_arg_string+0x8f>
mov    %eax,%edi
call   2310 <failure_on_line_106@plt>
lea    0xb3a(%rip),%rdx
lea    0xb3c(%rip),%rcx
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x2,%eax
jne    24e9 <test_arg_string+0xb9>
mov    $0x2,%edi
call   21b0 <success_on_line_107@plt>
jmp    24f0 <test_arg_string+0xc0>
mov    %eax,%edi
call   2190 <failure_on_line_107@plt>
lea    0xb09(%rip),%rdx
lea    0xb0e(%rip),%rcx
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x3,%eax
jne    251a <test_arg_string+0xea>
mov    $0x3,%edi
call   2340 <success_on_line_108@plt>
jmp    2521 <test_arg_string+0xf1>
mov    %eax,%edi
call   2300 <failure_on_line_108@plt>
lea    0xae8(%rip),%rdx
lea    0xadd(%rip),%rcx
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x5,%eax
jne    254b <test_arg_string+0x11b>
mov    $0x5,%edi
call   21c0 <success_on_line_109@plt>
jmp    2552 <test_arg_string+0x122>
mov    %eax,%edi
call   2180 <failure_on_line_109@plt>
lea    0xabc(%rip),%rdx
lea    0xabe(%rip),%rcx
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0xa,%eax
jne    257c <test_arg_string+0x14c>
mov    $0xa,%edi
call   2240 <success_on_line_110@plt>
jmp    2583 <test_arg_string+0x153>
mov    %eax,%edi
call   2090 <failure_on_line_110@plt>
lea    0xa9a(%rip),%rdx
lea    0xa7b(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x1,%eax
jne    25b2 <test_arg_string+0x182>
mov    $0x1,%edi
call   2200 <success_on_line_112@plt>
jmp    25b9 <test_arg_string+0x189>
mov    %eax,%edi
call   2080 <failure_on_line_112@plt>
lea    0xa64(%rip),%rdx
lea    0xa45(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x2,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x2,%eax
jne    25e8 <test_arg_string+0x1b8>
mov    $0x2,%edi
call   2030 <success_on_line_113@plt>
jmp    25ef <test_arg_string+0x1bf>
mov    %eax,%edi
call   2210 <failure_on_line_113@plt>
lea    0xa2e(%rip),%rdx
lea    0xa0f(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x3,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x3,%eax
jne    261e <test_arg_string+0x1ee>
mov    $0x3,%edi
call   21f0 <success_on_line_114@plt>
jmp    2625 <test_arg_string+0x1f5>
mov    %eax,%edi
call   2040 <failure_on_line_114@plt>
lea    0x9f8(%rip),%rdx
lea    0x9d9(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x4,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x3,%eax
jne    2654 <test_arg_string+0x224>
mov    $0x3,%edi
call   2070 <success_on_line_115@plt>
jmp    265b <test_arg_string+0x22b>
mov    %eax,%edi
call   2220 <failure_on_line_115@plt>
lea    0x9c7(%rip),%rdx
lea    0x9a3(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x1,%eax
jne    268a <test_arg_string+0x25a>
mov    $0x1,%edi
call   2060 <success_on_line_117@plt>
jmp    2691 <test_arg_string+0x261>
mov    %eax,%edi
call   21e0 <failure_on_line_117@plt>
lea    0x991(%rip),%rdx
lea    0x96d(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x2,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x2,%eax
jne    26c0 <test_arg_string+0x290>
mov    $0x2,%edi
call   2230 <success_on_line_118@plt>
jmp    26c7 <test_arg_string+0x297>
mov    %eax,%edi
call   2050 <failure_on_line_118@plt>
lea    0x95b(%rip),%rdx
lea    0x937(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x3,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x3,%eax
jne    26f6 <test_arg_string+0x2c6>
mov    $0x3,%edi
call   20e0 <success_on_line_119@plt>
jmp    26fd <test_arg_string+0x2cd>
mov    %eax,%edi
call   21d0 <failure_on_line_119@plt>
lea    0x925(%rip),%rdx
lea    0x901(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x4,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x3,%eax
jne    272c <test_arg_string+0x2fc>
mov    $0x3,%edi
call   2260 <success_on_line_120@plt>
jmp    2733 <test_arg_string+0x303>
mov    %eax,%edi
call   22a0 <failure_on_line_120@plt>
lea    0x8f5(%rip),%rdx
lea    0x8cb(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x4,%eax
jne    2762 <test_arg_string+0x332>
mov    $0x4,%edi
call   20a0 <success_on_line_121@plt>
jmp    2769 <test_arg_string+0x339>
mov    %eax,%edi
call   2100 <failure_on_line_121@plt>
lea    0x8bf(%rip),%rdx
lea    0x895(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x2,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x4,%eax
jne    2798 <test_arg_string+0x368>
mov    $0x4,%edi
call   2250 <success_on_line_122@plt>
jmp    279f <test_arg_string+0x36f>
mov    %eax,%edi
call   2290 <failure_on_line_122@plt>
lea    0x889(%rip),%rdx
lea    0x85f(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x3,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x4,%eax
jne    27ce <test_arg_string+0x39e>
mov    $0x4,%edi
call   20d0 <success_on_line_123@plt>
jmp    27d5 <test_arg_string+0x3a5>
mov    %eax,%edi
call   20f0 <failure_on_line_123@plt>
lea    0x853(%rip),%rdx
lea    0x829(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
mov    $0x4,%ecx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x4,%eax
jne    2804 <test_arg_string+0x3d4>
mov    $0x4,%edi
call   2280 <success_on_line_124@plt>
jmp    280b <test_arg_string+0x3db>
mov    %eax,%edi
call   2270 <failure_on_line_124@plt>
lea    0x81d(%rip),%rdx
lea    0x7f3(%rip),%rbx
xor    %edi,%edi
xor    %esi,%esi
mov    $0x5,%ecx
mov    %rbx,%r8
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x4,%eax
jne    283d <test_arg_string+0x40d>
mov    $0x4,%edi
call   20c0 <success_on_line_125@plt>
jmp    2844 <test_arg_string+0x414>
mov    %eax,%edi
call   20b0 <failure_on_line_125@plt>
test   %r14,%r14
lea    0x7e7(%rip),%rax
cmove  %rax,%rbx
lea    0x7a7(%rip),%rdx
xor    %edi,%edi
xor    %esi,%esi
mov    %rbx,%rcx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x3,%eax
jne    2878 <test_arg_string+0x448>
mov    $0x3,%edi
call   2130 <success_on_line_130@plt>
jmp    287f <test_arg_string+0x44f>
mov    %eax,%edi
call   22d0 <failure_on_line_130@plt>
lea    0x7b3(%rip),%rdx
xor    %edi,%edi
xor    %esi,%esi
mov    %r14,%rcx
xor    %eax,%eax
call   2110 <snprintf@plt>
test   %eax,%eax
je     28a1 <test_arg_string+0x471>
mov    %eax,%edi
call   2150 <failure_on_line_131@plt>
jmp    28a8 <test_arg_string+0x478>
xor    %edi,%edi
call   22f0 <success_on_line_131@plt>
lea    0x78f(%rip),%rdx
xor    %edi,%edi
xor    %esi,%esi
mov    %r14,%rcx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x1,%eax
jne    28ce <test_arg_string+0x49e>
mov    $0x1,%edi
call   2140 <success_on_line_132@plt>
jmp    28d5 <test_arg_string+0x4a5>
mov    %eax,%edi
call   22b0 <failure_on_line_132@plt>
lea    0x768(%rip),%rdx
xor    %edi,%edi
xor    %esi,%esi
mov    %r14,%rcx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x2,%eax
jne    28fb <test_arg_string+0x4cb>
mov    $0x2,%edi
call   22c0 <success_on_line_133@plt>
jmp    2902 <test_arg_string+0x4d2>
mov    %eax,%edi
call   2120 <failure_on_line_133@plt>
lea    0x741(%rip),%rdx
xor    %edi,%edi
xor    %esi,%esi
mov    %r14,%rcx
xor    %eax,%eax
call   2110 <snprintf@plt>
cmp    $0x2,%eax
jne    292d <test_arg_string+0x4fd>
mov    $0x2,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    2160 <success_on_line_134@plt>
mov    %eax,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    22e0 <failure_on_line_134@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%-s\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [3 x i8] c"%%\00"
@.str.3 = [2 x i8] c"1\00"
@.str.4 = [3 x i8] c"12\00"
@.str.5 = [4 x i8] c"123\00"
@.str.6 = [5 x i8] c"s=%s\00"
@.str.7 = [9 x i8] c"%%s=\22%s\22\00"
@.str.8 = [6 x i8] c"12345\00"
@.str.9 = [5 x i8] c"%.*s\00"
@.str.10 = [6 x i8] c"%1.*s\00"
@.str.11 = [6 x i8] c"%4.*s\00"
@.str.12 = [4 x i8] c"456\00"
@.str.13 = [5 x i8] c"%.0s\00"
@.str.14 = [6 x i8] c"%1.1s\00"
@.str.15 = [6 x i8] c"%2.2s\00"
@.str.16 = [6 x i8] c"%2.1s\00"
define void @test_arg_string(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i8*
%24 = alloca i8*
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
store i8* %0, i8** %2
br label %30
30: ; preds = %1
%31 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
store i32 %31, i32* %3
br label %32
32: ; preds = %30
%33 = load i32, i32* %3
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = load i32, i32* %3
br label %39
37: ; preds = %32
%38 = load i32, i32* %3
br label %39
39: ; preds = %37, %35
br label %40
40: ; preds = %39
br label %41
41: ; preds = %40
br label %42
42: ; preds = %41
%43 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 %43, i32* %4
br label %44
44: ; preds = %42
%45 = load i32, i32* %4
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = load i32, i32* %4
br label %51
49: ; preds = %44
%50 = load i32, i32* %4
br label %51
51: ; preds = %49, %47
br label %52
52: ; preds = %51
br label %53
53: ; preds = %52
br label %54
54: ; preds = %53
%55 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 %55, i32* %5
br label %56
56: ; preds = %54
%57 = load i32, i32* %5
%58 = icmp eq i32 %57, 1
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = load i32, i32* %5
br label %63
61: ; preds = %56
%62 = load i32, i32* %5
br label %63
63: ; preds = %61, %59
br label %64
64: ; preds = %63
br label %65
65: ; preds = %64
br label %66
66: ; preds = %65
%67 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 %67, i32* %6
br label %68
68: ; preds = %66
%69 = load i32, i32* %6
%70 = icmp eq i32 %69, 2
br i1 %70, label %71, label %73
71: ; preds = %68
%72 = load i32, i32* %6
br label %75
73: ; preds = %68
%74 = load i32, i32* %6
br label %75
75: ; preds = %73, %71
br label %76
76: ; preds = %75
br label %77
77: ; preds = %76
br label %78
78: ; preds = %77
%79 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %79, i32* %7
br label %80
80: ; preds = %78
%81 = load i32, i32* %7
%82 = icmp eq i32 %81, 3
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = load i32, i32* %7
br label %87
85: ; preds = %80
%86 = load i32, i32* %7
br label %87
87: ; preds = %85, %83
br label %88
88: ; preds = %87
br label %89
89: ; preds = %88
br label %90
90: ; preds = %89
%91 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %91, i32* %8
br label %92
92: ; preds = %90
%93 = load i32, i32* %8
%94 = icmp eq i32 %93, 5
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = load i32, i32* %8
br label %99
97: ; preds = %92
%98 = load i32, i32* %8
br label %99
99: ; preds = %97, %95
br label %100
100: ; preds = %99
br label %101
101: ; preds = %100
br label %102
102: ; preds = %101
%103 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
store i32 %103, i32* %9
br label %104
104: ; preds = %102
%105 = load i32, i32* %9
%106 = icmp eq i32 %105, 10
br i1 %106, label %107, label %109
107: ; preds = %104
%108 = load i32, i32* %9
br label %111
109: ; preds = %104
%110 = load i32, i32* %9
br label %111
111: ; preds = %109, %107
br label %112
112: ; preds = %111
br label %113
113: ; preds = %112
br label %114
114: ; preds = %113
%115 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %115, i32* %10
br label %116
116: ; preds = %114
%117 = load i32, i32* %10
%118 = icmp eq i32 %117, 1
br i1 %118, label %119, label %121
119: ; preds = %116
%120 = load i32, i32* %10
br label %123
121: ; preds = %116
%122 = load i32, i32* %10
br label %123
123: ; preds = %121, %119
br label %124
124: ; preds = %123
br label %125
125: ; preds = %124
br label %126
126: ; preds = %125
%127 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %127, i32* %11
br label %128
128: ; preds = %126
%129 = load i32, i32* %11
%130 = icmp eq i32 %129, 2
br i1 %130, label %131, label %133
131: ; preds = %128
%132 = load i32, i32* %11
br label %135
133: ; preds = %128
%134 = load i32, i32* %11
br label %135
135: ; preds = %133, %131
br label %136
136: ; preds = %135
br label %137
137: ; preds = %136
br label %138
138: ; preds = %137
%139 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %139, i32* %12
br label %140
140: ; preds = %138
%141 = load i32, i32* %12
%142 = icmp eq i32 %141, 3
br i1 %142, label %143, label %145
143: ; preds = %140
%144 = load i32, i32* %12
br label %147
145: ; preds = %140
%146 = load i32, i32* %12
br label %147
147: ; preds = %145, %143
br label %148
148: ; preds = %147
br label %149
149: ; preds = %148
br label %150
150: ; preds = %149
%151 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %151, i32* %13
br label %152
152: ; preds = %150
%153 = load i32, i32* %13
%154 = icmp eq i32 %153, 3
br i1 %154, label %155, label %157
155: ; preds = %152
%156 = load i32, i32* %13
br label %159
157: ; preds = %152
%158 = load i32, i32* %13
br label %159
159: ; preds = %157, %155
br label %160
160: ; preds = %159
br label %161
161: ; preds = %160
br label %162
162: ; preds = %161
%163 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %163, i32* %14
br label %164
164: ; preds = %162
%165 = load i32, i32* %14
%166 = icmp eq i32 %165, 1
br i1 %166, label %167, label %169
167: ; preds = %164
%168 = load i32, i32* %14
br label %171
169: ; preds = %164
%170 = load i32, i32* %14
br label %171
171: ; preds = %169, %167
br label %172
172: ; preds = %171
br label %173
173: ; preds = %172
br label %174
174: ; preds = %173
%175 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %175, i32* %15
br label %176
176: ; preds = %174
%177 = load i32, i32* %15
%178 = icmp eq i32 %177, 2
br i1 %178, label %179, label %181
179: ; preds = %176
%180 = load i32, i32* %15
br label %183
181: ; preds = %176
%182 = load i32, i32* %15
br label %183
183: ; preds = %181, %179
br label %184
184: ; preds = %183
br label %185
185: ; preds = %184
br label %186
186: ; preds = %185
%187 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %187, i32* %16
br label %188
188: ; preds = %186
%189 = load i32, i32* %16
%190 = icmp eq i32 %189, 3
br i1 %190, label %191, label %193
191: ; preds = %188
%192 = load i32, i32* %16
br label %195
193: ; preds = %188
%194 = load i32, i32* %16
br label %195
195: ; preds = %193, %191
br label %196
196: ; preds = %195
br label %197
197: ; preds = %196
br label %198
198: ; preds = %197
%199 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %199, i32* %17
br label %200
200: ; preds = %198
%201 = load i32, i32* %17
%202 = icmp eq i32 %201, 3
br i1 %202, label %203, label %205
203: ; preds = %200
%204 = load i32, i32* %17
br label %207
205: ; preds = %200
%206 = load i32, i32* %17
br label %207
207: ; preds = %205, %203
br label %208
208: ; preds = %207
br label %209
209: ; preds = %208
br label %210
210: ; preds = %209
%211 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %211, i32* %18
br label %212
212: ; preds = %210
%213 = load i32, i32* %18
%214 = icmp eq i32 %213, 4
br i1 %214, label %215, label %217
215: ; preds = %212
%216 = load i32, i32* %18
br label %219
217: ; preds = %212
%218 = load i32, i32* %18
br label %219
219: ; preds = %217, %215
br label %220
220: ; preds = %219
br label %221
221: ; preds = %220
br label %222
222: ; preds = %221
%223 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %223, i32* %19
br label %224
224: ; preds = %222
%225 = load i32, i32* %19
%226 = icmp eq i32 %225, 4
br i1 %226, label %227, label %229
227: ; preds = %224
%228 = load i32, i32* %19
br label %231
229: ; preds = %224
%230 = load i32, i32* %19
br label %231
231: ; preds = %229, %227
br label %232
232: ; preds = %231
br label %233
233: ; preds = %232
br label %234
234: ; preds = %233
%235 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %235, i32* %20
br label %236
236: ; preds = %234
%237 = load i32, i32* %20
%238 = icmp eq i32 %237, 4
br i1 %238, label %239, label %241
239: ; preds = %236
%240 = load i32, i32* %20
br label %243
241: ; preds = %236
%242 = load i32, i32* %20
br label %243
243: ; preds = %241, %239
br label %244
244: ; preds = %243
br label %245
245: ; preds = %244
br label %246
246: ; preds = %245
%247 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %247, i32* %21
br label %248
248: ; preds = %246
%249 = load i32, i32* %21
%250 = icmp eq i32 %249, 4
br i1 %250, label %251, label %253
251: ; preds = %248
%252 = load i32, i32* %21
br label %255
253: ; preds = %248
%254 = load i32, i32* %21
br label %255
255: ; preds = %253, %251
br label %256
256: ; preds = %255
br label %257
257: ; preds = %256
br label %258
258: ; preds = %257
%259 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %259, i32* %22
br label %260
260: ; preds = %258
%261 = load i32, i32* %22
%262 = icmp eq i32 %261, 4
br i1 %262, label %263, label %265
263: ; preds = %260
%264 = load i32, i32* %22
br label %267
265: ; preds = %260
%266 = load i32, i32* %22
br label %267
267: ; preds = %265, %263
br label %268
268: ; preds = %267
br label %269
269: ; preds = %268
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8** %23
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8** %24
br label %270
270: ; preds = %269
%271 = load i8*, i8** %2
%272 = icmp ne i8* %271, null
br i1 %272, label %273, label %275
273: ; preds = %270
%274 = load i8*, i8** %23
br label %277
275: ; preds = %270
%276 = load i8*, i8** %24
br label %277
277: ; preds = %275, %273
%278 = phi i8* [ %274, %273 ], [ %276, %275 ]
%279 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %278)
store i32 %279, i32* %25
br label %280
280: ; preds = %277
%281 = load i32, i32* %25
%282 = icmp eq i32 %281, 3
br i1 %282, label %283, label %285
283: ; preds = %280
%284 = load i32, i32* %25
br label %287
285: ; preds = %280
%286 = load i32, i32* %25
br label %287
287: ; preds = %285, %283
br label %288
288: ; preds = %287
br label %289
289: ; preds = %288
br label %290
290: ; preds = %289
%291 = load i8*, i8** %2
%292 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %291)
store i32 %292, i32* %26
br label %293
293: ; preds = %290
%294 = load i32, i32* %26
%295 = icmp eq i32 %294, 0
br i1 %295, label %296, label %298
296: ; preds = %293
%297 = load i32, i32* %26
br label %300
298: ; preds = %293
%299 = load i32, i32* %26
br label %300
300: ; preds = %298, %296
br label %301
301: ; preds = %300
br label %302
302: ; preds = %301
br label %303
303: ; preds = %302
%304 = load i8*, i8** %2
%305 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* %304)
store i32 %305, i32* %27
br label %306
306: ; preds = %303
%307 = load i32, i32* %27
%308 = icmp eq i32 %307, 1
br i1 %308, label %309, label %311
309: ; preds = %306
%310 = load i32, i32* %27
br label %313
311: ; preds = %306
%312 = load i32, i32* %27
br label %313
313: ; preds = %311, %309
br label %314
314: ; preds = %313
br label %315
315: ; preds = %314
br label %316
316: ; preds = %315
%317 = load i8*, i8** %2
%318 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* %317)
store i32 %318, i32* %28
br label %319
319: ; preds = %316
%320 = load i32, i32* %28
%321 = icmp eq i32 %320, 2
br i1 %321, label %322, label %324
322: ; preds = %319
%323 = load i32, i32* %28
br label %326
324: ; preds = %319
%325 = load i32, i32* %28
br label %326
326: ; preds = %324, %322
br label %327
327: ; preds = %326
br label %328
328: ; preds = %327
br label %329
329: ; preds = %328
%330 = load i8*, i8** %2
%331 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* %330)
store i32 %331, i32* %29
br label %332
332: ; preds = %329
%333 = load i32, i32* %29
%334 = icmp eq i32 %333, 2
br i1 %334, label %335, label %337
335: ; preds = %332
%336 = load i32, i32* %29
br label %339
337: ; preds = %332
%338 = load i32, i32* %29
br label %339
339: ; preds = %337, %335
br label %340
340: ; preds = %339
br label %341
341: ; preds = %340
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%-s\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [3 x i8] c"%%\00"
@.str.3 = [2 x i8] c"1\00"
@.str.4 = [3 x i8] c"12\00"
@.str.5 = [4 x i8] c"123\00"
@.str.6 = [5 x i8] c"s=%s\00"
@.str.7 = [9 x i8] c"%%s=\22%s\22\00"
@.str.8 = [6 x i8] c"12345\00"
@.str.9 = [5 x i8] c"%.*s\00"
@.str.10 = [6 x i8] c"%1.*s\00"
@.str.11 = [6 x i8] c"%4.*s\00"
@.str.12 = [4 x i8] c"456\00"
@.str.13 = [5 x i8] c"%.0s\00"
@.str.14 = [6 x i8] c"%1.1s\00"
@.str.15 = [6 x i8] c"%2.2s\00"
@.str.16 = [6 x i8] c"%2.1s\00"
define void @test_arg_string(i8* %0) {
%2 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %1
tail call void @success_on_line_104(i32 0)
br label %6
5: ; preds = %1
tail call void @failure_on_line_104(i32 %2)
br label %6
6: ; preds = %5, %4
%7 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %6
tail call void @success_on_line_105(i32 1)
br label %11
10: ; preds = %6
tail call void @failure_on_line_105(i32 %7)
br label %11
11: ; preds = %10, %9
%12 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %15
14: ; preds = %11
tail call void @success_on_line_106(i32 1)
br label %16
15: ; preds = %11
tail call void @failure_on_line_106(i32 %12)
br label %16
16: ; preds = %15, %14
%17 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %20
19: ; preds = %16
tail call void @success_on_line_107(i32 2)
br label %21
20: ; preds = %16
tail call void @failure_on_line_107(i32 %17)
br label %21
21: ; preds = %20, %19
%22 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%23 = icmp eq i32 %22, 3
br i1 %23, label %24, label %25
24: ; preds = %21
tail call void @success_on_line_108(i32 3)
br label %26
25: ; preds = %21
tail call void @failure_on_line_108(i32 %22)
br label %26
26: ; preds = %25, %24
%27 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%28 = icmp eq i32 %27, 5
br i1 %28, label %29, label %30
29: ; preds = %26
tail call void @success_on_line_109(i32 5)
br label %31
30: ; preds = %26
tail call void @failure_on_line_109(i32 %27)
br label %31
31: ; preds = %30, %29
%32 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%33 = icmp eq i32 %32, 10
br i1 %33, label %34, label %35
34: ; preds = %31
tail call void @success_on_line_110(i32 10)
br label %36
35: ; preds = %31
tail call void @failure_on_line_110(i32 %32)
br label %36
36: ; preds = %35, %34
%37 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %40
39: ; preds = %36
tail call void @success_on_line_112(i32 1)
br label %41
40: ; preds = %36
tail call void @failure_on_line_112(i32 %37)
br label %41
41: ; preds = %40, %39
%42 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%43 = icmp eq i32 %42, 2
br i1 %43, label %44, label %45
44: ; preds = %41
tail call void @success_on_line_113(i32 2)
br label %46
45: ; preds = %41
tail call void @failure_on_line_113(i32 %42)
br label %46
46: ; preds = %45, %44
%47 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%48 = icmp eq i32 %47, 3
br i1 %48, label %49, label %50
49: ; preds = %46
tail call void @success_on_line_114(i32 3)
br label %51
50: ; preds = %46
tail call void @failure_on_line_114(i32 %47)
br label %51
51: ; preds = %50, %49
%52 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%53 = icmp eq i32 %52, 3
br i1 %53, label %54, label %55
54: ; preds = %51
tail call void @success_on_line_115(i32 3)
br label %56
55: ; preds = %51
tail call void @failure_on_line_115(i32 %52)
br label %56
56: ; preds = %55, %54
%57 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%58 = icmp eq i32 %57, 1
br i1 %58, label %59, label %60
59: ; preds = %56
tail call void @success_on_line_117(i32 1)
br label %61
60: ; preds = %56
tail call void @failure_on_line_117(i32 %57)
br label %61
61: ; preds = %60, %59
%62 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%63 = icmp eq i32 %62, 2
br i1 %63, label %64, label %65
64: ; preds = %61
tail call void @success_on_line_118(i32 2)
br label %66
65: ; preds = %61
tail call void @failure_on_line_118(i32 %62)
br label %66
66: ; preds = %65, %64
%67 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%68 = icmp eq i32 %67, 3
br i1 %68, label %69, label %70
69: ; preds = %66
tail call void @success_on_line_119(i32 3)
br label %71
70: ; preds = %66
tail call void @failure_on_line_119(i32 %67)
br label %71
71: ; preds = %70, %69
%72 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%73 = icmp eq i32 %72, 3
br i1 %73, label %74, label %75
74: ; preds = %71
tail call void @success_on_line_120(i32 3)
br label %76
75: ; preds = %71
tail call void @failure_on_line_120(i32 %72)
br label %76
76: ; preds = %75, %74
%77 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%78 = icmp eq i32 %77, 4
br i1 %78, label %79, label %80
79: ; preds = %76
tail call void @success_on_line_121(i32 4)
br label %81
80: ; preds = %76
tail call void @failure_on_line_121(i32 %77)
br label %81
81: ; preds = %80, %79
%82 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%83 = icmp eq i32 %82, 4
br i1 %83, label %84, label %85
84: ; preds = %81
tail call void @success_on_line_122(i32 4)
br label %86
85: ; preds = %81
tail call void @failure_on_line_122(i32 %82)
br label %86
86: ; preds = %85, %84
%87 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%88 = icmp eq i32 %87, 4
br i1 %88, label %89, label %90
89: ; preds = %86
tail call void @success_on_line_123(i32 4)
br label %91
90: ; preds = %86
tail call void @failure_on_line_123(i32 %87)
br label %91
91: ; preds = %90, %89
%92 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%93 = icmp eq i32 %92, 4
br i1 %93, label %94, label %95
94: ; preds = %91
tail call void @success_on_line_124(i32 4)
br label %96
95: ; preds = %91
tail call void @failure_on_line_124(i32 %92)
br label %96
96: ; preds = %95, %94
%97 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%98 = icmp eq i32 %97, 4
br i1 %98, label %99, label %100
99: ; preds = %96
tail call void @success_on_line_125(i32 4)
br label %101
100: ; preds = %96
tail call void @failure_on_line_125(i32 %97)
br label %101
101: ; preds = %100, %99
%102 = icmp eq i8* %0, null
%103 = select i1 %102, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0)
%104 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %103)
%105 = icmp eq i32 %104, 3
br i1 %105, label %106, label %107
106: ; preds = %101
tail call void @success_on_line_130(i32 3)
br label %108
107: ; preds = %101
tail call void @failure_on_line_130(i32 %104)
br label %108
108: ; preds = %107, %106
%109 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %0)
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %108
tail call void @success_on_line_131(i32 0)
br label %113
112: ; preds = %108
tail call void @failure_on_line_131(i32 %109)
br label %113
113: ; preds = %112, %111
%114 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* %0)
%115 = icmp eq i32 %114, 1
br i1 %115, label %116, label %117
116: ; preds = %113
tail call void @success_on_line_132(i32 1)
br label %118
117: ; preds = %113
tail call void @failure_on_line_132(i32 %114)
br label %118
118: ; preds = %117, %116
%119 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* %0)
%120 = icmp eq i32 %119, 2
br i1 %120, label %121, label %122
121: ; preds = %118
tail call void @success_on_line_133(i32 2)
br label %123
122: ; preds = %118
tail call void @failure_on_line_133(i32 %119)
br label %123
123: ; preds = %122, %121
%124 = tail call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* %0)
%125 = icmp eq i32 %124, 2
br i1 %125, label %126, label %127
126: ; preds = %123
tail call void @success_on_line_134(i32 2)
br label %128
127: ; preds = %123
tail call void @failure_on_line_134(i32 %124)
br label %128
128: ; preds = %127, %126
ret void
}