#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 column_prod(int **, int, int);
int principal_diagonal_prod(int **, int, int);
int /*<<< orphan*/ printf(char *, int);
int row_prod(int **, int, int);
int /*<<< orphan*/ scanf(char *, int *);
int secondary_diagonal_prod(int **, int, int);
int main(int argc, char *argv[]) {
  int num[20][20];
  int i, j, a, max = -1;
  for (i = 0; i < 20; i++)
    for (j = 0; j < 20; j++)
      scanf("%d", &num[i][j]);
  for (i = 0; i < 20; i++)
    for (j = 0; j < 20; j++) {
      a = row_prod(num, i, j);
      printf("=%d,", a);
      if (a > max)
        max = a;
      a = column_prod(num, i, j);
      printf("=%d,", a);
      if (a > max)
        max = a;
      a = principal_diagonal_prod(num, i, j);
      printf("=%d,", a);
      if (a > max)
        max = a;
      a = secondary_diagonal_prod(num, i, j);
      printf("=%d\n", a);
      if (a > max)
        max = a;
    }
  printf("The maximum product is : %d\n", max);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x660,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xffffffff,-0x660(%rbp)
ff ff ff
movl   $0x0,-0x654(%rbp)
cmpl   $0x14,-0x654(%rbp)
jge    120d <main+0xad>
movl   $0x0,-0x658(%rbp)
cmpl   $0x14,-0x658(%rbp)
jge    11f4 <main+0x94>
movslq -0x654(%rbp),%rax
lea    -0x650(%rbp),%rsi
imul   $0x50,%rax,%rax
add    %rax,%rsi
movslq -0x658(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe25(%rip),%rdi
call   1070 <scanf@plt>
mov    -0x658(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x658(%rbp)
jmp    11a4 <main+0x44>
jmp    11f9 <main+0x99>
mov    -0x654(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x654(%rbp)
jmp    118d <main+0x2d>
movl   $0x0,-0x654(%rbp)
cmpl   $0x14,-0x654(%rbp)
jge    13a5 <main+0x245>
movl   $0x0,-0x658(%rbp)
cmpl   $0x14,-0x658(%rbp)
jge    138c <main+0x22c>
lea    -0x650(%rbp),%rdi
mov    -0x654(%rbp),%esi
mov    -0x658(%rbp),%edx
call   1060 <row_prod@plt>
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%esi
lea    0xd9d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x65c(%rbp),%eax
cmp    -0x660(%rbp),%eax
jle    1289 <main+0x129>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x660(%rbp)
lea    -0x650(%rbp),%rdi
mov    -0x654(%rbp),%esi
mov    -0x658(%rbp),%edx
call   1030 <column_prod@plt>
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%esi
lea    0xd4f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x65c(%rbp),%eax
cmp    -0x660(%rbp),%eax
jle    12d7 <main+0x177>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x660(%rbp)
lea    -0x650(%rbp),%rdi
mov    -0x654(%rbp),%esi
mov    -0x658(%rbp),%edx
call   1050 <principal_diagonal_prod@plt>
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%esi
lea    0xd01(%rip),%rdi
call   1040 <printf@plt>
mov    -0x65c(%rbp),%eax
cmp    -0x660(%rbp),%eax
jle    1325 <main+0x1c5>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x660(%rbp)
lea    -0x650(%rbp),%rdi
mov    -0x654(%rbp),%esi
mov    -0x658(%rbp),%edx
call   1080 <secondary_diagonal_prod@plt>
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%esi
lea    0xcb8(%rip),%rdi
call   1040 <printf@plt>
mov    -0x65c(%rbp),%eax
cmp    -0x660(%rbp),%eax
jle    1373 <main+0x213>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x660(%rbp)
jmp    1378 <main+0x218>
mov    -0x658(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x658(%rbp)
jmp    122e <main+0xce>
jmp    1391 <main+0x231>
mov    -0x654(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x654(%rbp)
jmp    1217 <main+0xb7>
mov    -0x660(%rbp),%esi
lea    0xc5b(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x660,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x648,%rsp
xor    %ebp,%ebp
lea    0xe86(%rip),%rbx
nopw   0x0(%rax,%rax,1)
lea    (%rsp,%rbp,1),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x4,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x8,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0xc,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x10,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x14,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x18,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x1c,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x20,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x24,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x28,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x2c,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x30,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x34,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x38,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x3c,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x40,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x44,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x48,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    (%rsp,%rbp,1),%rsi
add    $0x4c,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
add    $0x50,%rbp
cmp    $0x640,%rbp
jne    1180 <main+0x20>
xor    %r13d,%r13d
mov    $0xffffffff,%ebx
mov    %rsp,%r14
lea    0xd24(%rip),%r12
nop
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14,%rdi
mov    %r13d,%esi
mov    %r15d,%edx
call   1060 <row_prod@plt>
mov    %r12,%rbp
mov    %eax,%r12d
mov    %rbp,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
cmp    %ebx,%r12d
cmovg  %r12d,%ebx
mov    %rbp,%r12
mov    %r14,%rdi
mov    %r13d,%esi
mov    %r15d,%edx
call   1030 <column_prod@plt>
mov    %eax,%ebp
mov    %r12,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
cmp    %ebx,%ebp
cmovg  %ebp,%ebx
mov    %r14,%rdi
mov    %r13d,%esi
mov    %r15d,%edx
call   1050 <principal_diagonal_prod@plt>
mov    %eax,%ebp
mov    %r12,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
cmp    %ebx,%ebp
cmovg  %ebp,%ebx
mov    %r14,%rdi
mov    %r13d,%esi
mov    %r15d,%edx
call   1080 <secondary_diagonal_prod@plt>
mov    %eax,%ebp
lea    0xc9b(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
cmp    %ebx,%ebp
cmovg  %ebp,%ebx
add    $0x1,%r15d
cmp    $0x14,%r15d
jne    12f0 <main+0x190>
add    $0x1,%r13d
cmp    $0x14,%r13d
jne    12e0 <main+0x180>
lea    0xc71(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x648,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"=%d,\00"
@.str.2 = [5 x i8] c"=%d\0A\00"
@.str.3 = [29 x i8] c"The maximum product is : %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [20 x [20 x i32]]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 -1, i32* %10
store i32 0, i32* %7
br label %11
11: ; preds = %30, %2
%12 = load i32, i32* %7
%13 = icmp slt i32 %12, 20
br i1 %13, label %14, label %33
14: ; preds = %11
store i32 0, i32* %8
br label %15
15: ; preds = %26, %14
%16 = load i32, i32* %8
%17 = icmp slt i32 %16, 20
br i1 %17, label %18, label %29
18: ; preds = %15
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %20
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [20 x i32], [20 x i32]* %21, i64 0, i64 %23
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %24)
br label %26
26: ; preds = %18
%27 = load i32, i32* %8
%28 = add nsw i32 %27, 1
store i32 %28, i32* %8
br label %15
29: ; preds = %15
br label %30
30: ; preds = %29
%31 = load i32, i32* %7
%32 = add nsw i32 %31, 1
store i32 %32, i32* %7
br label %11
33: ; preds = %11
store i32 0, i32* %7
br label %34
34: ; preds = %98, %33
%35 = load i32, i32* %7
%36 = icmp slt i32 %35, 20
br i1 %36, label %37, label %101
37: ; preds = %34
store i32 0, i32* %8
br label %38
38: ; preds = %94, %37
%39 = load i32, i32* %8
%40 = icmp slt i32 %39, 20
br i1 %40, label %41, label %97
41: ; preds = %38
%42 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 0
%43 = bitcast [20 x i32]* %42 to i32**
%44 = load i32, i32* %7
%45 = load i32, i32* %8
%46 = call i32 @row_prod(i32** %43, i32 %44, i32 %45)
store i32 %46, i32* %9
%47 = load i32, i32* %9
%48 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %47)
%49 = load i32, i32* %9
%50 = load i32, i32* %10
%51 = icmp sgt i32 %49, %50
br i1 %51, label %52, label %54
52: ; preds = %41
%53 = load i32, i32* %9
store i32 %53, i32* %10
br label %54
54: ; preds = %52, %41
%55 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 0
%56 = bitcast [20 x i32]* %55 to i32**
%57 = load i32, i32* %7
%58 = load i32, i32* %8
%59 = call i32 @column_prod(i32** %56, i32 %57, i32 %58)
store i32 %59, i32* %9
%60 = load i32, i32* %9
%61 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %9
%63 = load i32, i32* %10
%64 = icmp sgt i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %54
%66 = load i32, i32* %9
store i32 %66, i32* %10
br label %67
67: ; preds = %65, %54
%68 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 0
%69 = bitcast [20 x i32]* %68 to i32**
%70 = load i32, i32* %7
%71 = load i32, i32* %8
%72 = call i32 @principal_diagonal_prod(i32** %69, i32 %70, i32 %71)
store i32 %72, i32* %9
%73 = load i32, i32* %9
%74 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %73)
%75 = load i32, i32* %9
%76 = load i32, i32* %10
%77 = icmp sgt i32 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %67
%79 = load i32, i32* %9
store i32 %79, i32* %10
br label %80
80: ; preds = %78, %67
%81 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 0
%82 = bitcast [20 x i32]* %81 to i32**
%83 = load i32, i32* %7
%84 = load i32, i32* %8
%85 = call i32 @secondary_diagonal_prod(i32** %82, i32 %83, i32 %84)
store i32 %85, i32* %9
%86 = load i32, i32* %9
%87 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %9
%89 = load i32, i32* %10
%90 = icmp sgt i32 %88, %89
br i1 %90, label %91, label %93
91: ; preds = %80
%92 = load i32, i32* %9
store i32 %92, i32* %10
br label %93
93: ; preds = %91, %80
br label %94
94: ; preds = %93
%95 = load i32, i32* %8
%96 = add nsw i32 %95, 1
store i32 %96, i32* %8
br label %38
97: ; preds = %38
br label %98
98: ; preds = %97
%99 = load i32, i32* %7
%100 = add nsw i32 %99, 1
store i32 %100, i32* %7
br label %34
101: ; preds = %34
%102 = load i32, i32* %10
%103 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %102)
ret i32 0
}

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