#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*/ freopen(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdin;
int main() {
  freopen("a.in", "r", stdin);
  int prod = 1, max = 0, table[20][20];
  for (int i = 0; i < 20; i++)
    for (int j = 0; j < 20; j++)
      scanf("%d", &table[i][j]);
  for (int i = 0; i < 20; i++) {
    for (int j = 0; j < 17; j++) {
      prod = table[i][j] * table[i][j + 1] * table[i][j + 2] * table[i][j + 3];
      if (prod > max)
        max = prod;
    }
  }
  for (int i = 0; i < 20; i++) {
    for (int j = 0; j < 17; j++) {
      prod = table[j][i] * table[j + 1][i] * table[j + 2][i] * table[j + 3][i];
      if (prod > max)
        max = prod;
    }
  }
  for (int i = 0; i < 17; i++) {
    for (int j = 0; j < 17; j++) {
      prod = table[i][j] * table[i + 1][j + 1] * table[i + 2][j + 2] *
             table[i + 3][j + 3];
      if (prod > max)
        max = prod;
    }
  }
  for (int i = 0; i < 17; i++) {
    for (int j = 3; j < 20; j++) {
      prod = table[i][j] * table[i + 1][j - 1] * table[i + 2][j - 2] *
             table[i + 3][j - 3];
      if (prod > max)
        max = prod;
    }
  }
  printf("%d\n", max);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x680,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e9f(%rip),%rax
mov    (%rax),%edx
lea    0xeae(%rip),%rdi
lea    0xeac(%rip),%rsi
call   1040 <freopen@plt>
movl   $0x1,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x654(%rbp)
cmpl   $0x14,-0x654(%rbp)
jge    11f6 <main+0xc6>
movl   $0x0,-0x658(%rbp)
cmpl   $0x14,-0x658(%rbp)
jge    11dd <main+0xad>
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    0xe43(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x658(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x658(%rbp)
jmp    118d <main+0x5d>
jmp    11e2 <main+0xb2>
mov    -0x654(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x654(%rbp)
jmp    1176 <main+0x46>
movl   $0x0,-0x65c(%rbp)
cmpl   $0x14,-0x65c(%rbp)
jge    12f9 <main+0x1c9>
movl   $0x0,-0x660(%rbp)
cmpl   $0x11,-0x660(%rbp)
jge    12e0 <main+0x1b0>
movslq -0x65c(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x660(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
movslq -0x65c(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x660(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x65c(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x660(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x65c(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x660(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    12c7 <main+0x197>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    12cc <main+0x19c>
mov    -0x660(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x660(%rbp)
jmp    1217 <main+0xe7>
jmp    12e5 <main+0x1b5>
mov    -0x65c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x65c(%rbp)
jmp    1200 <main+0xd0>
movl   $0x0,-0x664(%rbp)
cmpl   $0x14,-0x664(%rbp)
jge    13fc <main+0x2cc>
movl   $0x0,-0x668(%rbp)
cmpl   $0x11,-0x668(%rbp)
jge    13e3 <main+0x2b3>
movslq -0x668(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x664(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x668(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x664(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x668(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x664(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x668(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x664(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    13ca <main+0x29a>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    13cf <main+0x29f>
mov    -0x668(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x668(%rbp)
jmp    131a <main+0x1ea>
jmp    13e8 <main+0x2b8>
mov    -0x664(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x664(%rbp)
jmp    1303 <main+0x1d3>
movl   $0x0,-0x66c(%rbp)
cmpl   $0x11,-0x66c(%rbp)
jge    150e <main+0x3de>
movl   $0x0,-0x670(%rbp)
cmpl   $0x11,-0x670(%rbp)
jge    14f5 <main+0x3c5>
movslq -0x66c(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x670(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x66c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x670(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x66c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x670(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x66c(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x670(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    14dc <main+0x3ac>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    14e1 <main+0x3b1>
mov    -0x670(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x670(%rbp)
jmp    141d <main+0x2ed>
jmp    14fa <main+0x3ca>
mov    -0x66c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x66c(%rbp)
jmp    1406 <main+0x2d6>
movl   $0x0,-0x674(%rbp)
cmpl   $0x11,-0x674(%rbp)
jge    1620 <main+0x4f0>
movl   $0x3,-0x678(%rbp)
cmpl   $0x14,-0x678(%rbp)
jge    1607 <main+0x4d7>
movslq -0x674(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x678(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x674(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x678(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x674(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x678(%rbp),%edx
sub    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x674(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x678(%rbp),%edx
sub    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    15ee <main+0x4be>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    15f3 <main+0x4c3>
mov    -0x678(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x678(%rbp)
jmp    152f <main+0x3ff>
jmp    160c <main+0x4dc>
mov    -0x674(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x674(%rbp)
jmp    1518 <main+0x3e8>
mov    -0xc(%rbp),%esi
lea    0x9e0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x680,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x648,%rsp
mov    0x2ea7(%rip),%rax
mov    (%rax),%edx
lea    0xeb6(%rip),%rdi
lea    0xeb4(%rip),%rsi
call   1040 <freopen@plt>
xor    %ebx,%ebx
lea    0xea8(%rip),%r14
nop
lea    (%rsp,%rbx,1),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x4,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x8,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0xc,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x10,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x14,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x18,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x1c,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x20,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x24,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x28,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x2c,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x30,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x34,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x38,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x3c,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x40,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x44,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x48,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0x4c,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
add    $0x50,%rbx
cmp    $0x640,%rbx
jne    1160 <main+0x30>
lea    0x10(%rsp),%r9
xor    %r8d,%r8d
xor    %esi,%esi
jmp    12ce <main+0x19e>
nopl   0x0(%rax)
add    $0x1,%r8
add    $0x50,%r9
cmp    $0x14,%r8
je     132d <main+0x1fd>
lea    (%r8,%r8,4),%rax
shl    $0x4,%rax
mov    (%rsp,%rax,1),%edx
mov    0x4(%rsp,%rax,1),%edi
mov    0x8(%rsp,%rax,1),%r10d
xor    %ebx,%ebx
mov    %esi,%eax
cs nopw 0x0(%rax,%rax,1)
mov    %edx,%esi
imul   %edi,%esi
imul   %r10d,%esi
mov    -0x4(%r9,%rbx,4),%ecx
imul   %ecx,%esi
cmp    %eax,%esi
cmovle %eax,%esi
cmp    $0x10,%rbx
je     12c0 <main+0x190>
mov    %r10d,%edx
imul   %r10d,%edi
imul   %ecx,%edi
mov    (%r9,%rbx,4),%r10d
add    $0x2,%rbx
imul   %r10d,%edi
cmp    %esi,%edi
mov    %edi,%eax
cmovle %esi,%eax
mov    %ecx,%edi
jmp    12f0 <main+0x1c0>
mov    %rsp,%r9
xor    %r8d,%r8d
jmp    134e <main+0x21e>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r8
add    $0x4,%r9
cmp    $0x14,%r8
je     13b3 <main+0x283>
mov    (%rsp,%r8,4),%edx
mov    0x50(%rsp,%r8,4),%ebx
mov    0xa0(%rsp,%r8,4),%r10d
mov    $0x140,%edi
mov    %esi,%ecx
cs nopw 0x0(%rax,%rax,1)
mov    %edx,%esi
imul   %ebx,%esi
imul   %r10d,%esi
mov    -0x50(%r9,%rdi,1),%eax
imul   %eax,%esi
cmp    %ecx,%esi
cmovle %ecx,%esi
cmp    $0x640,%rdi
je     1340 <main+0x210>
mov    %r10d,%edx
imul   %r10d,%ebx
imul   %eax,%ebx
mov    (%r9,%rdi,1),%r10d
imul   %r10d,%ebx
cmp    %esi,%ebx
mov    %ebx,%ecx
cmovle %esi,%ecx
add    $0xa0,%rdi
mov    %eax,%ebx
jmp    1370 <main+0x240>
mov    $0x13c,%eax
nopl   0x0(%rax,%rax,1)
movd   %esi,%xmm0
pshufd $0x0,%xmm0,%xmm4
movdqu -0xe8(%rsp,%rax,1),%xmm3
ff ff
movdqa -0x13c(%rsp,%rax,1),%xmm5
ff ff
movdqa -0x12c(%rsp,%rax,1),%xmm2
ff ff
movdqa -0x11c(%rsp,%rax,1),%xmm1
ff ff
movdqa -0x10c(%rsp,%rax,1),%xmm0
ff ff
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm5,%xmm3
pshufd $0xf5,%xmm5,%xmm5
pmuludq %xmm6,%xmm5
movdqu -0x94(%rsp,%rax,1),%xmm6
ff ff
pshufd $0xf5,%xmm6,%xmm7
pmuludq %xmm5,%xmm7
pmuludq %xmm6,%xmm3
movdqu -0x40(%rsp,%rax,1),%xmm5
pmuludq %xmm5,%xmm3
pshufd $0xe8,%xmm3,%xmm6
pshufd $0xf5,%xmm5,%xmm3
pmuludq %xmm7,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm6
movdqa %xmm6,%xmm3
pcmpgtd %xmm4,%xmm3
pand   %xmm3,%xmm6
pandn  %xmm4,%xmm3
por    %xmm6,%xmm3
movdqu -0xd8(%rsp,%rax,1),%xmm4
ff ff
pshufd $0xf5,%xmm4,%xmm5
pmuludq %xmm2,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm2,%xmm5
movdqu -0x84(%rsp,%rax,1),%xmm2
ff ff
pshufd $0xf5,%xmm2,%xmm6
pmuludq %xmm5,%xmm6
pmuludq %xmm2,%xmm4
movdqu -0x30(%rsp,%rax,1),%xmm2
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm6,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm4
movdqa %xmm4,%xmm2
pcmpgtd %xmm3,%xmm2
pand   %xmm2,%xmm4
pandn  %xmm3,%xmm2
por    %xmm4,%xmm2
movdqu -0xc8(%rsp,%rax,1),%xmm3
ff ff
pshufd $0xf5,%xmm3,%xmm4
pmuludq %xmm1,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm1,%xmm4
movdqu -0x74(%rsp,%rax,1),%xmm1
pshufd $0xf5,%xmm1,%xmm5
pmuludq %xmm4,%xmm5
pmuludq %xmm1,%xmm3
movdqu -0x20(%rsp,%rax,1),%xmm1
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm5,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm1,%xmm3
movdqa %xmm3,%xmm1
pcmpgtd %xmm2,%xmm1
pand   %xmm1,%xmm3
pandn  %xmm2,%xmm1
por    %xmm3,%xmm1
movdqu -0xb8(%rsp,%rax,1),%xmm2
ff ff
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm0,%xmm3
movdqu -0x64(%rsp,%rax,1),%xmm0
pshufd $0xf5,%xmm0,%xmm4
pmuludq %xmm3,%xmm4
pmuludq %xmm0,%xmm2
movdqu -0x10(%rsp,%rax,1),%xmm0
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm4,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm0,%xmm2
movdqa %xmm2,%xmm0
pcmpgtd %xmm1,%xmm0
pand   %xmm0,%xmm2
pandn  %xmm1,%xmm0
por    %xmm2,%xmm0
pshufd $0xee,%xmm0,%xmm1
movdqa %xmm0,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm0
pandn  %xmm1,%xmm2
por    %xmm0,%xmm2
pshufd $0x55,%xmm2,%xmm0
movdqa %xmm2,%xmm1
pcmpgtd %xmm0,%xmm1
pand   %xmm1,%xmm2
pandn  %xmm0,%xmm1
por    %xmm2,%xmm1
mov    -0xa8(%rsp,%rax,1),%esi
imul   -0xfc(%rsp,%rax,1),%esi
ff
imul   -0x54(%rsp,%rax,1),%esi
movd   %xmm1,%ecx
imul   (%rsp,%rax,1),%esi
cmp    %ecx,%esi
cmovle %ecx,%esi
add    $0x50,%rax
cmp    $0x68c,%rax
jne    13c0 <main+0x290>
mov    $0x130,%eax
nopw   0x0(%rax,%rax,1)
movd   %esi,%xmm0
pshufd $0x0,%xmm0,%xmm4
movdqu -0xd8(%rsp,%rax,1),%xmm3
movdqu -0x124(%rsp,%rax,1),%xmm5
ff ff
movdqu -0x114(%rsp,%rax,1),%xmm2
ff ff
movdqu -0x104(%rsp,%rax,1),%xmm1
ff ff
movdqu -0xf4(%rsp,%rax,1),%xmm0
ff ff
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm5,%xmm3
pshufd $0xf5,%xmm5,%xmm5
pmuludq %xmm6,%xmm5
movdqu -0x8c(%rsp,%rax,1),%xmm6
ff ff
pshufd $0xf5,%xmm6,%xmm7
pmuludq %xmm5,%xmm7
pmuludq %xmm6,%xmm3
movdqa -0x40(%rsp,%rax,1),%xmm5
pmuludq %xmm5,%xmm3
pshufd $0xe8,%xmm3,%xmm6
pshufd $0xf5,%xmm5,%xmm3
pmuludq %xmm7,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm6
movdqa %xmm6,%xmm3
pcmpgtd %xmm4,%xmm3
pand   %xmm3,%xmm6
pandn  %xmm4,%xmm3
por    %xmm6,%xmm3
movdqu -0xc8(%rsp,%rax,1),%xmm4
ff ff
pshufd $0xf5,%xmm4,%xmm5
pmuludq %xmm2,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm2,%xmm5
movdqu -0x7c(%rsp,%rax,1),%xmm2
pshufd $0xf5,%xmm2,%xmm6
pmuludq %xmm5,%xmm6
pmuludq %xmm2,%xmm4
movdqa -0x30(%rsp,%rax,1),%xmm2
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm6,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm4
movdqa %xmm4,%xmm2
pcmpgtd %xmm3,%xmm2
pand   %xmm2,%xmm4
pandn  %xmm3,%xmm2
por    %xmm4,%xmm2
movdqu -0xb8(%rsp,%rax,1),%xmm3
ff ff
pshufd $0xf5,%xmm3,%xmm4
pmuludq %xmm1,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm1,%xmm4
movdqu -0x6c(%rsp,%rax,1),%xmm1
pshufd $0xf5,%xmm1,%xmm5
pmuludq %xmm4,%xmm5
pmuludq %xmm1,%xmm3
movdqa -0x20(%rsp,%rax,1),%xmm1
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm5,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm1,%xmm3
movdqa %xmm3,%xmm1
pcmpgtd %xmm2,%xmm1
pand   %xmm1,%xmm3
pandn  %xmm2,%xmm1
por    %xmm3,%xmm1
movdqu -0xa8(%rsp,%rax,1),%xmm2
ff ff
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm0,%xmm3
movdqu -0x5c(%rsp,%rax,1),%xmm0
pshufd $0xf5,%xmm0,%xmm4
pmuludq %xmm3,%xmm4
pmuludq %xmm0,%xmm2
movdqa -0x10(%rsp,%rax,1),%xmm0
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm4,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm0,%xmm2
movdqa %xmm2,%xmm0
pcmpgtd %xmm1,%xmm0
pand   %xmm0,%xmm2
pandn  %xmm1,%xmm0
por    %xmm2,%xmm0
pshufd $0xee,%xmm0,%xmm1
movdqa %xmm0,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm0
pandn  %xmm1,%xmm2
por    %xmm0,%xmm2
pshufd $0x55,%xmm2,%xmm0
movdqa %xmm2,%xmm1
pcmpgtd %xmm0,%xmm1
pand   %xmm1,%xmm2
pandn  %xmm0,%xmm1
por    %xmm2,%xmm1
mov    -0x98(%rsp,%rax,1),%esi
imul   -0xe4(%rsp,%rax,1),%esi
ff
imul   -0x4c(%rsp,%rax,1),%esi
movd   %xmm1,%ecx
imul   (%rsp,%rax,1),%esi
cmp    %ecx,%esi
cmovle %ecx,%esi
add    $0x50,%rax
cmp    $0x680,%rax
jne    15f0 <main+0x4c0>
lea    0x7f4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x648,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [5 x i8] c"a.in\00"
@.str.1 = [2 x i8] c"r\00"
@stdin = global i32 0
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [20 x [20 x i32]]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %1
%15 = load i32, i32* @stdin
%16 = call i32 @freopen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %15)
store i32 1, i32* %2
store i32 0, i32* %3
store i32 0, i32* %5
br label %17
17: ; preds = %36, %0
%18 = load i32, i32* %5
%19 = icmp slt i32 %18, 20
br i1 %19, label %20, label %39
20: ; preds = %17
store i32 0, i32* %6
br label %21
21: ; preds = %32, %20
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 20
br i1 %23, label %24, label %35
24: ; preds = %21
%25 = load i32, i32* %5
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %26
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [20 x i32], [20 x i32]* %27, i64 0, i64 %29
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %30)
br label %32
32: ; preds = %24
%33 = load i32, i32* %6
%34 = add nsw i32 %33, 1
store i32 %34, i32* %6
br label %21
35: ; preds = %21
br label %36
36: ; preds = %35
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
store i32 %38, i32* %5
br label %17
39: ; preds = %17
store i32 0, i32* %7
br label %40
40: ; preds = %92, %39
%41 = load i32, i32* %7
%42 = icmp slt i32 %41, 20
br i1 %42, label %43, label %95
43: ; preds = %40
store i32 0, i32* %8
br label %44
44: ; preds = %88, %43
%45 = load i32, i32* %8
%46 = icmp slt i32 %45, 17
br i1 %46, label %47, label %91
47: ; preds = %44
%48 = load i32, i32* %7
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %49
%51 = load i32, i32* %8
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [20 x i32], [20 x i32]* %50, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = load i32, i32* %7
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %56
%58 = load i32, i32* %8
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [20 x i32], [20 x i32]* %57, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = mul nsw i32 %54, %62
%64 = load i32, i32* %7
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %65
%67 = load i32, i32* %8
%68 = add nsw i32 %67, 2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [20 x i32], [20 x i32]* %66, i64 0, i64 %69
%71 = load i32, i32* %70
%72 = mul nsw i32 %63, %71
%73 = load i32, i32* %7
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %74
%76 = load i32, i32* %8
%77 = add nsw i32 %76, 3
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [20 x i32], [20 x i32]* %75, i64 0, i64 %78
%80 = load i32, i32* %79
%81 = mul nsw i32 %72, %80
store i32 %81, i32* %2
%82 = load i32, i32* %2
%83 = load i32, i32* %3
%84 = icmp sgt i32 %82, %83
br i1 %84, label %85, label %87
85: ; preds = %47
%86 = load i32, i32* %2
store i32 %86, i32* %3
br label %87
87: ; preds = %85, %47
br label %88
88: ; preds = %87
%89 = load i32, i32* %8
%90 = add nsw i32 %89, 1
store i32 %90, i32* %8
br label %44
91: ; preds = %44
br label %92
92: ; preds = %91
%93 = load i32, i32* %7
%94 = add nsw i32 %93, 1
store i32 %94, i32* %7
br label %40
95: ; preds = %40
store i32 0, i32* %9
br label %96
96: ; preds = %148, %95
%97 = load i32, i32* %9
%98 = icmp slt i32 %97, 20
br i1 %98, label %99, label %151
99: ; preds = %96
store i32 0, i32* %10
br label %100
100: ; preds = %144, %99
%101 = load i32, i32* %10
%102 = icmp slt i32 %101, 17
br i1 %102, label %103, label %147
103: ; preds = %100
%104 = load i32, i32* %10
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %105
%107 = load i32, i32* %9
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [20 x i32], [20 x i32]* %106, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = load i32, i32* %10
%112 = add nsw i32 %111, 1
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %113
%115 = load i32, i32* %9
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [20 x i32], [20 x i32]* %114, i64 0, i64 %116
%118 = load i32, i32* %117
%119 = mul nsw i32 %110, %118
%120 = load i32, i32* %10
%121 = add nsw i32 %120, 2
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %122
%124 = load i32, i32* %9
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [20 x i32], [20 x i32]* %123, i64 0, i64 %125
%127 = load i32, i32* %126
%128 = mul nsw i32 %119, %127
%129 = load i32, i32* %10
%130 = add nsw i32 %129, 3
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %131
%133 = load i32, i32* %9
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [20 x i32], [20 x i32]* %132, i64 0, i64 %134
%136 = load i32, i32* %135
%137 = mul nsw i32 %128, %136
store i32 %137, i32* %2
%138 = load i32, i32* %2
%139 = load i32, i32* %3
%140 = icmp sgt i32 %138, %139
br i1 %140, label %141, label %143
141: ; preds = %103
%142 = load i32, i32* %2
store i32 %142, i32* %3
br label %143
143: ; preds = %141, %103
br label %144
144: ; preds = %143
%145 = load i32, i32* %10
%146 = add nsw i32 %145, 1
store i32 %146, i32* %10
br label %100
147: ; preds = %100
br label %148
148: ; preds = %147
%149 = load i32, i32* %9
%150 = add nsw i32 %149, 1
store i32 %150, i32* %9
br label %96
151: ; preds = %96
store i32 0, i32* %11
br label %152
152: ; preds = %207, %151
%153 = load i32, i32* %11
%154 = icmp slt i32 %153, 17
br i1 %154, label %155, label %210
155: ; preds = %152
store i32 0, i32* %12
br label %156
156: ; preds = %203, %155
%157 = load i32, i32* %12
%158 = icmp slt i32 %157, 17
br i1 %158, label %159, label %206
159: ; preds = %156
%160 = load i32, i32* %11
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %161
%163 = load i32, i32* %12
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [20 x i32], [20 x i32]* %162, i64 0, i64 %164
%166 = load i32, i32* %165
%167 = load i32, i32* %11
%168 = add nsw i32 %167, 1
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %169
%171 = load i32, i32* %12
%172 = add nsw i32 %171, 1
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [20 x i32], [20 x i32]* %170, i64 0, i64 %173
%175 = load i32, i32* %174
%176 = mul nsw i32 %166, %175
%177 = load i32, i32* %11
%178 = add nsw i32 %177, 2
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %179
%181 = load i32, i32* %12
%182 = add nsw i32 %181, 2
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [20 x i32], [20 x i32]* %180, i64 0, i64 %183
%185 = load i32, i32* %184
%186 = mul nsw i32 %176, %185
%187 = load i32, i32* %11
%188 = add nsw i32 %187, 3
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %189
%191 = load i32, i32* %12
%192 = add nsw i32 %191, 3
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [20 x i32], [20 x i32]* %190, i64 0, i64 %193
%195 = load i32, i32* %194
%196 = mul nsw i32 %186, %195
store i32 %196, i32* %2
%197 = load i32, i32* %2
%198 = load i32, i32* %3
%199 = icmp sgt i32 %197, %198
br i1 %199, label %200, label %202
200: ; preds = %159
%201 = load i32, i32* %2
store i32 %201, i32* %3
br label %202
202: ; preds = %200, %159
br label %203
203: ; preds = %202
%204 = load i32, i32* %12
%205 = add nsw i32 %204, 1
store i32 %205, i32* %12
br label %156
206: ; preds = %156
br label %207
207: ; preds = %206
%208 = load i32, i32* %11
%209 = add nsw i32 %208, 1
store i32 %209, i32* %11
br label %152
210: ; preds = %152
store i32 0, i32* %13
br label %211
211: ; preds = %266, %210
%212 = load i32, i32* %13
%213 = icmp slt i32 %212, 17
br i1 %213, label %214, label %269
214: ; preds = %211
store i32 3, i32* %14
br label %215
215: ; preds = %262, %214
%216 = load i32, i32* %14
%217 = icmp slt i32 %216, 20
br i1 %217, label %218, label %265
218: ; preds = %215
%219 = load i32, i32* %13
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %220
%222 = load i32, i32* %14
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds [20 x i32], [20 x i32]* %221, i64 0, i64 %223
%225 = load i32, i32* %224
%226 = load i32, i32* %13
%227 = add nsw i32 %226, 1
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %228
%230 = load i32, i32* %14
%231 = sub nsw i32 %230, 1
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [20 x i32], [20 x i32]* %229, i64 0, i64 %232
%234 = load i32, i32* %233
%235 = mul nsw i32 %225, %234
%236 = load i32, i32* %13
%237 = add nsw i32 %236, 2
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %238
%240 = load i32, i32* %14
%241 = sub nsw i32 %240, 2
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds [20 x i32], [20 x i32]* %239, i64 0, i64 %242
%244 = load i32, i32* %243
%245 = mul nsw i32 %235, %244
%246 = load i32, i32* %13
%247 = add nsw i32 %246, 3
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %4, i64 0, i64 %248
%250 = load i32, i32* %14
%251 = sub nsw i32 %250, 3
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds [20 x i32], [20 x i32]* %249, i64 0, i64 %252
%254 = load i32, i32* %253
%255 = mul nsw i32 %245, %254
store i32 %255, i32* %2
%256 = load i32, i32* %2
%257 = load i32, i32* %3
%258 = icmp sgt i32 %256, %257
br i1 %258, label %259, label %261
259: ; preds = %218
%260 = load i32, i32* %2
store i32 %260, i32* %3
br label %261
261: ; preds = %259, %218
br label %262
262: ; preds = %261
%263 = load i32, i32* %14
%264 = add nsw i32 %263, 1
store i32 %264, i32* %14
br label %215
265: ; preds = %215
br label %266
266: ; preds = %265
%267 = load i32, i32* %13
%268 = add nsw i32 %267, 1
store i32 %268, i32* %13
br label %211
269: ; preds = %211
%270 = load i32, i32* %3
%271 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %270)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"a.in\00"
@.str.1 = [2 x i8] c"r\00"
@stdin = global i32 0
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [20 x [20 x i32]]
%2 = load i32, i32* @stdin
%3 = tail call i32 @freopen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%4 = bitcast [20 x [20 x i32]]* %1 to i8*
br label %5
5: ; preds = %0, %5
%6 = phi i64 [ 0, %0 ], [ %47, %5 ]
%7 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 0
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%9 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 1
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %9)
%11 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 2
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %11)
%13 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 3
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %13)
%15 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 4
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %15)
%17 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 5
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %17)
%19 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 6
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %19)
%21 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 7
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %21)
%23 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 8
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %23)
%25 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 9
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %25)
%27 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 10
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %27)
%29 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 11
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %29)
%31 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 12
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %31)
%33 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 13
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %33)
%35 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 14
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %35)
%37 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 15
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %37)
%39 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 16
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %39)
%41 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 17
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %41)
%43 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 18
%44 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %43)
%45 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %6, i64 19
%46 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, 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, %58
%50 = phi i64 [ %59, %58 ], [ 0, %5 ]
%51 = phi i32 [ %74, %58 ], [ 0, %5 ]
%52 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %50, i64 0
%53 = load i32, i32* %52
%54 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %50, i64 1
%55 = load i32, i32* %54
%56 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %50, i64 2
%57 = load i32, i32* %56
br label %61
58: ; preds = %61
%59 = add nuw nsw i64 %50, 1
%60 = icmp eq i64 %59, 20
br i1 %60, label %86, label %49
61: ; preds = %76, %49
%62 = phi i32 [ %57, %49 ], [ %82, %76 ]
%63 = phi i32 [ %55, %49 ], [ %71, %76 ]
%64 = phi i32 [ %53, %49 ], [ %62, %76 ]
%65 = phi i64 [ 0, %49 ], [ %77, %76 ]
%66 = phi i32 [ %51, %49 ], [ %85, %76 ]
%67 = mul nsw i32 %63, %64
%68 = mul nsw i32 %67, %62
%69 = add nuw nsw i64 %65, 3
%70 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %50, i64 %69
%71 = load i32, i32* %70
%72 = mul nsw i32 %68, %71
%73 = icmp sgt i32 %72, %66
%74 = select i1 %73, i32 %72, i32 %66
%75 = icmp eq i64 %65, 16
br i1 %75, label %58, label %76
76: ; preds = %61
%77 = add nuw nsw i64 %65, 2
%78 = mul nsw i32 %62, %63
%79 = mul nsw i32 %78, %71
%80 = add nuw i64 %65, 4
%81 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %50, i64 %80
%82 = load i32, i32* %81
%83 = mul nsw i32 %79, %82
%84 = icmp sgt i32 %83, %74
%85 = select i1 %84, i32 %83, i32 %74
br label %61
86: ; preds = %58, %95
%87 = phi i64 [ %96, %95 ], [ 0, %58 ]
%88 = phi i32 [ %111, %95 ], [ %74, %58 ]
%89 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 0, i64 %87
%90 = load i32, i32* %89
%91 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 1, i64 %87
%92 = load i32, i32* %91
%93 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 2, i64 %87
%94 = load i32, i32* %93
br label %98
95: ; preds = %98
%96 = add nuw nsw i64 %87, 1
%97 = icmp eq i64 %96, 20
br i1 %97, label %123, label %86
98: ; preds = %113, %86
%99 = phi i32 [ %94, %86 ], [ %119, %113 ]
%100 = phi i32 [ %92, %86 ], [ %108, %113 ]
%101 = phi i32 [ %90, %86 ], [ %99, %113 ]
%102 = phi i64 [ 0, %86 ], [ %114, %113 ]
%103 = phi i32 [ %88, %86 ], [ %122, %113 ]
%104 = mul nsw i32 %100, %101
%105 = mul nsw i32 %104, %99
%106 = add nuw nsw i64 %102, 3
%107 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %106, i64 %87
%108 = load i32, i32* %107
%109 = mul nsw i32 %105, %108
%110 = icmp sgt i32 %109, %103
%111 = select i1 %110, i32 %109, i32 %103
%112 = icmp eq i64 %102, 16
br i1 %112, label %95, label %113
113: ; preds = %98
%114 = add nuw nsw i64 %102, 2
%115 = mul nsw i32 %99, %100
%116 = mul nsw i32 %115, %108
%117 = add nuw i64 %102, 4
%118 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %117, i64 %87
%119 = load i32, i32* %118
%120 = mul nsw i32 %116, %119
%121 = icmp sgt i32 %120, %111
%122 = select i1 %121, i32 %120, i32 %111
br label %98
123: ; preds = %95, %123
%124 = phi i64 [ %126, %123 ], [ 0, %95 ]
%125 = phi i32 [ %212, %123 ], [ %111, %95 ]
%126 = add nuw nsw i64 %124, 1
%127 = add nuw nsw i64 %124, 2
%128 = add nuw nsw i64 %124, 3
%129 = insertelement <4 x i32> poison, i32 %125, i64 0
%130 = shufflevector <4 x i32> %129, <4 x i32> poison, <4 x i32> zeroinitializer
%131 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %124, i64 0
%132 = bitcast i32* %131 to <4 x i32>*
%133 = load <4 x i32>, <4 x i32>* %132
%134 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %126, i64 1
%135 = bitcast i32* %134 to <4 x i32>*
%136 = load <4 x i32>, <4 x i32>* %135
%137 = mul nsw <4 x i32> %136, %133
%138 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %127, i64 2
%139 = bitcast i32* %138 to <4 x i32>*
%140 = load <4 x i32>, <4 x i32>* %139
%141 = mul nsw <4 x i32> %137, %140
%142 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %128, i64 3
%143 = bitcast i32* %142 to <4 x i32>*
%144 = load <4 x i32>, <4 x i32>* %143
%145 = mul nsw <4 x i32> %141, %144
%146 = icmp sgt <4 x i32> %145, %130
%147 = select <4 x i1> %146, <4 x i32> %145, <4 x i32> %130
%148 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %124, i64 4
%149 = bitcast i32* %148 to <4 x i32>*
%150 = load <4 x i32>, <4 x i32>* %149
%151 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %126, i64 5
%152 = bitcast i32* %151 to <4 x i32>*
%153 = load <4 x i32>, <4 x i32>* %152
%154 = mul nsw <4 x i32> %153, %150
%155 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %127, i64 6
%156 = bitcast i32* %155 to <4 x i32>*
%157 = load <4 x i32>, <4 x i32>* %156
%158 = mul nsw <4 x i32> %154, %157
%159 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %128, i64 7
%160 = bitcast i32* %159 to <4 x i32>*
%161 = load <4 x i32>, <4 x i32>* %160
%162 = mul nsw <4 x i32> %158, %161
%163 = icmp sgt <4 x i32> %162, %147
%164 = select <4 x i1> %163, <4 x i32> %162, <4 x i32> %147
%165 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %124, i64 8
%166 = bitcast i32* %165 to <4 x i32>*
%167 = load <4 x i32>, <4 x i32>* %166
%168 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %126, i64 9
%169 = bitcast i32* %168 to <4 x i32>*
%170 = load <4 x i32>, <4 x i32>* %169
%171 = mul nsw <4 x i32> %170, %167
%172 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %127, i64 10
%173 = bitcast i32* %172 to <4 x i32>*
%174 = load <4 x i32>, <4 x i32>* %173
%175 = mul nsw <4 x i32> %171, %174
%176 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %128, i64 11
%177 = bitcast i32* %176 to <4 x i32>*
%178 = load <4 x i32>, <4 x i32>* %177
%179 = mul nsw <4 x i32> %175, %178
%180 = icmp sgt <4 x i32> %179, %164
%181 = select <4 x i1> %180, <4 x i32> %179, <4 x i32> %164
%182 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %124, i64 12
%183 = bitcast i32* %182 to <4 x i32>*
%184 = load <4 x i32>, <4 x i32>* %183
%185 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %126, i64 13
%186 = bitcast i32* %185 to <4 x i32>*
%187 = load <4 x i32>, <4 x i32>* %186
%188 = mul nsw <4 x i32> %187, %184
%189 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %127, i64 14
%190 = bitcast i32* %189 to <4 x i32>*
%191 = load <4 x i32>, <4 x i32>* %190
%192 = mul nsw <4 x i32> %188, %191
%193 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %128, i64 15
%194 = bitcast i32* %193 to <4 x i32>*
%195 = load <4 x i32>, <4 x i32>* %194
%196 = mul nsw <4 x i32> %192, %195
%197 = icmp sgt <4 x i32> %196, %181
%198 = select <4 x i1> %197, <4 x i32> %196, <4 x i32> %181
%199 = call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %198)
%200 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %124, i64 16
%201 = load i32, i32* %200
%202 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %126, i64 17
%203 = load i32, i32* %202
%204 = mul nsw i32 %203, %201
%205 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %127, i64 18
%206 = load i32, i32* %205
%207 = mul nsw i32 %204, %206
%208 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %128, i64 19
%209 = load i32, i32* %208
%210 = mul nsw i32 %207, %209
%211 = icmp sgt i32 %210, %199
%212 = select i1 %211, i32 %210, i32 %199
%213 = icmp eq i64 %126, 17
br i1 %213, label %214, label %123
214: ; preds = %123, %214
%215 = phi i64 [ %217, %214 ], [ 0, %123 ]
%216 = phi i32 [ %303, %214 ], [ %212, %123 ]
%217 = add nuw nsw i64 %215, 1
%218 = add nuw nsw i64 %215, 2
%219 = add nuw nsw i64 %215, 3
%220 = insertelement <4 x i32> poison, i32 %216, i64 0
%221 = shufflevector <4 x i32> %220, <4 x i32> poison, <4 x i32> zeroinitializer
%222 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %215, i64 3
%223 = bitcast i32* %222 to <4 x i32>*
%224 = load <4 x i32>, <4 x i32>* %223
%225 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %217, i64 2
%226 = bitcast i32* %225 to <4 x i32>*
%227 = load <4 x i32>, <4 x i32>* %226
%228 = mul nsw <4 x i32> %227, %224
%229 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %218, i64 1
%230 = bitcast i32* %229 to <4 x i32>*
%231 = load <4 x i32>, <4 x i32>* %230
%232 = mul nsw <4 x i32> %228, %231
%233 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %219, i64 0
%234 = bitcast i32* %233 to <4 x i32>*
%235 = load <4 x i32>, <4 x i32>* %234
%236 = mul nsw <4 x i32> %232, %235
%237 = icmp sgt <4 x i32> %236, %221
%238 = select <4 x i1> %237, <4 x i32> %236, <4 x i32> %221
%239 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %215, i64 7
%240 = bitcast i32* %239 to <4 x i32>*
%241 = load <4 x i32>, <4 x i32>* %240
%242 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %217, i64 6
%243 = bitcast i32* %242 to <4 x i32>*
%244 = load <4 x i32>, <4 x i32>* %243
%245 = mul nsw <4 x i32> %244, %241
%246 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %218, i64 5
%247 = bitcast i32* %246 to <4 x i32>*
%248 = load <4 x i32>, <4 x i32>* %247
%249 = mul nsw <4 x i32> %245, %248
%250 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %219, i64 4
%251 = bitcast i32* %250 to <4 x i32>*
%252 = load <4 x i32>, <4 x i32>* %251
%253 = mul nsw <4 x i32> %249, %252
%254 = icmp sgt <4 x i32> %253, %238
%255 = select <4 x i1> %254, <4 x i32> %253, <4 x i32> %238
%256 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %215, i64 11
%257 = bitcast i32* %256 to <4 x i32>*
%258 = load <4 x i32>, <4 x i32>* %257
%259 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %217, i64 10
%260 = bitcast i32* %259 to <4 x i32>*
%261 = load <4 x i32>, <4 x i32>* %260
%262 = mul nsw <4 x i32> %261, %258
%263 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %218, i64 9
%264 = bitcast i32* %263 to <4 x i32>*
%265 = load <4 x i32>, <4 x i32>* %264
%266 = mul nsw <4 x i32> %262, %265
%267 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %219, i64 8
%268 = bitcast i32* %267 to <4 x i32>*
%269 = load <4 x i32>, <4 x i32>* %268
%270 = mul nsw <4 x i32> %266, %269
%271 = icmp sgt <4 x i32> %270, %255
%272 = select <4 x i1> %271, <4 x i32> %270, <4 x i32> %255
%273 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %215, i64 15
%274 = bitcast i32* %273 to <4 x i32>*
%275 = load <4 x i32>, <4 x i32>* %274
%276 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %217, i64 14
%277 = bitcast i32* %276 to <4 x i32>*
%278 = load <4 x i32>, <4 x i32>* %277
%279 = mul nsw <4 x i32> %278, %275
%280 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %218, i64 13
%281 = bitcast i32* %280 to <4 x i32>*
%282 = load <4 x i32>, <4 x i32>* %281
%283 = mul nsw <4 x i32> %279, %282
%284 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %219, i64 12
%285 = bitcast i32* %284 to <4 x i32>*
%286 = load <4 x i32>, <4 x i32>* %285
%287 = mul nsw <4 x i32> %283, %286
%288 = icmp sgt <4 x i32> %287, %272
%289 = select <4 x i1> %288, <4 x i32> %287, <4 x i32> %272
%290 = call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %289)
%291 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %215, i64 19
%292 = load i32, i32* %291
%293 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %217, i64 18
%294 = load i32, i32* %293
%295 = mul nsw i32 %294, %292
%296 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %218, i64 17
%297 = load i32, i32* %296
%298 = mul nsw i32 %295, %297
%299 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %1, i64 0, i64 %219, i64 16
%300 = load i32, i32* %299
%301 = mul nsw i32 %298, %300
%302 = icmp sgt i32 %301, %290
%303 = select i1 %302, i32 %301, i32 %290
%304 = icmp eq i64 %217, 17
br i1 %304, label %305, label %214
305: ; preds = %214
%306 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %303)
ret i32 0
}