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
  while (i++ != 1000) {
    int temp = num[i] * num[i + 1] * num[i + 2] * num[i + 3] * num[i + 4];
    if (temp > max) {
      max = temp;
    }
  }
  printf("%d\n", max);
  return 0;
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0xfc0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    -0xfb0(%rbp),%rdi
lea    0xeb9(%rip),%rsi
mov    $0xfa0,%edx
call   1040 <memcpy@plt>
mov    -0x4(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x4(%rbp)
cmp    $0x3e8,%eax
je     11d9 <problem008+0xb9>
movslq -0x4(%rbp),%rax
mov    -0xfb0(%rbp,%rax,4),%eax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
imul   -0xfb0(%rbp,%rcx,4),%eax
ff
mov    -0x4(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
imul   -0xfb0(%rbp,%rcx,4),%eax
ff
mov    -0x4(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
imul   -0xfb0(%rbp,%rcx,4),%eax
ff
mov    -0x4(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
imul   -0xfb0(%rbp,%rcx,4),%eax
ff
mov    %eax,-0xfb4(%rbp)
mov    -0xfb4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    11d4 <problem008+0xb4>
mov    -0xfb4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1151 <problem008+0x31>
mov    -0x8(%rbp),%esi
lea    0x1dbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xfc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %rax
xor    %esi,%esi
mov    $0x1,%edi
mov    $0x6,%edx
mov    $0x7,%r9d
mov    $0x6,%eax
lea    0xed1(%rip),%r8
nop
imul   -0x14(%r8,%rax,4),%edi
mov    %edx,%ecx
imul   %r9d,%ecx
mov    -0x4(%r8,%rax,4),%r10d
imul   %r10d,%ecx
imul   %edi,%ecx
cmp    %esi,%ecx
cmovle %esi,%ecx
mov    %r9d,%esi
mov    %r9d,%edi
mov    (%r8,%rax,4),%r9d
imul   -0x10(%r8,%rax,4),%edx
imul   %r10d,%esi
imul   %edx,%esi
imul   %r9d,%esi
cmp    %ecx,%esi
cmovle %ecx,%esi
add    $0x2,%rax
mov    %r10d,%edx
cmp    $0x3ee,%rax
jne    1130 <problem008+0x20>
lea    0x1e1d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.problem008.num = [1000 x i32] [i32 7, i32 3, i32 1, i32 6, i32 7, i32 1, i32 7, i32 6, i32 5, i32 3, i32 1, i32 3, i32 3, i32 0, i32 6, i32 2, i32 4, i32 9, i32 1, i32 9, i32 2, i32 2, i32 5, i32 1, i32 1, i32 9, i32 6, i32 7, i32 4, i32 4, i32 2, i32 6, i32 5, i32 7, i32 4, i32 7, i32 4, i32 2, i32 3, i32 5, i32 5, i32 3, i32 4, i32 9, i32 1, i32 9, i32 4, i32 9, i32 3, i32 4, i32 9, i32 6, i32 9, i32 8, i32 3, i32 5, i32 2, i32 0, i32 3, i32 1, i32 2, i32 7, i32 7, i32 4, i32 5, i32 0, i32 6, i32 3, i32 2, i32 6, i32 2, i32 3, i32 9, i32 5, i32 7, i32 8, i32 3, i32 1, i32 8, i32 0, i32 1, i32 6, i32 9, i32 8, i32 4, i32 8, i32 0, i32 1, i32 8, i32 6, i32 9, i32 4, i32 7, i32 8, i32 8, i32 5, i32 1, i32 8, i32 4, i32 3, i32 8, i32 5, i32 8, i32 6, i32 1, i32 5, i32 6, i32 0, i32 7, i32 8, i32 9, i32 1, i32 1, i32 2, i32 9, i32 4, i32 9, i32 4, i32 9, i32 5, i32 4, i32 5, i32 9, i32 5, i32 0, i32 1, i32 7, i32 3, i32 7, i32 9, i32 5, i32 8, i32 3, i32 3, i32 1, i32 9, i32 5, i32 2, i32 8, i32 5, i32 3, i32 2, i32 0, i32 8, i32 8, i32 0, i32 5, i32 5, i32 1, i32 1, i32 1, i32 2, i32 5, i32 4, i32 0, i32 6, i32 9, i32 8, i32 7, i32 4, i32 7, i32 1, i32 5, i32 8, i32 5, i32 2, i32 3, i32 8, i32 6, i32 3, i32 0, i32 5, i32 0, i32 7, i32 1, i32 5, i32 6, i32 9, i32 3, i32 2, i32 9, i32 0, i32 9, i32 6, i32 3, i32 2, i32 9, i32 5, i32 2, i32 2, i32 7, i32 4, i32 4, i32 3, i32 0, i32 4, i32 3, i32 5, i32 5, i32 7, i32 6, i32 6, i32 8, i32 9, i32 6, i32 6, i32 4, i32 8, i32 9, i32 5, i32 0, i32 4, i32 4, i32 5, i32 2, i32 4, i32 4, i32 5, i32 2, i32 3, i32 1, i32 6, i32 1, i32 7, i32 3, i32 1, i32 8, i32 5, i32 6, i32 4, i32 0, i32 3, i32 0, i32 9, i32 8, i32 7, i32 1, i32 1, i32 1, i32 2, i32 1, i32 7, i32 2, i32 2, i32 3, i32 8, i32 3, i32 1, i32 1, i32 3, i32 6, i32 2, i32 2, i32 2, i32 9, i32 8, i32 9, i32 3, i32 4, i32 2, i32 3, i32 3, i32 8, i32 0, i32 3, i32 0, i32 8, i32 1, i32 3, i32 5, i32 3, i32 3, i32 6, i32 2, i32 7, i32 6, i32 6, i32 1, i32 4, i32 2, i32 8, i32 2, i32 8, i32 0, i32 6, i32 4, i32 4, i32 4, i32 4, i32 8, i32 6, i32 6, i32 4, i32 5, i32 2, i32 3, i32 8, i32 7, i32 4, i32 9, i32 3, i32 0, i32 3, i32 5, i32 8, i32 9, i32 0, i32 7, i32 2, i32 9, i32 6, i32 2, i32 9, i32 0, i32 4, i32 9, i32 1, i32 5, i32 6, i32 0, i32 4, i32 4, i32 0, i32 7, i32 7, i32 2, i32 3, i32 9, i32 0, i32 7, i32 1, i32 3, i32 8, i32 1, i32 0, i32 5, i32 1, i32 5, i32 8, i32 5, i32 9, i32 3, i32 0, i32 7, i32 9, i32 6, i32 0, i32 8, i32 6, i32 6, i32 7, i32 0, i32 1, i32 7, i32 2, i32 4, i32 2, i32 7, i32 1, i32 2, i32 1, i32 8, i32 8, i32 3, i32 9, i32 9, i32 8, i32 7, i32 9, i32 7, i32 9, i32 0, i32 8, i32 7, i32 9, i32 2, i32 2, i32 7, i32 4, i32 9, i32 2, i32 1, i32 9, i32 0, i32 1, i32 6, i32 9, i32 9, i32 7, i32 2, i32 0, i32 8, i32 8, i32 8, i32 0, i32 9, i32 3, i32 7, i32 7, i32 6, i32 6, i32 5, i32 7, i32 2, i32 7, i32 3, i32 3, i32 3, i32 0, i32 0, i32 1, i32 0, i32 5, i32 3, i32 3, i32 6, i32 7, i32 8, i32 8, i32 1, i32 2, i32 2, i32 0, i32 2, i32 3, i32 5, i32 4, i32 2, i32 1, i32 8, i32 0, i32 9, i32 7, i32 5, i32 1, i32 2, i32 5, i32 4, i32 5, i32 4, i32 0, i32 5, i32 9, i32 4, i32 7, i32 5, i32 2, i32 2, i32 4, i32 3, i32 5, i32 2, i32 5, i32 8, i32 4, i32 9, i32 0, i32 7, i32 7, i32 1, i32 1, i32 6, i32 7, i32 0, i32 5, i32 5, i32 6, i32 0, i32 1, i32 3, i32 6, i32 0, i32 4, i32 8, i32 3, i32 9, i32 5, i32 8, i32 6, i32 4, i32 4, i32 6, i32 7, i32 0, i32 6, i32 3, i32 2, i32 4, i32 4, i32 1, i32 5, i32 7, i32 2, i32 2, i32 1, i32 5, i32 5, i32 3, i32 9, i32 7, i32 5, i32 3, i32 6, i32 9, i32 7, i32 8, i32 1, i32 7, i32 9, i32 7, i32 7, i32 8, i32 4, i32 6, i32 1, i32 7, i32 4, i32 0, i32 6, i32 4, i32 9, i32 5, i32 5, i32 1, i32 4, i32 9, i32 2, i32 9, i32 0, i32 8, i32 6, i32 2, i32 5, i32 6, i32 9, i32 3, i32 2, i32 1, i32 9, i32 7, i32 8, i32 4, i32 6, i32 8, i32 6, i32 2, i32 2, i32 4, i32 8, i32 2, i32 8, i32 3, i32 9, i32 7, i32 2, i32 2, i32 4, i32 1, i32 3, i32 7, i32 5, i32 6, i32 5, i32 7, i32 0, i32 5, i32 6, i32 0, i32 5, i32 7, i32 4, i32 9, i32 0, i32 2, i32 6, i32 1, i32 4, i32 0, i32 7, i32 9, i32 7, i32 2, i32 9, i32 6, i32 8, i32 6, i32 5, i32 2, i32 4, i32 1, i32 4, i32 5, i32 3, i32 5, i32 1, i32 0, i32 0, i32 4, i32 7, i32 4, i32 8, i32 2, i32 1, i32 6, i32 6, i32 3, i32 7, i32 0, i32 4, i32 8, i32 4, i32 4, i32 0, i32 3, i32 1, i32 9, i32 9, i32 8, i32 9, i32 0, i32 0, i32 0, i32 8, i32 8, i32 9, i32 5, i32 2, i32 4, i32 3, i32 4, i32 5, i32 0, i32 6, i32 5, i32 8, i32 5, i32 4, i32 1, i32 2, i32 2, i32 7, i32 5, i32 8, i32 8, i32 6, i32 6, i32 6, i32 8, i32 8, i32 1, i32 1, i32 6, i32 4, i32 2, i32 7, i32 1, i32 7, i32 1, i32 4, i32 7, i32 9, i32 9, i32 2, i32 4, i32 4, i32 4, i32 2, i32 9, i32 2, i32 8, i32 2, i32 3, i32 0, i32 8, i32 6, i32 3, i32 4, i32 6, i32 5, i32 6, i32 7, i32 4, i32 8, i32 1, i32 3, i32 9, i32 1, i32 9, i32 1, i32 2, i32 3, i32 1, i32 6, i32 2, i32 8, i32 2, i32 4, i32 5, i32 8, i32 6, i32 1, i32 7, i32 8, i32 6, i32 6, i32 4, i32 5, i32 8, i32 3, i32 5, i32 9, i32 1, i32 2, i32 4, i32 5, i32 6, i32 6, i32 5, i32 2, i32 9, i32 4, i32 7, i32 6, i32 5, i32 4, i32 5, i32 6, i32 8, i32 2, i32 8, i32 4, i32 8, i32 9, i32 1, i32 2, i32 8, i32 8, i32 3, i32 1, i32 4, i32 2, i32 6, i32 0, i32 7, i32 6, i32 9, i32 0, i32 0, i32 4, i32 2, i32 2, i32 4, i32 2, i32 1, i32 9, i32 0, i32 2, i32 2, i32 6, i32 7, i32 1, i32 0, i32 5, i32 5, i32 6, i32 2, i32 6, i32 3, i32 2, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 9, i32 3, i32 7, i32 0, i32 5, i32 4, i32 4, i32 2, i32 1, i32 7, i32 5, i32 0, i32 6, i32 9, i32 4, i32 1, i32 6, i32 5, i32 8, i32 9, i32 6, i32 0, i32 4, i32 0, i32 8, i32 0, i32 7, i32 1, i32 9, i32 8, i32 4, i32 0, i32 3, i32 8, i32 5, i32 0, i32 9, i32 6, i32 2, i32 4, i32 5, i32 5, i32 4, i32 4, i32 4, i32 3, i32 6, i32 2, i32 9, i32 8, i32 1, i32 2, i32 3, i32 0, i32 9, i32 8, i32 7, i32 8, i32 7, i32 9, i32 9, i32 2, i32 7, i32 2, i32 4, i32 4, i32 2, i32 8, i32 4, i32 9, i32 0, i32 9, i32 1, i32 8, i32 8, i32 8, i32 4, i32 5, i32 8, i32 0, i32 1, i32 5, i32 6, i32 1, i32 6, i32 6, i32 0, i32 9, i32 7, i32 9, i32 1, i32 9, i32 1, i32 3, i32 3, i32 8, i32 7, i32 5, i32 4, i32 9, i32 9, i32 2, i32 0, i32 0, i32 5, i32 2, i32 4, i32 0, i32 6, i32 3, i32 6, i32 8, i32 9, i32 9, i32 1, i32 2, i32 5, i32 6, i32 0, i32 7, i32 1, i32 7, i32 6, i32 0, i32 6, i32 0, i32 5, i32 8, i32 8, i32 6, i32 1, i32 1, i32 6, i32 4, i32 6, i32 7, i32 1, i32 0, i32 9, i32 4, i32 0, i32 5, i32 0, i32 7, i32 7, i32 5, i32 4, i32 1, i32 0, i32 0, i32 2, i32 2, i32 5, i32 6, i32 9, i32 8, i32 3, i32 1, i32 5, i32 5, i32 2, i32 0, i32 0, i32 0, i32 5, i32 5, i32 9, i32 3, i32 5, i32 7, i32 2, i32 9, i32 7, i32 2, i32 5, i32 7, i32 1, i32 6, i32 3, i32 6, i32 2, i32 6, i32 9, i32 5, i32 6, i32 1, i32 8, i32 8, i32 2, i32 6, i32 7, i32 0, i32 4, i32 2, i32 8, i32 2, i32 5, i32 2, i32 4, i32 8, i32 3, i32 6, i32 0, i32 0, i32 8, i32 2, i32 3, i32 2, i32 5, i32 7, i32 5, i32 3, i32 0, i32 4, i32 2, i32 0, i32 7, i32 5, i32 2, i32 9, i32 6, i32 3, i32 4, i32 5, i32 0]
@.str = [4 x i8] c"%d\0A\00"
define i32 @problem008() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [1000 x i32]
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%5 = bitcast [1000 x i32]* %3 to i8*
br label %6
6: ; preds = %44, %0
%7 = load i32, i32* %1
%8 = add nsw i32 %7, 1
store i32 %8, i32* %1
%9 = icmp ne i32 %7, 1000
br i1 %9, label %10, label %45
10: ; preds = %6
%11 = load i32, i32* %1
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [1000 x i32], [1000 x i32]* %3, i64 0, i64 %12
%14 = load i32, i32* %13
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [1000 x i32], [1000 x i32]* %3, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = mul nsw i32 %14, %19
%21 = load i32, i32* %1
%22 = add nsw i32 %21, 2
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [1000 x i32], [1000 x i32]* %3, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = mul nsw i32 %20, %25
%27 = load i32, i32* %1
%28 = add nsw i32 %27, 3
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [1000 x i32], [1000 x i32]* %3, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = mul nsw i32 %26, %31
%33 = load i32, i32* %1
%34 = add nsw i32 %33, 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [1000 x i32], [1000 x i32]* %3, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = mul nsw i32 %32, %37
store i32 %38, i32* %4
%39 = load i32, i32* %4
%40 = load i32, i32* %2
%41 = icmp sgt i32 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %10
%43 = load i32, i32* %4
store i32 %43, i32* %2
br label %44
44: ; preds = %42, %10
br label %6
45: ; preds = %6
%46 = load i32, i32* %2
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %46)
ret i32 0
}

LLVM IR (-O2):
@__const.problem008.num = [1000 x i32] [i32 7, i32 3, i32 1, i32 6, i32 7, i32 1, i32 7, i32 6, i32 5, i32 3, i32 1, i32 3, i32 3, i32 0, i32 6, i32 2, i32 4, i32 9, i32 1, i32 9, i32 2, i32 2, i32 5, i32 1, i32 1, i32 9, i32 6, i32 7, i32 4, i32 4, i32 2, i32 6, i32 5, i32 7, i32 4, i32 7, i32 4, i32 2, i32 3, i32 5, i32 5, i32 3, i32 4, i32 9, i32 1, i32 9, i32 4, i32 9, i32 3, i32 4, i32 9, i32 6, i32 9, i32 8, i32 3, i32 5, i32 2, i32 0, i32 3, i32 1, i32 2, i32 7, i32 7, i32 4, i32 5, i32 0, i32 6, i32 3, i32 2, i32 6, i32 2, i32 3, i32 9, i32 5, i32 7, i32 8, i32 3, i32 1, i32 8, i32 0, i32 1, i32 6, i32 9, i32 8, i32 4, i32 8, i32 0, i32 1, i32 8, i32 6, i32 9, i32 4, i32 7, i32 8, i32 8, i32 5, i32 1, i32 8, i32 4, i32 3, i32 8, i32 5, i32 8, i32 6, i32 1, i32 5, i32 6, i32 0, i32 7, i32 8, i32 9, i32 1, i32 1, i32 2, i32 9, i32 4, i32 9, i32 4, i32 9, i32 5, i32 4, i32 5, i32 9, i32 5, i32 0, i32 1, i32 7, i32 3, i32 7, i32 9, i32 5, i32 8, i32 3, i32 3, i32 1, i32 9, i32 5, i32 2, i32 8, i32 5, i32 3, i32 2, i32 0, i32 8, i32 8, i32 0, i32 5, i32 5, i32 1, i32 1, i32 1, i32 2, i32 5, i32 4, i32 0, i32 6, i32 9, i32 8, i32 7, i32 4, i32 7, i32 1, i32 5, i32 8, i32 5, i32 2, i32 3, i32 8, i32 6, i32 3, i32 0, i32 5, i32 0, i32 7, i32 1, i32 5, i32 6, i32 9, i32 3, i32 2, i32 9, i32 0, i32 9, i32 6, i32 3, i32 2, i32 9, i32 5, i32 2, i32 2, i32 7, i32 4, i32 4, i32 3, i32 0, i32 4, i32 3, i32 5, i32 5, i32 7, i32 6, i32 6, i32 8, i32 9, i32 6, i32 6, i32 4, i32 8, i32 9, i32 5, i32 0, i32 4, i32 4, i32 5, i32 2, i32 4, i32 4, i32 5, i32 2, i32 3, i32 1, i32 6, i32 1, i32 7, i32 3, i32 1, i32 8, i32 5, i32 6, i32 4, i32 0, i32 3, i32 0, i32 9, i32 8, i32 7, i32 1, i32 1, i32 1, i32 2, i32 1, i32 7, i32 2, i32 2, i32 3, i32 8, i32 3, i32 1, i32 1, i32 3, i32 6, i32 2, i32 2, i32 2, i32 9, i32 8, i32 9, i32 3, i32 4, i32 2, i32 3, i32 3, i32 8, i32 0, i32 3, i32 0, i32 8, i32 1, i32 3, i32 5, i32 3, i32 3, i32 6, i32 2, i32 7, i32 6, i32 6, i32 1, i32 4, i32 2, i32 8, i32 2, i32 8, i32 0, i32 6, i32 4, i32 4, i32 4, i32 4, i32 8, i32 6, i32 6, i32 4, i32 5, i32 2, i32 3, i32 8, i32 7, i32 4, i32 9, i32 3, i32 0, i32 3, i32 5, i32 8, i32 9, i32 0, i32 7, i32 2, i32 9, i32 6, i32 2, i32 9, i32 0, i32 4, i32 9, i32 1, i32 5, i32 6, i32 0, i32 4, i32 4, i32 0, i32 7, i32 7, i32 2, i32 3, i32 9, i32 0, i32 7, i32 1, i32 3, i32 8, i32 1, i32 0, i32 5, i32 1, i32 5, i32 8, i32 5, i32 9, i32 3, i32 0, i32 7, i32 9, i32 6, i32 0, i32 8, i32 6, i32 6, i32 7, i32 0, i32 1, i32 7, i32 2, i32 4, i32 2, i32 7, i32 1, i32 2, i32 1, i32 8, i32 8, i32 3, i32 9, i32 9, i32 8, i32 7, i32 9, i32 7, i32 9, i32 0, i32 8, i32 7, i32 9, i32 2, i32 2, i32 7, i32 4, i32 9, i32 2, i32 1, i32 9, i32 0, i32 1, i32 6, i32 9, i32 9, i32 7, i32 2, i32 0, i32 8, i32 8, i32 8, i32 0, i32 9, i32 3, i32 7, i32 7, i32 6, i32 6, i32 5, i32 7, i32 2, i32 7, i32 3, i32 3, i32 3, i32 0, i32 0, i32 1, i32 0, i32 5, i32 3, i32 3, i32 6, i32 7, i32 8, i32 8, i32 1, i32 2, i32 2, i32 0, i32 2, i32 3, i32 5, i32 4, i32 2, i32 1, i32 8, i32 0, i32 9, i32 7, i32 5, i32 1, i32 2, i32 5, i32 4, i32 5, i32 4, i32 0, i32 5, i32 9, i32 4, i32 7, i32 5, i32 2, i32 2, i32 4, i32 3, i32 5, i32 2, i32 5, i32 8, i32 4, i32 9, i32 0, i32 7, i32 7, i32 1, i32 1, i32 6, i32 7, i32 0, i32 5, i32 5, i32 6, i32 0, i32 1, i32 3, i32 6, i32 0, i32 4, i32 8, i32 3, i32 9, i32 5, i32 8, i32 6, i32 4, i32 4, i32 6, i32 7, i32 0, i32 6, i32 3, i32 2, i32 4, i32 4, i32 1, i32 5, i32 7, i32 2, i32 2, i32 1, i32 5, i32 5, i32 3, i32 9, i32 7, i32 5, i32 3, i32 6, i32 9, i32 7, i32 8, i32 1, i32 7, i32 9, i32 7, i32 7, i32 8, i32 4, i32 6, i32 1, i32 7, i32 4, i32 0, i32 6, i32 4, i32 9, i32 5, i32 5, i32 1, i32 4, i32 9, i32 2, i32 9, i32 0, i32 8, i32 6, i32 2, i32 5, i32 6, i32 9, i32 3, i32 2, i32 1, i32 9, i32 7, i32 8, i32 4, i32 6, i32 8, i32 6, i32 2, i32 2, i32 4, i32 8, i32 2, i32 8, i32 3, i32 9, i32 7, i32 2, i32 2, i32 4, i32 1, i32 3, i32 7, i32 5, i32 6, i32 5, i32 7, i32 0, i32 5, i32 6, i32 0, i32 5, i32 7, i32 4, i32 9, i32 0, i32 2, i32 6, i32 1, i32 4, i32 0, i32 7, i32 9, i32 7, i32 2, i32 9, i32 6, i32 8, i32 6, i32 5, i32 2, i32 4, i32 1, i32 4, i32 5, i32 3, i32 5, i32 1, i32 0, i32 0, i32 4, i32 7, i32 4, i32 8, i32 2, i32 1, i32 6, i32 6, i32 3, i32 7, i32 0, i32 4, i32 8, i32 4, i32 4, i32 0, i32 3, i32 1, i32 9, i32 9, i32 8, i32 9, i32 0, i32 0, i32 0, i32 8, i32 8, i32 9, i32 5, i32 2, i32 4, i32 3, i32 4, i32 5, i32 0, i32 6, i32 5, i32 8, i32 5, i32 4, i32 1, i32 2, i32 2, i32 7, i32 5, i32 8, i32 8, i32 6, i32 6, i32 6, i32 8, i32 8, i32 1, i32 1, i32 6, i32 4, i32 2, i32 7, i32 1, i32 7, i32 1, i32 4, i32 7, i32 9, i32 9, i32 2, i32 4, i32 4, i32 4, i32 2, i32 9, i32 2, i32 8, i32 2, i32 3, i32 0, i32 8, i32 6, i32 3, i32 4, i32 6, i32 5, i32 6, i32 7, i32 4, i32 8, i32 1, i32 3, i32 9, i32 1, i32 9, i32 1, i32 2, i32 3, i32 1, i32 6, i32 2, i32 8, i32 2, i32 4, i32 5, i32 8, i32 6, i32 1, i32 7, i32 8, i32 6, i32 6, i32 4, i32 5, i32 8, i32 3, i32 5, i32 9, i32 1, i32 2, i32 4, i32 5, i32 6, i32 6, i32 5, i32 2, i32 9, i32 4, i32 7, i32 6, i32 5, i32 4, i32 5, i32 6, i32 8, i32 2, i32 8, i32 4, i32 8, i32 9, i32 1, i32 2, i32 8, i32 8, i32 3, i32 1, i32 4, i32 2, i32 6, i32 0, i32 7, i32 6, i32 9, i32 0, i32 0, i32 4, i32 2, i32 2, i32 4, i32 2, i32 1, i32 9, i32 0, i32 2, i32 2, i32 6, i32 7, i32 1, i32 0, i32 5, i32 5, i32 6, i32 2, i32 6, i32 3, i32 2, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 9, i32 3, i32 7, i32 0, i32 5, i32 4, i32 4, i32 2, i32 1, i32 7, i32 5, i32 0, i32 6, i32 9, i32 4, i32 1, i32 6, i32 5, i32 8, i32 9, i32 6, i32 0, i32 4, i32 0, i32 8, i32 0, i32 7, i32 1, i32 9, i32 8, i32 4, i32 0, i32 3, i32 8, i32 5, i32 0, i32 9, i32 6, i32 2, i32 4, i32 5, i32 5, i32 4, i32 4, i32 4, i32 3, i32 6, i32 2, i32 9, i32 8, i32 1, i32 2, i32 3, i32 0, i32 9, i32 8, i32 7, i32 8, i32 7, i32 9, i32 9, i32 2, i32 7, i32 2, i32 4, i32 4, i32 2, i32 8, i32 4, i32 9, i32 0, i32 9, i32 1, i32 8, i32 8, i32 8, i32 4, i32 5, i32 8, i32 0, i32 1, i32 5, i32 6, i32 1, i32 6, i32 6, i32 0, i32 9, i32 7, i32 9, i32 1, i32 9, i32 1, i32 3, i32 3, i32 8, i32 7, i32 5, i32 4, i32 9, i32 9, i32 2, i32 0, i32 0, i32 5, i32 2, i32 4, i32 0, i32 6, i32 3, i32 6, i32 8, i32 9, i32 9, i32 1, i32 2, i32 5, i32 6, i32 0, i32 7, i32 1, i32 7, i32 6, i32 0, i32 6, i32 0, i32 5, i32 8, i32 8, i32 6, i32 1, i32 1, i32 6, i32 4, i32 6, i32 7, i32 1, i32 0, i32 9, i32 4, i32 0, i32 5, i32 0, i32 7, i32 7, i32 5, i32 4, i32 1, i32 0, i32 0, i32 2, i32 2, i32 5, i32 6, i32 9, i32 8, i32 3, i32 1, i32 5, i32 5, i32 2, i32 0, i32 0, i32 0, i32 5, i32 5, i32 9, i32 3, i32 5, i32 7, i32 2, i32 9, i32 7, i32 2, i32 5, i32 7, i32 1, i32 6, i32 3, i32 6, i32 2, i32 6, i32 9, i32 5, i32 6, i32 1, i32 8, i32 8, i32 2, i32 6, i32 7, i32 0, i32 4, i32 2, i32 8, i32 2, i32 5, i32 2, i32 4, i32 8, i32 3, i32 6, i32 0, i32 0, i32 8, i32 2, i32 3, i32 2, i32 5, i32 7, i32 5, i32 3, i32 0, i32 4, i32 2, i32 0, i32 7, i32 5, i32 2, i32 9, i32 6, i32 3, i32 4, i32 5, i32 0]
@.str = [4 x i8] c"%d\0A\00"
define i32 @problem008() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 7, %0 ], [ %28, %1 ]
%3 = phi i32 [ 6, %0 ], [ %15, %1 ]
%4 = phi i32 [ 1, %0 ], [ %2, %1 ]
%5 = phi i64 [ 0, %0 ], [ %20, %1 ]
%6 = phi i64 [ 1, %0 ], [ %32, %1 ]
%7 = phi i32 [ 0, %0 ], [ %31, %1 ]
%8 = getelementptr inbounds [1000 x i32], [1000 x i32]* @__const.problem008.num, i64 0, i64 %6
%9 = load i32, i32* %8
%10 = mul nsw i32 %4, %9
%11 = mul nsw i32 %10, %3
%12 = mul nsw i32 %11, %2
%13 = add nuw nsw i64 %5, 5
%14 = getelementptr inbounds [1000 x i32], [1000 x i32]* @__const.problem008.num, i64 0, i64 %13
%15 = load i32, i32* %14
%16 = mul nsw i32 %12, %15
%17 = icmp sgt i32 %16, %7
%18 = select i1 %17, i32 %16, i32 %7
%19 = add nuw nsw i64 %6, 1
%20 = add nuw nsw i64 %5, 2
%21 = getelementptr inbounds [1000 x i32], [1000 x i32]* @__const.problem008.num, i64 0, i64 %19
%22 = load i32, i32* %21
%23 = mul nsw i32 %3, %22
%24 = mul nsw i32 %23, %2
%25 = mul nsw i32 %24, %15
%26 = add nuw i64 %5, 6
%27 = getelementptr inbounds [1000 x i32], [1000 x i32]* @__const.problem008.num, i64 0, i64 %26
%28 = load i32, i32* %27
%29 = mul nsw i32 %25, %28
%30 = icmp sgt i32 %29, %18
%31 = select i1 %30, i32 %29, i32 %18
%32 = add nuw nsw i64 %6, 2
%33 = icmp eq i64 %19, 1000
br i1 %33, label %34, label %1
34: ; preds = %1
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %31)
ret i32 0
}