#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 main() {
  int size = 3;
  int matrix[3][3];
  int row, column = 0;
  int sum, sum1, sum2;
  int flag = 0;
  scanf("vuvedete chislata:");
  for (row = 0; row < size; row++) {
    for (column = 0; column < size; column++)
      scanf("%d", &matrix[row][column]);
  }
  for (row = 0; row < size; row++) {
    printf("\n");
    for (column = 0; column < size; column++) {
      printf("\t%d", matrix[row][column]);
    }
  }
  sum = 0;
  for (row = 0; row < size; row++) {
    for (column = 0; column < size; column++) {
      if (row == column)
        sum = sum + matrix[row][column];
    }
  }
  for (row = 0; row < size; row++) {
    sum1 = 0;
    for (column = 0; column < size; column++) {
      sum1 = sum1 + matrix[row][column];
    }
    if (sum == sum1)
      flag = 1;
    else {
      flag = 0;
      break;
    }
  }
  for (row = 0; row < size; row++) {
    sum2 = 0;
    for (column = 0; column < size; column++) {
      sum2 = sum2 + matrix[column][row];
    }
    if (sum == sum2)
      flag = 1;
    else {
      flag = 0;
      break;
    }
  }
  if (flag == 1)
    printf("\nmagicheski kvadrat");
  else
    printf("\nne e magicheski kvadrat");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x48(%rbp)
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11c1 <main+0xa1>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11ae <main+0x8e>
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    116c <main+0x4c>
jmp    11b3 <main+0x93>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1159 <main+0x39>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    123a <main+0x11a>
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1227 <main+0x107>
movslq -0x34(%rbp),%rcx
lea    -0x30(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11e9 <main+0xc9>
jmp    122c <main+0x10c>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11c8 <main+0xa8>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12b5 <main+0x195>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12a2 <main+0x182>
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jne    128f <main+0x16f>
mov    -0x3c(%rbp),%eax
movslq -0x34(%rbp),%rdx
lea    -0x30(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
movslq -0x38(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x3c(%rbp)
jmp    1294 <main+0x174>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    125b <main+0x13b>
jmp    12a7 <main+0x187>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1248 <main+0x128>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1343 <main+0x223>
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    130c <main+0x1ec>
mov    -0x40(%rbp),%eax
movslq -0x34(%rbp),%rdx
lea    -0x30(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
movslq -0x38(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x40(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12d6 <main+0x1b6>
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jne    1324 <main+0x204>
movl   $0x1,-0x48(%rbp)
jmp    1330 <main+0x210>
movl   $0x0,-0x48(%rbp)
jmp    1343 <main+0x223>
jmp    1335 <main+0x215>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12bc <main+0x19c>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13d1 <main+0x2b1>
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    139a <main+0x27a>
mov    -0x44(%rbp),%eax
movslq -0x38(%rbp),%rdx
lea    -0x30(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
movslq -0x34(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x44(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1364 <main+0x244>
mov    -0x3c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jne    13b2 <main+0x292>
movl   $0x1,-0x48(%rbp)
jmp    13be <main+0x29e>
movl   $0x0,-0x48(%rbp)
jmp    13d1 <main+0x2b1>
jmp    13c3 <main+0x2a3>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    134a <main+0x22a>
cmpl   $0x1,-0x48(%rbp)
jne    13ee <main+0x2ce>
lea    0xc37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13fc <main+0x2dc>
lea    0xc38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
lea    0xec4(%rip),%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xeca(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rsp),%esi
lea    0xe30(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%ecx
mov    0x10(%rsp),%eax
add    %ecx,%eax
add    0x20(%rsp),%eax
add    0xc(%rsp),%ecx
add    0x18(%rsp),%ecx
cmp    %ecx,%eax
jne    12b3 <main+0x183>
mov    0x10(%rsp),%ecx
add    0x4(%rsp),%ecx
add    0x1c(%rsp),%ecx
cmp    %ecx,%eax
jne    12b3 <main+0x183>
mov    0x14(%rsp),%ecx
add    0x8(%rsp),%ecx
add    0x20(%rsp),%ecx
cmp    %ecx,%eax
jne    12b3 <main+0x183>
lea    0xd66(%rip),%rdi
jmp    12ba <main+0x18a>
lea    0xd71(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [19 x i8] c"vuvedete chislata:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"\09%d\00"
@.str.4 = [20 x i8] c"\0Amagicheski kvadrat\00"
@.str.5 = [25 x i8] c"\0Ane e magicheski kvadrat\00"
define i32 @main() {
%1 = alloca [3 x [3 x i32]]
%2 = bitcast [3 x [3 x i32]]* %1 to i8*
%3 = tail call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 0
%5 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%6 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 1
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%8 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 2
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 0
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%12 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 1
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %12)
%14 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 2
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 0
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 1
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 2
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %20)
%22 = call i32 @putchar(i32 10)
%23 = load i32, i32* %4
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %23)
%25 = load i32, i32* %6
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %8
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %27)
%29 = call i32 @putchar(i32 10)
%30 = load i32, i32* %10
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %12
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %32)
%34 = load i32, i32* %14
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %34)
%36 = call i32 @putchar(i32 10)
%37 = load i32, i32* %16
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %18
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %39)
%41 = load i32, i32* %20
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %41)
%43 = load i32, i32* %4
%44 = load i32, i32* %12
%45 = add nsw i32 %44, %43
%46 = load i32, i32* %20
%47 = add nsw i32 %46, %45
%48 = load i32, i32* %10
%49 = add nsw i32 %48, %43
%50 = load i32, i32* %16
%51 = add nsw i32 %50, %49
%52 = icmp eq i32 %47, %51
br i1 %52, label %53, label %67
53: ; preds = %0
%54 = load i32, i32* %6
%55 = load i32, i32* %12
%56 = add nsw i32 %55, %54
%57 = load i32, i32* %18
%58 = add nsw i32 %57, %56
%59 = icmp eq i32 %47, %58
br i1 %59, label %60, label %67
60: ; preds = %53
%61 = load i32, i32* %8
%62 = load i32, i32* %14
%63 = add nsw i32 %62, %61
%64 = load i32, i32* %20
%65 = add nsw i32 %64, %63
%66 = icmp eq i32 %47, %65
br i1 %66, label %68, label %67
67: ; preds = %0, %53, %60
br label %68
68: ; preds = %60, %67
%69 = phi i8* [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), %67 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), %60 ]
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %69)
ret i32 0
}