#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, i, j;
  printf("Enter size of Frequency Table = ");
  scanf("%d", &n);
  int freq[n + 1];
  printf("Enter numbers to Frequency Table -\n");
  for (i = 1; i <= n; ++i) {
    scanf("%d", &freq[i]);
  }
  printf("\n");
  int bit[n + 1];
  for (i = 1; i <= n; ++i) {
    bit[i] = 0;
  }
  printf("Initial Fenwick Tree -\n");
  for (i = 1; i <= n; ++i) {
    printf("%d      ", bit[i]);
  }
  printf("\n\nThe Fenwick Tree stages per iterate -\n");
  for (i = 1; i <= n; ++i) {
    j = i;
    printf("freq[%d] = %d\n", i, freq[i]);
    while (j <= n) {
      bit[j] += freq[i];
      j = j + (j & (-j));
    }
    for (j = 1; j <= n; ++j) {
      printf("%d      ", bit[j]);
    }
    printf("\n\n");
  }
  printf("\nThe Final Fenwick Tree is - \n");
  for (i = 1; i <= n; ++i) {
    printf("%d ", bit[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11c1 <main+0xa1>
mov    -0x30(%rbp),%rsi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe73(%rip),%rdi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    118c <main+0x6c>
lea    0xeda(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1222 <main+0x102>
mov    -0x38(%rbp),%rax
movslq -0xc(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11f9 <main+0xd9>
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     126a <main+0x14a>
mov    -0x38(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1237 <main+0x117>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     133f <main+0x21f>
mov    -0x30(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,-0x10(%rbp)
mov    -0xc(%rbp),%esi
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     12e9 <main+0x1c9>
mov    -0x38(%rbp),%rax
mov    -0x30(%rbp),%rcx
movslq -0xc(%rbp),%rdx
mov    (%rcx,%rdx,4),%edx
movslq -0x10(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
mov    -0x10(%rbp),%ecx
xor    %edx,%edx
sub    -0x10(%rbp),%edx
and    %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x10(%rbp)
jmp    12ad <main+0x18d>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1323 <main+0x203>
mov    -0x38(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12f0 <main+0x1d0>
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    127f <main+0x15f>
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1387 <main+0x267>
mov    -0x38(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1354 <main+0x234>
movl   $0x0,-0x4(%rbp)
mov    -0x18(%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    $0x18,%rsp
lea    0xe98(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeab(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   1070 <scanf@plt>
mov    %rsp,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%r13
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
lea    0xe9b(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    11dc <main+0x8c>
lea    0x4(%r13),%r15
xor    %ebx,%ebx
lea    0xe64(%rip),%r14
nopl   (%rax)
mov    %r14,%rdi
mov    %r15,%rsi
call   1070 <scanf@plt>
movslq -0x2c(%rbp),%rax
add    $0x1,%rbx
add    $0x4,%r15
cmp    %rax,%rbx
jl     11c0 <main+0x70>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x2c(%rbp),%edx
lea    0x1(%rdx),%eax
mov    %rsp,%r14
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
test   %edx,%edx
jle    1214 <main+0xc4>
lea    0x4(%r14),%rdi
shl    $0x2,%rdx
xor    %esi,%esi
call   1060 <memset@plt>
lea    0xe48(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    124c <main+0xfc>
lea    0xdf7(%rip),%r15
xor    %ebx,%ebx
nop
mov    0x4(%r14,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movslq -0x2c(%rbp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1230 <main+0xe0>
lea    0xe27(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    1311 <main+0x1c1>
mov    $0x1,%r12d
lea    0xdb5(%rip),%rbx
jmp    129d <main+0x14d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xdb3(%rip),%rdi
call   1040 <puts@plt>
lea    0x1(%r12),%rax
movslq -0x2c(%rbp),%rcx
cmp    %rcx,%r12
mov    %rax,%r12
jge    1311 <main+0x1c1>
mov    0x0(%r13,%r12,4),%edx
lea    0xd84(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movslq -0x2c(%rbp),%rax
cmp    %rax,%r12
jg     12e3 <main+0x193>
mov    0x0(%r13,%r12,4),%ecx
mov    %r12d,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movslq %edx,%rsi
add    %ecx,(%r14,%rsi,4)
mov    %esi,%edx
neg    %edx
and    %esi,%edx
add    %esi,%edx
cmp    %eax,%edx
jle    12d0 <main+0x180>
test   %eax,%eax
jle    1280 <main+0x130>
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
mov    0x4(%r14,%r15,4),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movslq -0x2c(%rbp),%rax
add    $0x1,%r15
cmp    %rax,%r15
jl     12f0 <main+0x1a0>
jmp    1280 <main+0x130>
lea    0xd8a(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    134c <main+0x1fc>
lea    0xd12(%rip),%r15
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    0x4(%r14,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movslq -0x2c(%rbp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1330 <main+0x1e0>
mov    -0x38(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Enter size of Frequency Table = \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [36 x i8] c"Enter numbers to Frequency Table -\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [24 x i8] c"Initial Fenwick Tree -\0A\00"
@.str.5 = [9 x i8] c"%d \00"
@.str.6 = [41 x i8] c"\0A\0AThe Fenwick Tree stages per iterate -\0A\00"
@.str.7 = [15 x i8] c"freq[%d] = %d\0A\00"
@.str.8 = [3 x i8] c"\0A\0A\00"
@.str.9 = [31 x i8] c"\0AThe Final Fenwick Tree is - \0A\00"
@.str.10 = [4 x i8] c"%d \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
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%10 = load i32, i32* %2
%11 = add nsw i32 %10, 1
%12 = zext i32 %11 to i64
%13 = call i8* @llvm.stacksave()
store i8* %13, i8** %5
%14 = alloca i32, i64 %12
store i64 %12, i64* %6
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %16
16: ; preds = %25, %0
%17 = load i32, i32* %3
%18 = load i32, i32* %2
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %28
20: ; preds = %16
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, i32* %14, i64 %22
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %23)
br label %25
25: ; preds = %20
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %16
28: ; preds = %16
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
%32 = zext i32 %31 to i64
%33 = alloca i32, i64 %32
store i64 %32, i64* %7
store i32 1, i32* %3
br label %34
34: ; preds = %42, %28
%35 = load i32, i32* %3
%36 = load i32, i32* %2
%37 = icmp sle i32 %35, %36
br i1 %37, label %38, label %45
38: ; preds = %34
%39 = load i32, i32* %3
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, i32* %33, i64 %40
store i32 0, i32* %41
br label %42
42: ; preds = %38
%43 = load i32, i32* %3
%44 = add nsw i32 %43, 1
store i32 %44, i32* %3
br label %34
45: ; preds = %34
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %3
br label %47
47: ; preds = %57, %45
%48 = load i32, i32* %3
%49 = load i32, i32* %2
%50 = icmp sle i32 %48, %49
br i1 %50, label %51, label %60
51: ; preds = %47
%52 = load i32, i32* %3
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, i32* %33, i64 %53
%55 = load i32, i32* %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %55)
br label %57
57: ; preds = %51
%58 = load i32, i32* %3
%59 = add nsw i32 %58, 1
store i32 %59, i32* %3
br label %47
60: ; preds = %47
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %3
br label %62
62: ; preds = %110, %60
%63 = load i32, i32* %3
%64 = load i32, i32* %2
%65 = icmp sle i32 %63, %64
br i1 %65, label %66, label %113
66: ; preds = %62
%67 = load i32, i32* %3
store i32 %67, i32* %4
%68 = load i32, i32* %3
%69 = load i32, i32* %3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, i32* %14, i64 %70
%72 = load i32, i32* %71
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %68, i32 %72)
br label %74
74: ; preds = %78, %66
%75 = load i32, i32* %4
%76 = load i32, i32* %2
%77 = icmp sle i32 %75, %76
br i1 %77, label %78, label %94
78: ; preds = %74
%79 = load i32, i32* %3
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, i32* %14, i64 %80
%82 = load i32, i32* %81
%83 = load i32, i32* %4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, i32* %33, i64 %84
%86 = load i32, i32* %85
%87 = add nsw i32 %86, %82
store i32 %87, i32* %85
%88 = load i32, i32* %4
%89 = load i32, i32* %4
%90 = load i32, i32* %4
%91 = sub nsw i32 0, %90
%92 = and i32 %89, %91
%93 = add nsw i32 %88, %92
store i32 %93, i32* %4
br label %74
94: ; preds = %74
store i32 1, i32* %4
br label %95
95: ; preds = %105, %94
%96 = load i32, i32* %4
%97 = load i32, i32* %2
%98 = icmp sle i32 %96, %97
br i1 %98, label %99, label %108
99: ; preds = %95
%100 = load i32, i32* %4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, i32* %33, i64 %101
%103 = load i32, i32* %102
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %103)
br label %105
105: ; preds = %99
%106 = load i32, i32* %4
%107 = add nsw i32 %106, 1
store i32 %107, i32* %4
br label %95
108: ; preds = %95
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %110
110: ; preds = %108
%111 = load i32, i32* %3
%112 = add nsw i32 %111, 1
store i32 %112, i32* %3
br label %62
113: ; preds = %62
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %3
br label %115
115: ; preds = %125, %113
%116 = load i32, i32* %3
%117 = load i32, i32* %2
%118 = icmp sle i32 %116, %117
br i1 %118, label %119, label %128
119: ; preds = %115
%120 = load i32, i32* %3
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, i32* %33, i64 %121
%123 = load i32, i32* %122
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %123)
br label %125
125: ; preds = %119
%126 = load i32, i32* %3
%127 = add nsw i32 %126, 1
store i32 %127, i32* %3
br label %115
128: ; preds = %115
store i32 0, i32* %1
%129 = load i8*, i8** %5
%130 = load i32, i32* %1
ret i32 %130
}

LLVM IR (-O2):
@.str = [33 x i8] c"Enter size of Frequency Table = \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.5 = [9 x i8] c"%d \00"
@.str.7 = [15 x i8] c"freq[%d] = %d\0A\00"
@.str.10 = [4 x i8] c"%d \00"
@str = [35 x i8] c"Enter numbers to Frequency Table -\00"
@str.11 = [23 x i8] c"Initial Fenwick Tree -\00"
@str.12 = [40 x i8] c"\0A\0AThe Fenwick Tree stages per iterate -\00"
@str.13 = [30 x i8] c"\0AThe Final Fenwick Tree is - \00"
@str.14 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = add nsw i32 %5, 1
%7 = zext i32 %6 to i64
%8 = call i8* @llvm.stacksave()
%9 = alloca i32, i64 %7
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = icmp slt i32 %11, 1
br i1 %12, label %21, label %13
13: ; preds = %0, %13
%14 = phi i64 [ %17, %13 ], [ 1, %0 ]
%15 = getelementptr inbounds i32, i32* %9, i64 %14
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%17 = add nuw nsw i64 %14, 1
%18 = load i32, i32* %1
%19 = sext i32 %18 to i64
%20 = icmp slt i64 %14, %19
br i1 %20, label %13, label %21
21: ; preds = %13, %0
%22 = call i32 @putchar(i32 10)
%23 = load i32, i32* %1
%24 = add nsw i32 %23, 1
%25 = zext i32 %24 to i64
%26 = alloca i32, i64 %25
%27 = icmp slt i32 %23, 1
br i1 %27, label %33, label %28
28: ; preds = %21
%29 = getelementptr inbounds i32, i32* %26, i64 1
%30 = bitcast i32* %29 to i8*
%31 = zext i32 %23 to i64
%32 = shl nuw nsw i64 %31, 2
br label %33
33: ; preds = %28, %21
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.11, i64 0, i64 0))
%35 = load i32, i32* %1
%36 = icmp slt i32 %35, 1
br i1 %36, label %46, label %37
37: ; preds = %33, %37
%38 = phi i64 [ %42, %37 ], [ 1, %33 ]
%39 = getelementptr inbounds i32, i32* %26, i64 %38
%40 = load i32, i32* %39
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %40)
%42 = add nuw nsw i64 %38, 1
%43 = load i32, i32* %1
%44 = sext i32 %43 to i64
%45 = icmp slt i64 %38, %44
br i1 %45, label %37, label %46
46: ; preds = %37, %33
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.12, i64 0, i64 0))
%48 = load i32, i32* %1
%49 = icmp slt i32 %48, 1
br i1 %49, label %88, label %50
50: ; preds = %46, %82
%51 = phi i64 [ %84, %82 ], [ 1, %46 ]
%52 = getelementptr inbounds i32, i32* %9, i64 %51
%53 = load i32, i32* %52
%54 = trunc i64 %51 to i32
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %54, i32 %53)
%56 = load i32, i32* %1
%57 = sext i32 %56 to i64
%58 = icmp sgt i64 %51, %57
br i1 %58, label %61, label %59
59: ; preds = %50
%60 = load i32, i32* %52
br label %63
61: ; preds = %63, %50
%62 = icmp slt i32 %56, 1
br i1 %62, label %82, label %73
63: ; preds = %59, %63
%64 = phi i32 [ %54, %59 ], [ %71, %63 ]
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, i32* %26, i64 %65
%67 = load i32, i32* %66
%68 = add nsw i32 %67, %60
store i32 %68, i32* %66
%69 = sub nsw i32 0, %64
%70 = and i32 %64, %69
%71 = add nsw i32 %70, %64
%72 = icmp sgt i32 %71, %56
br i1 %72, label %61, label %63
73: ; preds = %61, %73
%74 = phi i64 [ %78, %73 ], [ 1, %61 ]
%75 = getelementptr inbounds i32, i32* %26, i64 %74
%76 = load i32, i32* %75
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %76)
%78 = add nuw nsw i64 %74, 1
%79 = load i32, i32* %1
%80 = sext i32 %79 to i64
%81 = icmp slt i64 %74, %80
br i1 %81, label %73, label %82
82: ; preds = %73, %61
%83 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.14, i64 0, i64 0))
%84 = add nuw nsw i64 %51, 1
%85 = load i32, i32* %1
%86 = sext i32 %85 to i64
%87 = icmp slt i64 %51, %86
br i1 %87, label %50, label %88
88: ; preds = %82, %46
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.13, i64 0, i64 0))
%90 = load i32, i32* %1
%91 = icmp slt i32 %90, 1
br i1 %91, label %101, label %92
92: ; preds = %88, %92
%93 = phi i64 [ %97, %92 ], [ 1, %88 ]
%94 = getelementptr inbounds i32, i32* %26, i64 %93
%95 = load i32, i32* %94
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %95)
%97 = add nuw nsw i64 %93, 1
%98 = load i32, i32* %1
%99 = sext i32 %98 to i64
%100 = icmp slt i64 %93, %99
br i1 %100, label %92, label %101
101: ; preds = %92, %88
ret i32 0
}