int main(int argc, char **argv) {
  char expect[80];
  char actual[80];
  int failures, verbose;
  void *vptr;
  failures = 0;
  verbose = (argc > 1) ? atoi(argv[1]) : 0;
  vptr = &verbose;
  eh_snprintf(actual, 80, "%f %11.2f", 123.4, -0.456);
  sprintf(expect, "%f %11.2f", 123.4, -0.456);
  failures +=
      ehpf_check_str_m("/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/"
                       "libeh-printf/refs/heads/master/tests/test-misc.c",
                       40, actual, expect, "%f %11.2f");
  if (verbose) {
    printf("%s:\n actual: '%s'\n expect: '%s'\n", "%f %11.2f", actual, expect);
  };
  eh_snprintf(actual, 80, "%d %i", 3, 23);
  sprintf(expect, "%d %i", 3, 23);
  failures +=
      ehpf_check_str_m("/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/"
                       "libeh-printf/refs/heads/master/tests/test-misc.c",
                       41, actual, expect, "%d %i");
  if (verbose) {
    printf("%s:\n actual: '%s'\n expect: '%s'\n", "%d %i", actual, expect);
  };
  eh_snprintf(actual, 80, "%X %x", -3, 23);
  sprintf(expect, "%X %x", -3, 23);
  failures +=
      ehpf_check_str_m("/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/"
                       "libeh-printf/refs/heads/master/tests/test-misc.c",
                       42, actual, expect, "%X %x");
  if (verbose) {
    printf("%s:\n actual: '%s'\n expect: '%s'\n", "%X %x", actual, expect);
  };
  eh_snprintf(actual, 80, "%#X %#x", -5, 37);
  sprintf(expect, "%#X %#x", -5, 37);
  failures +=
      ehpf_check_str_m("/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/"
                       "libeh-printf/refs/heads/master/tests/test-misc.c",
                       43, actual, expect, "%#X %#x");
  if (verbose) {
    printf("%s:\n actual: '%s'\n expect: '%s'\n", "%#X %#x", actual, expect);
  };
  eh_snprintf(actual, 80, "%#02lx", -537L);
  sprintf(expect, "%#02lx", -537L);
  failures +=
      ehpf_check_str_m("/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/"
                       "libeh-printf/refs/heads/master/tests/test-misc.c",
                       44, actual, expect, "%#02lx");
  if (verbose) {
    printf("%s:\n actual: '%s'\n expect: '%s'\n", "%#02lx", actual, expect);
  };
  eh_snprintf(actual, 80, "%#2f", 4211.0);
  sprintf(expect, "%#2f", 4211.0);
  failures +=
      ehpf_check_str_m("/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/"
                       "libeh-printf/refs/heads/master/tests/test-misc.c",
                       45, actual, expect, "%#2f");
  if (verbose) {
    printf("%s:\n actual: '%s'\n expect: '%s'\n", "%#2f", actual, expect);
  };
  eh_snprintf(actual, 80, "%p", vptr);
  sprintf(expect, "%p", vptr);
  failures +=
      ehpf_check_str_m("/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/"
                       "libeh-printf/refs/heads/master/tests/test-misc.c",
                       46, actual, expect, "%p");
  if (verbose) {
    printf("%s:\n actual: '%s'\n expect: '%s'\n", "%p", actual, expect);
  };
  return failures ? 1 : 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0xb4(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1197 <main+0x47>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   1060 <atoi@plt>
mov    %eax,-0xc4(%rbp)
jmp    11a4 <main+0x54>
xor    %eax,%eax
mov    %eax,-0xc4(%rbp)
jmp    11a4 <main+0x54>
mov    -0xc4(%rbp),%eax
mov    %eax,-0xb8(%rbp)
lea    -0xb8(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    -0xb0(%rbp),%rdi
mov    $0x50,%esi
lea    0xe47(%rip),%rdx
movsd  0xe27(%rip),%xmm0
movsd  0xe27(%rip),%xmm1
mov    $0x2,%al
call   1050 <eh_snprintf@plt>
lea    -0x60(%rbp),%rdi
lea    0xe25(%rip),%rsi
movsd  0xe05(%rip),%xmm0
movsd  0xe05(%rip),%xmm1
mov    $0x2,%al
call   1070 <sprintf@plt>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xe06(%rip),%rdi
mov    $0x28,%esi
lea    0xdf0(%rip),%r8
mov    $0x0,%al
call   1040 <ehpf_check_str_m@plt>
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
cmpl   $0x0,-0xb8(%rbp)
je     1268 <main+0x118>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xe5e(%rip),%rdi
lea    0xdb7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xb0(%rbp),%rdi
mov    $0x50,%esi
lea    0xe5e(%rip),%rdx
mov    $0x3,%ecx
mov    $0x17,%r8d
mov    $0x0,%al
call   1050 <eh_snprintf@plt>
lea    -0x60(%rbp),%rdi
lea    0xe41(%rip),%rsi
mov    $0x3,%edx
mov    $0x17,%ecx
mov    $0x0,%al
call   1070 <sprintf@plt>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xd67(%rip),%rdi
mov    $0x29,%esi
lea    0xe12(%rip),%r8
mov    $0x0,%al
call   1040 <ehpf_check_str_m@plt>
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
cmpl   $0x0,-0xb8(%rbp)
je     1307 <main+0x1b7>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xdbf(%rip),%rdi
lea    0xdd9(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xb0(%rbp),%rdi
mov    $0x50,%esi
lea    0xdc5(%rip),%rdx
mov    $0xfffffffd,%ecx
mov    $0x17,%r8d
mov    $0x0,%al
call   1050 <eh_snprintf@plt>
lea    -0x60(%rbp),%rdi
lea    0xda8(%rip),%rsi
mov    $0xfffffffd,%edx
mov    $0x17,%ecx
mov    $0x0,%al
call   1070 <sprintf@plt>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xcc8(%rip),%rdi
mov    $0x2a,%esi
lea    0xd79(%rip),%r8
mov    $0x0,%al
call   1040 <ehpf_check_str_m@plt>
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
cmpl   $0x0,-0xb8(%rbp)
je     13a6 <main+0x256>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xd20(%rip),%rdi
lea    0xd40(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xb0(%rbp),%rdi
mov    $0x50,%esi
lea    0xd2c(%rip),%rdx
mov    $0xfffffffb,%ecx
mov    $0x25,%r8d
mov    $0x0,%al
call   1050 <eh_snprintf@plt>
lea    -0x60(%rbp),%rdi
lea    0xd0f(%rip),%rsi
mov    $0xfffffffb,%edx
mov    $0x25,%ecx
mov    $0x0,%al
call   1070 <sprintf@plt>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xc29(%rip),%rdi
mov    $0x2b,%esi
lea    0xce0(%rip),%r8
mov    $0x0,%al
call   1040 <ehpf_check_str_m@plt>
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
cmpl   $0x0,-0xb8(%rbp)
je     1445 <main+0x2f5>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xc81(%rip),%rdi
lea    0xca7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xb0(%rbp),%rdi
mov    $0x50,%esi
lea    0xc95(%rip),%rdx
mov    $0xfffffffffffffde7,%rcx
mov    $0x0,%al
call   1050 <eh_snprintf@plt>
lea    -0x60(%rbp),%rdi
lea    0xc7c(%rip),%rsi
mov    $0xfffffffffffffde7,%rdx
mov    $0x0,%al
call   1070 <sprintf@plt>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xb91(%rip),%rdi
mov    $0x2c,%esi
lea    0xc50(%rip),%r8
mov    $0x0,%al
call   1040 <ehpf_check_str_m@plt>
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
cmpl   $0x0,-0xb8(%rbp)
je     14dd <main+0x38d>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xbe9(%rip),%rdi
lea    0xc17(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xb0(%rbp),%rdi
mov    $0x50,%esi
lea    0xc04(%rip),%rdx
movsd  0xb18(%rip),%xmm0
mov    $0x1,%al
call   1050 <eh_snprintf@plt>
lea    -0x60(%rbp),%rdi
lea    0xbea(%rip),%rsi
movsd  0xafe(%rip),%xmm0
mov    $0x1,%al
call   1070 <sprintf@plt>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xaf7(%rip),%rdi
mov    $0x2d,%esi
lea    0xbbd(%rip),%r8
mov    $0x0,%al
call   1040 <ehpf_check_str_m@plt>
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
cmpl   $0x0,-0xb8(%rbp)
je     1577 <main+0x427>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xb4f(%rip),%rdi
lea    0xb84(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xb0(%rbp),%rdi
mov    -0xc0(%rbp),%rcx
mov    $0x50,%esi
lea    0xb68(%rip),%rdx
mov    $0x0,%al
call   1050 <eh_snprintf@plt>
lea    -0x60(%rbp),%rdi
mov    -0xc0(%rbp),%rdx
lea    0xb4f(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xa5f(%rip),%rdi
mov    $0x2e,%esi
lea    0xb2a(%rip),%r8
mov    $0x0,%al
call   1040 <ehpf_check_str_m@plt>
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
cmpl   $0x0,-0xb8(%rbp)
je     160f <main+0x4bf>
lea    -0xb0(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0xab7(%rip),%rdi
lea    0xaf1(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb4(%rbp),%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
xor    %r15d,%r15d
cmp    $0x2,%edi
jl     1177 <main+0x27>
mov    0x8(%rsi),%rdi
xor    %eax,%eax
call   1060 <atoi@plt>
mov    %eax,%r15d
mov    %r15d,0xc(%rsp)
lea    0xe95(%rip),%rbx
lea    0x20(%rsp),%r14
movsd  0xe70(%rip),%xmm0
movsd  0xe70(%rip),%xmm1
mov    %r14,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
mov    $0x2,%al
call   1050 <eh_snprintf@plt>
lea    0x70(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
movsd  0xe43(%rip),%xmm0
movsd  0xe43(%rip),%xmm1
mov    $0x2,%al
call   1070 <sprintf@plt>
lea    0xe4f(%rip),%rdi
mov    $0x28,%esi
mov    %r14,%rdx
mov    %rbp,%rcx
mov    %rbx,%r8
xor    %eax,%eax
call   1040 <ehpf_check_str_m@plt>
mov    %eax,0x1c(%rsp)
test   %r15d,%r15d
je     1210 <main+0xc0>
lea    0xec0(%rip),%rdi
lea    0xe19(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x70(%rsp),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec2(%rip),%rbx
lea    0x20(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
mov    $0x3,%ecx
mov    $0x17,%r8d
xor    %eax,%eax
call   1050 <eh_snprintf@plt>
lea    0x70(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
mov    $0x17,%ecx
xor    %eax,%eax
call   1070 <sprintf@plt>
lea    0xdc6(%rip),%rdi
mov    $0x29,%esi
mov    %r14,%rdx
mov    %rbp,%rcx
mov    %rbx,%r8
xor    %eax,%eax
call   1040 <ehpf_check_str_m@plt>
mov    %eax,%ebx
test   %r15d,%r15d
je     1297 <main+0x147>
lea    0xe39(%rip),%rdi
lea    0xe53(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x70(%rsp),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe41(%rip),%r12
lea    0x20(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
mov    $0xfffffffd,%ecx
mov    $0x17,%r8d
xor    %eax,%eax
call   1050 <eh_snprintf@plt>
lea    0x70(%rsp),%rbp
mov    %rbp,%rdi
mov    %r12,%rsi
mov    $0xfffffffd,%edx
mov    $0x17,%ecx
xor    %eax,%eax
call   1070 <sprintf@plt>
lea    0xd3f(%rip),%rdi
mov    $0x2a,%esi
mov    %r14,%rdx
mov    %rbp,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1040 <ehpf_check_str_m@plt>
mov    %eax,0x18(%rsp)
test   %r15d,%r15d
je     1320 <main+0x1d0>
lea    0xdb0(%rip),%rdi
lea    0xdd0(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x70(%rsp),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdbe(%rip),%r12
lea    0x20(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
mov    $0xfffffffb,%ecx
mov    $0x25,%r8d
xor    %eax,%eax
call   1050 <eh_snprintf@plt>
lea    0x70(%rsp),%rbp
mov    %rbp,%rdi
mov    %r12,%rsi
mov    $0xfffffffb,%edx
mov    $0x25,%ecx
xor    %eax,%eax
call   1070 <sprintf@plt>
lea    0xcb6(%rip),%rdi
mov    $0x2b,%esi
mov    %r14,%rdx
mov    %rbp,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1040 <ehpf_check_str_m@plt>
mov    %eax,0x14(%rsp)
test   %r15d,%r15d
je     13a9 <main+0x259>
lea    0xd27(%rip),%rdi
lea    0xd4d(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x70(%rsp),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd3d(%rip),%r13
lea    0x20(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r13,%rdx
mov    $0xfffffffffffffde7,%rcx
xor    %eax,%eax
call   1050 <eh_snprintf@plt>
lea    0x70(%rsp),%rbp
mov    %rbp,%rdi
mov    %r13,%rsi
mov    $0xfffffffffffffde7,%rdx
xor    %eax,%eax
call   1070 <sprintf@plt>
lea    0xc34(%rip),%rdi
mov    $0x2c,%esi
mov    %r14,%rdx
mov    %rbp,%rcx
mov    %r13,%r8
xor    %eax,%eax
call   1040 <ehpf_check_str_m@plt>
mov    %eax,0x10(%rsp)
test   %r15d,%r15d
je     142b <main+0x2db>
lea    0xca5(%rip),%rdi
lea    0xcd3(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x70(%rsp),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xcc2(%rip),%rbp
lea    0x20(%rsp),%r14
movsd  0xbd1(%rip),%xmm0
mov    %r14,%rdi
mov    $0x50,%esi
mov    %rbp,%rdx
mov    $0x1,%al
call   1050 <eh_snprintf@plt>
lea    0x70(%rsp),%r12
mov    %r12,%rdi
mov    %rbp,%rsi
movsd  0xbac(%rip),%xmm0
mov    $0x1,%al
call   1070 <sprintf@plt>
lea    0xbb0(%rip),%rdi
mov    $0x2d,%esi
mov    %r14,%rdx
mov    %r12,%rcx
mov    %rbp,%r8
xor    %eax,%eax
call   1040 <ehpf_check_str_m@plt>
mov    %eax,%r14d
test   %r15d,%r15d
je     14ae <main+0x35e>
lea    0xc22(%rip),%rdi
lea    0xc57(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x70(%rsp),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc44(%rip),%r12
lea    0x20(%rsp),%r15
lea    0xc(%rsp),%rbp
mov    %r15,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1050 <eh_snprintf@plt>
lea    0x70(%rsp),%r13
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1070 <sprintf@plt>
lea    0xb32(%rip),%rdi
mov    $0x2e,%esi
mov    %r15,%rdx
mov    %r13,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1040 <ehpf_check_str_m@plt>
mov    %eax,%ebp
cmpl   $0x0,0xc(%rsp)
je     152d <main+0x3dd>
lea    0xba3(%rip),%rdi
lea    0xbdd(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x70(%rsp),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
add    0x1c(%rsp),%ebx
add    0x18(%rsp),%ebx
add    0x14(%rsp),%ebx
add    0x10(%rsp),%ebx
add    %r14d,%ebx
xor    %eax,%eax
add    %ebp,%ebx
setne  %al
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%f %11.2f\00"
@.str.1 = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/libeh-printf/refs/heads/master/tests/test-misc.c\00"
@.str.2 = [33 x i8] c"%s:\0A actual: '%s'\0A expect: '%s'\0A\00"
@.str.3 = [6 x i8] c"%d %i\00"
@.str.4 = [6 x i8] c"%X %x\00"
@.str.5 = [8 x i8] c"%#X %#x\00"
@.str.6 = [7 x i8] c"%lx\00"
@.str.7 = [5 x i8] c"%f\00"
@.str.8 = [3 x i8] c"%p\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [80 x i8]
%7 = alloca [80 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
%11 = load i32, i32* %4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %16)
br label %19
18: ; preds = %2
br label %19
19: ; preds = %18, %13
%20 = phi i32 [ %17, %13 ], [ 0, %18 ]
store i32 %20, i32* %9
%21 = bitcast i32* %9 to i8*
store i8* %21, i8** %10
%22 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%23 = call i32 (i8*, i32, i8*, double, double, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, double, double, ...)*)(i8* %22, i32 80, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double 1.234000e+02, double -4.560000e-01)
%24 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%25 = call i32 (i8*, i8*, ...) @sprintf(i8* %24, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double 1.234000e+02, double -4.560000e-01)
%26 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%27 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%28 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 40, i8* %26, i8* %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%29 = load i32, i32* %8
%30 = add nsw i32 %29, %28
store i32 %30, i32* %8
%31 = load i32, i32* %9
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %19
%34 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%35 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %34, i8* %35)
br label %37
37: ; preds = %33, %19
%38 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%39 = call i32 (i8*, i32, i8*, i32, i32, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i32, i32, ...)*)(i8* %38, i32 80, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 23)
%40 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%41 = call i32 (i8*, i8*, ...) @sprintf(i8* %40, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 23)
%42 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%43 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%44 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 41, i8* %42, i8* %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%45 = load i32, i32* %8
%46 = add nsw i32 %45, %44
store i32 %46, i32* %8
%47 = load i32, i32* %9
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %37
%50 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%51 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %50, i8* %51)
br label %53
53: ; preds = %49, %37
%54 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%55 = call i32 (i8*, i32, i8*, i32, i32, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i32, i32, ...)*)(i8* %54, i32 80, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 -3, i32 23)
%56 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%57 = call i32 (i8*, i8*, ...) @sprintf(i8* %56, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 -3, i32 23)
%58 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%59 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%60 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 42, i8* %58, i8* %59, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%61 = load i32, i32* %8
%62 = add nsw i32 %61, %60
store i32 %62, i32* %8
%63 = load i32, i32* %9
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %53
%66 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%67 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %66, i8* %67)
br label %69
69: ; preds = %65, %53
%70 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%71 = call i32 (i8*, i32, i8*, i32, i32, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i32, i32, ...)*)(i8* %70, i32 80, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 -5, i32 37)
%72 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%73 = call i32 (i8*, i8*, ...) @sprintf(i8* %72, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 -5, i32 37)
%74 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%75 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%76 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 43, i8* %74, i8* %75, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%77 = load i32, i32* %8
%78 = add nsw i32 %77, %76
store i32 %78, i32* %8
%79 = load i32, i32* %9
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %85
81: ; preds = %69
%82 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%83 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %82, i8* %83)
br label %85
85: ; preds = %81, %69
%86 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%87 = call i32 (i8*, i32, i8*, i64, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i64, ...)*)(i8* %86, i32 80, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i64 -537)
%88 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%89 = call i32 (i8*, i8*, ...) @sprintf(i8* %88, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i64 -537)
%90 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%91 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%92 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 44, i8* %90, i8* %91, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%93 = load i32, i32* %8
%94 = add nsw i32 %93, %92
store i32 %94, i32* %8
%95 = load i32, i32* %9
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %85
%98 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%99 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %98, i8* %99)
br label %101
101: ; preds = %97, %85
%102 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%103 = call i32 (i8*, i32, i8*, double, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, double, ...)*)(i8* %102, i32 80, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double 4.211000e+03)
%104 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%105 = call i32 (i8*, i8*, ...) @sprintf(i8* %104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double 4.211000e+03)
%106 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%107 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%108 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 45, i8* %106, i8* %107, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%109 = load i32, i32* %8
%110 = add nsw i32 %109, %108
store i32 %110, i32* %8
%111 = load i32, i32* %9
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %117
113: ; preds = %101
%114 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%115 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %114, i8* %115)
br label %117
117: ; preds = %113, %101
%118 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%119 = load i8*, i8** %10
%120 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i8*, ...)*)(i8* %118, i32 80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %119)
%121 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%122 = load i8*, i8** %10
%123 = call i32 (i8*, i8*, ...) @sprintf(i8* %121, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %122)
%124 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%125 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%126 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 46, i8* %124, i8* %125, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%127 = load i32, i32* %8
%128 = add nsw i32 %127, %126
store i32 %128, i32* %8
%129 = load i32, i32* %9
%130 = icmp ne i32 %129, 0
br i1 %130, label %131, label %135
131: ; preds = %117
%132 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%133 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %132, i8* %133)
br label %135
135: ; preds = %131, %117
%136 = load i32, i32* %8
%137 = icmp ne i32 %136, 0
%138 = zext i1 %137 to i64
%139 = select i1 %137, i32 1, i32 0
ret i32 %139
}

LLVM IR (-O2):
@.str = [10 x i8] c"%f %11.2f\00"
@.str.1 = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ericherman/libeh-printf/refs/heads/master/tests/test-misc.c\00"
@.str.2 = [33 x i8] c"%s:\0A actual: '%s'\0A expect: '%s'\0A\00"
@.str.3 = [6 x i8] c"%d %i\00"
@.str.4 = [6 x i8] c"%X %x\00"
@.str.5 = [8 x i8] c"%#X %#x\00"
@.str.6 = [7 x i8] c"%lx\00"
@.str.7 = [5 x i8] c"%f\00"
@.str.8 = [3 x i8] c"%p\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [80 x i8]
%4 = alloca [80 x i8]
%5 = alloca i32
%6 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%8 = bitcast i32* %5 to i8*
%9 = icmp sgt i32 %0, 1
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %12)
br label %14
14: ; preds = %2, %10
%15 = phi i32 [ %13, %10 ], [ 0, %2 ]
store i32 %15, i32* %5
%16 = call i32 (i8*, i32, i8*, double, double, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, double, double, ...)*)(i8* %7, i32 80, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double 1.234000e+02, double -4.560000e-01)
%17 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double 1.234000e+02, double -4.560000e-01)
%18 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 40, i8* %7, i8* %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%19 = icmp eq i32 %15, 0
br i1 %19, label %22, label %20
20: ; preds = %14
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %6)
br label %22
22: ; preds = %20, %14
%23 = call i32 (i8*, i32, i8*, i32, i32, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i32, i32, ...)*)(i8* %7, i32 80, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 23)
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 23)
%25 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 41, i8* %7, i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br i1 %19, label %28, label %26
26: ; preds = %22
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %7, i8* %6)
br label %28
28: ; preds = %26, %22
%29 = call i32 (i8*, i32, i8*, i32, i32, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i32, i32, ...)*)(i8* %7, i32 80, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 -3, i32 23)
%30 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 -3, i32 23)
%31 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 42, i8* %7, i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br i1 %19, label %34, label %32
32: ; preds = %28
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %7, i8* %6)
br label %34
34: ; preds = %32, %28
%35 = call i32 (i8*, i32, i8*, i32, i32, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i32, i32, ...)*)(i8* %7, i32 80, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 -5, i32 37)
%36 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 -5, i32 37)
%37 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 43, i8* %7, i8* %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br i1 %19, label %40, label %38
38: ; preds = %34
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %7, i8* %6)
br label %40
40: ; preds = %38, %34
%41 = call i32 (i8*, i32, i8*, i64, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i64, ...)*)(i8* %7, i32 80, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i64 -537)
%42 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i64 -537)
%43 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 44, i8* %7, i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br i1 %19, label %46, label %44
44: ; preds = %40
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %7, i8* %6)
br label %46
46: ; preds = %44, %40
%47 = call i32 (i8*, i32, i8*, double, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, double, ...)*)(i8* %7, i32 80, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double 4.211000e+03)
%48 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double 4.211000e+03)
%49 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 45, i8* %7, i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br i1 %19, label %52, label %50
50: ; preds = %46
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %7, i8* %6)
br label %52
52: ; preds = %50, %46
%53 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @eh_snprintf to i32 (i8*, i32, i8*, i8*, ...)*)(i8* %7, i32 80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %8)
%54 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %5)
%55 = call i32 (i8*, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ehpf_check_str_m to i32 (i8*, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 46, i8* %7, i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%56 = load i32, i32* %5
%57 = icmp eq i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %52
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %7, i8* %6)
br label %60
60: ; preds = %58, %52
%61 = add nsw i32 %25, %18
%62 = add nsw i32 %61, %31
%63 = add nsw i32 %62, %37
%64 = add nsw i32 %63, %43
%65 = add nsw i32 %64, %49
%66 = sub i32 0, %55
%67 = icmp ne i32 %65, %66
%68 = zext i1 %67 to i32
ret i32 %68
}