int main(int argc, char **argv) {
  int grid[20][20] = {
      {
          8, 2, 22, 97, 38, 15, 0,  40, 0,  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, 0,
      },
      {
          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, 0,  76, 44, 20, 45,
          35, 14, 0,  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, 0, 17, 54, 24, 36, 29, 85, 57,
      },
      {
          86, 56, 0,  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 r, c, v, m = 0;
  for (r = 0; r < 20; r++) {
    for (c = 0; c < 20; c++) {
      if (c < 20 - 3) {
        v = grid[r][c + 0] * grid[r][c + 1] * grid[r][c + 2] * grid[r][c + 3];
        if (v > m)
          m = v;
      }
      if (r < 20 - 3) {
        v = grid[r + 0][c] * grid[r + 1][c] * grid[r + 2][c] * grid[r + 3][c];
        if (v > m)
          m = v;
      }
      if (c < 20 - 3 && r < 20 - 3) {
        v = grid[r + 0][c + 0] * grid[r + 1][c + 1] * grid[r + 0][c + 2] *
            grid[r + 3][c + 3];
        if (v > m)
          m = v;
        v = grid[r + 3][c + 0] * grid[r + 2][c + 1] * grid[r + 1][c + 2] *
            grid[r + 0][c + 3];
        if (v > m)
          m = v;
      }
    }
  }
  printf("%d\n", m);
  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)
lea    -0x650(%rbp),%rdi
lea    0xeb9(%rip),%rsi
mov    $0x640,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x660(%rbp)
movl   $0x0,-0x654(%rbp)
cmpl   $0x14,-0x654(%rbp)
jge    1502 <main+0x3e2>
movl   $0x0,-0x658(%rbp)
cmpl   $0x14,-0x658(%rbp)
jge    14e9 <main+0x3c9>
cmpl   $0x11,-0x658(%rbp)
jge    1252 <main+0x132>
movslq -0x654(%rbp),%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
mov    -0x658(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
movslq -0x654(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x654(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x654(%rbp),%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%eax
cmp    -0x660(%rbp),%eax
jle    124d <main+0x12d>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x660(%rbp)
jmp    1252 <main+0x132>
cmpl   $0x11,-0x654(%rbp)
jge    131b <main+0x1fb>
mov    -0x654(%rbp),%eax
add    $0x0,%eax
movslq %eax,%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x658(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x658(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x658(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x658(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%eax
cmp    -0x660(%rbp),%eax
jle    1316 <main+0x1f6>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x660(%rbp)
jmp    131b <main+0x1fb>
cmpl   $0x11,-0x658(%rbp)
jge    14d0 <main+0x3b0>
cmpl   $0x11,-0x654(%rbp)
jge    14d0 <main+0x3b0>
mov    -0x654(%rbp),%eax
add    $0x0,%eax
movslq %eax,%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
mov    -0x658(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%eax
cmp    -0x660(%rbp),%eax
jle    1400 <main+0x2e0>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x660(%rbp)
mov    -0x654(%rbp),%eax
add    $0x3,%eax
movslq %eax,%rcx
lea    -0x650(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
mov    -0x658(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x654(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rdx
lea    -0x650(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x658(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%eax
cmp    -0x660(%rbp),%eax
jle    14cb <main+0x3ab>
mov    -0x65c(%rbp),%eax
mov    %eax,-0x660(%rbp)
jmp    14d0 <main+0x3b0>
jmp    14d5 <main+0x3b5>
mov    -0x658(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x658(%rbp)
jmp    117c <main+0x5c>
jmp    14ee <main+0x3ce>
mov    -0x654(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x654(%rbp)
jmp    1165 <main+0x45>
mov    -0x660(%rbp),%esi
lea    0x1131(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x660,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %r9d,%r9d
lea    0xee5(%rip),%r10
xor    %esi,%esi
jmp    1131 <main+0x21>
nop
add    $0x50,%r10
mov    %r8,%r9
cmp    $0x14,%r8
je     11e7 <main+0xd7>
lea    0x1(%r9),%r8
xor    %edi,%edi
jmp    114c <main+0x3c>
nopl   0x0(%rax)
mov    %eax,%esi
add    $0x1,%rdi
cmp    $0x14,%rdi
je     1120 <main+0x10>
cmp    $0x10,%rdi
ja     116d <main+0x5d>
mov    0x4(%r10,%rdi,4),%eax
imul   (%r10,%rdi,4),%eax
imul   0x8(%r10,%rdi,4),%eax
imul   0xc(%r10,%rdi,4),%eax
cmp    %esi,%eax
cmovg  %eax,%esi
cmp    $0x10,%r9
ja     1142 <main+0x32>
mov    (%r10,%rdi,4),%ecx
mov    0xf0(%r10,%rdi,4),%eax
mov    0x50(%r10,%rdi,4),%edx
imul   %ecx,%edx
imul   0xa0(%r10,%rdi,4),%edx
imul   %eax,%edx
cmp    %esi,%edx
jg     1199 <main+0x89>
mov    %esi,%edx
cmp    $0x10,%rdi
ja     11e0 <main+0xd0>
imul   0x54(%r10,%rdi,4),%ecx
imul   0x8(%r10,%rdi,4),%ecx
imul   0xfc(%r10,%rdi,4),%ecx
cmp    %edx,%ecx
jg     11ba <main+0xaa>
mov    %edx,%ecx
imul   0xa4(%r10,%rdi,4),%eax
imul   0x58(%r10,%rdi,4),%eax
imul   0xc(%r10,%rdi,4),%eax
cmp    %ecx,%eax
jg     1140 <main+0x30>
mov    %ecx,%eax
jmp    1140 <main+0x30>
xchg   %ax,%ax
mov    %edx,%esi
jmp    1142 <main+0x32>
lea    0x1452(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.grid = [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 = [4 x i8] c"%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
%11 = bitcast [20 x [20 x i32]]* %6 to i8*
store i32 0, i32* %10
store i32 0, i32* %7
br label %12
12: ; preds = %211, %2
%13 = load i32, i32* %7
%14 = icmp slt i32 %13, 20
br i1 %14, label %15, label %214
15: ; preds = %12
store i32 0, i32* %8
br label %16
16: ; preds = %207, %15
%17 = load i32, i32* %8
%18 = icmp slt i32 %17, 20
br i1 %18, label %19, label %210
19: ; preds = %16
%20 = load i32, i32* %8
%21 = icmp slt i32 %20, 17
br i1 %21, label %22, label %64
22: ; preds = %19
%23 = load i32, i32* %7
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %24
%26 = load i32, i32* %8
%27 = add nsw i32 %26, 0
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i32], [20 x i32]* %25, i64 0, i64 %28
%30 = load i32, i32* %29
%31 = load i32, i32* %7
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %32
%34 = load i32, i32* %8
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [20 x i32], [20 x i32]* %33, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = mul nsw i32 %30, %38
%40 = load i32, i32* %7
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %41
%43 = load i32, i32* %8
%44 = add nsw i32 %43, 2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [20 x i32], [20 x i32]* %42, i64 0, i64 %45
%47 = load i32, i32* %46
%48 = mul nsw i32 %39, %47
%49 = load i32, i32* %7
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %50
%52 = load i32, i32* %8
%53 = add nsw i32 %52, 3
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [20 x i32], [20 x i32]* %51, i64 0, i64 %54
%56 = load i32, i32* %55
%57 = mul nsw i32 %48, %56
store i32 %57, i32* %9
%58 = load i32, i32* %9
%59 = load i32, i32* %10
%60 = icmp sgt i32 %58, %59
br i1 %60, label %61, label %63
61: ; preds = %22
%62 = load i32, i32* %9
store i32 %62, i32* %10
br label %63
63: ; preds = %61, %22
br label %64
64: ; preds = %63, %19
%65 = load i32, i32* %7
%66 = icmp slt i32 %65, 17
br i1 %66, label %67, label %109
67: ; preds = %64
%68 = load i32, i32* %7
%69 = add nsw i32 %68, 0
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %70
%72 = load i32, i32* %8
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [20 x i32], [20 x i32]* %71, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = load i32, i32* %7
%77 = add nsw i32 %76, 1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %78
%80 = load i32, i32* %8
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [20 x i32], [20 x i32]* %79, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = mul nsw i32 %75, %83
%85 = load i32, i32* %7
%86 = add nsw i32 %85, 2
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %87
%89 = load i32, i32* %8
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [20 x i32], [20 x i32]* %88, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = mul nsw i32 %84, %92
%94 = load i32, i32* %7
%95 = add nsw i32 %94, 3
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %96
%98 = load i32, i32* %8
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [20 x i32], [20 x i32]* %97, i64 0, i64 %99
%101 = load i32, i32* %100
%102 = mul nsw i32 %93, %101
store i32 %102, i32* %9
%103 = load i32, i32* %9
%104 = load i32, i32* %10
%105 = icmp sgt i32 %103, %104
br i1 %105, label %106, label %108
106: ; preds = %67
%107 = load i32, i32* %9
store i32 %107, i32* %10
br label %108
108: ; preds = %106, %67
br label %109
109: ; preds = %108, %64
%110 = load i32, i32* %8
%111 = icmp slt i32 %110, 17
br i1 %111, label %112, label %206
112: ; preds = %109
%113 = load i32, i32* %7
%114 = icmp slt i32 %113, 17
br i1 %114, label %115, label %206
115: ; preds = %112
%116 = load i32, i32* %7
%117 = add nsw i32 %116, 0
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %118
%120 = load i32, i32* %8
%121 = add nsw i32 %120, 0
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [20 x i32], [20 x i32]* %119, i64 0, i64 %122
%124 = load i32, i32* %123
%125 = load i32, i32* %7
%126 = add nsw i32 %125, 1
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %127
%129 = load i32, i32* %8
%130 = add nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [20 x i32], [20 x i32]* %128, i64 0, i64 %131
%133 = load i32, i32* %132
%134 = mul nsw i32 %124, %133
%135 = load i32, i32* %7
%136 = add nsw i32 %135, 0
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %137
%139 = load i32, i32* %8
%140 = add nsw i32 %139, 2
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [20 x i32], [20 x i32]* %138, i64 0, i64 %141
%143 = load i32, i32* %142
%144 = mul nsw i32 %134, %143
%145 = load i32, i32* %7
%146 = add nsw i32 %145, 3
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %147
%149 = load i32, i32* %8
%150 = add nsw i32 %149, 3
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [20 x i32], [20 x i32]* %148, i64 0, i64 %151
%153 = load i32, i32* %152
%154 = mul nsw i32 %144, %153
store i32 %154, i32* %9
%155 = load i32, i32* %9
%156 = load i32, i32* %10
%157 = icmp sgt i32 %155, %156
br i1 %157, label %158, label %160
158: ; preds = %115
%159 = load i32, i32* %9
store i32 %159, i32* %10
br label %160
160: ; preds = %158, %115
%161 = load i32, i32* %7
%162 = add nsw i32 %161, 3
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %163
%165 = load i32, i32* %8
%166 = add nsw i32 %165, 0
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [20 x i32], [20 x i32]* %164, i64 0, i64 %167
%169 = load i32, i32* %168
%170 = load i32, i32* %7
%171 = add nsw i32 %170, 2
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %172
%174 = load i32, i32* %8
%175 = add nsw i32 %174, 1
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [20 x i32], [20 x i32]* %173, i64 0, i64 %176
%178 = load i32, i32* %177
%179 = mul nsw i32 %169, %178
%180 = load i32, i32* %7
%181 = add nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %182
%184 = load i32, i32* %8
%185 = add nsw i32 %184, 2
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [20 x i32], [20 x i32]* %183, i64 0, i64 %186
%188 = load i32, i32* %187
%189 = mul nsw i32 %179, %188
%190 = load i32, i32* %7
%191 = add nsw i32 %190, 0
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds [20 x [20 x i32]], [20 x [20 x i32]]* %6, i64 0, i64 %192
%194 = load i32, i32* %8
%195 = add nsw i32 %194, 3
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds [20 x i32], [20 x i32]* %193, i64 0, i64 %196
%198 = load i32, i32* %197
%199 = mul nsw i32 %189, %198
store i32 %199, i32* %9
%200 = load i32, i32* %9
%201 = load i32, i32* %10
%202 = icmp sgt i32 %200, %201
br i1 %202, label %203, label %205
203: ; preds = %160
%204 = load i32, i32* %9
store i32 %204, i32* %10
br label %205
205: ; preds = %203, %160
br label %206
206: ; preds = %205, %112, %109
br label %207
207: ; preds = %206
%208 = load i32, i32* %8
%209 = add nsw i32 %208, 1
store i32 %209, i32* %8
br label %16
210: ; preds = %16
br label %211
211: ; preds = %210
%212 = load i32, i32* %7
%213 = add nsw i32 %212, 1
store i32 %213, i32* %7
br label %12
214: ; preds = %12
%215 = load i32, i32* %10
%216 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %215)
ret i32 0
}

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