int problem011() {
  int num[][20] = {
      {8, 2, 22, 97, 38, 15, 0, 40, 0, 75, 4, 5, 07, 78, 52, 12, 50, 77, 91, 8},
      {49, 49, 99, 40, 17, 81, 18, 57, 60, 87,
       17, 40, 98, 43, 69, 48, 04, 56, 62, 00},
      {81, 49, 31, 73, 55, 79, 14, 29, 93, 71,
       40, 67, 53, 88, 30, 03, 49, 13, 36, 65},
      {52, 70, 95, 23, 04, 60, 11, 42, 69, 24,
       68, 56, 01, 32, 56, 71, 37, 02, 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, 03, 45, 02, 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, 05, 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, 05, 42, 96, 35, 31, 47, 55, 58,
       88, 24, 00, 17, 54, 24, 36, 29, 85, 57},
      {86, 56, 00, 48, 35, 71, 89, 07, 05, 44,
       44, 37, 44, 60, 21, 58, 51, 54, 17, 58},
      {19, 80, 81, 68, 05, 94, 47, 69, 28, 73,
       92, 13, 86, 52, 17, 77, 04, 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 i = 0;
  int j = 0;
  int max = 0;
  int tmp = 0;
  for (i = 0; i < 20; i++) {
    for (j = 0; j < 20; j++) {
      if ((j + 4) < 20 && (i + 4) < 20) {
        tmp = num[i][j] * num[i][j + 1] * num[i][j + 2] * num[i][j + 3];
        max = (tmp > max) ? tmp : max;
        tmp = num[i][j] * num[i + 1][j] * num[i + 2][j] * num[i + 3][j];
        max = (tmp > max) ? tmp : max;
        tmp = num[i + 3][j] * num[i + 2][j + 1] * num[i + 1][j + 2] *
              num[i][j + 3];
        max = (tmp > max) ? tmp : max;
        tmp = num[i][j + 3] * num[i + 1][j + 2] * num[i + 2][j + 1] *
              num[i + 3][j + 1];
        max = (tmp > max) ? tmp : max;
      }
    }
  }
  printf("%d\n", max);
  return 0;
}


x86 assembly (clang, -O0):
<problem011>:
push   %rbp
mov    %rsp,%rbp
sub    $0x660,%rsp
lea    -0x640(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x640,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x644(%rbp)
movl   $0x0,-0x648(%rbp)
movl   $0x0,-0x64c(%rbp)
movl   $0x0,-0x650(%rbp)
movl   $0x0,-0x644(%rbp)
cmpl   $0x14,-0x644(%rbp)
jge    154e <problem011+0x42e>
movl   $0x0,-0x648(%rbp)
cmpl   $0x14,-0x648(%rbp)
jge    1535 <problem011+0x415>
mov    -0x648(%rbp),%eax
add    $0x4,%eax
cmp    $0x14,%eax
jge    151c <problem011+0x3fc>
mov    -0x644(%rbp),%eax
add    $0x4,%eax
cmp    $0x14,%eax
jge    151c <problem011+0x3fc>
movslq -0x644(%rbp),%rcx
lea    -0x640(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x648(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
movslq -0x644(%rbp),%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x644(%rbp),%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x644(%rbp),%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x650(%rbp)
mov    -0x650(%rbp),%eax
cmp    -0x64c(%rbp),%eax
jle    1274 <problem011+0x154>
mov    -0x650(%rbp),%eax
mov    %eax,-0x654(%rbp)
jmp    1280 <problem011+0x160>
mov    -0x64c(%rbp),%eax
mov    %eax,-0x654(%rbp)
mov    -0x654(%rbp),%eax
mov    %eax,-0x64c(%rbp)
movslq -0x644(%rbp),%rcx
lea    -0x640(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x648(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x644(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x648(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x644(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x648(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x644(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
movslq -0x648(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x650(%rbp)
mov    -0x650(%rbp),%eax
cmp    -0x64c(%rbp),%eax
jle    1343 <problem011+0x223>
mov    -0x650(%rbp),%eax
mov    %eax,-0x658(%rbp)
jmp    134f <problem011+0x22f>
mov    -0x64c(%rbp),%eax
mov    %eax,-0x658(%rbp)
mov    -0x658(%rbp),%eax
mov    %eax,-0x64c(%rbp)
mov    -0x644(%rbp),%eax
add    $0x3,%eax
movslq %eax,%rcx
lea    -0x640(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x648(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x644(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x644(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
movslq -0x644(%rbp),%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x650(%rbp)
mov    -0x650(%rbp),%eax
cmp    -0x64c(%rbp),%eax
jle    1421 <problem011+0x301>
mov    -0x650(%rbp),%eax
mov    %eax,-0x65c(%rbp)
jmp    142d <problem011+0x30d>
mov    -0x64c(%rbp),%eax
mov    %eax,-0x65c(%rbp)
mov    -0x65c(%rbp),%eax
mov    %eax,-0x64c(%rbp)
movslq -0x644(%rbp),%rcx
lea    -0x640(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
mov    -0x648(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x644(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x644(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    -0x644(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rdx
lea    -0x640(%rbp),%rcx
imul   $0x50,%rdx,%rdx
add    %rdx,%rcx
mov    -0x648(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x650(%rbp)
mov    -0x650(%rbp),%eax
cmp    -0x64c(%rbp),%eax
jle    1504 <problem011+0x3e4>
mov    -0x650(%rbp),%eax
mov    %eax,-0x660(%rbp)
jmp    1510 <problem011+0x3f0>
mov    -0x64c(%rbp),%eax
mov    %eax,-0x660(%rbp)
mov    -0x660(%rbp),%eax
mov    %eax,-0x64c(%rbp)
jmp    1521 <problem011+0x401>
mov    -0x648(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x648(%rbp)
jmp    118c <problem011+0x6c>
jmp    153a <problem011+0x41a>
mov    -0x644(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x644(%rbp)
jmp    1175 <problem011+0x55>
mov    -0x64c(%rbp),%esi
lea    0x10e5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x660,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<problem011>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %r14d,%r14d
lea    0xedf(%rip),%r11
xor    %esi,%esi
jmp    113d <problem011+0x2d>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r10,%r14
cmp    $0x14,%r10
je     1203 <problem011+0xf3>
lea    0x1(%r14),%r10
lea    0x2(%r14),%r8
lea    0x3(%r14),%r9
xor    %edi,%edi
jmp    115a <problem011+0x4a>
nopl   (%rax)
add    $0x1,%rdi
cmp    $0x14,%rdi
je     1130 <problem011+0x20>
cmp    $0xf,%rdi
ja     1150 <problem011+0x40>
cmp    $0x10,%r14
jae    1150 <problem011+0x40>
lea    (%r14,%r14,4),%rcx
shl    $0x4,%rcx
add    %r11,%rcx
mov    (%rcx,%rdi,4),%eax
mov    0xc(%rcx,%rdi,4),%r15d
mov    0x4(%rcx,%rdi,4),%ebx
imul   %eax,%ebx
imul   0x8(%rcx,%rdi,4),%ebx
imul   %r15d,%ebx
cmp    %esi,%ebx
jg     118f <problem011+0x7f>
mov    %esi,%ebx
lea    (%r10,%r10,4),%rcx
shl    $0x4,%rcx
add    %r11,%rcx
imul   (%rcx,%rdi,4),%eax
lea    (%r8,%r8,4),%rdx
shl    $0x4,%rdx
add    %r11,%rdx
imul   (%rdx,%rdi,4),%eax
lea    (%r9,%r9,4),%rsi
shl    $0x4,%rsi
add    %r11,%rsi
mov    (%rsi,%rdi,4),%ebp
imul   %ebp,%eax
cmp    %ebx,%eax
jg     11c4 <problem011+0xb4>
mov    %ebx,%eax
imul   0x4(%rdx,%rdi,4),%r15d
mov    0x8(%rcx,%rdi,4),%ecx
imul   %ecx,%ebp
imul   %r15d,%ebp
cmp    %eax,%ebp
jg     11db <problem011+0xcb>
mov    %eax,%ebp
imul   %ecx,%r15d
imul   0x4(%rsi,%rdi,4),%r15d
cmp    %ebp,%r15d
jg     11ed <problem011+0xdd>
mov    %ebp,%r15d
add    $0x1,%rdi
mov    %r15d,%esi
cmp    $0x14,%rdi
jne    115a <problem011+0x4a>
jmp    1130 <problem011+0x20>
lea    0x1436(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

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