int main() {
  int nums[20][20] = {{8, 2, 22, 97, 38, 15, 00, 40, 00, 75,
                       4, 5, 7,  78, 52, 12, 50, 77, 91, 8},
                      {49, 49, 99, 40, 17, 81, 18, 57, 60, 87,
                       17, 40, 98, 43, 69, 48, 4,  56, 62, 00},
                      {81, 49, 31, 73, 55, 79, 14, 29, 93, 71,
                       40, 67, 53, 88, 30, 3,  49, 13, 36, 65},
                      {52, 70, 95, 23, 4,  60, 11, 42, 69, 24,
                       68, 56, 1,  32, 56, 71, 37, 2,  36, 91},
                      {22, 31, 16, 71, 51, 67, 63, 89, 41, 92,
                       36, 54, 22, 40, 40, 28, 66, 33, 13, 80},
                      {24, 47, 32, 60, 99, 3,  45, 2,  44, 75,
                       33, 53, 78, 36, 84, 20, 35, 17, 12, 50},
                      {32, 98, 81, 28, 64, 23, 67, 10, 26, 38,
                       40, 67, 59, 54, 70, 66, 18, 38, 64, 70},
                      {67, 26, 20, 68, 2,  62, 12, 20, 95, 63,
                       94, 39, 63, 8,  40, 91, 66, 49, 94, 21},
                      {24, 55, 58, 5,  66, 73, 99, 26, 97, 17,
                       78, 78, 96, 83, 14, 88, 34, 89, 63, 72},
                      {21, 36, 23, 9,  75, 00, 76, 44, 20, 45,
                       35, 14, 00, 61, 33, 97, 34, 31, 33, 95},
                      {78, 17, 53, 28, 22, 75, 31, 67, 15, 94,
                       3,  80, 4,  62, 16, 14, 9,  53, 56, 92},
                      {16, 39, 5,  42, 96, 35, 31, 47, 55, 58,
                       88, 24, 00, 17, 54, 24, 36, 29, 85, 57},
                      {86, 56, 00, 48, 35, 71, 89, 7,  5,  44,
                       44, 37, 44, 60, 21, 58, 51, 54, 17, 58},
                      {19, 80, 81, 68, 5,  94, 47, 69, 28, 73,
                       92, 13, 86, 52, 17, 77, 4,  89, 55, 40},
                      {4,  52, 8,  83, 97, 35, 99, 16, 7,  97,
                       57, 32, 16, 26, 26, 79, 33, 27, 98, 66},
                      {88, 36, 68, 87, 57, 62, 20, 72, 3,  46,
                       33, 67, 46, 55, 12, 32, 63, 93, 53, 69},
                      {4,  42, 16, 73, 38, 25, 39, 11, 24, 94,
                       72, 18, 8,  46, 29, 32, 40, 62, 76, 36},
                      {20, 69, 36, 41, 72, 30, 23, 88, 34, 62,
                       99, 69, 82, 67, 59, 85, 74, 4,  36, 16},
                      {20, 73, 35, 29, 78, 31, 90, 1,  74, 31,
                       49, 71, 48, 86, 81, 16, 23, 57, 5,  54},
                      {1,  70, 54, 71, 83, 51, 54, 69, 16, 92,
                       33, 48, 61, 43, 52, 1,  89, 19, 67, 48}};
  int mulU, mulD, mulL, mulR, mulDN, mulID, ans, i, j;
  mulU = mulD = mulL = mulR = mulDN = mulID = 0;
  ans = 1;
  for (i = 0; i < 20; i++) {
    for (j = 0; j < 20; j++) {
      if (j - 3 >= 0) {
        mulU = nums[j][i] * nums[j - 1][j] * nums[j - 2][i] * nums[j - 3][i];
        if (mulU > ans) {
          ans = mulU;
        }
      }
      if (j + 3 < 20) {
        mulD = nums[j][i] * nums[j + 1][i] * nums[j + 2][i] * nums[j + 3][i];
        if (mulD > ans) {
          ans = mulD;
        }
      }
      if (i - 3 >= 0) {
        mulL = nums[j][i] * nums[j][i - 1] * nums[j][i - 2] * nums[j][i - 3];
        if (mulL > ans) {
          ans = mulL;
        }
      }
      if (i + 3 < 20) {
        mulR = nums[j][i] * nums[j][i + 1] * nums[j][i + 2] * nums[j][i + 3];
        if (mulR > ans) {
          ans = mulR;
        }
      }
      if ((i + 3 < 20) && (j + 3 < 20)) {
        mulDN = nums[j][i] * nums[j + 1][i + 1] * nums[j + 2][i + 2] *
                nums[j + 3][i + 3];
        if (mulDN > ans) {
          ans = mulDN;
        }
      }
      if ((i - 3 >= 0) && (j + 3 < 20)) {
        mulID = nums[j][i] * nums[j + 1][i - 1] * nums[j + 2][i - 2] *
                nums[j + 3][i - 3];
        if (mulID > ans) {
          ans = mulID;
        }
      }
    }
  }
  printf("\n\nAns - %d", ans);
  getch();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x680,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x650(%rbp),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x640,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x668(%rbp)
movl   $0x0,-0x664(%rbp)
movl   $0x0,-0x660(%rbp)
movl   $0x0,-0x65c(%rbp)
movl   $0x0,-0x658(%rbp)
movl   $0x0,-0x654(%rbp)
movl   $0x1,-0x66c(%rbp)
movl   $0x0,-0x670(%rbp)
cmpl   $0x14,-0x670(%rbp)
jge    16f8 <main+0x5c8>
movl   $0x0,-0x674(%rbp)
cmpl   $0x14,-0x674(%rbp)
jge    16df <main+0x5af>
mov    -0x674(%rbp),%eax
sub    $0x3,%eax
cmp    $0x0,%eax
jl     1297 <main+0x167>
movslq -0x674(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x670(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x674(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x674(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x674(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x670(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x674(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x670(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x654(%rbp)
mov    -0x654(%rbp),%eax
cmp    -0x66c(%rbp),%eax
jle    1292 <main+0x162>
mov    -0x654(%rbp),%eax
mov    %eax,-0x66c(%rbp)
jmp    1297 <main+0x167>
mov    -0x674(%rbp),%eax
add    $0x3,%eax
cmp    $0x14,%eax
jge    1360 <main+0x230>
movslq -0x674(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x670(%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
movslq -0x670(%rbp),%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
movslq -0x670(%rbp),%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
movslq -0x670(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x658(%rbp)
mov    -0x658(%rbp),%eax
cmp    -0x66c(%rbp),%eax
jle    135b <main+0x22b>
mov    -0x658(%rbp),%eax
mov    %eax,-0x66c(%rbp)
jmp    1360 <main+0x230>
mov    -0x670(%rbp),%eax
sub    $0x3,%eax
cmp    $0x0,%eax
jl     1429 <main+0x2f9>
movslq -0x674(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x670(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
movslq -0x674(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x670(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x674(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x670(%rbp),%edx
sub    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x674(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x670(%rbp),%edx
sub    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%eax
cmp    -0x66c(%rbp),%eax
jle    1424 <main+0x2f4>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x66c(%rbp)
jmp    1429 <main+0x2f9>
mov    -0x670(%rbp),%eax
add    $0x3,%eax
cmp    $0x14,%eax
jge    14f2 <main+0x3c2>
movslq -0x674(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x670(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
movslq -0x674(%rbp),%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
movslq -0x674(%rbp),%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
movslq -0x674(%rbp),%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,-0x660(%rbp)
mov    -0x660(%rbp),%eax
cmp    -0x66c(%rbp),%eax
jle    14ed <main+0x3bd>
mov    -0x660(%rbp),%eax
mov    %eax,-0x66c(%rbp)
jmp    14f2 <main+0x3c2>
mov    -0x670(%rbp),%eax
add    $0x3,%eax
cmp    $0x14,%eax
jge    15dc <main+0x4ac>
mov    -0x674(%rbp),%eax
add    $0x3,%eax
cmp    $0x14,%eax
jge    15dc <main+0x4ac>
movslq -0x674(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x670(%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    -0x670(%rbp),%edx
add    $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    -0x670(%rbp),%edx
add    $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    -0x670(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x664(%rbp)
mov    -0x664(%rbp),%eax
cmp    -0x66c(%rbp),%eax
jle    15d7 <main+0x4a7>
mov    -0x664(%rbp),%eax
mov    %eax,-0x66c(%rbp)
jmp    15dc <main+0x4ac>
mov    -0x670(%rbp),%eax
sub    $0x3,%eax
cmp    $0x0,%eax
jl     16c6 <main+0x596>
mov    -0x674(%rbp),%eax
add    $0x3,%eax
cmp    $0x14,%eax
jge    16c6 <main+0x596>
movslq -0x674(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x670(%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    -0x670(%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    -0x670(%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    -0x670(%rbp),%edx
sub    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x668(%rbp)
mov    -0x668(%rbp),%eax
cmp    -0x66c(%rbp),%eax
jle    16c1 <main+0x591>
mov    -0x668(%rbp),%eax
mov    %eax,-0x66c(%rbp)
jmp    16c6 <main+0x596>
jmp    16cb <main+0x59b>
mov    -0x674(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x674(%rbp)
jmp    11c1 <main+0x91>
jmp    16e4 <main+0x5b4>
mov    -0x670(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x670(%rbp)
jmp    11aa <main+0x7a>
mov    -0x66c(%rbp),%esi
lea    0xf3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <getch@plt>
xor    %eax,%eax
add    $0x680,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    $0x1,%esi
xor    %r12d,%r12d
lea    0xec3(%rip),%r13
jmp    114d <main+0x2d>
nop
mov    %r10,%r12
cmp    $0x14,%r10
je     1320 <main+0x200>
lea    -0x3(%r12),%rax
mov    %rax,0x10(%rsp)
cmp    $0x3,%r12
setb   0x7(%rsp)
lea    -0x1(%r12),%rax
mov    %rax,0x8(%rsp)
lea    -0x2(%r12),%r11
lea    0x3(%r12),%r14
lea    0x1(%r12),%r10
lea    0x2(%r12),%r15
xor    %edi,%edi
jmp    119a <main+0x7a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rdi
cmp    $0x14,%rdi
je     1140 <main+0x20>
lea    (%rdi,%rdi,4),%rax
shl    $0x4,%rax
add    %r13,%rax
cmp    $0x2,%rdi
jbe    11e0 <main+0xc0>
mov    (%rax,%r12,4),%ebp
mov    -0x50(%rax,%rdi,4),%edx
imul   %ebp,%edx
imul   -0xa0(%rax,%r12,4),%edx
ff ff
imul   -0xf0(%rax,%r12,4),%edx
ff ff
cmp    %esi,%edx
jg     11ce <main+0xae>
mov    %esi,%edx
cmp    $0x10,%rdi
ja     1230 <main+0x110>
mov    %edx,%esi
jmp    11e4 <main+0xc4>
nopl   0x0(%rax,%rax,1)
mov    (%rax,%r12,4),%ebp
lea    0x3(%rdi),%r9d
lea    (%rdi,%rdi,4),%rax
shl    $0x4,%rax
add    %r13,%rax
mov    0x50(%rax,%r12,4),%edx
imul   %ebp,%edx
imul   0xa0(%rax,%r12,4),%edx
lea    (%r9,%r9,4),%rax
shl    $0x4,%rax
add    %r13,%rax
imul   (%rax,%r12,4),%edx
cmp    %esi,%edx
jg     121a <main+0xfa>
mov    %esi,%edx
xor    %eax,%eax
cmp    $0x3,%r12
jae    123c <main+0x11c>
jmp    126e <main+0x14e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x3(%rdi),%r9d
mov    $0x1,%al
cmp    $0x3,%r12
jb     126e <main+0x14e>
lea    (%rdi,%rdi,4),%rbx
shl    $0x4,%rbx
add    %r13,%rbx
mov    0x8(%rsp),%rcx
mov    (%rbx,%rcx,4),%esi
imul   %ebp,%esi
imul   (%rbx,%r11,4),%esi
mov    0x10(%rsp),%rcx
imul   (%rbx,%rcx,4),%esi
cmp    %edx,%esi
jg     1266 <main+0x146>
mov    %edx,%esi
mov    %esi,%edx
cmp    $0x10,%r12
ja     12c4 <main+0x1a4>
lea    (%rdi,%rdi,4),%r8
shl    $0x4,%r8
add    %r13,%r8
mov    (%r8,%r10,4),%esi
imul   %ebp,%esi
imul   (%r8,%r15,4),%esi
imul   (%r8,%r14,4),%esi
cmp    %edx,%esi
jg     1290 <main+0x170>
mov    %edx,%esi
test   %al,%al
jne    1190 <main+0x70>
mov    0x50(%r8,%r10,4),%edx
imul   %ebp,%edx
imul   0xa0(%r8,%r15,4),%edx
mov    %r9d,%ebx
lea    (%rbx,%rbx,4),%rbx
shl    $0x4,%rbx
add    %r13,%rbx
imul   (%rbx,%r14,4),%edx
cmp    %esi,%edx
jg     12c2 <main+0x1a2>
mov    %esi,%edx
mov    %edx,%esi
or     0x7(%rsp),%al
cmp    $0x1,%al
je     1190 <main+0x70>
lea    (%rdi,%rdi,4),%rax
shl    $0x4,%rax
add    %r13,%rax
mov    0x8(%rsp),%rcx
imul   0x50(%rax,%rcx,4),%ebp
imul   0xa0(%rax,%r11,4),%ebp
mov    %r9d,%eax
lea    (%rax,%rax,4),%rax
shl    $0x4,%rax
add    %r13,%rax
mov    0x10(%rsp),%rcx
imul   (%rax,%rcx,4),%ebp
cmp    %esi,%ebp
jg     130b <main+0x1eb>
mov    %esi,%ebp
add    $0x1,%rdi
mov    %ebp,%esi
cmp    $0x14,%rdi
jne    119a <main+0x7a>
jmp    1140 <main+0x20>
lea    0x1319(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getch@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@__const.main.nums = [20 x [20 x i32]] [[20 x i32] [i32 8, i32 2, i32 22, i32 97, i32 38, i32 15, i32 0, i32 40, i32 0, i32 75, i32 4, i32 5, i32 7, i32 78, i32 52, i32 12, i32 50, i32 77, i32 91, i32 8], [20 x i32] [i32 49, i32 49, i32 99, i32 40, i32 17, i32 81, i32 18, i32 57, i32 60, i32 87, i32 17, i32 40, i32 98, i32 43, i32 69, i32 48, i32 4, i32 56, i32 62, i32 0], [20 x i32] [i32 81, i32 49, i32 31, i32 73, i32 55, i32 79, i32 14, i32 29, i32 93, i32 71, i32 40, i32 67, i32 53, i32 88, i32 30, i32 3, i32 49, i32 13, i32 36, i32 65], [20 x i32] [i32 52, i32 70, i32 95, i32 23, i32 4, i32 60, i32 11, i32 42, i32 69, i32 24, i32 68, i32 56, i32 1, i32 32, i32 56, i32 71, i32 37, i32 2, i32 36, i32 91], [20 x i32] [i32 22, i32 31, i32 16, i32 71, i32 51, i32 67, i32 63, i32 89, i32 41, i32 92, i32 36, i32 54, i32 22, i32 40, i32 40, i32 28, i32 66, i32 33, i32 13, i32 80], [20 x i32] [i32 24, i32 47, i32 32, i32 60, i32 99, i32 3, i32 45, i32 2, i32 44, i32 75, i32 33, i32 53, i32 78, i32 36, i32 84, i32 20, i32 35, i32 17, i32 12, i32 50], [20 x i32] [i32 32, i32 98, i32 81, i32 28, i32 64, i32 23, i32 67, i32 10, i32 26, i32 38, i32 40, i32 67, i32 59, i32 54, i32 70, i32 66, i32 18, i32 38, i32 64, i32 70], [20 x i32] [i32 67, i32 26, i32 20, i32 68, i32 2, i32 62, i32 12, i32 20, i32 95, i32 63, i32 94, i32 39, i32 63, i32 8, i32 40, i32 91, i32 66, i32 49, i32 94, i32 21], [20 x i32] [i32 24, i32 55, i32 58, i32 5, i32 66, i32 73, i32 99, i32 26, i32 97, i32 17, i32 78, i32 78, i32 96, i32 83, i32 14, i32 88, i32 34, i32 89, i32 63, i32 72], [20 x i32] [i32 21, i32 36, i32 23, i32 9, i32 75, i32 0, i32 76, i32 44, i32 20, i32 45, i32 35, i32 14, i32 0, i32 61, i32 33, i32 97, i32 34, i32 31, i32 33, i32 95], [20 x i32] [i32 78, i32 17, i32 53, i32 28, i32 22, i32 75, i32 31, i32 67, i32 15, i32 94, i32 3, i32 80, i32 4, i32 62, i32 16, i32 14, i32 9, i32 53, i32 56, i32 92], [20 x i32] [i32 16, i32 39, i32 5, i32 42, i32 96, i32 35, i32 31, i32 47, i32 55, i32 58, i32 88, i32 24, i32 0, i32 17, i32 54, i32 24, i32 36, i32 29, i32 85, i32 57], [20 x i32] [i32 86, i32 56, i32 0, i32 48, i32 35, i32 71, i32 89, i32 7, i32 5, i32 44, i32 44, i32 37, i32 44, i32 60, i32 21, i32 58, i32 51, i32 54, i32 17, i32 58], [20 x i32] [i32 19, i32 80, i32 81, i32 68, i32 5, i32 94, i32 47, i32 69, i32 28, i32 73, i32 92, i32 13, i32 86, i32 52, i32 17, i32 77, i32 4, i32 89, i32 55, i32 40], [20 x i32] [i32 4, i32 52, i32 8, i32 83, i32 97, i32 35, i32 99, i32 16, i32 7, i32 97, i32 57, i32 32, i32 16, i32 26, i32 26, i32 79, i32 33, i32 27, i32 98, i32 66], [20 x i32] [i32 88, i32 36, i32 68, i32 87, i32 57, i32 62, i32 20, i32 72, i32 3, i32 46, i32 33, i32 67, i32 46, i32 55, i32 12, i32 32, i32 63, i32 93, i32 53, i32 69], [20 x i32] [i32 4, i32 42, i32 16, i32 73, i32 38, i32 25, i32 39, i32 11, i32 24, i32 94, i32 72, i32 18, i32 8, i32 46, i32 29, i32 32, i32 40, i32 62, i32 76, i32 36], [20 x i32] [i32 20, i32 69, i32 36, i32 41, i32 72, i32 30, i32 23, i32 88, i32 34, i32 62, i32 99, i32 69, i32 82, i32 67, i32 59, i32 85, i32 74, i32 4, i32 36, i32 16], [20 x i32] [i32 20, i32 73, i32 35, i32 29, i32 78, i32 31, i32 90, i32 1, i32 74, i32 31, i32 49, i32 71, i32 48, i32 86, i32 81, i32 16, i32 23, i32 57, i32 5, i32 54], [20 x i32] [i32 1, i32 70, i32 54, i32 71, i32 83, i32 51, i32 54, i32 69, i32 16, i32 92, i32 33, i32 48, i32 61, i32 43, i32 52, i32 1, i32 89, i32 19, i32 67, i32 48]]
@.str = [11 x i8] c"\0A\0AAns - %d\00"
define i32 @main() {
br label %1
1: ; preds = %0, %129
%2 = phi i64 [ 0, %0 ], [ %11, %129 ]
%3 = phi i32 [ 1, %0 ], [ %127, %129 ]
%4 = add nsw i64 %2, -3
%5 = icmp ugt i64 %2, 2
%6 = xor i1 %5, true
%7 = add nsw i64 %2, -1
%8 = add nsw i64 %2, -2
%9 = icmp ult i64 %2, 17
%10 = add nuw nsw i64 %2, 3
%11 = add nuw nsw i64 %2, 1
%12 = add nuw nsw i64 %2, 2
br label %13
13: ; preds = %1, %125
%14 = phi i64 [ 0, %1 ], [ %126, %125 ]
%15 = phi i32 [ %3, %1 ], [ %127, %125 ]
%16 = icmp ugt i64 %14, 2
br i1 %16, label %20, label %17
17: ; preds = %13
%18 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %14, i64 %2
%19 = load i32, i32* %18
br label %40
20: ; preds = %13
%21 = add nsw i64 %14, -3
%22 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %14, i64 %2
%23 = load i32, i32* %22
%24 = add nsw i64 %14, -1
%25 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %24, i64 %14
%26 = load i32, i32* %25
%27 = mul nsw i32 %26, %23
%28 = add nsw i64 %14, -2
%29 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %28, i64 %2
%30 = load i32, i32* %29
%31 = mul nsw i32 %27, %30
%32 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %21, i64 %2
%33 = load i32, i32* %32
%34 = mul nsw i32 %31, %33
%35 = icmp sgt i32 %34, %15
%36 = select i1 %35, i32 %34, i32 %15
%37 = icmp ult i64 %14, 17
%38 = trunc i64 %14 to i32
%39 = add i32 %38, 3
br i1 %37, label %40, label %59
40: ; preds = %17, %20
%41 = phi i32 [ %19, %17 ], [ %23, %20 ]
%42 = phi i32 [ %15, %17 ], [ %36, %20 ]
%43 = trunc i64 %14 to i32
%44 = add nuw nsw i32 %43, 3
%45 = add nuw nsw i64 %14, 1
%46 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %45, i64 %2
%47 = load i32, i32* %46
%48 = mul nsw i32 %47, %41
%49 = add nuw nsw i64 %14, 2
%50 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %49, i64 %2
%51 = load i32, i32* %50
%52 = mul nsw i32 %48, %51
%53 = zext i32 %44 to i64
%54 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %53, i64 %2
%55 = load i32, i32* %54
%56 = mul nsw i32 %52, %55
%57 = icmp sgt i32 %56, %42
%58 = select i1 %57, i32 %56, i32 %42
br label %59
59: ; preds = %40, %20
%60 = phi i32 [ %23, %20 ], [ %41, %40 ]
%61 = phi i1 [ true, %20 ], [ false, %40 ]
%62 = phi i32 [ %39, %20 ], [ %44, %40 ]
%63 = phi i32 [ %36, %20 ], [ %58, %40 ]
br i1 %5, label %64, label %76
64: ; preds = %59
%65 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %14, i64 %7
%66 = load i32, i32* %65
%67 = mul nsw i32 %66, %60
%68 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %14, i64 %8
%69 = load i32, i32* %68
%70 = mul nsw i32 %67, %69
%71 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %14, i64 %4
%72 = load i32, i32* %71
%73 = mul nsw i32 %70, %72
%74 = icmp sgt i32 %73, %63
%75 = select i1 %74, i32 %73, i32 %63
br i1 %9, label %76, label %104
76: ; preds = %59, %64
%77 = phi i32 [ %75, %64 ], [ %63, %59 ]
%78 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %14, i64 %11
%79 = load i32, i32* %78
%80 = mul nsw i32 %79, %60
%81 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %14, i64 %12
%82 = load i32, i32* %81
%83 = mul nsw i32 %80, %82
%84 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %14, i64 %10
%85 = load i32, i32* %84
%86 = mul nsw i32 %83, %85
%87 = icmp sgt i32 %86, %77
%88 = select i1 %87, i32 %86, i32 %77
br i1 %61, label %107, label %89
89: ; preds = %76
%90 = add nuw nsw i64 %14, 1
%91 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %90, i64 %11
%92 = load i32, i32* %91
%93 = mul nsw i32 %92, %60
%94 = add nuw nsw i64 %14, 2
%95 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %94, i64 %12
%96 = load i32, i32* %95
%97 = mul nsw i32 %93, %96
%98 = zext i32 %62 to i64
%99 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %98, i64 %10
%100 = load i32, i32* %99
%101 = mul nsw i32 %97, %100
%102 = icmp sgt i32 %101, %88
%103 = select i1 %102, i32 %101, i32 %88
br label %104
104: ; preds = %64, %89
%105 = phi i32 [ %103, %89 ], [ %75, %64 ]
%106 = or i1 %61, %6
br i1 %106, label %107, label %110
107: ; preds = %76, %104
%108 = phi i32 [ %105, %104 ], [ %88, %76 ]
%109 = add nuw nsw i64 %14, 1
br label %125
110: ; preds = %104
%111 = add nuw nsw i64 %14, 1
%112 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %111, i64 %7
%113 = load i32, i32* %112
%114 = mul nsw i32 %113, %60
%115 = add nuw nsw i64 %14, 2
%116 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %115, i64 %8
%117 = load i32, i32* %116
%118 = mul nsw i32 %114, %117
%119 = zext i32 %62 to i64
%120 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* @__const.main.nums, i64 0, i64 %119, i64 %4
%121 = load i32, i32* %120
%122 = mul nsw i32 %118, %121
%123 = icmp sgt i32 %122, %105
%124 = select i1 %123, i32 %122, i32 %105
br label %125
125: ; preds = %107, %110
%126 = phi i64 [ %109, %107 ], [ %111, %110 ]
%127 = phi i32 [ %108, %107 ], [ %124, %110 ]
%128 = icmp eq i64 %126, 20
br i1 %128, label %129, label %13
129: ; preds = %125
%130 = icmp eq i64 %11, 20
br i1 %130, label %131, label %1
131: ; preds = %129
%132 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %127)
%133 = tail call i32 (...) @getch()
ret i32 0
}