#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 kvadrat[3][3], b, a, sum;
  for (a = 0; a < 3; a++) {
    for (b = 0; b < 3; b++) {
      scanf("%d", &kvadrat[a][b]);
    }
  }
  for (a = 0; a < 3; a++) {
    for (b = 0; b < 3; b++) {
      printf("%d", kvadrat[a][b]);
    }
    printf("\n");
  }
  sum = kvadrat[0][0] + kvadrat[0][1] + kvadrat[0][2];
  for (a = 0; a < 3; a++) {
    if (sum != kvadrat[a][0] + kvadrat[a][1] + kvadrat[a][2]) {
      printf("No its not magical kvadratche.1\n");
      printf("No its not magical kvadratche \n");
      return 0;
    }
  }
  for (a = 0; a < 3; a++) {
    if (sum != kvadrat[0][a] + kvadrat[1][a] + kvadrat[2][a]) {
      printf("No its not magical kvadratche.2\n");
      printf("No its not magical kvadratche\n");
      return 0;
    }
  }
  if (sum != kvadrat[0][0] + kvadrat[1][1] + kvadrat[2][2]) {
    printf("No its not magical kvadratche.3 \n");
    printf("No its not magical kvadratche\n");
    return 0;
  }
  if (sum != kvadrat[0][2] + kvadrat[1][1] + kvadrat[2][0]) {
    printf("No.4\n");
    printf("No its not magical kvadratche\n");
    return 0;
  }
  printf("Yes it is a magical kvadratche.\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    1198 <main+0x78>
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    1185 <main+0x65>
movslq -0x38(%rbp),%rax
lea    -0x30(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
movslq -0x34(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe8e(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1147 <main+0x27>
jmp    118a <main+0x6a>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1136 <main+0x16>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    1208 <main+0xe8>
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    11ec <main+0xcc>
movslq -0x38(%rbp),%rcx
lea    -0x30(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11b0 <main+0x90>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    119f <main+0x7f>
mov    -0x30(%rbp),%eax
add    -0x2c(%rbp),%eax
add    -0x28(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    12a0 <main+0x180>
mov    -0x3c(%rbp),%eax
movslq -0x38(%rbp),%rdx
lea    -0x30(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
mov    (%rcx),%ecx
movslq -0x38(%rbp),%rsi
lea    -0x30(%rbp),%rdx
imul   $0xc,%rsi,%rsi
add    %rsi,%rdx
add    0x4(%rdx),%ecx
movslq -0x38(%rbp),%rsi
lea    -0x30(%rbp),%rdx
imul   $0xc,%rsi,%rsi
add    %rsi,%rdx
add    0x8(%rdx),%ecx
cmp    %ecx,%eax
je     128d <main+0x16d>
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1395 <main+0x275>
jmp    1292 <main+0x172>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    121b <main+0xfb>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    130f <main+0x1ef>
mov    -0x3c(%rbp),%eax
movslq -0x38(%rbp),%rcx
mov    -0x30(%rbp,%rcx,4),%ecx
movslq -0x38(%rbp),%rdx
add    -0x24(%rbp,%rdx,4),%ecx
movslq -0x38(%rbp),%rdx
add    -0x18(%rbp,%rdx,4),%ecx
cmp    %ecx,%eax
je     12fc <main+0x1dc>
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1395 <main+0x275>
jmp    1301 <main+0x1e1>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12a7 <main+0x187>
mov    -0x3c(%rbp),%eax
mov    -0x30(%rbp),%ecx
add    -0x20(%rbp),%ecx
add    -0x10(%rbp),%ecx
cmp    %ecx,%eax
je     134b <main+0x22b>
lea    0xd5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1395 <main+0x275>
mov    -0x3c(%rbp),%eax
mov    -0x28(%rbp),%ecx
add    -0x20(%rbp),%ecx
add    -0x18(%rbp),%ecx
cmp    %ecx,%eax
je     1387 <main+0x267>
lea    0xd40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcf1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1395 <main+0x275>
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xeae(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rsp),%r12d
mov    0x4(%rsp),%ebx
lea    (%rbx,%r12,1),%eax
mov    0x8(%rsp),%r9d
add    %r9d,%eax
mov    0xc(%rsp),%esi
mov    0x10(%rsp),%r11d
lea    (%r11,%rsi,1),%ecx
mov    0x14(%rsp),%edx
add    %edx,%ecx
lea    0xe19(%rip),%r14
lea    0xdf2(%rip),%rdi
cmp    %ecx,%eax
jne    130e <main+0x1ce>
mov    0x18(%rsp),%r8d
mov    0x1c(%rsp),%r15d
lea    (%r15,%r8,1),%ecx
mov    0x20(%rsp),%r10d
add    %r10d,%ecx
cmp    %ecx,%eax
jne    130e <main+0x1ce>
add    %r12d,%esi
add    %r8d,%esi
lea    0xda9(%rip),%r14
lea    0xd82(%rip),%rdi
cmp    %esi,%eax
jne    130e <main+0x1ce>
add    %r11d,%ebx
add    %r15d,%ebx
cmp    %ebx,%eax
jne    130e <main+0x1ce>
add    %r9d,%edx
add    %r10d,%edx
cmp    %edx,%eax
jne    130e <main+0x1ce>
add    %r11d,%r12d
add    %r10d,%r12d
cmp    %r12d,%eax
jne    12fe <main+0x1be>
add    %r9d,%r11d
add    %r8d,%r11d
cmp    %r11d,%eax
jne    1307 <main+0x1c7>
lea    0xd07(%rip),%r14
jmp    1313 <main+0x1d3>
lea    0xd23(%rip),%rdi
jmp    130e <main+0x1ce>
lea    0xd15(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [33 x i8] c"No its not magical kvadratche.1\0A\00"
@.str.3 = [32 x i8] c"No its not magical kvadratche \0A\00"
@.str.4 = [33 x i8] c"No its not magical kvadratche.2\0A\00"
@.str.5 = [31 x i8] c"No its not magical kvadratche\0A\00"
@.str.6 = [34 x i8] c"No its not magical kvadratche.3 \0A\00"
@.str.7 = [6 x i8] c"No.4\0A\00"
@.str.8 = [33 x i8] c"Yes it is a magical kvadratche.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x [3 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
br label %6
6: ; preds = %25, %0
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %28
9: ; preds = %6
store i32 0, i32* %3
br label %10
10: ; preds = %21, %9
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %24
13: ; preds = %10
%14 = load i32, i32* %4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %15
%17 = load i32, i32* %3
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 x i32], [3 x i32]* %16, i64 0, i64 %18
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %19)
br label %21
21: ; preds = %13
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 1
store i32 %23, i32* %3
br label %10
24: ; preds = %10
br label %25
25: ; preds = %24
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 1
store i32 %27, i32* %4
br label %6
28: ; preds = %6
store i32 0, i32* %4
br label %29
29: ; preds = %50, %28
%30 = load i32, i32* %4
%31 = icmp slt i32 %30, 3
br i1 %31, label %32, label %53
32: ; preds = %29
store i32 0, i32* %3
br label %33
33: ; preds = %45, %32
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 3
br i1 %35, label %36, label %48
36: ; preds = %33
%37 = load i32, i32* %4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %38
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [3 x i32], [3 x i32]* %39, i64 0, i64 %41
%43 = load i32, i32* %42
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %43)
br label %45
45: ; preds = %36
%46 = load i32, i32* %3
%47 = add nsw i32 %46, 1
store i32 %47, i32* %3
br label %33
48: ; preds = %33
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %50
50: ; preds = %48
%51 = load i32, i32* %4
%52 = add nsw i32 %51, 1
store i32 %52, i32* %4
br label %29
53: ; preds = %29
%54 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 0
%55 = getelementptr inbounds [3 x i32], [3 x i32]* %54, i64 0, i64 0
%56 = load i32, i32* %55
%57 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 0
%58 = getelementptr inbounds [3 x i32], [3 x i32]* %57, i64 0, i64 1
%59 = load i32, i32* %58
%60 = add nsw i32 %56, %59
%61 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 0
%62 = getelementptr inbounds [3 x i32], [3 x i32]* %61, i64 0, i64 2
%63 = load i32, i32* %62
%64 = add nsw i32 %60, %63
store i32 %64, i32* %5
store i32 0, i32* %4
br label %65
65: ; preds = %92, %53
%66 = load i32, i32* %4
%67 = icmp slt i32 %66, 3
br i1 %67, label %68, label %95
68: ; preds = %65
%69 = load i32, i32* %5
%70 = load i32, i32* %4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %71
%73 = getelementptr inbounds [3 x i32], [3 x i32]* %72, i64 0, i64 0
%74 = load i32, i32* %73
%75 = load i32, i32* %4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %76
%78 = getelementptr inbounds [3 x i32], [3 x i32]* %77, i64 0, i64 1
%79 = load i32, i32* %78
%80 = add nsw i32 %74, %79
%81 = load i32, i32* %4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %82
%84 = getelementptr inbounds [3 x i32], [3 x i32]* %83, i64 0, i64 2
%85 = load i32, i32* %84
%86 = add nsw i32 %80, %85
%87 = icmp ne i32 %69, %86
br i1 %87, label %88, label %91
88: ; preds = %68
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %162
91: ; preds = %68
br label %92
92: ; preds = %91
%93 = load i32, i32* %4
%94 = add nsw i32 %93, 1
store i32 %94, i32* %4
br label %65
95: ; preds = %65
store i32 0, i32* %4
br label %96
96: ; preds = %123, %95
%97 = load i32, i32* %4
%98 = icmp slt i32 %97, 3
br i1 %98, label %99, label %126
99: ; preds = %96
%100 = load i32, i32* %5
%101 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 0
%102 = load i32, i32* %4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [3 x i32], [3 x i32]* %101, i64 0, i64 %103
%105 = load i32, i32* %104
%106 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 1
%107 = load i32, i32* %4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [3 x i32], [3 x i32]* %106, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = add nsw i32 %105, %110
%112 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 2
%113 = load i32, i32* %4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [3 x i32], [3 x i32]* %112, i64 0, i64 %114
%116 = load i32, i32* %115
%117 = add nsw i32 %111, %116
%118 = icmp ne i32 %100, %117
br i1 %118, label %119, label %122
119: ; preds = %99
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %1
br label %162
122: ; preds = %99
br label %123
123: ; preds = %122
%124 = load i32, i32* %4
%125 = add nsw i32 %124, 1
store i32 %125, i32* %4
br label %96
126: ; preds = %96
%127 = load i32, i32* %5
%128 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 0
%129 = getelementptr inbounds [3 x i32], [3 x i32]* %128, i64 0, i64 0
%130 = load i32, i32* %129
%131 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 1
%132 = getelementptr inbounds [3 x i32], [3 x i32]* %131, i64 0, i64 1
%133 = load i32, i32* %132
%134 = add nsw i32 %130, %133
%135 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 2
%136 = getelementptr inbounds [3 x i32], [3 x i32]* %135, i64 0, i64 2
%137 = load i32, i32* %136
%138 = add nsw i32 %134, %137
%139 = icmp ne i32 %127, %138
br i1 %139, label %140, label %143
140: ; preds = %126
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %1
br label %162
143: ; preds = %126
%144 = load i32, i32* %5
%145 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 0
%146 = getelementptr inbounds [3 x i32], [3 x i32]* %145, i64 0, i64 2
%147 = load i32, i32* %146
%148 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 1
%149 = getelementptr inbounds [3 x i32], [3 x i32]* %148, i64 0, i64 1
%150 = load i32, i32* %149
%151 = add nsw i32 %147, %150
%152 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 2
%153 = getelementptr inbounds [3 x i32], [3 x i32]* %152, i64 0, i64 0
%154 = load i32, i32* %153
%155 = add nsw i32 %151, %154
%156 = icmp ne i32 %144, %155
br i1 %156, label %157, label %160
157: ; preds = %143
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %1
br label %162
160: ; preds = %143
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
br label %162
162: ; preds = %160, %157, %140, %119, %88
%163 = load i32, i32* %1
ret i32 %163
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [32 x i8] c"Yes it is a magical kvadratche.\00"
@str.9 = [5 x i8] c"No.4\00"
@str.11 = [33 x i8] c"No its not magical kvadratche.3 \00"
@str.13 = [32 x i8] c"No its not magical kvadratche.2\00"
@str.14 = [30 x i8] c"No its not magical kvadratche\00"
@str.15 = [32 x i8] c"No its not magical kvadratche.1\00"
@str.16 = [31 x i8] c"No its not magical kvadratche \00"
define i32 @main() {
%1 = alloca [3 x [3 x i32]]
%2 = bitcast [3 x [3 x i32]]* %1 to i8*
%3 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%5 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%7 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 2
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%9 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 0
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%11 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 1
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %11)
%13 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 2
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %13)
%15 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 0
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %15)
%17 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 1
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %17)
%19 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 2
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %19)
%21 = load i32, i32* %3
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %21)
%23 = load i32, i32* %5
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %23)
%25 = load i32, i32* %7
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %25)
%27 = call i32 @putchar(i32 10)
%28 = load i32, i32* %9
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = load i32, i32* %11
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %13
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %32)
%34 = call i32 @putchar(i32 10)
%35 = load i32, i32* %15
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %35)
%37 = load i32, i32* %17
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %19
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %39)
%41 = call i32 @putchar(i32 10)
%42 = load i32, i32* %3
%43 = load i32, i32* %5
%44 = add nsw i32 %43, %42
%45 = load i32, i32* %7
%46 = add nsw i32 %44, %45
%47 = load i32, i32* %9
%48 = load i32, i32* %11
%49 = add nsw i32 %48, %47
%50 = load i32, i32* %13
%51 = add nsw i32 %49, %50
%52 = icmp eq i32 %46, %51
br i1 %52, label %53, label %80
53: ; preds = %0
%54 = load i32, i32* %15
%55 = load i32, i32* %17
%56 = add nsw i32 %55, %54
%57 = load i32, i32* %19
%58 = add nsw i32 %56, %57
%59 = icmp eq i32 %46, %58
br i1 %59, label %60, label %80
60: ; preds = %53
%61 = add nsw i32 %47, %42
%62 = add nsw i32 %61, %54
%63 = icmp eq i32 %46, %62
br i1 %63, label %64, label %80
64: ; preds = %60
%65 = add nsw i32 %48, %43
%66 = add nsw i32 %65, %55
%67 = icmp eq i32 %46, %66
br i1 %67, label %68, label %80
68: ; preds = %64
%69 = add nsw i32 %50, %45
%70 = add nsw i32 %69, %57
%71 = icmp eq i32 %46, %70
br i1 %71, label %72, label %80
72: ; preds = %68
%73 = add nsw i32 %48, %42
%74 = add nsw i32 %73, %57
%75 = icmp eq i32 %46, %74
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = add nsw i32 %48, %45
%78 = add nsw i32 %77, %54
%79 = icmp eq i32 %46, %78
br i1 %79, label %84, label %80
80: ; preds = %76, %72, %60, %64, %68, %0, %53
%81 = phi i8* [ getelementptr inbounds ([32 x i8], [32 x i8]* @str.15, i64 0, i64 0), %53 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @str.15, i64 0, i64 0), %0 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @str.13, i64 0, i64 0), %68 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @str.13, i64 0, i64 0), %64 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @str.13, i64 0, i64 0), %60 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @str.11, i64 0, i64 0), %72 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.9, i64 0, i64 0), %76 ]
%82 = phi i8* [ getelementptr inbounds ([31 x i8], [31 x i8]* @str.16, i64 0, i64 0), %53 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @str.16, i64 0, i64 0), %0 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str.14, i64 0, i64 0), %68 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str.14, i64 0, i64 0), %64 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str.14, i64 0, i64 0), %60 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str.14, i64 0, i64 0), %72 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str.14, i64 0, i64 0), %76 ]
%83 = call i32 @puts(i8* dereferenceable(1) %81)
br label %84
84: ; preds = %80, %76
%85 = phi i8* [ getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0), %76 ], [ %82, %80 ]
%86 = call i32 @puts(i8* dereferenceable(1) %85)
ret i32 0
}