#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef size_t uint32_t;
typedef int /*<<< orphan*/ nargs;
typedef int /*<<< orphan*/ cl_kernel;
typedef int /*<<< orphan*/ cl_int;

/* Variables and functions */
int /*<<< orphan*/ CL_KERNEL_NUM_ARGS;
int asprintf(char **, char *, size_t const);
int /*<<< orphan*/ check_cl_error(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ clGetKernelInfo(int /*<<< orphan*/ const, int /*<<< orphan*/,
                                   int, size_t *, int /*<<< orphan*/ *);
int /*<<< orphan*/ det_fprintf(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ det_printf(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ print_and_log_err(char *, ...);
int /*<<< orphan*/ print_warn_header();
int /*<<< orphan*/ stderr;
void printDupeWarning(const cl_kernel kern, const uint32_t *const dupe) {
  cl_int cl_err;
  uint32_t i, nargs;
  cl_err =
      clGetKernelInfo(kern, CL_KERNEL_NUM_ARGS, sizeof(nargs), &nargs, NULL);
  check_cl_error(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/GPUOpen-ProfessionalCompute-Tools/clARMOR/"
      "refs/heads/master/src/detector/overflow_error.c",
      407, cl_err);
  int saw_a_duplicate = 0;
  for (i = 0; i < nargs; i++) {
    if (dupe[i] != i)
      saw_a_duplicate = 1;
  }
  if (!saw_a_duplicate)
    return;
  print_warn_header();
  print_and_log_err("Some of this kernel's arguments point to identical "
                    "buffers.\n");
  print_and_log_err("An overflow in one argument may therefore be "
                    "detected in the other argument with identical buffer.\n");
  for (i = 0; i < nargs; i++) {
    if (dupe[i] == i)
      continue;
    char *origArgName = NULL;
    char *cloneArgName = NULL;
    int num_bytes = asprintf(&origArgName, "Argument %d", dupe[i]);
    {
      if (num_bytes <= 0) {
        det_fprintf(
            stderr, "asprintf in %s:%d failed\n",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/GPUOpen-ProfessionalCompute-Tools/"
            "clARMOR/refs/heads/master/src/detector/overflow_error.c",
            489);
        exit(-1);
      }
    };
    num_bytes = asprintf(&cloneArgName, "Argument %d", i);
    {
      if (num_bytes <= 0) {
        det_fprintf(
            stderr, "asprintf in %s:%d failed\n",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/GPUOpen-ProfessionalCompute-Tools/"
            "clARMOR/refs/heads/master/src/detector/overflow_error.c",
            491);
        exit(-1);
      }
    };
    print_and_log_err("    %s (argument %lu) is the same buffer as %s "
                      "(argument %lu)\n",
                      cloneArgName, i, origArgName, dupe[i]);
    if (cloneArgName != NULL)
      free(cloneArgName);
    if (origArgName != NULL)
      free(origArgName);
  }
  det_printf("\n");
}


x86 assembly (clang, -O0):
<printDupeWarning>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2e3f(%rip),%rax
mov    (%rax),%esi
mov    $0x8,%edx
lea    -0x28(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   1050 <clGetKernelInfo@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
lea    0xe35(%rip),%rdi
mov    $0x197,%esi
call   1070 <check_cl_error@plt>
movl   $0x0,-0x2c(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    1225 <printDupeWarning+0x95>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
cmp    -0x20(%rbp),%rax
je     120f <printDupeWarning+0x7f>
movl   $0x1,-0x2c(%rbp)
jmp    1214 <printDupeWarning+0x84>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    11e4 <printDupeWarning+0x54>
cmpl   $0x0,-0x2c(%rbp)
jne    1234 <printDupeWarning+0xa4>
jmp    13a8 <printDupeWarning+0x218>
mov    $0x0,%al
call   1090 <print_warn_header@plt>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1060 <print_and_log_err@plt>
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1060 <print_and_log_err@plt>
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    139c <printDupeWarning+0x20c>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
cmp    -0x20(%rbp),%rax
jne    1288 <printDupeWarning+0xf8>
jmp    138b <printDupeWarning+0x1fb>
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    -0x38(%rbp),%rdi
lea    0xea6(%rip),%rsi
call   1080 <asprintf@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jg     12ec <printDupeWarning+0x15c>
mov    0x2d10(%rip),%rax
mov    (%rax),%edi
lea    0xe90(%rip),%rsi
lea    0xd28(%rip),%rdx
mov    $0x1e9,%ecx
call   10b0 <det_fprintf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x20(%rbp),%rdx
lea    -0x40(%rbp),%rdi
lea    0xe5a(%rip),%rsi
call   1080 <asprintf@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jg     1338 <printDupeWarning+0x1a8>
mov    0x2cc4(%rip),%rax
mov    (%rax),%edi
lea    0xe44(%rip),%rsi
lea    0xcdc(%rip),%rdx
mov    $0x1eb,%ecx
call   10b0 <det_fprintf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x40(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rdi
mov    (%rax,%rdi,8),%r8
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1060 <print_and_log_err@plt>
cmpq   $0x0,-0x40(%rbp)
je     1372 <printDupeWarning+0x1e2>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x38(%rbp)
je     1386 <printDupeWarning+0x1f6>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
jmp    138b <printDupeWarning+0x1fb>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    125f <printDupeWarning+0xcf>
lea    0xe15(%rip),%rdi
call   1040 <det_printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printDupeWarning>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    0x2e40(%rip),%rax
mov    (%rax),%esi
xor    %ebp,%ebp
lea    0x10(%rsp),%rcx
mov    $0x8,%edx
xor    %r8d,%r8d
call   1050 <clGetKernelInfo@plt>
lea    0xe3b(%rip),%rdi
mov    $0x197,%esi
mov    %eax,%edx
call   1070 <check_cl_error@plt>
mov    0x10(%rsp),%r9
test   %r9,%r9
je     1361 <printDupeWarning+0x1d1>
lea    -0x1(%r9),%rcx
mov    %r9d,%eax
and    $0x3,%eax
cmp    $0x3,%rcx
jae    11f3 <printDupeWarning+0x63>
xor    %ecx,%ecx
jmp    1248 <printDupeWarning+0xb8>
and    $0xfffffffffffffffc,%r9
xor    %ebp,%ebp
mov    $0x1,%r8d
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rbx,%rcx,8),%rdi
xor    %rcx,%rdi
lea    0x1(%rcx),%rsi
xor    0x8(%rbx,%rcx,8),%rsi
or     %rdi,%rsi
lea    0x2(%rcx),%rdi
xor    0x10(%rbx,%rcx,8),%rdi
lea    0x3(%rcx),%rdx
xor    0x18(%rbx,%rcx,8),%rdx
or     %rdi,%rdx
or     %rsi,%rdx
cmovne %r8d,%ebp
add    $0x4,%rcx
cmp    %r9,%rcx
jne    1210 <printDupeWarning+0x80>
test   %rax,%rax
je     1271 <printDupeWarning+0xe1>
mov    $0x1,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    (%rbx,%rcx,8),%rcx
cmovne %edx,%ebp
add    $0x1,%rcx
add    $0xffffffffffffffff,%rax
jne    1260 <printDupeWarning+0xd0>
test   %ebp,%ebp
je     1361 <printDupeWarning+0x1d1>
xor    %eax,%eax
call   1090 <print_warn_header@plt>
lea    0xe2d(%rip),%rdi
xor    %eax,%eax
call   1060 <print_and_log_err@plt>
lea    0xe5c(%rip),%rdi
xor    %eax,%eax
call   1060 <print_and_log_err@plt>
mov    0x10(%rsp),%rax
test   %rax,%rax
je     1355 <printDupeWarning+0x1c5>
lea    0xea4(%rip),%r14
lea    0x8(%rsp),%r15
mov    %rsp,%r12
lea    0xebb(%rip),%r13
xor    %ebp,%ebp
jmp    12de <printDupeWarning+0x14e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x10(%rsp),%rax
add    $0x1,%rbp
cmp    %rax,%rbp
jae    1355 <printDupeWarning+0x1c5>
mov    (%rbx,%rbp,8),%rdx
cmp    %rdx,%rbp
je     12d5 <printDupeWarning+0x145>
movq   $0x0,0x8(%rsp)
movq   $0x0,(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1080 <asprintf@plt>
test   %eax,%eax
jle    1370 <printDupeWarning+0x1e0>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
call   1080 <asprintf@plt>
test   %eax,%eax
jle    138e <printDupeWarning+0x1fe>
mov    (%rsp),%rsi
mov    0x8(%rsp),%rcx
mov    (%rbx,%rbp,8),%r8
mov    %r13,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <print_and_log_err@plt>
mov    (%rsp),%rdi
test   %rdi,%rdi
je     1341 <printDupeWarning+0x1b1>
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
test   %rdi,%rdi
je     12d0 <printDupeWarning+0x140>
call   1030 <free@plt>
jmp    12d0 <printDupeWarning+0x140>
lea    0xe5c(%rip),%rdi
call   1040 <det_printf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c61(%rip),%rax
mov    (%rax),%edi
lea    0xde1(%rip),%rsi
lea    0xc79(%rip),%rdx
mov    $0x1e9,%ecx
jmp    13aa <printDupeWarning+0x21a>
mov    0x2c43(%rip),%rax
mov    (%rax),%edi
lea    0xdc3(%rip),%rsi
lea    0xc5b(%rip),%rdx
mov    $0x1eb,%ecx
call   10b0 <det_fprintf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@CL_KERNEL_NUM_ARGS = global i32 0
@.str = [180 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/GPUOpen-ProfessionalCompute-Tools/clARMOR/refs/heads/master/src/detector/overflow_error.c\00"
@.str.1 = [61 x i8] c"Some of this kernel's arguments point to identical buffers.\0A\00"
@.str.2 = [100 x i8] c"An overflow in one argument may therefore be detected in the other argument with identical buffer.\0A\00"
@.str.3 = [12 x i8] c"Argument %d\00"
@stderr = global i32 0
@.str.4 = [26 x i8] c"asprintf in %s:%d failed\0A\00"
@.str.5 = [63 x i8] c" %s (argument %lu) is the same buffer as %s (argument %lu)\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
define void @printDupeWarning(i32 %0, i64* %1) {
%3 = alloca i32
%4 = alloca i64*
%5 = alloca i32
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
store i32 %0, i32* %3
store i64* %1, i64** %4
%12 = load i32, i32* %3
%13 = load i32, i32* @CL_KERNEL_NUM_ARGS
%14 = call i32 @clGetKernelInfo(i32 %12, i32 %13, i32 8, i64* %7, i32* null)
store i32 %14, i32* %5
%15 = load i32, i32* %5
%16 = call i32 @check_cl_error(i8* getelementptr inbounds ([180 x i8], [180 x i8]* @.str, i64 0, i64 0), i32 407, i32 %15)
store i32 0, i32* %8
store i64 0, i64* %6
br label %17
17: ; preds = %30, %2
%18 = load i64, i64* %6
%19 = load i64, i64* %7
%20 = icmp ult i64 %18, %19
br i1 %20, label %21, label %33
21: ; preds = %17
%22 = load i64*, i64** %4
%23 = load i64, i64* %6
%24 = getelementptr inbounds i64, i64* %22, i64 %23
%25 = load i64, i64* %24
%26 = load i64, i64* %6
%27 = icmp ne i64 %25, %26
br i1 %27, label %28, label %29
28: ; preds = %21
store i32 1, i32* %8
br label %29
29: ; preds = %28, %21
br label %30
30: ; preds = %29
%31 = load i64, i64* %6
%32 = add i64 %31, 1
store i64 %32, i64* %6
br label %17
33: ; preds = %17
%34 = load i32, i32* %8
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %33
br label %100
37: ; preds = %33
%38 = call i32 (...) @print_warn_header()
%39 = call i32 (i8*, ...) @print_and_log_err(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 (i8*, ...) @print_and_log_err(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.2, i64 0, i64 0))
store i64 0, i64* %6
br label %41
41: ; preds = %95, %37
%42 = load i64, i64* %6
%43 = load i64, i64* %7
%44 = icmp ult i64 %42, %43
br i1 %44, label %45, label %98
45: ; preds = %41
%46 = load i64*, i64** %4
%47 = load i64, i64* %6
%48 = getelementptr inbounds i64, i64* %46, i64 %47
%49 = load i64, i64* %48
%50 = load i64, i64* %6
%51 = icmp eq i64 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %45
br label %95
53: ; preds = %45
store i8* null, i8** %9
store i8* null, i8** %10
%54 = load i64*, i64** %4
%55 = load i64, i64* %6
%56 = getelementptr inbounds i64, i64* %54, i64 %55
%57 = load i64, i64* %56
%58 = call i32 @asprintf(i8** %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i64 %57)
store i32 %58, i32* %11
%59 = load i32, i32* %11
%60 = icmp sle i32 %59, 0
br i1 %60, label %61, label %65
61: ; preds = %53
%62 = load i32, i32* @stderr
%63 = call i32 @det_fprintf(i32 %62, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([180 x i8], [180 x i8]* @.str, i64 0, i64 0), i32 489)
%64 = call i32 @exit(i32 -1)
unreachable
65: ; preds = %53
%66 = load i64, i64* %6
%67 = call i32 @asprintf(i8** %10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i64 %66)
store i32 %67, i32* %11
%68 = load i32, i32* %11
%69 = icmp sle i32 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load i32, i32* @stderr
%72 = call i32 @det_fprintf(i32 %71, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([180 x i8], [180 x i8]* @.str, i64 0, i64 0), i32 491)
%73 = call i32 @exit(i32 -1)
unreachable
74: ; preds = %65
%75 = load i8*, i8** %10
%76 = load i64, i64* %6
%77 = load i8*, i8** %9
%78 = load i64*, i64** %4
%79 = load i64, i64* %6
%80 = getelementptr inbounds i64, i64* %78, i64 %79
%81 = load i64, i64* %80
%82 = call i32 (i8*, ...) @print_and_log_err(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i8* %75, i64 %76, i8* %77, i64 %81)
%83 = load i8*, i8** %10
%84 = icmp ne i8* %83, null
br i1 %84, label %85, label %88
85: ; preds = %74
%86 = load i8*, i8** %10
%87 = call i32 @free(i8* %86)
br label %88
88: ; preds = %85, %74
%89 = load i8*, i8** %9
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %94
91: ; preds = %88
%92 = load i8*, i8** %9
%93 = call i32 @free(i8* %92)
br label %94
94: ; preds = %91, %88
br label %95
95: ; preds = %94, %52
%96 = load i64, i64* %6
%97 = add i64 %96, 1
store i64 %97, i64* %6
br label %41
98: ; preds = %41
%99 = call i32 @det_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %100
100: ; preds = %98, %36
ret void
}

LLVM IR (-O2):
@CL_KERNEL_NUM_ARGS = global i32 0
@.str = [180 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/GPUOpen-ProfessionalCompute-Tools/clARMOR/refs/heads/master/src/detector/overflow_error.c\00"
@.str.1 = [61 x i8] c"Some of this kernel's arguments point to identical buffers.\0A\00"
@.str.2 = [100 x i8] c"An overflow in one argument may therefore be detected in the other argument with identical buffer.\0A\00"
@.str.3 = [12 x i8] c"Argument %d\00"
@stderr = global i32 0
@.str.4 = [26 x i8] c"asprintf in %s:%d failed\0A\00"
@.str.5 = [63 x i8] c" %s (argument %lu) is the same buffer as %s (argument %lu)\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
define void @printDupeWarning(i32 %0, i64* nocapture %1) {
%3 = alloca i64
%4 = alloca i8*
%5 = alloca i8*
%6 = bitcast i64* %3 to i8*
%7 = load i32, i32* @CL_KERNEL_NUM_ARGS
%8 = call i32 @clGetKernelInfo(i32 %0, i32 %7, i32 8, i64* %3, i32* null)
%9 = call i32 @check_cl_error(i8* getelementptr inbounds ([180 x i8], [180 x i8]* @.str, i64 0, i64 0), i32 407, i32 %8)
%10 = load i64, i64* %3
%11 = icmp eq i64 %10, 0
br i1 %11, label %114, label %12
12: ; preds = %2
%13 = add i64 %10, -1
%14 = and i64 %10, 3
%15 = icmp ult i64 %13, 3
br i1 %15, label %44, label %16
16: ; preds = %12
%17 = and i64 %10, -4
br label %18
18: ; preds = %18, %16
%19 = phi i32 [ 0, %16 ], [ %40, %18 ]
%20 = phi i64 [ 0, %16 ], [ %41, %18 ]
%21 = phi i64 [ 0, %16 ], [ %42, %18 ]
%22 = getelementptr inbounds i64, i64* %1, i64 %20
%23 = load i64, i64* %22
%24 = icmp eq i64 %23, %20
%25 = or i64 %20, 1
%26 = getelementptr inbounds i64, i64* %1, i64 %25
%27 = load i64, i64* %26
%28 = icmp eq i64 %27, %25
%29 = or i64 %20, 2
%30 = getelementptr inbounds i64, i64* %1, i64 %29
%31 = load i64, i64* %30
%32 = icmp eq i64 %31, %29
%33 = or i64 %20, 3
%34 = getelementptr inbounds i64, i64* %1, i64 %33
%35 = load i64, i64* %34
%36 = icmp eq i64 %35, %33
%37 = select i1 %36, i1 %32, i1 false
%38 = select i1 %37, i1 %28, i1 false
%39 = select i1 %38, i1 %24, i1 false
%40 = select i1 %39, i32 %19, i32 1
%41 = add nuw i64 %20, 4
%42 = add i64 %21, 4
%43 = icmp eq i64 %42, %17
br i1 %43, label %44, label %18
44: ; preds = %18, %12
%45 = phi i32 [ undef, %12 ], [ %40, %18 ]
%46 = phi i32 [ 0, %12 ], [ %40, %18 ]
%47 = phi i64 [ 0, %12 ], [ %41, %18 ]
%48 = icmp eq i64 %14, 0
br i1 %48, label %60, label %49
49: ; preds = %44, %49
%50 = phi i32 [ %56, %49 ], [ %46, %44 ]
%51 = phi i64 [ %57, %49 ], [ %47, %44 ]
%52 = phi i64 [ %58, %49 ], [ 0, %44 ]
%53 = getelementptr inbounds i64, i64* %1, i64 %51
%54 = load i64, i64* %53
%55 = icmp eq i64 %54, %51
%56 = select i1 %55, i32 %50, i32 1
%57 = add nuw i64 %51, 1
%58 = add i64 %52, 1
%59 = icmp eq i64 %58, %14
br i1 %59, label %60, label %49
60: ; preds = %49, %44
%61 = phi i32 [ %45, %44 ], [ %56, %49 ]
%62 = icmp eq i32 %61, 0
br i1 %62, label %114, label %63
63: ; preds = %60
%64 = call i32 (...) @print_warn_header()
%65 = call i32 (i8*, ...) @print_and_log_err(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0))
%66 = call i32 (i8*, ...) @print_and_log_err(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.2, i64 0, i64 0))
%67 = load i64, i64* %3
%68 = icmp eq i64 %67, 0
br i1 %68, label %112, label %69
69: ; preds = %63
%70 = bitcast i8** %4 to i8*
%71 = bitcast i8** %5 to i8*
br label %72
72: ; preds = %69, %108
%73 = phi i64 [ %67, %69 ], [ %109, %108 ]
%74 = phi i64 [ 0, %69 ], [ %110, %108 ]
%75 = getelementptr inbounds i64, i64* %1, i64 %74
%76 = load i64, i64* %75
%77 = icmp eq i64 %76, %74
br i1 %77, label %108, label %78
78: ; preds = %72
store i8* null, i8** %4
store i8* null, i8** %5
%79 = call i32 @asprintf(i8** %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i64 %76)
%80 = icmp slt i32 %79, 1
br i1 %80, label %81, label %85
81: ; preds = %78
%82 = load i32, i32* @stderr
%83 = call i32 @det_fprintf(i32 %82, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([180 x i8], [180 x i8]* @.str, i64 0, i64 0), i32 489)
%84 = call i32 @exit(i32 -1)
unreachable
85: ; preds = %78
%86 = call i32 @asprintf(i8** %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i64 %74)
%87 = icmp slt i32 %86, 1
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = load i32, i32* @stderr
%90 = call i32 @det_fprintf(i32 %89, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([180 x i8], [180 x i8]* @.str, i64 0, i64 0), i32 491)
%91 = call i32 @exit(i32 -1)
unreachable
92: ; preds = %85
%93 = load i8*, i8** %5
%94 = load i8*, i8** %4
%95 = load i64, i64* %75
%96 = call i32 (i8*, ...) @print_and_log_err(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i8* %93, i64 %74, i8* %94, i64 %95)
%97 = load i8*, i8** %5
%98 = icmp eq i8* %97, null
br i1 %98, label %101, label %99
99: ; preds = %92
%100 = call i32 @free(i8* %97)
br label %101
101: ; preds = %99, %92
%102 = load i8*, i8** %4
%103 = icmp eq i8* %102, null
br i1 %103, label %106, label %104
104: ; preds = %101
%105 = call i32 @free(i8* %102)
br label %106
106: ; preds = %104, %101
%107 = load i64, i64* %3
br label %108
108: ; preds = %72, %106
%109 = phi i64 [ %73, %72 ], [ %107, %106 ]
%110 = add nuw i64 %74, 1
%111 = icmp ult i64 %110, %109
br i1 %111, label %72, label %112
112: ; preds = %108, %63
%113 = call i32 @det_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %114
114: ; preds = %2, %60, %112
ret void
}