#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 size = 3;
  int num[3][3];
  int row, column = 0;
  int sum, sum1, sum2;
  int flag = 0;
  printf("\nEnter a number(after each number press Enter) : \n");
  for (row = 0; row < size; row++) {
    for (column = 0; column < size; column++)
      scanf("%d", &num[row][column]);
  }
  printf("Entered square is : \n");
  for (row = 0; row < size; row++) {
    printf("\n");
    for (column = 0; column < size; column++) {
      printf("\t%d", num[row][column]);
    }
  }
  sum = 0;
  for (row = 0; row < size; row++) {
    for (column = 0; column < size; column++) {
      if (row == column)
        sum = sum + num[row][column];
    }
  }
  for (row = 0; row < size; row++) {
    sum1 = 0;
    for (column = 0; column < size; column++) {
      sum1 = sum1 + num[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 + num[column][row];
    }
    if (sum == sum2)
      flag = 1;
    else {
      flag = 0;
      break;
    }
  }
  if (flag == 1)
    printf("\nMAGIC\n");
  else
    printf("\nNO MAGIC\n");
  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   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11bf <main+0x9f>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11ac <main+0x8c>
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    0xeb1(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    116c <main+0x4c>
jmp    11b1 <main+0x91>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1159 <main+0x39>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1246 <main+0x126>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1233 <main+0x113>
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    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11f5 <main+0xd5>
jmp    1238 <main+0x118>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11d4 <main+0xb4>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12c1 <main+0x1a1>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12ae <main+0x18e>
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jne    129b <main+0x17b>
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    12a0 <main+0x180>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1267 <main+0x147>
jmp    12b3 <main+0x193>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1254 <main+0x134>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    134f <main+0x22f>
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1318 <main+0x1f8>
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    12e2 <main+0x1c2>
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jne    1330 <main+0x210>
movl   $0x1,-0x48(%rbp)
jmp    133c <main+0x21c>
movl   $0x0,-0x48(%rbp)
jmp    134f <main+0x22f>
jmp    1341 <main+0x221>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12c8 <main+0x1a8>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13dd <main+0x2bd>
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13a6 <main+0x286>
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    1370 <main+0x250>
mov    -0x3c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jne    13be <main+0x29e>
movl   $0x1,-0x48(%rbp)
jmp    13ca <main+0x2aa>
movl   $0x0,-0x48(%rbp)
jmp    13dd <main+0x2bd>
jmp    13cf <main+0x2af>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1356 <main+0x236>
cmpl   $0x1,-0x48(%rbp)
jne    13fa <main+0x2da>
lea    0xc5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1408 <main+0x2e8>
lea    0xc54(%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    0xeb8(%rip),%rdi
call   1040 <puts@plt>
lea    0xea9(%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>
lea    0xe64(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rsp),%esi
lea    0xe15(%rip),%rbx
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    (%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    12bb <main+0x17b>
mov    0x10(%rsp),%ecx
add    0x4(%rsp),%ecx
add    0x1c(%rsp),%ecx
cmp    %ecx,%eax
jne    12bb <main+0x17b>
mov    0x14(%rsp),%ecx
add    0x8(%rsp),%ecx
add    0x20(%rsp),%ecx
cmp    %ecx,%eax
jne    12bb <main+0x17b>
lea    0xd9c(%rip),%rdi
jmp    12c2 <main+0x182>
lea    0xd89(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [51 x i8] c"\0AEnter a number(after each number press Enter) : \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [22 x i8] c"Entered square is : \0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [4 x i8] c"\09%d\00"
@.str.5 = [8 x i8] c"\0AMAGIC\0A\00"
@.str.6 = [11 x i8] c"\0ANO MAGIC\0A\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*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 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 @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
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %4
br label %37
37: ; preds = %60, %35
%38 = load i32, i32* %4
%39 = load i32, i32* %2
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %63
41: ; preds = %37
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %43
43: ; preds = %56, %41
%44 = load i32, i32* %5
%45 = load i32, i32* %2
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %59
47: ; preds = %43
%48 = load i32, i32* %4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %3, i64 0, i64 %49
%51 = load i32, i32* %5
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [3 x i32], [3 x i32]* %50, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %47
%57 = load i32, i32* %5
%58 = add nsw i32 %57, 1
store i32 %58, i32* %5
br label %43
59: ; preds = %43
br label %60
60: ; preds = %59
%61 = load i32, i32* %4
%62 = add nsw i32 %61, 1
store i32 %62, i32* %4
br label %37
63: ; preds = %37
store i32 0, i32* %6
store i32 0, i32* %4
br label %64
64: ; preds = %92, %63
%65 = load i32, i32* %4
%66 = load i32, i32* %2
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %95
68: ; preds = %64
store i32 0, i32* %5
br label %69
69: ; preds = %88, %68
%70 = load i32, i32* %5
%71 = load i32, i32* %2
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %91
73: ; preds = %69
%74 = load i32, i32* %4
%75 = load i32, i32* %5
%76 = icmp eq i32 %74, %75
br i1 %76, label %77, label %87
77: ; preds = %73
%78 = load i32, i32* %6
%79 = load i32, i32* %4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %3, i64 0, i64 %80
%82 = load i32, i32* %5
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [3 x i32], [3 x i32]* %81, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = add nsw i32 %78, %85
store i32 %86, i32* %6
br label %87
87: ; preds = %77, %73
br label %88
88: ; preds = %87
%89 = load i32, i32* %5
%90 = add nsw i32 %89, 1
store i32 %90, i32* %5
br label %69
91: ; preds = %69
br label %92
92: ; preds = %91
%93 = load i32, i32* %4
%94 = add nsw i32 %93, 1
store i32 %94, i32* %4
br label %64
95: ; preds = %64
store i32 0, i32* %4
br label %96
96: ; preds = %125, %95
%97 = load i32, i32* %4
%98 = load i32, i32* %2
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %128
100: ; preds = %96
store i32 0, i32* %7
store i32 0, i32* %5
br label %101
101: ; preds = %115, %100
%102 = load i32, i32* %5
%103 = load i32, i32* %2
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %118
105: ; preds = %101
%106 = load i32, i32* %7
%107 = load i32, i32* %4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %3, i64 0, i64 %108
%110 = load i32, i32* %5
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [3 x i32], [3 x i32]* %109, i64 0, i64 %111
%113 = load i32, i32* %112
%114 = add nsw i32 %106, %113
store i32 %114, i32* %7
br label %115
115: ; preds = %105
%116 = load i32, i32* %5
%117 = add nsw i32 %116, 1
store i32 %117, i32* %5
br label %101
118: ; preds = %101
%119 = load i32, i32* %6
%120 = load i32, i32* %7
%121 = icmp eq i32 %119, %120
br i1 %121, label %122, label %123
122: ; preds = %118
store i32 1, i32* %9
br label %124
123: ; preds = %118
store i32 0, i32* %9
br label %128
124: ; preds = %122
br label %125
125: ; preds = %124
%126 = load i32, i32* %4
%127 = add nsw i32 %126, 1
store i32 %127, i32* %4
br label %96
128: ; preds = %123, %96
store i32 0, i32* %4
br label %129
129: ; preds = %158, %128
%130 = load i32, i32* %4
%131 = load i32, i32* %2
%132 = icmp slt i32 %130, %131
br i1 %132, label %133, label %161
133: ; preds = %129
store i32 0, i32* %8
store i32 0, i32* %5
br label %134
134: ; preds = %148, %133
%135 = load i32, i32* %5
%136 = load i32, i32* %2
%137 = icmp slt i32 %135, %136
br i1 %137, label %138, label %151
138: ; preds = %134
%139 = load i32, i32* %8
%140 = load i32, i32* %5
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %3, i64 0, i64 %141
%143 = load i32, i32* %4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [3 x i32], [3 x i32]* %142, i64 0, i64 %144
%146 = load i32, i32* %145
%147 = add nsw i32 %139, %146
store i32 %147, i32* %8
br label %148
148: ; preds = %138
%149 = load i32, i32* %5
%150 = add nsw i32 %149, 1
store i32 %150, i32* %5
br label %134
151: ; preds = %134
%152 = load i32, i32* %6
%153 = load i32, i32* %8
%154 = icmp eq i32 %152, %153
br i1 %154, label %155, label %156
155: ; preds = %151
store i32 1, i32* %9
br label %157
156: ; preds = %151
store i32 0, i32* %9
br label %161
157: ; preds = %155
br label %158
158: ; preds = %157
%159 = load i32, i32* %4
%160 = add nsw i32 %159, 1
store i32 %160, i32* %4
br label %129
161: ; preds = %156, %129
%162 = load i32, i32* %9
%163 = icmp eq i32 %162, 1
br i1 %163, label %164, label %166
164: ; preds = %161
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %168
166: ; preds = %161
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %168
168: ; preds = %166, %164
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"\09%d\00"
@str = [50 x i8] c"\0AEnter a number(after each number press Enter) : \00"
@str.7 = [21 x i8] c"Entered square is : \00"
@str.8 = [10 x i8] c"\0ANO MAGIC\00"
@str.9 = [7 x i8] c"\0AMAGIC\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 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 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 @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 @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 @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 @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 @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 @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 @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 @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 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %20)
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.7, i64 0, i64 0))
%23 = call i32 @putchar(i32 10)
%24 = load i32, i32* %4
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %24)
%26 = load i32, i32* %6
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %8
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = call i32 @putchar(i32 10)
%31 = load i32, i32* %10
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%33 = load i32, i32* %12
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = load i32, i32* %14
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %35)
%37 = call i32 @putchar(i32 10)
%38 = load i32, i32* %16
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %18
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %20
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %4
%45 = load i32, i32* %12
%46 = add nsw i32 %45, %44
%47 = load i32, i32* %20
%48 = add nsw i32 %47, %46
%49 = load i32, i32* %10
%50 = add nsw i32 %49, %44
%51 = load i32, i32* %16
%52 = add nsw i32 %51, %50
%53 = icmp eq i32 %48, %52
br i1 %53, label %54, label %68
54: ; preds = %0
%55 = load i32, i32* %6
%56 = load i32, i32* %12
%57 = add nsw i32 %56, %55
%58 = load i32, i32* %18
%59 = add nsw i32 %58, %57
%60 = icmp eq i32 %48, %59
br i1 %60, label %61, label %68
61: ; preds = %54
%62 = load i32, i32* %8
%63 = load i32, i32* %14
%64 = add nsw i32 %63, %62
%65 = load i32, i32* %20
%66 = add nsw i32 %65, %64
%67 = icmp eq i32 %48, %66
br i1 %67, label %69, label %68
68: ; preds = %0, %54, %61
br label %69
69: ; preds = %61, %68
%70 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @str.8, i64 0, i64 0), %68 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.9, i64 0, i64 0), %61 ]
%71 = call i32 @puts(i8* dereferenceable(1) %70)
ret i32 0
}