#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 data[4][2];
  int i, j;
  for (i = 0; i < 2; i++) {
    printf("Enter data in form of Roll No. Sub1 Sub2 Sub3 \n");
    for (j = 0; j < 4; j++) {
      scanf("%d", &data[j][i]);
    }
  }
  printf("Total Marks Scored: \n");
  int sum;
  int tmax = 0, idmax;
  for (i = 0; i < 2; i++) {
    sum = 0;
    for (j = 1; j < 4; j++) {
      sum += data[j][i];
    }
    if (tmax < sum) {
      tmax = sum;
      idmax = i;
    }
    printf("Student %d: %d \n", data[0][i], sum);
  }
  printf("MAX MARKS: \n");
  int id = 0;
  int max;
  for (j = 1; j < 4; j++) {
    max = 0;
    printf("Subject %d: \n", j);
    for (i = 0; i < 2; i++) {
      if (max < data[j][i]) {
        max = data[j][i];
        id = i;
      }
    }
    printf("Student: %d Marks: %d \n", data[0][id], max);
  }
  printf("Max. Total By Student: %d and Marks: %d \n", data[0][idmax], tmax);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    11a6 <main+0x86>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jge    1193 <main+0x73>
movslq -0x38(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
movslq -0x34(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeb0(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1155 <main+0x35>
jmp    1198 <main+0x78>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1136 <main+0x16>
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    124d <main+0x12d>
movl   $0x0,-0x3c(%rbp)
movl   $0x1,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jge    120e <main+0xee>
movslq -0x38(%rbp),%rcx
lea    -0x30(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11da <main+0xba>
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1226 <main+0x106>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x44(%rbp)
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
mov    -0x3c(%rbp),%edx
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11c2 <main+0xa2>
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x48(%rbp)
movl   $0x1,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jge    1314 <main+0x1f4>
movl   $0x0,-0x4c(%rbp)
mov    -0x38(%rbp),%esi
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    12ed <main+0x1cd>
mov    -0x4c(%rbp),%eax
movslq -0x38(%rbp),%rdx
lea    -0x30(%rbp),%rcx
shl    $0x3,%rdx
add    %rdx,%rcx
movslq -0x34(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    12da <main+0x1ba>
movslq -0x38(%rbp),%rcx
lea    -0x30(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x48(%rbp)
jmp    12df <main+0x1bf>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1292 <main+0x172>
movslq -0x48(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
mov    -0x4c(%rbp),%edx
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1269 <main+0x149>
movslq -0x44(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
mov    -0x40(%rbp),%edx
lea    0xd67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xf40(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xeac(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xe9b(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%edx
add    0x8(%rsp),%edx
xor    %r13d,%r13d
add    0x18(%rsp),%edx
mov    (%rsp),%esi
mov    $0x0,%ebx
cmovns %edx,%ebx
lea    0xe14(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%edx
add    0xc(%rsp),%edx
mov    0x4(%rsp),%esi
add    0x1c(%rsp),%edx
xor    %r12d,%r12d
cmp    %edx,%ebx
setl   %r12b
cmovl  %edx,%ebx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe53(%rip),%rdi
call   1030 <puts@plt>
lea    0xde2(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%eax
test   %edx,%edx
cmovs  %r13d,%edx
xor    %ebp,%ebp
cmp    %eax,%edx
setl   %bpl
cmovl  %eax,%edx
mov    (%rsp,%rbp,4),%esi
lea    0xdbe(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%edx
mov    0x14(%rsp),%eax
test   %edx,%edx
setle  %cl
cmovs  %r13d,%edx
and    %cl,%bpl
cmp    %eax,%edx
cmovl  %eax,%edx
setl   %al
or     %bpl,%al
movzbl %al,%ebp
mov    (%rsp,%rbp,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%edx
mov    0x1c(%rsp),%eax
test   %edx,%edx
setle  %cl
cmovs  %r13d,%edx
and    %cl,%bpl
cmp    %eax,%edx
cmovl  %eax,%edx
setl   %al
or     %bpl,%al
movzbl %al,%eax
mov    (%rsp,%rax,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp,%r12,4),%esi
lea    0xd45(%rip),%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [48 x i8] c"Enter data in form of Roll No. Sub1 Sub2 Sub3 \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [22 x i8] c"Total Marks Scored: \0A\00"
@.str.3 = [17 x i8] c"Student %d: %d \0A\00"
@.str.4 = [13 x i8] c"MAX MARKS: \0A\00"
@.str.5 = [14 x i8] c"Subject %d: \0A\00"
@.str.6 = [24 x i8] c"Student: %d Marks: %d \0A\00"
@.str.7 = [42 x i8] c"Max. Total By Student: %d and Marks: %d \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x [2 x i32]]
%3 = alloca 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* %3
br label %10
10: ; preds = %30, %0
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %33
13: ; preds = %10
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %15
15: ; preds = %26, %13
%16 = load i32, i32* %4
%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 [2 x i32]], [4 x [2 x i32]]* %2, i64 0, i64 %20
%22 = load i32, i32* %3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [2 x i32], [2 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* %4
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %15
29: ; preds = %15
br label %30
30: ; preds = %29
%31 = load i32, i32* %3
%32 = add nsw i32 %31, 1
store i32 %32, i32* %3
br label %10
33: ; preds = %10
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %6
store i32 0, i32* %3
br label %35
35: ; preds = %70, %33
%36 = load i32, i32* %3
%37 = icmp slt i32 %36, 2
br i1 %37, label %38, label %73
38: ; preds = %35
store i32 0, i32* %5
store i32 1, i32* %4
br label %39
39: ; preds = %52, %38
%40 = load i32, i32* %4
%41 = icmp slt i32 %40, 4
br i1 %41, label %42, label %55
42: ; preds = %39
%43 = load i32, i32* %4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %2, i64 0, i64 %44
%46 = load i32, i32* %3
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [2 x i32], [2 x i32]* %45, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = load i32, i32* %5
%51 = add nsw i32 %50, %49
store i32 %51, i32* %5
br label %52
52: ; preds = %42
%53 = load i32, i32* %4
%54 = add nsw i32 %53, 1
store i32 %54, i32* %4
br label %39
55: ; preds = %39
%56 = load i32, i32* %6
%57 = load i32, i32* %5
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = load i32, i32* %5
store i32 %60, i32* %6
%61 = load i32, i32* %3
store i32 %61, i32* %7
br label %62
62: ; preds = %59, %55
%63 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %2, i64 0, i64 0
%64 = load i32, i32* %3
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [2 x i32], [2 x i32]* %63, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = load i32, i32* %5
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %67, i32 %68)
br label %70
70: ; preds = %62
%71 = load i32, i32* %3
%72 = add nsw i32 %71, 1
store i32 %72, i32* %3
br label %35
73: ; preds = %35
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %8
store i32 1, i32* %4
br label %75
75: ; preds = %115, %73
%76 = load i32, i32* %4
%77 = icmp slt i32 %76, 4
br i1 %77, label %78, label %118
78: ; preds = %75
store i32 0, i32* %9
%79 = load i32, i32* %4
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %79)
store i32 0, i32* %3
br label %81
81: ; preds = %104, %78
%82 = load i32, i32* %3
%83 = icmp slt i32 %82, 2
br i1 %83, label %84, label %107
84: ; preds = %81
%85 = load i32, i32* %9
%86 = load i32, i32* %4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %2, i64 0, i64 %87
%89 = load i32, i32* %3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [2 x i32], [2 x i32]* %88, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = icmp slt i32 %85, %92
br i1 %93, label %94, label %103
94: ; preds = %84
%95 = load i32, i32* %4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %2, i64 0, i64 %96
%98 = load i32, i32* %3
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [2 x i32], [2 x i32]* %97, i64 0, i64 %99
%101 = load i32, i32* %100
store i32 %101, i32* %9
%102 = load i32, i32* %3
store i32 %102, i32* %8
br label %103
103: ; preds = %94, %84
br label %104
104: ; preds = %103
%105 = load i32, i32* %3
%106 = add nsw i32 %105, 1
store i32 %106, i32* %3
br label %81
107: ; preds = %81
%108 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %2, i64 0, i64 0
%109 = load i32, i32* %8
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [2 x i32], [2 x i32]* %108, i64 0, i64 %110
%112 = load i32, i32* %111
%113 = load i32, i32* %9
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %112, i32 %113)
br label %115
115: ; preds = %107
%116 = load i32, i32* %4
%117 = add nsw i32 %116, 1
store i32 %117, i32* %4
br label %75
118: ; preds = %75
%119 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %2, i64 0, i64 0
%120 = load i32, i32* %7
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [2 x i32], [2 x i32]* %119, i64 0, i64 %121
%123 = load i32, i32* %122
%124 = load i32, i32* %6
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i32 %123, i32 %124)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [17 x i8] c"Student %d: %d \0A\00"
@.str.5 = [14 x i8] c"Subject %d: \0A\00"
@.str.6 = [24 x i8] c"Student: %d Marks: %d \0A\00"
@.str.7 = [42 x i8] c"Max. Total By Student: %d and Marks: %d \0A\00"
@str = [21 x i8] c"Total Marks Scored: \00"
@str.8 = [12 x i8] c"MAX MARKS: \00"
@str.9 = [47 x i8] c"Enter data in form of Roll No. Sub1 Sub2 Sub3 \00"
define i32 @main() {
%1 = alloca [4 x [2 x i32]]
%2 = bitcast [4 x [2 x i32]]* %1 to i8*
%3 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.9, i64 0, i64 0))
%4 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 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 [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 1, i64 0
%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 [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 2, i64 0
%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 [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 3, i64 0
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.9, i64 0, i64 0))
%13 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 0, i64 1
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
%15 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 1, i64 1
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%17 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 2, i64 1
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
%19 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 3, i64 1
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %19)
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%22 = load i32, i32* %6
%23 = load i32, i32* %8
%24 = add nsw i32 %23, %22
%25 = load i32, i32* %10
%26 = add nsw i32 %25, %24
%27 = icmp sgt i32 %26, 0
%28 = select i1 %27, i32 %26, i32 0
%29 = load i32, i32* %4
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %29, i32 %26)
%31 = load i32, i32* %15
%32 = load i32, i32* %17
%33 = add nsw i32 %32, %31
%34 = load i32, i32* %19
%35 = add nsw i32 %34, %33
%36 = icmp slt i32 %28, %35
%37 = select i1 %36, i32 %35, i32 %28
%38 = load i32, i32* %13
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %38, i32 %35)
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.8, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 1)
%42 = load i32, i32* %6
%43 = icmp sgt i32 %42, 0
%44 = select i1 %43, i32 %42, i32 0
%45 = load i32, i32* %15
%46 = icmp slt i32 %44, %45
%47 = select i1 %46, i32 %45, i32 %44
%48 = zext i1 %46 to i64
%49 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %50, i32 %47)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 2)
%53 = load i32, i32* %8
%54 = icmp sgt i32 %53, 0
%55 = xor i1 %54, true
%56 = select i1 %55, i1 %46, i1 false
%57 = select i1 %54, i32 %53, i32 0
%58 = load i32, i32* %17
%59 = icmp slt i32 %57, %58
%60 = select i1 %59, i1 true, i1 %56
%61 = select i1 %59, i32 %58, i32 %57
%62 = zext i1 %60 to i64
%63 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %64, i32 %61)
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 3)
%67 = load i32, i32* %10
%68 = icmp sgt i32 %67, 0
%69 = xor i1 %68, true
%70 = select i1 %69, i1 %60, i1 false
%71 = select i1 %68, i32 %67, i32 0
%72 = load i32, i32* %19
%73 = icmp slt i32 %71, %72
%74 = select i1 %73, i1 true, i1 %70
%75 = select i1 %73, i32 %72, i32 %71
%76 = zext i1 %74 to i64
%77 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %78, i32 %75)
%80 = zext i1 %36 to i64
%81 = getelementptr inbounds [4 x [2 x i32]], [4 x [2 x i32]]* %1, i64 0, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i32 %82, i32 %37)
ret i32 0
}