#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *, int *, int *,
                          int *, int *);
int main() {
  int minpr = 99999999;
  int n, i;
  int price;
  int a = 0, b = 0, c = 0, d = 0;
  FILE *in = fopen("tickets.in", "r");
  FILE *out = fopen("tickets.out", "w");
  fscanf(in, "%d%d%d%d%d", &n, &a, &b, &c, &d);
  for (i = n; i <= d * d; i++) {
    if (i < a) {
      price = i * 10;
    }
    if (i >= a) {
      price = i * 9;
    }
    if (i >= b) {
      price = i * 8;
    }
    if (i >= c) {
      price = i * 7;
    }
    if (i >= d) {
      price = i * 5;
    }
    if (price <= minpr) {
      minpr = price;
    }
  }
  fprintf(out, "%d\n", minpr);
  fclose(in);
  fclose(out);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5f5e0ff,-0x8(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xe87(%rip),%rdi
lea    0xe8b(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x30(%rbp)
lea    0xe7d(%rip),%rdi
lea    0xe82(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xe70(%rip),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x18(%rbp),%rcx
lea    -0x1c(%rbp),%r8
lea    -0x20(%rbp),%r9
lea    -0x24(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <fscanf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    -0x24(%rbp),%ecx
imul   -0x24(%rbp),%ecx
cmp    %ecx,%eax
jg     1266 <main+0x126>
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11f3 <main+0xb3>
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     1206 <main+0xc6>
imul   $0x9,-0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jl     121b <main+0xdb>
mov    -0x10(%rbp),%eax
shl    $0x3,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x20(%rbp),%eax
jl     122e <main+0xee>
imul   $0x7,-0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x24(%rbp),%eax
jl     1241 <main+0x101>
imul   $0x5,-0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1253 <main+0x113>
mov    -0x14(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1258 <main+0x118>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11ce <main+0x8e>
mov    -0x38(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xdb2(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x38(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movl   $0x0,0x20(%rsp)
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x14(%rsp)
lea    0xedb(%rip),%rdi
lea    0xedf(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%r14
lea    0xed2(%rip),%rdi
lea    0xed7(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%r15
lea    0x14(%rsp),%rax
mov    %rax,(%rsp)
lea    0xec1(%rip),%rsi
lea    0x24(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x1c(%rsp),%r8
lea    0x18(%rsp),%r9
mov    %r14,%rdi
call   1040 <fscanf@plt>
mov    0x24(%rsp),%eax
mov    0x14(%rsp),%r13d
mov    %r13d,%esi
imul   %r13d,%esi
mov    $0x5f5e0ff,%edx
cmp    %esi,%eax
jg     1485 <main+0x345>
mov    0x20(%rsp),%r8d
mov    0x1c(%rsp),%r11d
mov    0x18(%rsp),%r12d
add    $0x1,%esi
mov    %esi,%r9d
sub    %eax,%r9d
mov    $0x5f5e0ff,%edx
cmp    $0x8,%r9d
jb     1433 <main+0x2f3>
mov    %r9d,%r10d
and    $0xfffffff8,%r10d
movd   %eax,%xmm0
add    %r10d,%eax
pshufd $0x0,%xmm0,%xmm1
paddd  0xddb(%rip),%xmm1
movd   %r8d,%xmm0
pshufd $0x0,%xmm0,%xmm11
movd   %r11d,%xmm0
pshufd $0x0,%xmm0,%xmm12
movd   %r12d,%xmm0
pshufd $0x0,%xmm0,%xmm13
movd   %r13d,%xmm0
pshufd $0x0,%xmm0,%xmm14
movdqa 0xdb6(%rip),%xmm15
movdqa 0xdbd(%rip),%xmm8
movdqa 0xdc4(%rip),%xmm10
movdqa 0xdcb(%rip),%xmm9
mov    %r10d,%edx
movdqa %xmm15,%xmm6
nopl   (%rax)
movdqa %xmm1,%xmm0
paddd  %xmm8,%xmm0
movdqa %xmm11,%xmm2
pcmpgtd %xmm1,%xmm2
movdqa %xmm10,%xmm3
psubd  %xmm2,%xmm3
movdqa %xmm11,%xmm2
pcmpgtd %xmm0,%xmm2
movdqa %xmm10,%xmm4
psubd  %xmm2,%xmm4
pshufd $0xf5,%xmm3,%xmm2
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm5
pshufd $0xf5,%xmm1,%xmm3
pmuludq %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm2
punpckldq %xmm2,%xmm5
pshufd $0xf5,%xmm4,%xmm2
pmuludq %xmm0,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm0,%xmm3
pmuludq %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm2
punpckldq %xmm2,%xmm4
movdqa %xmm12,%xmm2
pcmpgtd %xmm1,%xmm2
movdqa %xmm12,%xmm3
pcmpgtd %xmm0,%xmm3
movdqa %xmm1,%xmm7
pslld  $0x3,%xmm7
pand   %xmm2,%xmm5
pandn  %xmm7,%xmm2
por    %xmm5,%xmm2
movdqa %xmm0,%xmm5
pslld  $0x3,%xmm5
pand   %xmm3,%xmm4
pandn  %xmm5,%xmm3
por    %xmm4,%xmm3
movdqa %xmm13,%xmm4
pcmpgtd %xmm1,%xmm4
psubd  %xmm1,%xmm7
pand   %xmm4,%xmm2
pandn  %xmm7,%xmm4
movdqa %xmm13,%xmm7
pcmpgtd %xmm0,%xmm7
psubd  %xmm0,%xmm5
por    %xmm2,%xmm4
pand   %xmm7,%xmm3
pandn  %xmm5,%xmm7
por    %xmm3,%xmm7
movdqa %xmm14,%xmm2
pcmpgtd %xmm1,%xmm2
movdqa %xmm14,%xmm3
pcmpgtd %xmm0,%xmm3
movdqa %xmm0,%xmm5
pslld  $0x2,%xmm5
paddd  %xmm0,%xmm5
movdqa %xmm1,%xmm0
pslld  $0x2,%xmm0
paddd  %xmm1,%xmm0
pand   %xmm2,%xmm4
pandn  %xmm0,%xmm2
por    %xmm4,%xmm2
pand   %xmm3,%xmm7
pandn  %xmm5,%xmm3
por    %xmm7,%xmm3
movdqa %xmm15,%xmm0
pcmpgtd %xmm2,%xmm0
pand   %xmm0,%xmm2
pandn  %xmm15,%xmm0
movdqa %xmm0,%xmm15
por    %xmm2,%xmm15
movdqa %xmm6,%xmm0
pcmpgtd %xmm3,%xmm0
pand   %xmm0,%xmm3
pandn  %xmm6,%xmm0
movdqa %xmm0,%xmm6
por    %xmm3,%xmm6
paddd  %xmm9,%xmm1
add    $0xfffffff8,%edx
jne    1280 <main+0x140>
movdqa %xmm6,%xmm0
pcmpgtd %xmm15,%xmm0
pand   %xmm0,%xmm15
pandn  %xmm6,%xmm0
por    %xmm15,%xmm0
pshufd $0xee,%xmm0,%xmm1
movdqa %xmm1,%xmm2
pcmpgtd %xmm0,%xmm2
pand   %xmm2,%xmm0
pandn  %xmm1,%xmm2
por    %xmm0,%xmm2
pshufd $0x55,%xmm2,%xmm0
movdqa %xmm0,%xmm1
pcmpgtd %xmm2,%xmm1
pand   %xmm1,%xmm2
pandn  %xmm0,%xmm1
por    %xmm2,%xmm1
movd   %xmm1,%edx
cmp    %r10d,%r9d
je     1485 <main+0x345>
lea    0x0(,%rax,8),%edi
mov    %edi,%ebx
sub    %eax,%ebx
lea    (%rax,%rax,4),%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %ecx,%ecx
cmp    %r8d,%eax
setl   %cl
add    $0x9,%ecx
imul   %eax,%ecx
cmp    %r11d,%eax
cmovge %edi,%ecx
cmp    %r12d,%eax
cmovge %ebx,%ecx
cmp    %r13d,%eax
cmovge %ebp,%ecx
cmp    %edx,%ecx
cmovle %ecx,%edx
add    $0x1,%eax
add    $0x7,%ebx
add    $0x5,%ebp
add    $0x8,%edi
cmp    %eax,%esi
jne    1450 <main+0x310>
lea    0xbea(%rip),%rsi
mov    %r15,%rdi
call   1050 <fprintf@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
mov    %r15,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"tickets.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [12 x i8] c"tickets.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [11 x i8] c"%d%d%d%d%d\00"
@.str.5 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i32*
store i32 0, i32* %1
store i32 99999999, i32* %2
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
%12 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %12, i32** %10
%13 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %13, i32** %11
%14 = load i32*, i32** %10
%15 = call i32 @fscanf(i32* %14, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32* %3, i32* %6, i32* %7, i32* %8, i32* %9)
%16 = load i32, i32* %3
store i32 %16, i32* %4
br label %17
17: ; preds = %65, %0
%18 = load i32, i32* %4
%19 = load i32, i32* %9
%20 = load i32, i32* %9
%21 = mul nsw i32 %19, %20
%22 = icmp sle i32 %18, %21
br i1 %22, label %23, label %68
23: ; preds = %17
%24 = load i32, i32* %4
%25 = load i32, i32* %6
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, i32* %4
%29 = mul nsw i32 %28, 10
store i32 %29, i32* %5
br label %30
30: ; preds = %27, %23
%31 = load i32, i32* %4
%32 = load i32, i32* %6
%33 = icmp sge i32 %31, %32
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load i32, i32* %4
%36 = mul nsw i32 %35, 9
store i32 %36, i32* %5
br label %37
37: ; preds = %34, %30
%38 = load i32, i32* %4
%39 = load i32, i32* %7
%40 = icmp sge i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = load i32, i32* %4
%43 = mul nsw i32 %42, 8
store i32 %43, i32* %5
br label %44
44: ; preds = %41, %37
%45 = load i32, i32* %4
%46 = load i32, i32* %8
%47 = icmp sge i32 %45, %46
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = load i32, i32* %4
%50 = mul nsw i32 %49, 7
store i32 %50, i32* %5
br label %51
51: ; preds = %48, %44
%52 = load i32, i32* %4
%53 = load i32, i32* %9
%54 = icmp sge i32 %52, %53
br i1 %54, label %55, label %58
55: ; preds = %51
%56 = load i32, i32* %4
%57 = mul nsw i32 %56, 5
store i32 %57, i32* %5
br label %58
58: ; preds = %55, %51
%59 = load i32, i32* %5
%60 = load i32, i32* %2
%61 = icmp sle i32 %59, %60
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = load i32, i32* %5
store i32 %63, i32* %2
br label %64
64: ; preds = %62, %58
br label %65
65: ; preds = %64
%66 = load i32, i32* %4
%67 = add nsw i32 %66, 1
store i32 %67, i32* %4
br label %17
68: ; preds = %17
%69 = load i32*, i32** %11
%70 = load i32, i32* %2
%71 = call i32 @fprintf(i32* %69, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %70)
%72 = load i32*, i32** %10
%73 = call i32 @fclose(i32* %72)
%74 = load i32*, i32** %11
%75 = call i32 @fclose(i32* %74)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"tickets.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [12 x i8] c"tickets.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [11 x i8] c"%d%d%d%d%d\00"
@.str.5 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%8 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%9 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%10 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%11 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @fscanf(i32* %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32* %1, i32* %2, i32* %3, i32* %4, i32* %5)
%14 = load i32, i32* %1
%15 = load i32, i32* %5
%16 = mul i32 %15, %15
%17 = icmp sgt i32 %14, %16
br i1 %17, label %111, label %18
18: ; preds = %0
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = load i32, i32* %4
%22 = add i32 %16, 1
%23 = sub i32 %22, %14
%24 = icmp ult i32 %23, 8
br i1 %24, label %89, label %25
25: ; preds = %18
%26 = and i32 %23, -8
%27 = add i32 %14, %26
%28 = insertelement <4 x i32> poison, i32 %14, i64 0
%29 = shufflevector <4 x i32> %28, <4 x i32> poison, <4 x i32> zeroinitializer
%30 = add <4 x i32> %29, <i32 0, i32 1, i32 2, i32 3>
%31 = insertelement <4 x i32> poison, i32 %19, i64 0
%32 = shufflevector <4 x i32> %31, <4 x i32> poison, <4 x i32> zeroinitializer
%33 = insertelement <4 x i32> poison, i32 %19, i64 0
%34 = shufflevector <4 x i32> %33, <4 x i32> poison, <4 x i32> zeroinitializer
%35 = insertelement <4 x i32> poison, i32 %20, i64 0
%36 = shufflevector <4 x i32> %35, <4 x i32> poison, <4 x i32> zeroinitializer
%37 = insertelement <4 x i32> poison, i32 %20, i64 0
%38 = shufflevector <4 x i32> %37, <4 x i32> poison, <4 x i32> zeroinitializer
%39 = insertelement <4 x i32> poison, i32 %21, i64 0
%40 = shufflevector <4 x i32> %39, <4 x i32> poison, <4 x i32> zeroinitializer
%41 = insertelement <4 x i32> poison, i32 %21, i64 0
%42 = shufflevector <4 x i32> %41, <4 x i32> poison, <4 x i32> zeroinitializer
%43 = insertelement <4 x i32> poison, i32 %15, i64 0
%44 = shufflevector <4 x i32> %43, <4 x i32> poison, <4 x i32> zeroinitializer
%45 = insertelement <4 x i32> poison, i32 %15, i64 0
%46 = shufflevector <4 x i32> %45, <4 x i32> poison, <4 x i32> zeroinitializer
br label %47
47: ; preds = %47, %25
%48 = phi i32 [ 0, %25 ], [ %81, %47 ]
%49 = phi <4 x i32> [ <i32 99999999, i32 99999999, i32 99999999, i32 99999999>, %25 ], [ %79, %47 ]
%50 = phi <4 x i32> [ <i32 99999999, i32 99999999, i32 99999999, i32 99999999>, %25 ], [ %80, %47 ]
%51 = phi <4 x i32> [ %30, %25 ], [ %82, %47 ]
%52 = add <4 x i32> %51, <i32 4, i32 4, i32 4, i32 4>
%53 = icmp slt <4 x i32> %51, %32
%54 = icmp slt <4 x i32> %52, %34
%55 = select <4 x i1> %53, <4 x i32> <i32 10, i32 10, i32 10, i32 10>, <4 x i32> <i32 9, i32 9, i32 9, i32 9>
%56 = select <4 x i1> %54, <4 x i32> <i32 10, i32 10, i32 10, i32 10>, <4 x i32> <i32 9, i32 9, i32 9, i32 9>
%57 = mul nsw <4 x i32> %55, %51
%58 = mul nsw <4 x i32> %56, %52
%59 = icmp slt <4 x i32> %51, %36
%60 = icmp slt <4 x i32> %52, %38
%61 = shl nsw <4 x i32> %51, <i32 3, i32 3, i32 3, i32 3>
%62 = shl nsw <4 x i32> %52, <i32 3, i32 3, i32 3, i32 3>
%63 = select <4 x i1> %59, <4 x i32> %57, <4 x i32> %61
%64 = select <4 x i1> %60, <4 x i32> %58, <4 x i32> %62
%65 = icmp slt <4 x i32> %51, %40
%66 = icmp slt <4 x i32> %52, %42
%67 = mul nsw <4 x i32> %51, <i32 7, i32 7, i32 7, i32 7>
%68 = mul nsw <4 x i32> %52, <i32 7, i32 7, i32 7, i32 7>
%69 = select <4 x i1> %65, <4 x i32> %63, <4 x i32> %67
%70 = select <4 x i1> %66, <4 x i32> %64, <4 x i32> %68
%71 = icmp slt <4 x i32> %51, %44
%72 = icmp slt <4 x i32> %52, %46
%73 = mul nsw <4 x i32> %51, <i32 5, i32 5, i32 5, i32 5>
%74 = mul nsw <4 x i32> %52, <i32 5, i32 5, i32 5, i32 5>
%75 = select <4 x i1> %71, <4 x i32> %69, <4 x i32> %73
%76 = select <4 x i1> %72, <4 x i32> %70, <4 x i32> %74
%77 = icmp sgt <4 x i32> %75, %49
%78 = icmp sgt <4 x i32> %76, %50
%79 = select <4 x i1> %77, <4 x i32> %49, <4 x i32> %75
%80 = select <4 x i1> %78, <4 x i32> %50, <4 x i32> %76
%81 = add nuw i32 %48, 8
%82 = add <4 x i32> %51, <i32 8, i32 8, i32 8, i32 8>
%83 = icmp eq i32 %81, %26
br i1 %83, label %84, label %47
84: ; preds = %47
%85 = icmp slt <4 x i32> %79, %80
%86 = select <4 x i1> %85, <4 x i32> %79, <4 x i32> %80
%87 = call i32 @llvm.vector.reduce.smin.v4i32(<4 x i32> %86)
%88 = icmp eq i32 %23, %26
br i1 %88, label %111, label %89
89: ; preds = %18, %84
%90 = phi i32 [ 99999999, %18 ], [ %87, %84 ]
%91 = phi i32 [ %14, %18 ], [ %27, %84 ]
br label %92
92: ; preds = %89, %92
%93 = phi i32 [ %108, %92 ], [ %90, %89 ]
%94 = phi i32 [ %109, %92 ], [ %91, %89 ]
%95 = icmp slt i32 %94, %19
%96 = select i1 %95, i32 10, i32 9
%97 = mul nsw i32 %96, %94
%98 = icmp slt i32 %94, %20
%99 = shl nsw i32 %94, 3
%100 = select i1 %98, i32 %97, i32 %99
%101 = icmp slt i32 %94, %21
%102 = mul nsw i32 %94, 7
%103 = select i1 %101, i32 %100, i32 %102
%104 = icmp slt i32 %94, %15
%105 = mul nsw i32 %94, 5
%106 = select i1 %104, i32 %103, i32 %105
%107 = icmp sgt i32 %106, %93
%108 = select i1 %107, i32 %93, i32 %106
%109 = add i32 %94, 1
%110 = icmp eq i32 %94, %16
br i1 %110, label %111, label %92
111: ; preds = %92, %84, %0
%112 = phi i32 [ 99999999, %0 ], [ %87, %84 ], [ %108, %92 ]
%113 = call i32 @fprintf(i32* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %112)
%114 = call i32 @fclose(i32* %11)
%115 = call i32 @fclose(i32* %12)
ret i32 0
}