#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, unsigned int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ printf(char *, unsigned int, char *, unsigned int);
int /*<<< orphan*/ stderr;
unsigned int strlen(char *);
void problem8(unsigned window, char *bignum_file_path, unsigned rows,
              unsigned cols) {
  FILE *bignum_file = fopen(bignum_file_path, "r");
  if (!bignum_file) {
    fprintf(stderr, "Error: the file \"%s\" could not be opened.",
            bignum_file_path);
    exit(EXIT_FAILURE);
  }
  char bignum[rows * cols + 1];
  for (int i = 0; i < rows; ++i) {
    fgets(&bignum[i * cols], cols + 1, bignum_file);
    fgetc(bignum_file);
  }
  fclose(bignum_file);
  unsigned accumulator = 0;
  unsigned length = strlen(bignum);
  for (int i = 0; i <= length - window; ++i) {
    unsigned product = 1;
    for (int j = 0; j < window; ++j) {
      product *= (bignum[i + j] - '0');
    }
    if (product > accumulator)
      accumulator = product;
  }
  printf("Problem 8: The greatest product of %u consecutive digits in the "
         "string \"%s\" is %u.\n",
         window, bignum_file_path, accumulator);
}


x86 assembly (clang, -O0):
<problem8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe60(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    11db <problem8+0x5b>
mov    0x2e25(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe3a(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2e04(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    -0x14(%rbp),%eax
mov    -0x18(%rbp),%ecx
imul   %ecx,%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1253 <problem8+0xd3>
mov    -0x50(%rbp),%rdi
mov    -0x34(%rbp),%eax
imul   -0x18(%rbp),%eax
mov    %eax,%eax
add    %rax,%rdi
mov    -0x18(%rbp),%esi
add    $0x1,%esi
mov    -0x20(%rbp),%rdx
call   1070 <fgets@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1211 <problem8+0x91>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x50(%rbp),%rdi
movl   $0x0,-0x38(%rbp)
call   1040 <strlen@plt>
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    -0x3c(%rbp),%ecx
sub    -0x4(%rbp),%ecx
cmp    %ecx,%eax
ja     12ef <problem8+0x16f>
movl   $0x1,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    12ca <problem8+0x14a>
mov    -0x50(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
sub    $0x30,%eax
imul   -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1295 <problem8+0x115>
mov    -0x44(%rbp),%eax
cmp    -0x38(%rbp),%eax
jbe    12dc <problem8+0x15c>
mov    -0x44(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    12e1 <problem8+0x161>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1276 <problem8+0xf6>
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x38(%rbp),%ecx
lea    0xd2c(%rip),%rdi
call   1050 <printf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<problem8>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rcx,-0x30(%rbp)
mov    %edx,%r15d
mov    %rsi,%r14
mov    %edi,-0x34(%rbp)
lea    0xe7b(%rip),%rsi
mov    %r14,%rdi
call   1090 <fopen@plt>
test   %rax,%rax
je     14b0 <problem8+0x330>
mov    %rax,%rbx
mov    %r14,-0x40(%rbp)
mov    -0x30(%rbp),%rax
imul   %r15d,%eax
add    $0x1,%eax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,%r13
mov    %rcx,%rsp
test   %r15d,%r15d
je     1213 <problem8+0x93>
mov    -0x30(%rbp),%rax
lea    0x1(%rax),%r14d
mov    %r15d,%r15d
xor    %r12d,%r12d
nop
mov    %r12d,%edi
add    %r13,%rdi
mov    %r14d,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
mov    %rbx,%rdi
call   1060 <fgetc@plt>
add    -0x30(%rbp),%r12d
add    $0xffffffffffffffff,%r15
jne    11f0 <problem8+0x70>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    %r13,%rbx
mov    %r13,%rdi
call   1040 <strlen@plt>
mov    -0x34(%rbp),%esi
sub    %esi,%eax
add    $0x1,%eax
mov    %esi,%r13d
mov    %r13d,%r11d
and    $0xfffffff8,%r11d
lea    -0x8(%r11),%r9
mov    %r9,%r10
shr    $0x3,%r10
add    $0x1,%r10
mov    %r10,%rcx
and    $0xfffffffffffffffe,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xc(%rbx),%r12
xor    %r14d,%r14d
movdqa 0xd9e(%rip),%xmm8
movdqa 0xda6(%rip),%xmm1
mov    %rbx,%r15
xor    %ecx,%ecx
mov    %rbx,%r8
jmp    12a2 <problem8+0x122>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x1,%edx
cmp    %ecx,%edx
cmova  %edx,%ecx
add    $0x1,%r14
add    $0x1,%r12
add    $0x1,%r15
cmp    %rax,%r14
mov    %r8,%rbx
je     1491 <problem8+0x311>
test   %esi,%esi
je     1280 <problem8+0x100>
cmp    $0x8,%esi
jae    12c0 <problem8+0x140>
mov    $0x1,%edx
xor    %edi,%edi
jmp    1460 <problem8+0x2e0>
nopw   0x0(%rax,%rax,1)
test   %r9,%r9
je     1479 <problem8+0x2f9>
mov    -0x30(%rbp),%rdx
xor    %edi,%edi
movdqa %xmm8,%xmm3
movdqa %xmm8,%xmm2
nopl   0x0(%rax)
movd   -0xc(%r12,%rdi,1),%xmm4
punpcklbw %xmm4,%xmm4
punpcklwd %xmm4,%xmm5
movd   -0x8(%r12,%rdi,1),%xmm4
punpcklbw %xmm4,%xmm4
punpcklwd %xmm4,%xmm4
psrad  $0x18,%xmm5
psrad  $0x18,%xmm4
paddd  %xmm1,%xmm5
paddd  %xmm1,%xmm4
pshufd $0xf5,%xmm5,%xmm6
pshufd $0xf5,%xmm3,%xmm7
pmuludq %xmm6,%xmm7
pmuludq %xmm3,%xmm5
pshufd $0xf5,%xmm4,%xmm3
pshufd $0xf5,%xmm2,%xmm6
pmuludq %xmm3,%xmm6
pmuludq %xmm2,%xmm4
movd   -0x4(%r12,%rdi,1),%xmm2
punpcklbw %xmm2,%xmm2
punpcklwd %xmm2,%xmm2
movd   (%r12,%rdi,1),%xmm3
punpcklbw %xmm3,%xmm3
punpcklwd %xmm3,%xmm0
psrad  $0x18,%xmm2
psrad  $0x18,%xmm0
paddd  %xmm1,%xmm2
paddd  %xmm1,%xmm0
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm3
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm7,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm3
pmuludq %xmm0,%xmm4
pshufd $0xe8,%xmm4,%xmm2
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm6,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm0,%xmm2
add    $0x10,%rdi
add    $0xfffffffffffffffe,%rdx
jne    12e0 <problem8+0x160>
test   $0x1,%r10b
je     1425 <problem8+0x2a5>
add    %r14,%rdi
movd   (%rbx,%rdi,1),%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm0
movd   0x4(%rbx,%rdi,1),%xmm4
punpcklbw %xmm4,%xmm4
punpcklwd %xmm4,%xmm4
psrad  $0x18,%xmm0
psrad  $0x18,%xmm4
paddd  %xmm1,%xmm0
paddd  %xmm1,%xmm4
pshufd $0xf5,%xmm0,%xmm5
pmuludq %xmm3,%xmm0
pshufd $0xf5,%xmm3,%xmm3
pshufd $0xe8,%xmm0,%xmm0
pmuludq %xmm5,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm0
pshufd $0xf5,%xmm4,%xmm3
pmuludq %xmm2,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pshufd $0xe8,%xmm4,%xmm4
pmuludq %xmm3,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm4
movdqa %xmm0,%xmm3
movdqa %xmm4,%xmm2
pshufd $0xf5,%xmm3,%xmm0
pshufd $0xf5,%xmm2,%xmm4
pmuludq %xmm0,%xmm4
pmuludq %xmm3,%xmm2
pshufd $0xee,%xmm2,%xmm0
pmuludq %xmm2,%xmm0
pshufd $0xaa,%xmm4,%xmm2
pmuludq %xmm4,%xmm2
pmuludq %xmm0,%xmm2
movd   %xmm2,%edx
mov    %r11,%rdi
cmp    %r13,%r11
je     1285 <problem8+0x105>
nopl   (%rax)
movsbl (%r15,%rdi,1),%ebx
add    $0xffffffd0,%ebx
imul   %ebx,%edx
add    $0x1,%rdi
cmp    %rdi,%r13
jne    1460 <problem8+0x2e0>
jmp    1285 <problem8+0x105>
xor    %edi,%edi
movdqa %xmm8,%xmm3
movdqa %xmm8,%xmm2
test   $0x1,%r10b
jne    13ad <problem8+0x22d>
jmp    1425 <problem8+0x2a5>
lea    0xbb4(%rip),%rdi
mov    -0x40(%rbp),%rdx
call   1050 <printf@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b29(%rip),%rax
mov    (%rax),%edi
lea    0xb62(%rip),%rsi
mov    %r14,%rdx
call   1080 <fprintf@plt>
mov    0x2b09(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [42 x i8] c"Error: the file \22%s\22 could not be opened.\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [84 x i8] c"Problem 8: The greatest product of %u consecutive digits in the string \22%s\22 is %u.\0A\00"
define void @problem8(i32 %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%18 = load i8*, i8** %6
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %19, i32** %9
%20 = load i32*, i32** %9
%21 = icmp ne i32* %20, null
br i1 %21, label %28, label %22
22: ; preds = %4
%23 = load i32, i32* @stderr
%24 = load i8*, i8** %6
%25 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %24)
%26 = load i32, i32* @EXIT_FAILURE
%27 = call i32 @exit(i32 %26)
unreachable
28: ; preds = %4
%29 = load i32, i32* %7
%30 = load i32, i32* %8
%31 = mul i32 %29, %30
%32 = add i32 %31, 1
%33 = zext i32 %32 to i64
%34 = call i8* @llvm.stacksave()
store i8* %34, i8** %10
%35 = alloca i8, i64 %33
store i64 %33, i64* %11
store i32 0, i32* %12
br label %36
36: ; preds = %52, %28
%37 = load i32, i32* %12
%38 = load i32, i32* %7
%39 = icmp ult i32 %37, %38
br i1 %39, label %40, label %55
40: ; preds = %36
%41 = load i32, i32* %12
%42 = load i32, i32* %8
%43 = mul i32 %41, %42
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %35, i64 %44
%46 = load i32, i32* %8
%47 = add i32 %46, 1
%48 = load i32*, i32** %9
%49 = call i32 @fgets(i8* %45, i32 %47, i32* %48)
%50 = load i32*, i32** %9
%51 = call i32 @fgetc(i32* %50)
br label %52
52: ; preds = %40
%53 = load i32, i32* %12
%54 = add nsw i32 %53, 1
store i32 %54, i32* %12
br label %36
55: ; preds = %36
%56 = load i32*, i32** %9
%57 = call i32 @fclose(i32* %56)
store i32 0, i32* %13
%58 = call i32 @strlen(i8* %35)
store i32 %58, i32* %14
store i32 0, i32* %15
br label %59
59: ; preds = %91, %55
%60 = load i32, i32* %15
%61 = load i32, i32* %14
%62 = load i32, i32* %5
%63 = sub i32 %61, %62
%64 = icmp ule i32 %60, %63
br i1 %64, label %65, label %94
65: ; preds = %59
store i32 1, i32* %16
store i32 0, i32* %17
br label %66
66: ; preds = %81, %65
%67 = load i32, i32* %17
%68 = load i32, i32* %5
%69 = icmp ult i32 %67, %68
br i1 %69, label %70, label %84
70: ; preds = %66
%71 = load i32, i32* %15
%72 = load i32, i32* %17
%73 = add nsw i32 %71, %72
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, i8* %35, i64 %74
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = sub nsw i32 %77, 48
%79 = load i32, i32* %16
%80 = mul i32 %79, %78
store i32 %80, i32* %16
br label %81
81: ; preds = %70
%82 = load i32, i32* %17
%83 = add nsw i32 %82, 1
store i32 %83, i32* %17
br label %66
84: ; preds = %66
%85 = load i32, i32* %16
%86 = load i32, i32* %13
%87 = icmp ugt i32 %85, %86
br i1 %87, label %88, label %90
88: ; preds = %84
%89 = load i32, i32* %16
store i32 %89, i32* %13
br label %90
90: ; preds = %88, %84
br label %91
91: ; preds = %90
%92 = load i32, i32* %15
%93 = add nsw i32 %92, 1
store i32 %93, i32* %15
br label %59
94: ; preds = %59
%95 = load i32, i32* %5
%96 = load i8*, i8** %6
%97 = load i32, i32* %13
%98 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.2, i64 0, i64 0), i32 %95, i8* %96, i32 %97)
%99 = load i8*, i8** %10
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [42 x i8] c"Error: the file \22%s\22 could not be opened.\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [84 x i8] c"Problem 8: The greatest product of %u consecutive digits in the string \22%s\22 is %u.\0A\00"
define void @problem8(i32 %0, i8* %1, i32 %2, i32 %3) {
%5 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = load i32, i32* @stderr
%9 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%10 = load i32, i32* @EXIT_FAILURE
%11 = tail call i32 @exit(i32 %10)
unreachable
12: ; preds = %4
%13 = mul i32 %3, %2
%14 = add i32 %13, 1
%15 = zext i32 %14 to i64
%16 = alloca i8, i64 %15
%17 = icmp eq i32 %2, 0
br i1 %17, label %21, label %18
18: ; preds = %12
%19 = add i32 %3, 1
%20 = zext i32 %2 to i64
br label %40
21: ; preds = %40, %12
%22 = call i32 @fclose(i32* %5)
%23 = call i32 @strlen(i8* %16)
%24 = icmp eq i32 %0, 0
%25 = add i32 %23, 1
%26 = sub i32 %25, %0
%27 = zext i32 %26 to i64
%28 = zext i32 %0 to i64
%29 = and i64 %28, 4294967288
%30 = add nsw i64 %29, -8
%31 = lshr exact i64 %30, 3
%32 = add nuw nsw i64 %31, 1
%33 = icmp ult i32 %0, 8
%34 = and i64 %28, 4294967288
%35 = and i64 %32, 1
%36 = icmp eq i64 %30, 0
%37 = and i64 %32, 4611686018427387902
%38 = icmp eq i64 %35, 0
%39 = icmp eq i64 %34, %28
br label %50
40: ; preds = %18, %40
%41 = phi i64 [ 0, %18 ], [ %48, %40 ]
%42 = trunc i64 %41 to i32
%43 = mul i32 %42, %3
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %16, i64 %44
%46 = call i32 @fgets(i8* %45, i32 %19, i32* %5)
%47 = call i32 @fgetc(i32* %5)
%48 = add nuw nsw i64 %41, 1
%49 = icmp eq i64 %48, %20
br i1 %49, label %21, label %40
50: ; preds = %21, %120
%51 = phi i64 [ 0, %21 ], [ %124, %120 ]
%52 = phi i32 [ 0, %21 ], [ %123, %120 ]
br i1 %24, label %120, label %53
53: ; preds = %50
br i1 %33, label %115, label %54
54: ; preds = %53
br i1 %36, label %90, label %55
55: ; preds = %54, %55
%56 = phi i64 [ %87, %55 ], [ 0, %54 ]
%57 = phi <4 x i32> [ %85, %55 ], [ <i32 1, i32 1, i32 1, i32 1>, %54 ]
%58 = phi <4 x i32> [ %86, %55 ], [ <i32 1, i32 1, i32 1, i32 1>, %54 ]
%59 = phi i64 [ %88, %55 ], [ 0, %54 ]
%60 = add nuw nsw i64 %56, %51
%61 = getelementptr inbounds i8, i8* %16, i64 %60
%62 = bitcast i8* %61 to <4 x i8>*
%63 = load <4 x i8>, <4 x i8>* %62
%64 = getelementptr inbounds i8, i8* %61, i64 4
%65 = bitcast i8* %64 to <4 x i8>*
%66 = load <4 x i8>, <4 x i8>* %65
%67 = sext <4 x i8> %63 to <4 x i32>
%68 = sext <4 x i8> %66 to <4 x i32>
%69 = add nsw <4 x i32> %67, <i32 -48, i32 -48, i32 -48, i32 -48>
%70 = add nsw <4 x i32> %68, <i32 -48, i32 -48, i32 -48, i32 -48>
%71 = mul <4 x i32> %69, %57
%72 = mul <4 x i32> %70, %58
%73 = or i64 %56, 8
%74 = add nuw nsw i64 %73, %51
%75 = getelementptr inbounds i8, i8* %16, i64 %74
%76 = bitcast i8* %75 to <4 x i8>*
%77 = load <4 x i8>, <4 x i8>* %76
%78 = getelementptr inbounds i8, i8* %75, i64 4
%79 = bitcast i8* %78 to <4 x i8>*
%80 = load <4 x i8>, <4 x i8>* %79
%81 = sext <4 x i8> %77 to <4 x i32>
%82 = sext <4 x i8> %80 to <4 x i32>
%83 = add nsw <4 x i32> %81, <i32 -48, i32 -48, i32 -48, i32 -48>
%84 = add nsw <4 x i32> %82, <i32 -48, i32 -48, i32 -48, i32 -48>
%85 = mul <4 x i32> %83, %71
%86 = mul <4 x i32> %84, %72
%87 = add nuw i64 %56, 16
%88 = add i64 %59, 2
%89 = icmp eq i64 %88, %37
br i1 %89, label %90, label %55
90: ; preds = %55, %54
%91 = phi <4 x i32> [ undef, %54 ], [ %85, %55 ]
%92 = phi <4 x i32> [ undef, %54 ], [ %86, %55 ]
%93 = phi i64 [ 0, %54 ], [ %87, %55 ]
%94 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %54 ], [ %85, %55 ]
%95 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %54 ], [ %86, %55 ]
br i1 %38, label %110, label %96
96: ; preds = %90
%97 = add nuw nsw i64 %93, %51
%98 = getelementptr inbounds i8, i8* %16, i64 %97
%99 = bitcast i8* %98 to <4 x i8>*
%100 = load <4 x i8>, <4 x i8>* %99
%101 = getelementptr inbounds i8, i8* %98, i64 4
%102 = bitcast i8* %101 to <4 x i8>*
%103 = load <4 x i8>, <4 x i8>* %102
%104 = sext <4 x i8> %100 to <4 x i32>
%105 = sext <4 x i8> %103 to <4 x i32>
%106 = add nsw <4 x i32> %104, <i32 -48, i32 -48, i32 -48, i32 -48>
%107 = add nsw <4 x i32> %105, <i32 -48, i32 -48, i32 -48, i32 -48>
%108 = mul <4 x i32> %106, %94
%109 = mul <4 x i32> %107, %95
br label %110
110: ; preds = %90, %96
%111 = phi <4 x i32> [ %91, %90 ], [ %108, %96 ]
%112 = phi <4 x i32> [ %92, %90 ], [ %109, %96 ]
%113 = mul <4 x i32> %112, %111
%114 = call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %113)
br i1 %39, label %120, label %115
115: ; preds = %53, %110
%116 = phi i64 [ 0, %53 ], [ %34, %110 ]
%117 = phi i32 [ 1, %53 ], [ %114, %110 ]
br label %126
118: ; preds = %120
%119 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.2, i64 0, i64 0), i32 %0, i8* %1, i32 %123)
ret void
120: ; preds = %126, %110, %50
%121 = phi i32 [ 1, %50 ], [ %114, %110 ], [ %134, %126 ]
%122 = icmp ugt i32 %121, %52
%123 = select i1 %122, i32 %121, i32 %52
%124 = add nuw nsw i64 %51, 1
%125 = icmp eq i64 %124, %27
br i1 %125, label %118, label %50
126: ; preds = %115, %126
%127 = phi i64 [ %135, %126 ], [ %116, %115 ]
%128 = phi i32 [ %134, %126 ], [ %117, %115 ]
%129 = add nuw nsw i64 %127, %51
%130 = getelementptr inbounds i8, i8* %16, i64 %129
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = add nsw i32 %132, -48
%134 = mul i32 %133, %128
%135 = add nuw nsw i64 %127, 1
%136 = icmp eq i64 %135, %28
br i1 %136, label %120, label %126
}