#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, a[4][4];
  int i, j = 0, sum, sum1, sum2, k = 0;
  printf("Enter matrix : ");
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 4; j++)
      scanf("%d", &a[i][j]);
  }
  printf("Entered matrix is :");
  for (i = 0; i < 4; i++) {
    printf("n");
    for (j = 0; j < 4; j++) {
      printf("t%d", a[i][j]);
    }
  }
  sum = 0;
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 4; j++) {
      if (i == j)
        sum = sum + a[i][j];
    }
  }
  sum1 = 0;
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 4; j++) {
      sum1 = sum1 + a[i][j];
    }
    if (sum == sum1)
      k = 1;
    else {
      k = 0;
      break;
    }
  }
  for (i = 0; i < 4; i++) {
    sum2 = 0;
    for (j = 0; j < 4; j++) {
      sum2 = sum2 + a[j][i];
    }
    if (sum == sum2)
      k = 1;
    else {
      k = 0;
      break;
    }
  }
  if (k == 1)
    printf(" Magic square");
  else
    printf("NOt a  magic square");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x68(%rbp)
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    11b4 <main+0x94>
movl   $0x0,-0x58(%rbp)
cmpl   $0x4,-0x58(%rbp)
jge    11a1 <main+0x81>
movslq -0x54(%rbp),%rax
lea    -0x50(%rbp),%rsi
shl    $0x4,%rax
add    %rax,%rsi
movslq -0x58(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe99(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1163 <main+0x43>
jmp    11a6 <main+0x86>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1152 <main+0x32>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    1237 <main+0x117>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x58(%rbp)
cmpl   $0x4,-0x58(%rbp)
jge    1224 <main+0x104>
movslq -0x54(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    11e8 <main+0xc8>
jmp    1229 <main+0x109>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    11c9 <main+0xa9>
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    12ae <main+0x18e>
movl   $0x0,-0x58(%rbp)
cmpl   $0x4,-0x58(%rbp)
jge    129b <main+0x17b>
mov    -0x54(%rbp),%eax
cmp    -0x58(%rbp),%eax
jne    1288 <main+0x168>
mov    -0x5c(%rbp),%eax
movslq -0x54(%rbp),%rdx
lea    -0x50(%rbp),%rcx
shl    $0x4,%rdx
add    %rdx,%rcx
movslq -0x58(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x5c(%rbp)
jmp    128d <main+0x16d>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1256 <main+0x136>
jmp    12a0 <main+0x180>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1245 <main+0x125>
movl   $0x0,-0x60(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    1338 <main+0x218>
movl   $0x0,-0x58(%rbp)
cmpl   $0x4,-0x58(%rbp)
jge    1301 <main+0x1e1>
mov    -0x60(%rbp),%eax
movslq -0x54(%rbp),%rdx
lea    -0x50(%rbp),%rcx
shl    $0x4,%rdx
add    %rdx,%rcx
movslq -0x58(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x60(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    12cd <main+0x1ad>
mov    -0x5c(%rbp),%eax
cmp    -0x60(%rbp),%eax
jne    1319 <main+0x1f9>
movl   $0x1,-0x68(%rbp)
jmp    1325 <main+0x205>
movl   $0x0,-0x68(%rbp)
jmp    1338 <main+0x218>
jmp    132a <main+0x20a>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    12bc <main+0x19c>
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    13c2 <main+0x2a2>
movl   $0x0,-0x64(%rbp)
movl   $0x0,-0x58(%rbp)
cmpl   $0x4,-0x58(%rbp)
jge    138b <main+0x26b>
mov    -0x64(%rbp),%eax
movslq -0x58(%rbp),%rdx
lea    -0x50(%rbp),%rcx
shl    $0x4,%rdx
add    %rdx,%rcx
movslq -0x54(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x64(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1357 <main+0x237>
mov    -0x5c(%rbp),%eax
cmp    -0x64(%rbp),%eax
jne    13a3 <main+0x283>
movl   $0x1,-0x68(%rbp)
jmp    13af <main+0x28f>
movl   $0x0,-0x68(%rbp)
jmp    13c2 <main+0x2a2>
jmp    13b4 <main+0x294>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    133f <main+0x21f>
cmpl   $0x1,-0x68(%rbp)
jne    13df <main+0x2bf>
lea    0xc57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ed <main+0x2cd>
lea    0xc52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xec4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedb(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x34(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x38(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x3c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x6e,%edi
call   1030 <putchar@plt>
mov    (%rsp),%esi
lea    0xdea(%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    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x6e,%edi
call   1030 <putchar@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    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    $0x6e,%edi
call   1030 <putchar@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x6e,%edi
call   1030 <putchar@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%ecx
mov    0x14(%rsp),%eax
add    %ecx,%eax
add    0x28(%rsp),%eax
add    0x3c(%rsp),%eax
add    0x10(%rsp),%ecx
add    0x20(%rsp),%ecx
add    0x30(%rsp),%ecx
cmp    %ecx,%eax
jne    139a <main+0x26a>
mov    0x14(%rsp),%ecx
add    0x4(%rsp),%ecx
add    0x24(%rsp),%ecx
add    0x34(%rsp),%ecx
cmp    %ecx,%eax
jne    139a <main+0x26a>
mov    0x18(%rsp),%ecx
add    0x8(%rsp),%ecx
add    0x28(%rsp),%ecx
add    0x38(%rsp),%ecx
cmp    %ecx,%eax
jne    139a <main+0x26a>
mov    0x1c(%rsp),%ecx
add    0xc(%rsp),%ecx
add    0x2c(%rsp),%ecx
add    0x3c(%rsp),%ecx
cmp    %ecx,%eax
jne    139a <main+0x26a>
lea    0xc90(%rip),%rdi
jmp    13a1 <main+0x271>
lea    0xc95(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [16 x i8] c"Enter matrix : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [20 x i8] c"Entered matrix is :\00"
@.str.4 = [4 x i8] c"t%d\00"
@.str.5 = [14 x i8] c" Magic square\00"
@.str.6 = [20 x i8] c"NOt a magic square\00"
define i32 @main() {
%1 = alloca [4 x [4 x i32]]
%2 = bitcast [4 x [4 x i32]]* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 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 [4 x [4 x i32]], [4 x [4 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 [4 x [4 x i32]], [4 x [4 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 [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 0, i64 3
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%12 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 1, i64 0
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %12)
%14 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 1, i64 1
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 1, i64 2
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 1, i64 3
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 2, i64 0
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %20)
%22 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 2, i64 1
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %22)
%24 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 2, i64 2
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %24)
%26 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 2, i64 3
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %26)
%28 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 3, i64 0
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %28)
%30 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 3, i64 1
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %30)
%32 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 3, i64 2
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %32)
%34 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 3, i64 3
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %34)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%37 = call i32 @putchar(i32 110)
%38 = load i32, i32* %4
%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* %6
%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* %8
%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* %10
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%46 = call i32 @putchar(i32 110)
%47 = load i32, i32* %12
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %47)
%49 = load i32, i32* %14
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %49)
%51 = load i32, i32* %16
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %51)
%53 = load i32, i32* %18
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %53)
%55 = call i32 @putchar(i32 110)
%56 = load i32, i32* %20
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %22
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %24
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %26
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %62)
%64 = call i32 @putchar(i32 110)
%65 = load i32, i32* %28
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %65)
%67 = load i32, i32* %30
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %67)
%69 = load i32, i32* %32
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %69)
%71 = load i32, i32* %34
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %71)
%73 = load i32, i32* %4
%74 = load i32, i32* %14
%75 = add nsw i32 %74, %73
%76 = load i32, i32* %24
%77 = add nsw i32 %76, %75
%78 = load i32, i32* %34
%79 = add nsw i32 %78, %77
%80 = load i32, i32* %4
%81 = load i32, i32* %12
%82 = add nsw i32 %81, %80
%83 = load i32, i32* %20
%84 = add nsw i32 %83, %82
%85 = load i32, i32* %28
%86 = add nsw i32 %85, %84
%87 = icmp eq i32 %79, %86
br i1 %87, label %88, label %115
88: ; preds = %0
%89 = load i32, i32* %6
%90 = load i32, i32* %14
%91 = add nsw i32 %90, %89
%92 = load i32, i32* %22
%93 = add nsw i32 %92, %91
%94 = load i32, i32* %30
%95 = add nsw i32 %94, %93
%96 = icmp eq i32 %79, %95
br i1 %96, label %97, label %115
97: ; preds = %88
%98 = load i32, i32* %8
%99 = load i32, i32* %16
%100 = add nsw i32 %99, %98
%101 = load i32, i32* %24
%102 = add nsw i32 %101, %100
%103 = load i32, i32* %32
%104 = add nsw i32 %103, %102
%105 = icmp eq i32 %79, %104
br i1 %105, label %106, label %115
106: ; preds = %97
%107 = load i32, i32* %10
%108 = load i32, i32* %18
%109 = add nsw i32 %108, %107
%110 = load i32, i32* %26
%111 = add nsw i32 %110, %109
%112 = load i32, i32* %34
%113 = add nsw i32 %112, %111
%114 = icmp eq i32 %79, %113
br i1 %114, label %116, label %115
115: ; preds = %0, %88, %97, %106
br label %116
116: ; preds = %106, %115
%117 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), %115 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), %106 ]
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %117)
ret i32 0
}