#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 */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *);
void *malloc(int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ *stderr;
int main(int argc, char **argv) {
  FILE *f_in, *f_out;
  int rows, columns;
  if (argc <= 1) {
    fprintf(stderr, "usage: %s <name of spreadsheet file>\n", argv[0]);
    return -1;
  }
  f_in = fopen(argv[1], "r");
  if (f_in == 0) {
    fprintf(stderr, "Error: file '%s' not found.\n", argv[1]);
    return -1;
  }
  printf("Reading '%s'...\n", argv[1]);
  fscanf(f_in, "%d", &rows);
  fscanf(f_in, "%d", &columns);
  int **table = malloc(rows * sizeof(NULL));
  for (int r = 0; r < rows; r++) {
    table[r] = malloc(columns * sizeof(int));
  }
  int **new_table = malloc(columns * sizeof(NULL));
  for (int c = 0; c < columns; c++) {
    new_table[c] = malloc(rows * sizeof(int));
    for (int r = 0; r < rows; r++) {
      new_table[c][r] = 0;
    }
  }
  for (int r = 0; r < rows; r++) {
    for (int c = 0; c < columns; c++) {
      fscanf(f_in, "%d", &(table[r][c]));
    }
  }
  for (int r = 0; r < rows; r++) {
    for (int c = 0; c < columns; c++) {
      new_table[c][r] = table[r][c];
    }
  }
  fclose(f_in);
  f_out = fopen("transpose.txt", "w");
  if (f_out == 0) {
    fprintf(stderr, "Error: cannot create 'transpose.txt'.\n");
    return -1;
  }
  printf("Writing '%s'...\n", "transpose.txt");
  fprintf(f_out, "%d %d\n", rows, columns);
  for (int c = 0; c < columns; c++) {
    for (int r = 0; r < rows; r++) {
      fprintf(f_out, "%d ", new_table[c][r]);
    }
    fprintf(f_out, "\n");
  }
  fclose(f_out);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jg     11ab <main+0x4b>
mov    0x2e59(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe68(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14f5 <main+0x395>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe6c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11fa <main+0x9a>
mov    0x2e0b(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe41(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14f5 <main+0x395>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe3c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe3d(%rip),%rsi
lea    -0x24(%rbp),%rdx
call   1050 <fscanf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe29(%rip),%rsi
lea    -0x28(%rbp),%rdx
call   1050 <fscanf@plt>
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1288 <main+0x128>
movslq -0x28(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1250 <main+0xf0>
movslq -0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1317 <main+0x1b7>
movslq -0x24(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1304 <main+0x1a4>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    12d3 <main+0x173>
jmp    1309 <main+0x1a9>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12a2 <main+0x142>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1385 <main+0x225>
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1372 <main+0x212>
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xcf7(%rip),%rsi
call   1050 <fscanf@plt>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1331 <main+0x1d1>
jmp    1377 <main+0x217>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    131e <main+0x1be>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    13f2 <main+0x292>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    13df <main+0x27f>
mov    -0x30(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x40(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    139f <main+0x23f>
jmp    13e4 <main+0x284>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    138c <main+0x22c>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xc57(%rip),%rdi
lea    0xc5e(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1441 <main+0x2e1>
mov    0x2bbc(%rip),%rax
mov    (%rax),%rdi
lea    0xc3b(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14f5 <main+0x395>
lea    0xc48(%rip),%rdi
lea    0xc0a(%rip),%rsi
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
lea    0xc3c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    14e5 <main+0x385>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    14c5 <main+0x365>
mov    -0x20(%rbp),%rdi
mov    -0x40(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x60(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xbf8(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1486 <main+0x326>
mov    -0x20(%rbp),%rdi
lea    0xbbe(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1473 <main+0x313>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbp
cmp    $0x1,%edi
jg     11b0 <main+0x30>
mov    0x2e43(%rip),%rax
mov    (%rax),%rdi
mov    0x0(%rbp),%rdx
lea    0xe55(%rip),%rsi
jmp    1592 <main+0x412>
mov    0x8(%rbp),%rdi
lea    0xe6b(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     157d <main+0x3fd>
mov    %rax,%rbx
mov    0x8(%rbp),%rsi
lea    0xe6e(%rip),%rdi
call   1040 <printf@plt>
lea    0xe73(%rip),%rbp
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <fscanf@plt>
lea    0x8(%rsp),%rdx
mov    %rbx,0x20(%rsp)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <fscanf@plt>
movslq 0xc(%rsp),%r15
lea    0x0(,%r15,8),%edi
call   1080 <malloc@plt>
mov    %rax,%r13
mov    0x8(%rsp),%r12d
test   %r15,%r15
jle    1255 <main+0xd5>
mov    %r15d,%r14d
lea    0x0(,%r12,4),%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebx,%edi
call   1080 <malloc@plt>
mov    %rax,0x0(%r13,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1240 <main+0xc0>
mov    %r13,0x18(%rsp)
lea    0x0(,%r12,8),%edi
call   1080 <malloc@plt>
mov    %rax,%rbp
test   %r12d,%r12d
jle    13e5 <main+0x265>
movslq %r12d,%r14
lea    0x0(,%r15,4),%eax
mov    %eax,0x10(%rsp)
lea    -0x8(%r15),%rax
mov    %rax,0x40(%rsp)
shr    $0x3,%rax
add    $0x1,%rax
mov    %r15,%rcx
and    $0xfffffffffffffff8,%rcx
mov    %rcx,0x38(%rsp)
mov    %eax,%r13d
and    $0x7,%r13d
and    $0xfffffffffffffff8,%rax
mov    %rax,0x28(%rsp)
mov    %r13,0x30(%rsp)
shl    $0x5,%r13
xor    %ebx,%ebx
jmp    12cd <main+0x14d>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    %r14,%rbx
jge    13e5 <main+0x265>
mov    0x10(%rsp),%edi
call   1080 <malloc@plt>
xorps  %xmm0,%xmm0
mov    %rax,0x0(%rbp,%rbx,8)
test   %r15d,%r15d
jle    12c0 <main+0x140>
cmp    $0x8,%r15d
jae    12f0 <main+0x170>
xor    %ecx,%ecx
jmp    13d0 <main+0x250>
cmpq   $0x38,0x40(%rsp)
jae    12ff <main+0x17f>
xor    %ecx,%ecx
jmp    1381 <main+0x201>
mov    0x28(%rsp),%rdx
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
movups %xmm0,(%rax,%rcx,4)
movups %xmm0,0x10(%rax,%rcx,4)
movups %xmm0,0x20(%rax,%rcx,4)
movups %xmm0,0x30(%rax,%rcx,4)
movups %xmm0,0x40(%rax,%rcx,4)
movups %xmm0,0x50(%rax,%rcx,4)
movups %xmm0,0x60(%rax,%rcx,4)
movups %xmm0,0x70(%rax,%rcx,4)
movups %xmm0,0x80(%rax,%rcx,4)
movups %xmm0,0x90(%rax,%rcx,4)
movups %xmm0,0xa0(%rax,%rcx,4)
movups %xmm0,0xb0(%rax,%rcx,4)
movups %xmm0,0xc0(%rax,%rcx,4)
movups %xmm0,0xd0(%rax,%rcx,4)
movups %xmm0,0xe0(%rax,%rcx,4)
movups %xmm0,0xf0(%rax,%rcx,4)
add    $0x40,%rcx
add    $0xfffffffffffffff8,%rdx
jne    1310 <main+0x190>
cmpq   $0x0,0x30(%rsp)
je     13b2 <main+0x232>
lea    (%rax,%rcx,4),%rcx
add    $0x10,%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,-0x10(%rcx,%rdx,1)
movups %xmm0,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r13
jne    13a0 <main+0x220>
mov    0x38(%rsp),%rdx
mov    %rdx,%rcx
cmp    %r15,%rdx
je     12c0 <main+0x140>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movl   $0x0,(%rax,%rcx,4)
add    $0x1,%rcx
cmp    %r15,%rcx
jl     13d0 <main+0x250>
jmp    12c0 <main+0x140>
test   %r15d,%r15d
jle    14b0 <main+0x330>
mov    %rbp,0x10(%rsp)
xor    %r14d,%r14d
lea    0xc59(%rip),%r13
jmp    140c <main+0x28c>
nop
add    $0x1,%r14
movslq %r15d,%rax
cmp    %rax,%r14
jge    1457 <main+0x2d7>
test   %r12d,%r12d
jle    1400 <main+0x280>
mov    0x18(%rsp),%rax
mov    (%rax,%r14,8),%rbx
xor    %ebp,%ebp
mov    0x20(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
call   1050 <fscanf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%r12
add    $0x4,%rbx
cmp    %r12,%rbp
jl     1430 <main+0x2b0>
mov    0xc(%rsp),%r15d
jmp    1400 <main+0x280>
test   %r15d,%r15d
mov    0x10(%rsp),%rbp
mov    0x18(%rsp),%rbx
jle    14b0 <main+0x330>
xor    %eax,%eax
jmp    147c <main+0x2fc>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rax
movslq %r15d,%rcx
cmp    %rcx,%rax
jge    14b0 <main+0x330>
test   %r12d,%r12d
jle    1470 <main+0x2f0>
mov    (%rbx,%rax,8),%rcx
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
mov    (%rcx,%rdx,4),%esi
mov    0x0(%rbp,%rdx,8),%rdi
mov    %esi,(%rdi,%rax,4)
add    $0x1,%rdx
movslq 0x8(%rsp),%r12
cmp    %r12,%rdx
jl     1490 <main+0x310>
mov    0xc(%rsp),%r15d
jmp    1470 <main+0x2f0>
mov    0x20(%rsp),%rdi
call   1030 <fclose@plt>
lea    0xb98(%rip),%rdi
lea    0xb9f(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     15ad <main+0x42d>
mov    %rax,%r13
mov    %rbp,%r15
lea    0xbad(%rip),%rdi
lea    0xb6f(%rip),%rsi
call   1040 <printf@plt>
mov    0xc(%rsp),%edx
mov    0x8(%rsp),%ecx
lea    0xba3(%rip),%rsi
mov    %r13,%rdi
xor    %eax,%eax
call   1070 <fprintf@plt>
cmpl   $0x0,0x8(%rsp)
jle    1571 <main+0x3f1>
lea    0xb92(%rip),%r12
xor    %r14d,%r14d
jmp    153b <main+0x3bb>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
mov    %r13,%rsi
call   1060 <fputc@plt>
add    $0x1,%r14
movslq 0x8(%rsp),%rax
cmp    %rax,%r14
jge    1571 <main+0x3f1>
cmpl   $0x0,0xc(%rsp)
jle    1520 <main+0x3a0>
mov    (%r15,%r14,8),%rbp
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    0x0(%rbp,%rbx,4),%edx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1550 <main+0x3d0>
jmp    1520 <main+0x3a0>
mov    %r13,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
jmp    159e <main+0x41e>
mov    0x2a5c(%rip),%rax
mov    (%rax),%rdi
mov    0x8(%rbp),%rdx
lea    0xa96(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2a2c(%rip),%rax
mov    (%rax),%rcx
lea    0xaab(%rip),%rdi
mov    $0x26,%esi
mov    $0x1,%edx
call   10a0 <fwrite@plt>
jmp    1599 <main+0x419>

LLVM IR (-O0):
@stderr = global i32* null
@.str = [38 x i8] c"usage: %s <name of spreadsheet file>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [29 x i8] c"Error: file '%s' not found.\0A\00"
@.str.3 = [17 x i8] c"Reading '%s'...\0A\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [14 x i8] c"transpose.txt\00"
@.str.6 = [2 x i8] c"w\00"
@.str.7 = [39 x i8] c"Error: cannot create 'transpose.txt'.\0A\00"
@.str.8 = [17 x i8] c"Writing '%s'...\0A\00"
@.str.9 = [7 x i8] c"%d %d\0A\00"
@.str.10 = [4 x i8] c"%d \00"
@.str.11 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%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
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%21 = load i32, i32* %4
%22 = icmp sle i32 %21, 1
br i1 %22, label %23, label %29
23: ; preds = %2
%24 = load i32*, i32** @stderr
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 0
%27 = load i8*, i8** %26
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %27)
store i32 -1, i32* %3
br label %228
29: ; preds = %2
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = call i32* @fopen(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %33, i32** %6
%34 = load i32*, i32** %6
%35 = icmp eq i32* %34, null
br i1 %35, label %36, label %42
36: ; preds = %29
%37 = load i32*, i32** @stderr
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 1
%40 = load i8*, i8** %39
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %40)
store i32 -1, i32* %3
br label %228
42: ; preds = %29
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 1
%45 = load i8*, i8** %44
%46 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %45)
%47 = load i32*, i32** %6
%48 = call i32 @fscanf(i32* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %8)
%49 = load i32*, i32** %6
%50 = call i32 @fscanf(i32* %49, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %9)
%51 = load i32, i32* %8
%52 = sext i32 %51 to i64
%53 = mul i64 %52, 8
%54 = trunc i64 %53 to i32
%55 = call i8* @malloc(i32 %54)
%56 = bitcast i8* %55 to i32**
store i32** %56, i32*** %10
store i32 0, i32* %11
br label %57
57: ; preds = %72, %42
%58 = load i32, i32* %11
%59 = load i32, i32* %8
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %75
61: ; preds = %57
%62 = load i32, i32* %9
%63 = sext i32 %62 to i64
%64 = mul i64 %63, 4
%65 = trunc i64 %64 to i32
%66 = call i8* @malloc(i32 %65)
%67 = bitcast i8* %66 to i32*
%68 = load i32**, i32*** %10
%69 = load i32, i32* %11
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32*, i32** %68, i64 %70
store i32* %67, i32** %71
br label %72
72: ; preds = %61
%73 = load i32, i32* %11
%74 = add nsw i32 %73, 1
store i32 %74, i32* %11
br label %57
75: ; preds = %57
%76 = load i32, i32* %9
%77 = sext i32 %76 to i64
%78 = mul i64 %77, 8
%79 = trunc i64 %78 to i32
%80 = call i8* @malloc(i32 %79)
%81 = bitcast i8* %80 to i32**
store i32** %81, i32*** %12
store i32 0, i32* %13
br label %82
82: ; preds = %114, %75
%83 = load i32, i32* %13
%84 = load i32, i32* %9
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %117
86: ; preds = %82
%87 = load i32, i32* %8
%88 = sext i32 %87 to i64
%89 = mul i64 %88, 4
%90 = trunc i64 %89 to i32
%91 = call i8* @malloc(i32 %90)
%92 = bitcast i8* %91 to i32*
%93 = load i32**, i32*** %12
%94 = load i32, i32* %13
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32*, i32** %93, i64 %95
store i32* %92, i32** %96
store i32 0, i32* %14
br label %97
97: ; preds = %110, %86
%98 = load i32, i32* %14
%99 = load i32, i32* %8
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %113
101: ; preds = %97
%102 = load i32**, i32*** %12
%103 = load i32, i32* %13
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32*, i32** %102, i64 %104
%106 = load i32*, i32** %105
%107 = load i32, i32* %14
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i32, i32* %106, i64 %108
store i32 0, i32* %109
br label %110
110: ; preds = %101
%111 = load i32, i32* %14
%112 = add nsw i32 %111, 1
store i32 %112, i32* %14
br label %97
113: ; preds = %97
br label %114
114: ; preds = %113
%115 = load i32, i32* %13
%116 = add nsw i32 %115, 1
store i32 %116, i32* %13
br label %82
117: ; preds = %82
store i32 0, i32* %15
br label %118
118: ; preds = %142, %117
%119 = load i32, i32* %15
%120 = load i32, i32* %8
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %145
122: ; preds = %118
store i32 0, i32* %16
br label %123
123: ; preds = %138, %122
%124 = load i32, i32* %16
%125 = load i32, i32* %9
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %141
127: ; preds = %123
%128 = load i32*, i32** %6
%129 = load i32**, i32*** %10
%130 = load i32, i32* %15
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32*, i32** %129, i64 %131
%133 = load i32*, i32** %132
%134 = load i32, i32* %16
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i32, i32* %133, i64 %135
%137 = call i32 @fscanf(i32* %128, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %136)
br label %138
138: ; preds = %127
%139 = load i32, i32* %16
%140 = add nsw i32 %139, 1
store i32 %140, i32* %16
br label %123
141: ; preds = %123
br label %142
142: ; preds = %141
%143 = load i32, i32* %15
%144 = add nsw i32 %143, 1
store i32 %144, i32* %15
br label %118
145: ; preds = %118
store i32 0, i32* %17
br label %146
146: ; preds = %177, %145
%147 = load i32, i32* %17
%148 = load i32, i32* %8
%149 = icmp slt i32 %147, %148
br i1 %149, label %150, label %180
150: ; preds = %146
store i32 0, i32* %18
br label %151
151: ; preds = %173, %150
%152 = load i32, i32* %18
%153 = load i32, i32* %9
%154 = icmp slt i32 %152, %153
br i1 %154, label %155, label %176
155: ; preds = %151
%156 = load i32**, i32*** %10
%157 = load i32, i32* %17
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i32*, i32** %156, i64 %158
%160 = load i32*, i32** %159
%161 = load i32, i32* %18
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i32, i32* %160, i64 %162
%164 = load i32, i32* %163
%165 = load i32**, i32*** %12
%166 = load i32, i32* %18
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i32*, i32** %165, i64 %167
%169 = load i32*, i32** %168
%170 = load i32, i32* %17
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i32, i32* %169, i64 %171
store i32 %164, i32* %172
br label %173
173: ; preds = %155
%174 = load i32, i32* %18
%175 = add nsw i32 %174, 1
store i32 %175, i32* %18
br label %151
176: ; preds = %151
br label %177
177: ; preds = %176
%178 = load i32, i32* %17
%179 = add nsw i32 %178, 1
store i32 %179, i32* %17
br label %146
180: ; preds = %146
%181 = load i32*, i32** %6
%182 = call i32 @fclose(i32* %181)
%183 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %183, i32** %7
%184 = load i32*, i32** %7
%185 = icmp eq i32* %184, null
br i1 %185, label %186, label %189
186: ; preds = %180
%187 = load i32*, i32** @stderr
%188 = call i32 (i32*, i8*, ...) @fprintf(i32* %187, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
store i32 -1, i32* %3
br label %228
189: ; preds = %180
%190 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%191 = load i32*, i32** %7
%192 = load i32, i32* %8
%193 = load i32, i32* %9
%194 = call i32 (i32*, i8*, ...) @fprintf(i32* %191, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %192, i32 %193)
store i32 0, i32* %19
br label %195
195: ; preds = %222, %189
%196 = load i32, i32* %19
%197 = load i32, i32* %9
%198 = icmp slt i32 %196, %197
br i1 %198, label %199, label %225
199: ; preds = %195
store i32 0, i32* %20
br label %200
200: ; preds = %216, %199
%201 = load i32, i32* %20
%202 = load i32, i32* %8
%203 = icmp slt i32 %201, %202
br i1 %203, label %204, label %219
204: ; preds = %200
%205 = load i32*, i32** %7
%206 = load i32**, i32*** %12
%207 = load i32, i32* %19
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds i32*, i32** %206, i64 %208
%210 = load i32*, i32** %209
%211 = load i32, i32* %20
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds i32, i32* %210, i64 %212
%214 = load i32, i32* %213
%215 = call i32 (i32*, i8*, ...) @fprintf(i32* %205, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %214)
br label %216
216: ; preds = %204
%217 = load i32, i32* %20
%218 = add nsw i32 %217, 1
store i32 %218, i32* %20
br label %200
219: ; preds = %200
%220 = load i32*, i32** %7
%221 = call i32 (i32*, i8*, ...) @fprintf(i32* %220, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %222
222: ; preds = %219
%223 = load i32, i32* %19
%224 = add nsw i32 %223, 1
store i32 %224, i32* %19
br label %195
225: ; preds = %195
%226 = load i32*, i32** %7
%227 = call i32 @fclose(i32* %226)
store i32 0, i32* %3
br label %228
228: ; preds = %225, %186, %36, %23
%229 = load i32, i32* %3
ret i32 %229
}

LLVM IR (-O2):
@stderr = global i32* null
@.str = [38 x i8] c"usage: %s <name of spreadsheet file>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [29 x i8] c"Error: file '%s' not found.\0A\00"
@.str.3 = [17 x i8] c"Reading '%s'...\0A\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [14 x i8] c"transpose.txt\00"
@.str.6 = [2 x i8] c"w\00"
@.str.7 = [39 x i8] c"Error: cannot create 'transpose.txt'.\0A\00"
@.str.8 = [17 x i8] c"Writing '%s'...\0A\00"
@.str.9 = [7 x i8] c"%d %d\0A\00"
@.str.10 = [4 x i8] c"%d \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = icmp slt i32 %0, 2
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i32*, i32** @stderr
%10 = load i8*, i8** %1
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %230
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %21
17: ; preds = %12
%18 = load i32*, i32** @stderr
%19 = load i8*, i8** %13
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %19)
br label %230
21: ; preds = %12
%22 = load i8*, i8** %13
%23 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %22)
%24 = call i32 @fscanf(i32* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%25 = call i32 @fscanf(i32* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%26 = load i32, i32* %3
%27 = shl i32 %26, 3
%28 = call i8* @malloc(i32 %27)
%29 = bitcast i8* %28 to i32**
%30 = icmp sgt i32 %26, 0
%31 = load i32, i32* %4
br i1 %30, label %32, label %35
32: ; preds = %21
%33 = shl i32 %31, 2
%34 = zext i32 %26 to i64
br label %55
35: ; preds = %55, %21
%36 = shl i32 %31, 3
%37 = call i8* @malloc(i32 %36)
%38 = bitcast i8* %37 to i32**
%39 = icmp sgt i32 %31, 0
br i1 %39, label %40, label %62
40: ; preds = %35
%41 = shl i32 %26, 2
%42 = icmp sgt i32 %26, 0
%43 = sext i32 %26 to i64
%44 = sext i32 %31 to i64
%45 = add nsw i64 %43, -8
%46 = lshr i64 %45, 3
%47 = add nuw nsw i64 %46, 1
%48 = icmp ult i32 %26, 8
%49 = and i64 %43, -8
%50 = and i64 %47, 7
%51 = icmp ult i64 %45, 56
%52 = and i64 %47, 4611686018427387896
%53 = icmp eq i64 %50, 0
%54 = icmp eq i64 %49, %43
br label %63
55: ; preds = %32, %55
%56 = phi i64 [ 0, %32 ], [ %60, %55 ]
%57 = call i8* @malloc(i32 %33)
%58 = getelementptr inbounds i32*, i32** %29, i64 %56
%59 = bitcast i32** %58 to i8**
store i8* %57, i8** %59
%60 = add nuw nsw i64 %56, 1
%61 = icmp eq i64 %60, %34
br i1 %61, label %35, label %55
62: ; preds = %131, %35
br i1 %30, label %139, label %173
63: ; preds = %40, %131
%64 = phi i64 [ 0, %40 ], [ %132, %131 ]
%65 = call i8* @malloc(i32 %41)
%66 = getelementptr inbounds i32*, i32** %38, i64 %64
%67 = bitcast i32** %66 to i8**
store i8* %65, i8** %67
%68 = bitcast i8* %65 to i32*
br i1 %42, label %69, label %131
69: ; preds = %63
br i1 %48, label %129, label %70
70: ; preds = %69
br i1 %51, label %116, label %71
71: ; preds = %70, %71
%72 = phi i64 [ %113, %71 ], [ 0, %70 ]
%73 = phi i64 [ %114, %71 ], [ 0, %70 ]
%74 = getelementptr inbounds i32, i32* %68, i64 %72
%75 = bitcast i32* %74 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %75
%76 = getelementptr inbounds i32, i32* %74, i64 4
%77 = bitcast i32* %76 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %77
%78 = or i64 %72, 8
%79 = getelementptr inbounds i32, i32* %68, i64 %78
%80 = bitcast i32* %79 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %80
%81 = getelementptr inbounds i32, i32* %79, i64 4
%82 = bitcast i32* %81 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %82
%83 = or i64 %72, 16
%84 = getelementptr inbounds i32, i32* %68, i64 %83
%85 = bitcast i32* %84 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %85
%86 = getelementptr inbounds i32, i32* %84, i64 4
%87 = bitcast i32* %86 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %87
%88 = or i64 %72, 24
%89 = getelementptr inbounds i32, i32* %68, i64 %88
%90 = bitcast i32* %89 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %90
%91 = getelementptr inbounds i32, i32* %89, i64 4
%92 = bitcast i32* %91 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %92
%93 = or i64 %72, 32
%94 = getelementptr inbounds i32, i32* %68, i64 %93
%95 = bitcast i32* %94 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %95
%96 = getelementptr inbounds i32, i32* %94, i64 4
%97 = bitcast i32* %96 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %97
%98 = or i64 %72, 40
%99 = getelementptr inbounds i32, i32* %68, i64 %98
%100 = bitcast i32* %99 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %100
%101 = getelementptr inbounds i32, i32* %99, i64 4
%102 = bitcast i32* %101 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %102
%103 = or i64 %72, 48
%104 = getelementptr inbounds i32, i32* %68, i64 %103
%105 = bitcast i32* %104 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %105
%106 = getelementptr inbounds i32, i32* %104, i64 4
%107 = bitcast i32* %106 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %107
%108 = or i64 %72, 56
%109 = getelementptr inbounds i32, i32* %68, i64 %108
%110 = bitcast i32* %109 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %110
%111 = getelementptr inbounds i32, i32* %109, i64 4
%112 = bitcast i32* %111 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %112
%113 = add nuw i64 %72, 64
%114 = add nuw i64 %73, 8
%115 = icmp eq i64 %114, %52
br i1 %115, label %116, label %71
116: ; preds = %71, %70
%117 = phi i64 [ 0, %70 ], [ %113, %71 ]
br i1 %53, label %128, label %118
118: ; preds = %116, %118
%119 = phi i64 [ %125, %118 ], [ %117, %116 ]
%120 = phi i64 [ %126, %118 ], [ 0, %116 ]
%121 = getelementptr inbounds i32, i32* %68, i64 %119
%122 = bitcast i32* %121 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %122
%123 = getelementptr inbounds i32, i32* %121, i64 4
%124 = bitcast i32* %123 to <4 x i32>*
store <4 x i32> zeroinitializer, <4 x i32>* %124
%125 = add nuw i64 %119, 8
%126 = add i64 %120, 1
%127 = icmp eq i64 %126, %50
br i1 %127, label %128, label %118
128: ; preds = %118, %116
br i1 %54, label %131, label %129
129: ; preds = %69, %128
%130 = phi i64 [ 0, %69 ], [ %49, %128 ]
br label %134
131: ; preds = %134, %128, %63
%132 = add nuw nsw i64 %64, 1
%133 = icmp slt i64 %132, %44
br i1 %133, label %63, label %62
134: ; preds = %129, %134
%135 = phi i64 [ %137, %134 ], [ %130, %129 ]
%136 = getelementptr inbounds i32, i32* %68, i64 %135
store i32 0, i32* %136
%137 = add nuw nsw i64 %135, 1
%138 = icmp slt i64 %137, %43
br i1 %138, label %134, label %131
139: ; preds = %62, %151
%140 = phi i32 [ %152, %151 ], [ %26, %62 ]
%141 = phi i32 [ %153, %151 ], [ %31, %62 ]
%142 = phi i64 [ %154, %151 ], [ 0, %62 ]
%143 = icmp sgt i32 %141, 0
br i1 %143, label %144, label %151
144: ; preds = %139
%145 = getelementptr inbounds i32*, i32** %29, i64 %142
%146 = load i32*, i32** %145
br label %157
147: ; preds = %151
%148 = icmp sgt i32 %152, 0
br i1 %148, label %165, label %173
149: ; preds = %157
%150 = load i32, i32* %3
br label %151
151: ; preds = %149, %139
%152 = phi i32 [ %150, %149 ], [ %140, %139 ]
%153 = phi i32 [ %162, %149 ], [ %141, %139 ]
%154 = add nuw nsw i64 %142, 1
%155 = sext i32 %152 to i64
%156 = icmp slt i64 %154, %155
br i1 %156, label %139, label %147
157: ; preds = %144, %157
%158 = phi i64 [ 0, %144 ], [ %161, %157 ]
%159 = getelementptr inbounds i32, i32* %146, i64 %158
%160 = call i32 @fscanf(i32* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %159)
%161 = add nuw nsw i64 %158, 1
%162 = load i32, i32* %4
%163 = sext i32 %162 to i64
%164 = icmp slt i64 %161, %163
br i1 %164, label %157, label %149
165: ; preds = %147, %179
%166 = phi i32 [ %180, %179 ], [ %152, %147 ]
%167 = phi i32 [ %181, %179 ], [ %153, %147 ]
%168 = phi i64 [ %182, %179 ], [ 0, %147 ]
%169 = icmp sgt i32 %167, 0
br i1 %169, label %170, label %179
170: ; preds = %165
%171 = getelementptr inbounds i32*, i32** %29, i64 %168
%172 = load i32*, i32** %171
br label %185
173: ; preds = %179, %62, %147
%174 = call i32 @fclose(i32* %15)
%175 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%176 = icmp eq i32* %175, null
br i1 %176, label %196, label %199
177: ; preds = %185
%178 = load i32, i32* %3
br label %179
179: ; preds = %177, %165
%180 = phi i32 [ %178, %177 ], [ %166, %165 ]
%181 = phi i32 [ %193, %177 ], [ %167, %165 ]
%182 = add nuw nsw i64 %168, 1
%183 = sext i32 %180 to i64
%184 = icmp slt i64 %182, %183
br i1 %184, label %165, label %173
185: ; preds = %170, %185
%186 = phi i64 [ 0, %170 ], [ %192, %185 ]
%187 = getelementptr inbounds i32, i32* %172, i64 %186
%188 = load i32, i32* %187
%189 = getelementptr inbounds i32*, i32** %38, i64 %186
%190 = load i32*, i32** %189
%191 = getelementptr inbounds i32, i32* %190, i64 %168
store i32 %188, i32* %191
%192 = add nuw nsw i64 %186, 1
%193 = load i32, i32* %4
%194 = sext i32 %193 to i64
%195 = icmp slt i64 %192, %194
br i1 %195, label %185, label %177
196: ; preds = %173
%197 = load i32*, i32** @stderr
%198 = call i64 @fwrite(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i64 38, i64 1, i32* %197)
br label %230
199: ; preds = %173
%200 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%201 = load i32, i32* %3
%202 = load i32, i32* %4
%203 = call i32 (i32*, i8*, ...) @fprintf(i32* %175, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %201, i32 %202)
%204 = load i32, i32* %4
%205 = icmp sgt i32 %204, 0
br i1 %205, label %206, label %213
206: ; preds = %199, %215
%207 = phi i64 [ %217, %215 ], [ 0, %199 ]
%208 = load i32, i32* %3
%209 = icmp sgt i32 %208, 0
br i1 %209, label %210, label %215
210: ; preds = %206
%211 = getelementptr inbounds i32*, i32** %38, i64 %207
%212 = load i32*, i32** %211
br label %221
213: ; preds = %215, %199
%214 = call i32 @fclose(i32* %175)
br label %230
215: ; preds = %221, %206
%216 = call i32 @fputc(i32 10, i32* %175)
%217 = add nuw nsw i64 %207, 1
%218 = load i32, i32* %4
%219 = sext i32 %218 to i64
%220 = icmp slt i64 %217, %219
br i1 %220, label %206, label %213
221: ; preds = %210, %221
%222 = phi i64 [ 0, %210 ], [ %226, %221 ]
%223 = getelementptr inbounds i32, i32* %212, i64 %222
%224 = load i32, i32* %223
%225 = call i32 (i32*, i8*, ...) @fprintf(i32* %175, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %224)
%226 = add nuw nsw i64 %222, 1
%227 = load i32, i32* %3
%228 = sext i32 %227 to i64
%229 = icmp slt i64 %226, %228
br i1 %229, label %221, label %215
230: ; preds = %196, %213, %17, %8
%231 = phi i32 [ -1, %8 ], [ -1, %17 ], [ -1, %196 ], [ 0, %213 ]
ret i32 %231
}