#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ system(char *);
int main(void) {
  char ns[1001];
  int i, j, product, max, n[5];
  strcpy(
      ns,
      "731671765313306249192251196744265747423553491949349698352031277450632623"
      "957831801698480186947885184385861560789112949495459501737958331952853208"
      "805511125406987471585238630507156932909632952274430435576689664895044524"
      "452316173185640309871112172238311362229893423380308135336276614282806444"
      "486645238749303589072962904915604407723907138105158593079608667017242712"
      "188399879790879227492190169972088809377665727333001053367881220235421809"
      "751254540594752243525849077116705560136048395864467063244157221553975369"
      "781797784617406495514929086256932197846862248283972241375657056057490261"
      "407972968652414535100474821663704844031998900088952434506585412275886668"
      "811642717147992444292823086346567481391912316282458617866458359124566529"
      "476545682848912883142607690042242190226710556263211111093705442175069416"
      "589604080719840385096245544436298123098787992724428490918884580156166097"
      "919133875499200524063689912560717606058861164671094050775410022569831552"
      "0005593572972571636269561882670428252483600823257530420752963450");
  max = 1;
  for (i = 0; i < 995; i++) {
    for (j = 0; j < 5; j++)
      n[j] = ns[i + j] - '0';
    product = n[0] * n[1] * n[2] * n[3] * n[4];
    if (max < product)
      max = product;
  }
  printf("Max 5-digit product: %d\n", max);
  system("PAUSE");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x3f0(%rbp),%rdi
lea    0xeb0(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x1,-0x400(%rbp)
movl   $0x0,-0x3f4(%rbp)
cmpl   $0x3e3,-0x3f4(%rbp)
jge    122a <main+0xfa>
movl   $0x0,-0x3f8(%rbp)
cmpl   $0x5,-0x3f8(%rbp)
jge    11cb <main+0x9b>
mov    -0x3f4(%rbp),%eax
add    -0x3f8(%rbp),%eax
cltq
movsbl -0x3f0(%rbp,%rax,1),%ecx
ff
sub    $0x30,%ecx
movslq -0x3f8(%rbp),%rax
mov    %ecx,-0x420(%rbp,%rax,4)
mov    -0x3f8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3f8(%rbp)
jmp    1183 <main+0x53>
mov    -0x420(%rbp),%eax
imul   -0x41c(%rbp),%eax
imul   -0x418(%rbp),%eax
imul   -0x414(%rbp),%eax
imul   -0x410(%rbp),%eax
mov    %eax,-0x3fc(%rbp)
mov    -0x400(%rbp),%eax
cmp    -0x3fc(%rbp),%eax
jge    1211 <main+0xe1>
mov    -0x3fc(%rbp),%eax
mov    %eax,-0x400(%rbp)
jmp    1216 <main+0xe6>
mov    -0x3f4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3f4(%rbp)
jmp    1169 <main+0x39>
mov    -0x400(%rbp),%esi
lea    0x11b2(%rip),%rdi
call   1050 <printf@plt>
lea    0x11bf(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x3f8,%rsp
lea    0xee2(%rip),%rsi
mov    %rsp,%rdi
call   1030 <strcpy@plt>
movd   (%rsp),%xmm8
pslld  $0x18,%xmm8
movdqa 0xea5(%rip),%xmm10
mov    $0x8,%eax
movdqa 0xea7(%rip),%xmm9
movdqa %xmm10,%xmm11
xchg   %ax,%ax
mov    -0x7(%rsp,%rax,1),%ecx
movd   %ecx,%xmm0
punpcklbw %xmm0,%xmm0
movd   %ecx,%xmm1
pshufd $0x44,%xmm0,%xmm2
pshuflw $0x0,%xmm2,%xmm2
pshufhw $0xa4,%xmm2,%xmm6
movss  %xmm8,%xmm6
movd   -0x3(%rsp,%rax,1),%xmm8
punpcklbw %xmm8,%xmm2
pshufd $0x44,%xmm2,%xmm3
psrad  $0x18,%xmm6
pshuflw $0x0,%xmm3,%xmm3
pshufhw $0xa4,%xmm3,%xmm7
paddd  %xmm9,%xmm6
movss  %xmm1,%xmm7
packssdw %xmm6,%xmm6
punpcklwd %xmm0,%xmm5
psrad  $0x18,%xmm5
psrad  $0x18,%xmm7
punpcklwd %xmm2,%xmm4
psrad  $0x18,%xmm4
paddd  %xmm9,%xmm5
paddd  %xmm9,%xmm7
packssdw %xmm5,%xmm5
paddd  %xmm9,%xmm4
packssdw %xmm4,%xmm4
packssdw %xmm7,%xmm7
movd   -0x6(%rsp,%rax,1),%xmm0
punpcklbw %xmm0,%xmm0
movd   -0x2(%rsp,%rax,1),%xmm1
punpcklwd %xmm0,%xmm0
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm12
movd   -0x5(%rsp,%rax,1),%xmm1
psrad  $0x18,%xmm0
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm3
movd   -0x1(%rsp,%rax,1),%xmm1
psrad  $0x18,%xmm12
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm13
psrad  $0x18,%xmm3
paddd  %xmm9,%xmm0
psrad  $0x18,%xmm13
movd   -0x4(%rsp,%rax,1),%xmm1
punpcklbw %xmm1,%xmm1
paddd  %xmm9,%xmm12
punpcklwd %xmm1,%xmm2
movq   (%rsp,%rax,1),%xmm1
punpcklbw %xmm1,%xmm1
paddd  %xmm9,%xmm3
punpcklwd %xmm1,%xmm14
psrad  $0x18,%xmm2
psrad  $0x18,%xmm14
paddd  %xmm9,%xmm13
paddd  %xmm9,%xmm2
movdqa %xmm5,%xmm1
pmulhw %xmm6,%xmm1
pmullw %xmm6,%xmm5
punpcklwd %xmm1,%xmm5
movdqa %xmm4,%xmm1
pmulhw %xmm7,%xmm1
pmullw %xmm7,%xmm4
punpcklwd %xmm1,%xmm4
pshufd $0xf5,%xmm5,%xmm1
pmuludq %xmm0,%xmm5
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm1,%xmm0
pshufd $0xf5,%xmm4,%xmm1
pmuludq %xmm12,%xmm4
pshufd $0xf5,%xmm12,%xmm6
pmuludq %xmm1,%xmm6
paddd  %xmm9,%xmm14
pshufd $0xf5,%xmm3,%xmm1
pmuludq %xmm3,%xmm5
pshufd $0xf5,%xmm13,%xmm3
pmuludq %xmm0,%xmm1
pmuludq %xmm6,%xmm3
pmuludq %xmm13,%xmm4
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm0
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm1,%xmm2
pshufd $0xe8,%xmm2,%xmm1
punpckldq %xmm1,%xmm0
pmuludq %xmm14,%xmm4
pshufd $0xf5,%xmm14,%xmm1
pmuludq %xmm3,%xmm1
pshufd $0xe8,%xmm4,%xmm2
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm1,%xmm2
movdqa %xmm10,%xmm1
pcmpgtd %xmm0,%xmm10
pand   %xmm10,%xmm1
pandn  %xmm0,%xmm10
por    %xmm1,%xmm10
movdqa %xmm11,%xmm0
pcmpgtd %xmm2,%xmm11
pand   %xmm11,%xmm0
pandn  %xmm2,%xmm11
por    %xmm0,%xmm11
add    $0x8,%rax
cmp    $0x3e8,%rax
jne    1170 <main+0x40>
movdqa %xmm10,%xmm0
pcmpgtd %xmm11,%xmm0
pand   %xmm0,%xmm10
pandn  %xmm11,%xmm0
por    %xmm10,%xmm0
pshufd $0xee,%xmm0,%xmm1
movdqa %xmm0,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm0
pandn  %xmm1,%xmm2
por    %xmm0,%xmm2
pshufd $0x55,%xmm2,%xmm0
movdqa %xmm2,%xmm1
pcmpgtd %xmm0,%xmm1
pand   %xmm1,%xmm2
pandn  %xmm0,%xmm1
por    %xmm2,%xmm1
movd   %xmm1,%esi
movd   %xmm8,%eax
sar    $0x18,%eax
add    $0xffffffd0,%eax
movsbl 0x3e1(%rsp),%edi
add    $0xffffffd0,%edi
movsbl 0x3e2(%rsp),%r8d
add    $0xffffffd0,%r8d
movsbl 0x3e3(%rsp),%ecx
add    $0xffffffd0,%ecx
movsbl 0x3e4(%rsp),%r9d
add    $0xffffffd0,%r9d
imul   %r8d,%edi
mov    %edi,%edx
imul   %ecx,%edx
imul   %r9d,%eax
imul   %edx,%eax
cmp    %eax,%esi
cmovge %esi,%eax
movsbl 0x3e5(%rsp),%esi
add    $0xffffffd0,%esi
mov    %ecx,%edx
imul   %r9d,%edx
imul   %edi,%edx
imul   %esi,%edx
cmp    %edx,%eax
cmovge %eax,%edx
movsbl 0x3e6(%rsp),%eax
add    $0xffffffd0,%eax
imul   %r8d,%ecx
imul   %r9d,%esi
imul   %ecx,%esi
imul   %eax,%esi
cmp    %esi,%edx
cmovge %edx,%esi
lea    0xfc5(%rip),%rdi
call   1050 <printf@plt>
lea    0xfd2(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x3f8,%rsp
ret

LLVM IR (-O0):
@.str = [1001 x i8] c"7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450\00"
@.str.1 = [25 x i8] c"Max 5-digit product: %d\0A\00"
@.str.2 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1001 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [5 x i32]
store i32 0, i32* %1
%8 = getelementptr inbounds [1001 x i8], [1001 x i8]* %2, i64 0, i64 0
%9 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([1001 x i8], [1001 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %6
store i32 0, i32* %3
br label %10
10: ; preds = %53, %0
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 995
br i1 %12, label %13, label %56
13: ; preds = %10
store i32 0, i32* %4
br label %14
14: ; preds = %29, %13
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 5
br i1 %16, label %17, label %32
17: ; preds = %14
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = add nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [1001 x i8], [1001 x i8]* %2, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = sub nsw i32 %24, 48
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 %27
store i32 %25, i32* %28
br label %29
29: ; preds = %17
%30 = load i32, i32* %4
%31 = add nsw i32 %30, 1
store i32 %31, i32* %4
br label %14
32: ; preds = %14
%33 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 0
%34 = load i32, i32* %33
%35 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 1
%36 = load i32, i32* %35
%37 = mul nsw i32 %34, %36
%38 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 2
%39 = load i32, i32* %38
%40 = mul nsw i32 %37, %39
%41 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 3
%42 = load i32, i32* %41
%43 = mul nsw i32 %40, %42
%44 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 4
%45 = load i32, i32* %44
%46 = mul nsw i32 %43, %45
store i32 %46, i32* %5
%47 = load i32, i32* %6
%48 = load i32, i32* %5
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %52
50: ; preds = %32
%51 = load i32, i32* %5
store i32 %51, i32* %6
br label %52
52: ; preds = %50, %32
br label %53
53: ; preds = %52
%54 = load i32, i32* %3
%55 = add nsw i32 %54, 1
store i32 %55, i32* %3
br label %10
56: ; preds = %10
%57 = load i32, i32* %6
%58 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %57)
%59 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [1001 x i8] c"7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450\00"
@.str.1 = [25 x i8] c"Max 5-digit product: %d\0A\00"
@.str.2 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca [1001 x i8]
%2 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 0
%3 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([1001 x i8], [1001 x i8]* @.str, i64 0, i64 0))
%4 = load i8, i8* %2
%5 = insertelement <4 x i8> poison, i8 %4, i64 3
br label %6
6: ; preds = %6, %0
%7 = phi i64 [ 0, %0 ], [ %73, %6 ]
%8 = phi <4 x i8> [ %5, %0 ], [ %17, %6 ]
%9 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %0 ], [ %71, %6 ]
%10 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %0 ], [ %72, %6 ]
%11 = or i64 %7, 1
%12 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 %11
%13 = bitcast i8* %12 to <4 x i8>*
%14 = load <4 x i8>, <4 x i8>* %13
%15 = getelementptr inbounds i8, i8* %12, i64 4
%16 = bitcast i8* %15 to <4 x i8>*
%17 = load <4 x i8>, <4 x i8>* %16
%18 = shufflevector <4 x i8> %8, <4 x i8> %14, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
%19 = shufflevector <4 x i8> %14, <4 x i8> %17, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
%20 = sext <4 x i8> %18 to <4 x i32>
%21 = sext <4 x i8> %19 to <4 x i32>
%22 = add nsw <4 x i32> %20, <i32 -48, i32 -48, i32 -48, i32 -48>
%23 = add nsw <4 x i32> %21, <i32 -48, i32 -48, i32 -48, i32 -48>
%24 = sext <4 x i8> %14 to <4 x i32>
%25 = sext <4 x i8> %17 to <4 x i32>
%26 = add nsw <4 x i32> %24, <i32 -48, i32 -48, i32 -48, i32 -48>
%27 = add nsw <4 x i32> %25, <i32 -48, i32 -48, i32 -48, i32 -48>
%28 = or i64 %7, 2
%29 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 %28
%30 = bitcast i8* %29 to <4 x i8>*
%31 = load <4 x i8>, <4 x i8>* %30
%32 = getelementptr inbounds i8, i8* %29, i64 4
%33 = bitcast i8* %32 to <4 x i8>*
%34 = load <4 x i8>, <4 x i8>* %33
%35 = sext <4 x i8> %31 to <4 x i32>
%36 = sext <4 x i8> %34 to <4 x i32>
%37 = add nsw <4 x i32> %35, <i32 -48, i32 -48, i32 -48, i32 -48>
%38 = add nsw <4 x i32> %36, <i32 -48, i32 -48, i32 -48, i32 -48>
%39 = or i64 %7, 3
%40 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 %39
%41 = bitcast i8* %40 to <4 x i8>*
%42 = load <4 x i8>, <4 x i8>* %41
%43 = getelementptr inbounds i8, i8* %40, i64 4
%44 = bitcast i8* %43 to <4 x i8>*
%45 = load <4 x i8>, <4 x i8>* %44
%46 = sext <4 x i8> %42 to <4 x i32>
%47 = sext <4 x i8> %45 to <4 x i32>
%48 = add nsw <4 x i32> %46, <i32 -48, i32 -48, i32 -48, i32 -48>
%49 = add nsw <4 x i32> %47, <i32 -48, i32 -48, i32 -48, i32 -48>
%50 = or i64 %7, 4
%51 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 %50
%52 = bitcast i8* %51 to <4 x i8>*
%53 = load <4 x i8>, <4 x i8>* %52
%54 = getelementptr inbounds i8, i8* %51, i64 4
%55 = bitcast i8* %54 to <4 x i8>*
%56 = load <4 x i8>, <4 x i8>* %55
%57 = sext <4 x i8> %53 to <4 x i32>
%58 = sext <4 x i8> %56 to <4 x i32>
%59 = add nsw <4 x i32> %57, <i32 -48, i32 -48, i32 -48, i32 -48>
%60 = add nsw <4 x i32> %58, <i32 -48, i32 -48, i32 -48, i32 -48>
%61 = mul nsw <4 x i32> %26, %22
%62 = mul nsw <4 x i32> %27, %23
%63 = mul nsw <4 x i32> %61, %37
%64 = mul nsw <4 x i32> %62, %38
%65 = mul nsw <4 x i32> %63, %48
%66 = mul nsw <4 x i32> %64, %49
%67 = mul nsw <4 x i32> %65, %59
%68 = mul nsw <4 x i32> %66, %60
%69 = icmp slt <4 x i32> %9, %67
%70 = icmp slt <4 x i32> %10, %68
%71 = select <4 x i1> %69, <4 x i32> %67, <4 x i32> %9
%72 = select <4 x i1> %70, <4 x i32> %68, <4 x i32> %10
%73 = add nuw i64 %7, 8
%74 = icmp eq i64 %73, 992
br i1 %74, label %75, label %6
75: ; preds = %6
%76 = icmp sgt <4 x i32> %71, %72
%77 = select <4 x i1> %76, <4 x i32> %71, <4 x i32> %72
%78 = call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %77)
%79 = extractelement <4 x i8> %17, i64 3
%80 = sext i8 %79 to i32
%81 = add nsw i32 %80, -48
%82 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 993
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = add nsw i32 %84, -48
%86 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 994
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = add nsw i32 %88, -48
%90 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 995
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = add nsw i32 %92, -48
%94 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 996
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = add nsw i32 %96, -48
%98 = mul nsw i32 %85, %81
%99 = mul nsw i32 %98, %89
%100 = mul nsw i32 %99, %93
%101 = mul nsw i32 %100, %97
%102 = icmp slt i32 %78, %101
%103 = select i1 %102, i32 %101, i32 %78
%104 = sext i8 %83 to i32
%105 = add nsw i32 %104, -48
%106 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 994
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = add nsw i32 %108, -48
%110 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 995
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = add nsw i32 %112, -48
%114 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 996
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = add nsw i32 %116, -48
%118 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 997
%119 = load i8, i8* %118
%120 = sext i8 %119 to i32
%121 = add nsw i32 %120, -48
%122 = mul nsw i32 %109, %105
%123 = mul nsw i32 %122, %113
%124 = mul nsw i32 %123, %117
%125 = mul nsw i32 %124, %121
%126 = icmp slt i32 %103, %125
%127 = select i1 %126, i32 %125, i32 %103
%128 = sext i8 %107 to i32
%129 = add nsw i32 %128, -48
%130 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 995
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = add nsw i32 %132, -48
%134 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 996
%135 = load i8, i8* %134
%136 = sext i8 %135 to i32
%137 = add nsw i32 %136, -48
%138 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 997
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = add nsw i32 %140, -48
%142 = getelementptr inbounds [1001 x i8], [1001 x i8]* %1, i64 0, i64 998
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = add nsw i32 %144, -48
%146 = mul nsw i32 %133, %129
%147 = mul nsw i32 %146, %137
%148 = mul nsw i32 %147, %141
%149 = mul nsw i32 %148, %145
%150 = icmp slt i32 %127, %149
%151 = select i1 %150, i32 %149, i32 %127
%152 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %151)
%153 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}