#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 int /*<<< orphan*/ FILE;

/* Variables and functions */
char *FLine(int /*<<< orphan*/ *);
char *FLineSpace(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ printfArr(int *, int);
int strLoc(char *, char **, int);
int strtoi(char *);
int /*<<< orphan*/ zero(int *, int, int /*<<< orphan*/);
int main(void) {
  FILE *fl = fopen("gift1.in", "r");
  FILE *fout = fopen("gift1.out", "w");
  int numGivers = strtoi(FLine(fl));
  int money[numGivers];
  char *givers[numGivers];
  int i, j;
  int gift;
  int numReceivers;
  zero(money, numGivers, 0);
  for (i = 0; i < numGivers; i++) {
    *(givers + i) = FLine(fl);
  }
  int pos;
  for (i = 0; i < numGivers; i++) {
    pos = strLoc(FLine(fl), givers, numGivers);
    gift = strtoi(FLineSpace(fl));
    numReceivers = strtoi(FLine(fl));
    printf("Position: %d\nGift: %d\nnumReceivers: %d\n\n", pos, gift,
           numReceivers);
    if (gift > 0 && numReceivers > 0) {
      *(money + pos) -= gift;
      *(money + pos) += gift % numReceivers;
      gift /= numReceivers;
      for (j = 0; j < numReceivers; j++) {
        pos = strLoc(FLine(fl), givers, numGivers);
        printf("Position: %d\nGift: %d\n", pos, gift);
        *(money + pos) += gift;
      }
    }
    printfArr(money, numGivers);
    printf("\n\n");
  }
  for (i = 0; i < numGivers; i++) {
    fprintf(fout, "%s %d\n", *(givers + i), *(money + i));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe5a(%rip),%rdi
lea    0xe5c(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe4e(%rip),%rdi
lea    0xe51(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <FLine@plt>
mov    %rax,%rdi
call   1050 <strtoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x60(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x1c(%rbp),%esi
xor    %edx,%edx
call   1080 <zero@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    126b <main+0xdb>
mov    -0x10(%rbp),%rdi
call   1070 <FLine@plt>
mov    %rax,%rdx
mov    -0x58(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1239 <main+0xa9>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13ae <main+0x21e>
mov    -0x10(%rbp),%rdi
call   1070 <FLine@plt>
mov    -0x58(%rbp),%rsi
mov    %rax,%rdi
mov    -0x1c(%rbp),%edx
call   1030 <strLoc@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%rdi
call   10a0 <FLineSpace@plt>
mov    %rax,%rdi
call   1050 <strtoi@plt>
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <FLine@plt>
mov    %rax,%rdi
call   1050 <strtoi@plt>
mov    %eax,-0x48(%rbp)
mov    -0x4c(%rbp),%esi
mov    -0x44(%rbp),%edx
mov    -0x48(%rbp),%ecx
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x44(%rbp)
jle    1386 <main+0x1f6>
cmpl   $0x0,-0x48(%rbp)
jle    1386 <main+0x1f6>
mov    -0x60(%rbp),%rax
mov    -0x44(%rbp),%esi
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
sub    %esi,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x44(%rbp),%eax
cltd
idivl  -0x48(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x4c(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x48(%rbp),%ecx
mov    -0x44(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    1381 <main+0x1f1>
mov    -0x10(%rbp),%rdi
call   1070 <FLine@plt>
mov    -0x58(%rbp),%rsi
mov    %rax,%rdi
mov    -0x1c(%rbp),%edx
call   1030 <strLoc@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%esi
mov    -0x44(%rbp),%edx
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x60(%rbp),%rax
mov    -0x44(%rbp),%edx
movslq -0x4c(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1327 <main+0x197>
jmp    1386 <main+0x1f6>
mov    -0x60(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   10b0 <printfArr@plt>
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1272 <main+0xe2>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13f6 <main+0x266>
mov    -0x60(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    -0x18(%rbp),%rdi
movslq -0x3c(%rbp),%rdx
mov    (%rcx,%rdx,8),%rdx
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xc74(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13b5 <main+0x225>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xe48(%rip),%rdi
lea    0xe4a(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r12
lea    0xe3d(%rip),%rdi
lea    0xe40(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    %r12,%rdi
call   1080 <FLine@plt>
mov    %rax,%rdi
call   1060 <strtoi@plt>
mov    %eax,%r14d
mov    %eax,%ebx
lea    0xf(,%rbx,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rdi
sub    %rax,%rdi
mov    %rdi,%rsp
lea    0xf(,%rbx,8),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%r13
sub    %rax,%r13
mov    %r13,%rsp
mov    %rdi,-0x38(%rbp)
mov    %r14d,%esi
xor    %edx,%edx
call   1090 <zero@plt>
test   %r14d,%r14d
jle    13a0 <main+0x200>
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1080 <FLine@plt>
mov    %rax,0x0(%r13,%r14,8)
add    $0x1,%r14
cmp    %r14,%rbx
jne    1240 <main+0xa0>
test   %ebx,%ebx
jle    13a0 <main+0x200>
xor    %eax,%eax
mov    %r13,-0x50(%rbp)
jmp    1295 <main+0xf5>
cs nopw 0x0(%rax,%rax,1)
mov    -0x38(%rbp),%rdi
mov    %ebx,%esi
call   10c0 <printfArr@plt>
lea    0xdbc(%rip),%rdi
call   1030 <puts@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
cmp    %ebx,%eax
je     1369 <main+0x1c9>
mov    %eax,-0x3c(%rbp)
mov    %r12,%rdi
call   1080 <FLine@plt>
mov    %rax,%rdi
mov    %r13,%rsi
mov    %ebx,%edx
call   1040 <strLoc@plt>
mov    %eax,-0x2c(%rbp)
mov    %r12,%rdi
call   10b0 <FLineSpace@plt>
mov    %rax,%rdi
call   1060 <strtoi@plt>
mov    %eax,%r15d
mov    %r12,%rdi
call   1080 <FLine@plt>
mov    %rax,%rdi
call   1060 <strtoi@plt>
mov    %eax,%r14d
lea    0xd3a(%rip),%rdi
mov    -0x2c(%rbp),%esi
mov    %r15d,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
test   %r15d,%r15d
jle    1270 <main+0xd0>
test   %r14d,%r14d
jle    1270 <main+0xd0>
movslq -0x2c(%rbp),%rcx
mov    -0x38(%rbp),%rdi
mov    (%rdi,%rcx,4),%esi
mov    %r15d,%eax
xor    %edx,%edx
div    %r14d
mov    %eax,-0x2c(%rbp)
sub    %r15d,%esi
add    %esi,%edx
mov    %edx,(%rdi,%rcx,4)
nopl   0x0(%rax)
mov    %r12,%rdi
call   1080 <FLine@plt>
mov    %rax,%rdi
mov    %r13,%rsi
mov    %ebx,%edx
call   1040 <strLoc@plt>
mov    %eax,%r13d
lea    0xd01(%rip),%rdi
mov    %eax,%esi
mov    -0x2c(%rbp),%r15d
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
movslq %r13d,%rax
mov    -0x38(%rbp),%rcx
mov    -0x50(%rbp),%r13
add    %r15d,(%rcx,%rax,4)
add    $0xffffffff,%r14d
jne    1320 <main+0x180>
jmp    1270 <main+0xd0>
test   %ebx,%ebx
mov    -0x48(%rbp),%r15
jle    13a0 <main+0x200>
mov    %r13,%r14
xor    %r12d,%r12d
lea    0xcd9(%rip),%r13
xchg   %ax,%ax
mov    (%r14,%r12,8),%rdx
mov    -0x38(%rbp),%rax
mov    (%rax,%r12,4),%ecx
mov    %r15,%rdi
mov    %r13,%rsi
call   1070 <fprintf@plt>
add    $0x1,%r12
cmp    %r12,%rbx
jne    1380 <main+0x1e0>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"gift1.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [10 x i8] c"gift1.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [41 x i8] c"Position: %d\0AGift: %d\0AnumReceivers: %d\0A\0A\00"
@.str.5 = [23 x i8] c"Position: %d\0AGift: %d\0A\00"
@.str.6 = [3 x i8] c"\0A\0A\00"
@.str.7 = [7 x i8] c"%s %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
%13 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %13, i32** %2
%14 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %14, i32** %3
%15 = load i32*, i32** %2
%16 = call i8* @FLine(i32* %15)
%17 = call i32 @strtoi(i8* %16)
store i32 %17, i32* %4
%18 = load i32, i32* %4
%19 = zext i32 %18 to i64
%20 = call i8* @llvm.stacksave()
store i8* %20, i8** %5
%21 = alloca i32, i64 %19
store i64 %19, i64* %6
%22 = load i32, i32* %4
%23 = zext i32 %22 to i64
%24 = alloca i8*, i64 %23
store i64 %23, i64* %7
%25 = load i32, i32* %4
%26 = call i32 @zero(i32* %21, i32 %25, i32 0)
store i32 0, i32* %8
br label %27
27: ; preds = %37, %0
%28 = load i32, i32* %8
%29 = load i32, i32* %4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %40
31: ; preds = %27
%32 = load i32*, i32** %2
%33 = call i8* @FLine(i32* %32)
%34 = load i32, i32* %8
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %24, i64 %35
store i8* %33, i8** %36
br label %37
37: ; preds = %31
%38 = load i32, i32* %8
%39 = add nsw i32 %38, 1
store i32 %39, i32* %8
br label %27
40: ; preds = %27
store i32 0, i32* %8
br label %41
41: ; preds = %109, %40
%42 = load i32, i32* %8
%43 = load i32, i32* %4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %112
45: ; preds = %41
%46 = load i32*, i32** %2
%47 = call i8* @FLine(i32* %46)
%48 = load i32, i32* %4
%49 = call i32 @strLoc(i8* %47, i8** %24, i32 %48)
store i32 %49, i32* %12
%50 = load i32*, i32** %2
%51 = call i8* @FLineSpace(i32* %50)
%52 = call i32 @strtoi(i8* %51)
store i32 %52, i32* %10
%53 = load i32*, i32** %2
%54 = call i8* @FLine(i32* %53)
%55 = call i32 @strtoi(i8* %54)
store i32 %55, i32* %11
%56 = load i32, i32* %12
%57 = load i32, i32* %10
%58 = load i32, i32* %11
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i32 %56, i32 %57, i32 %58)
%60 = load i32, i32* %10
%61 = icmp sgt i32 %60, 0
br i1 %61, label %62, label %105
62: ; preds = %45
%63 = load i32, i32* %11
%64 = icmp sgt i32 %63, 0
br i1 %64, label %65, label %105
65: ; preds = %62
%66 = load i32, i32* %10
%67 = load i32, i32* %12
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, i32* %21, i64 %68
%70 = load i32, i32* %69
%71 = sub nsw i32 %70, %66
store i32 %71, i32* %69
%72 = load i32, i32* %10
%73 = load i32, i32* %11
%74 = srem i32 %72, %73
%75 = load i32, i32* %12
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, i32* %21, i64 %76
%78 = load i32, i32* %77
%79 = add nsw i32 %78, %74
store i32 %79, i32* %77
%80 = load i32, i32* %11
%81 = load i32, i32* %10
%82 = sdiv i32 %81, %80
store i32 %82, i32* %10
store i32 0, i32* %9
br label %83
83: ; preds = %101, %65
%84 = load i32, i32* %9
%85 = load i32, i32* %11
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %104
87: ; preds = %83
%88 = load i32*, i32** %2
%89 = call i8* @FLine(i32* %88)
%90 = load i32, i32* %4
%91 = call i32 @strLoc(i8* %89, i8** %24, i32 %90)
store i32 %91, i32* %12
%92 = load i32, i32* %12
%93 = load i32, i32* %10
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %92, i32 %93)
%95 = load i32, i32* %10
%96 = load i32, i32* %12
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, i32* %21, i64 %97
%99 = load i32, i32* %98
%100 = add nsw i32 %99, %95
store i32 %100, i32* %98
br label %101
101: ; preds = %87
%102 = load i32, i32* %9
%103 = add nsw i32 %102, 1
store i32 %103, i32* %9
br label %83
104: ; preds = %83
br label %105
105: ; preds = %104, %62, %45
%106 = load i32, i32* %4
%107 = call i32 @printfArr(i32* %21, i32 %106)
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %109
109: ; preds = %105
%110 = load i32, i32* %8
%111 = add nsw i32 %110, 1
store i32 %111, i32* %8
br label %41
112: ; preds = %41
store i32 0, i32* %8
br label %113
113: ; preds = %128, %112
%114 = load i32, i32* %8
%115 = load i32, i32* %4
%116 = icmp slt i32 %114, %115
br i1 %116, label %117, label %131
117: ; preds = %113
%118 = load i32*, i32** %3
%119 = load i32, i32* %8
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i8*, i8** %24, i64 %120
%122 = load i8*, i8** %121
%123 = load i32, i32* %8
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, i32* %21, i64 %124
%126 = load i32, i32* %125
%127 = call i32 @fprintf(i32* %118, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %122, i32 %126)
br label %128
128: ; preds = %117
%129 = load i32, i32* %8
%130 = add nsw i32 %129, 1
store i32 %130, i32* %8
br label %113
131: ; preds = %113
%132 = load i8*, i8** %5
%133 = load i32, i32* %1
ret i32 %133
}

LLVM IR (-O2):
@.str = [9 x i8] c"gift1.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [10 x i8] c"gift1.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [41 x i8] c"Position: %d\0AGift: %d\0AnumReceivers: %d\0A\0A\00"
@.str.5 = [23 x i8] c"Position: %d\0AGift: %d\0A\00"
@.str.7 = [7 x i8] c"%s %d\0A\00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i8* @FLine(i32* %1)
%4 = tail call i32 @strtoi(i8* %3)
%5 = zext i32 %4 to i64
%6 = alloca i32, i64 %5
%7 = alloca i8*, i64 %5
%8 = call i32 @zero(i32* %6, i32 %4, i32 0)
%9 = icmp sgt i32 %4, 0
br i1 %9, label %11, label %63
10: ; preds = %11
br i1 %9, label %18, label %63
11: ; preds = %0, %11
%12 = phi i64 [ %15, %11 ], [ 0, %0 ]
%13 = call i8* @FLine(i32* %1)
%14 = getelementptr inbounds i8*, i8** %7, i64 %12
store i8* %13, i8** %14
%15 = add nuw nsw i64 %12, 1
%16 = icmp eq i64 %15, %5
br i1 %16, label %10, label %11
17: ; preds = %49
br i1 %9, label %54, label %63
18: ; preds = %10, %49
%19 = phi i32 [ %52, %49 ], [ 0, %10 ]
%20 = call i8* @FLine(i32* %1)
%21 = call i32 @strLoc(i8* %20, i8** %7, i32 %4)
%22 = call i8* @FLineSpace(i32* %1)
%23 = call i32 @strtoi(i8* %22)
%24 = call i8* @FLine(i32* %1)
%25 = call i32 @strtoi(i8* %24)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i32 %21, i32 %23, i32 %25)
%27 = icmp sgt i32 %23, 0
%28 = icmp sgt i32 %25, 0
%29 = and i1 %27, %28
br i1 %29, label %30, label %49
30: ; preds = %18
%31 = sext i32 %21 to i64
%32 = getelementptr inbounds i32, i32* %6, i64 %31
%33 = load i32, i32* %32
%34 = sub i32 %33, %23
%35 = urem i32 %23, %25
%36 = add nsw i32 %34, %35
store i32 %36, i32* %32
%37 = udiv i32 %23, %25
br label %38
38: ; preds = %30, %38
%39 = phi i32 [ 0, %30 ], [ %47, %38 ]
%40 = call i8* @FLine(i32* %1)
%41 = call i32 @strLoc(i8* %40, i8** %7, i32 %4)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %41, i32 %37)
%43 = sext i32 %41 to i64
%44 = getelementptr inbounds i32, i32* %6, i64 %43
%45 = load i32, i32* %44
%46 = add nsw i32 %45, %37
store i32 %46, i32* %44
%47 = add nuw nsw i32 %39, 1
%48 = icmp eq i32 %47, %25
br i1 %48, label %49, label %38
49: ; preds = %38, %18
%50 = call i32 @printfArr(i32* %6, i32 %4)
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%52 = add nuw nsw i32 %19, 1
%53 = icmp eq i32 %52, %4
br i1 %53, label %17, label %18
54: ; preds = %17, %54
%55 = phi i64 [ %61, %54 ], [ 0, %17 ]
%56 = getelementptr inbounds i8*, i8** %7, i64 %55
%57 = load i8*, i8** %56
%58 = getelementptr inbounds i32, i32* %6, i64 %55
%59 = load i32, i32* %58
%60 = call i32 @fprintf(i32* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %57, i32 %59)
%61 = add nuw nsw i64 %55, 1
%62 = icmp eq i64 %61, %5
br i1 %62, label %63, label %54
63: ; preds = %54, %0, %10, %17
ret i32 0
}