#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 */
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rotate(int **, int, int);
int main() {
  int m1[] = {1, 2, 3, 4, 5};
  int m2[] = {1, 2, 3, 4, 5};
  int m3[] = {1, 2, 3, 4, 5};
  int m4[] = {1, 2, 3, 4, 5};
  int m5[] = {1, 2, 3, 4, 5};
  int **matrix = (int **)malloc(5 * sizeof(int *));
  matrix[0] = m1;
  matrix[1] = m2;
  matrix[2] = m3;
  matrix[3] = m4;
  matrix[4] = m5;
  for (int i = 0; i < 5; i++) {
    for (int j = 0; j < 5; j++)
      printf("%d\t", matrix[i][j]);
    printf("\n");
  }
  rotate(matrix, 5, 5);
  for (int i = 0; i < 5; i++) {
    for (int j = 0; j < 5; j++)
      printf("%d\t", matrix[i][j]);
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeb4(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeb2(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xeb8(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeb5(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xeb3(%rip),%eax
mov    %eax,-0x30(%rbp)
mov    0xeb9(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xeb6(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xeb4(%rip),%eax
mov    %eax,-0x50(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xeb5(%rip),%eax
mov    %eax,-0x70(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xeb5(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0xeb0(%rip),%eax
mov    %eax,-0x90(%rbp)
mov    $0x28,%edi
call   1050 <malloc@plt>
mov    %rax,-0xa8(%rbp)
lea    -0x20(%rbp),%rcx
mov    -0xa8(%rbp),%rax
mov    %rcx,(%rax)
lea    -0x40(%rbp),%rcx
mov    -0xa8(%rbp),%rax
mov    %rcx,0x8(%rax)
lea    -0x60(%rbp),%rcx
mov    -0xa8(%rbp),%rax
mov    %rcx,0x10(%rax)
lea    -0x80(%rbp),%rcx
mov    -0xa8(%rbp),%rax
mov    %rcx,0x18(%rax)
lea    -0xa0(%rbp),%rcx
mov    -0xa8(%rbp),%rax
mov    %rcx,0x20(%rax)
movl   $0x0,-0xac(%rbp)
cmpl   $0x5,-0xac(%rbp)
jge    12d2 <main+0x1a2>
movl   $0x0,-0xb0(%rbp)
cmpl   $0x5,-0xb0(%rbp)
jge    12b0 <main+0x180>
mov    -0xa8(%rbp),%rax
movslq -0xac(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xb0(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
jmp    1265 <main+0x135>
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    124e <main+0x11e>
mov    -0xa8(%rbp),%rdi
mov    $0x5,%edx
mov    %edx,%esi
call   1040 <rotate@plt>
movl   $0x0,-0xb4(%rbp)
cmpl   $0x5,-0xb4(%rbp)
jge    1373 <main+0x243>
movl   $0x0,-0xb8(%rbp)
cmpl   $0x5,-0xb8(%rbp)
jge    1351 <main+0x221>
mov    -0xa8(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xb8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
jmp    1306 <main+0x1d6>
lea    0xd40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    12ef <main+0x1bf>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x98,%rsp
mov    0xec0(%rip),%eax
mov    %eax,0x90(%rsp)
movaps 0xea2(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
mov    %eax,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
mov    %eax,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
mov    %eax,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
mov    %eax,0x10(%rsp)
movaps %xmm0,(%rsp)
mov    $0x28,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
lea    0x80(%rsp),%rax
mov    %rax,(%rbx)
lea    0x60(%rsp),%rax
mov    %rax,0x8(%rbx)
lea    0x40(%rsp),%rax
mov    %rax,0x10(%rbx)
lea    0x20(%rsp),%rax
mov    %rax,0x18(%rbx)
mov    %rsp,%rax
mov    %rax,0x20(%rbx)
lea    0xe4a(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x5,%edx
call   1050 <rotate@plt>
mov    (%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%rbx),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rax
mov    0x4(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rax
mov    0x8(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rax
mov    0xc(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rax
mov    0x10(%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.m1 = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.main.m2 = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.main.m3 = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.main.m4 = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.main.m5 = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@.str = [4 x i8] c"%d\09\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca [5 x i32]
%4 = alloca [5 x i32]
%5 = alloca [5 x i32]
%6 = alloca [5 x i32]
%7 = alloca i32**
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
%12 = bitcast [5 x i32]* %2 to i8*
%13 = bitcast [5 x i32]* %3 to i8*
%14 = bitcast [5 x i32]* %4 to i8*
%15 = bitcast [5 x i32]* %5 to i8*
%16 = bitcast [5 x i32]* %6 to i8*
%17 = call i64 @malloc(i32 40)
%18 = inttoptr i64 %17 to i32**
store i32** %18, i32*** %7
%19 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
%20 = load i32**, i32*** %7
%21 = getelementptr inbounds i32*, i32** %20, i64 0
store i32* %19, i32** %21
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%23 = load i32**, i32*** %7
%24 = getelementptr inbounds i32*, i32** %23, i64 1
store i32* %22, i32** %24
%25 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 0
%26 = load i32**, i32*** %7
%27 = getelementptr inbounds i32*, i32** %26, i64 2
store i32* %25, i32** %27
%28 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 0
%29 = load i32**, i32*** %7
%30 = getelementptr inbounds i32*, i32** %29, i64 3
store i32* %28, i32** %30
%31 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
%32 = load i32**, i32*** %7
%33 = getelementptr inbounds i32*, i32** %32, i64 4
store i32* %31, i32** %33
store i32 0, i32* %8
br label %34
34: ; preds = %57, %0
%35 = load i32, i32* %8
%36 = icmp slt i32 %35, 5
br i1 %36, label %37, label %60
37: ; preds = %34
store i32 0, i32* %9
br label %38
38: ; preds = %52, %37
%39 = load i32, i32* %9
%40 = icmp slt i32 %39, 5
br i1 %40, label %41, label %55
41: ; preds = %38
%42 = load i32**, i32*** %7
%43 = load i32, i32* %8
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32*, i32** %42, i64 %44
%46 = load i32*, i32** %45
%47 = load i32, i32* %9
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, i32* %46, i64 %48
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %50)
br label %52
52: ; preds = %41
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
store i32 %54, i32* %9
br label %38
55: ; preds = %38
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %57
57: ; preds = %55
%58 = load i32, i32* %8
%59 = add nsw i32 %58, 1
store i32 %59, i32* %8
br label %34
60: ; preds = %34
%61 = load i32**, i32*** %7
%62 = call i32 @rotate(i32** %61, i32 5, i32 5)
store i32 0, i32* %10
br label %63
63: ; preds = %86, %60
%64 = load i32, i32* %10
%65 = icmp slt i32 %64, 5
br i1 %65, label %66, label %89
66: ; preds = %63
store i32 0, i32* %11
br label %67
67: ; preds = %81, %66
%68 = load i32, i32* %11
%69 = icmp slt i32 %68, 5
br i1 %69, label %70, label %84
70: ; preds = %67
%71 = load i32**, i32*** %7
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32*, i32** %71, i64 %73
%75 = load i32*, i32** %74
%76 = load i32, i32* %11
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, i32* %75, i64 %77
%79 = load i32, i32* %78
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %79)
br label %81
81: ; preds = %70
%82 = load i32, i32* %11
%83 = add nsw i32 %82, 1
store i32 %83, i32* %11
br label %67
84: ; preds = %67
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %86
86: ; preds = %84
%87 = load i32, i32* %10
%88 = add nsw i32 %87, 1
store i32 %88, i32* %10
br label %63
89: ; preds = %63
ret i32 0
}

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