#import <stdio.h>
#import <limits.h>
#define INT long long
#define MIN(a,b) ((a)<(b)?(a):(b))
INT Q,H,S,D,N;
INT f(INT y, INT z, INT w){
    if (y+2*z+4*w>2*N) {
        return LONG_MAX;
    }
    return 4*Q*N + (H-2*Q)*y + (S-4*Q)*z + (D-8*Q)*w;
}
int main(){
    scanf("%lld %lld %lld %lld %lld",&Q,&H,&S,&D,&N);
    INT min = f(0,0,0);
    min = MIN(min, f(2*N,0,0));
    min = MIN(min, f(2*N,0,1));
    min = MIN(min, f(2*N,1,0));
    min = MIN(min, f(0,N,0));
    min = MIN(min, f(1,N,0));
    min = MIN(min, f(0,N,1));
    min = MIN(min, f(0,0,N/2));
    min = MIN(min, f(1,0,N/2));
    min = MIN(min, f(2,0,N/2));
    min = MIN(min, f(3,0,N/2));
    min = MIN(min, f(0,1,N/2));
    min = MIN(min, f(0,2,N/2));
    min = MIN(min, f(0,3,N/2));
    min = MIN(min, f(1,1,N/2));
    min = MIN(min, f(1,2,N/2));
    min = MIN(min, f(2,1,N/2));
    min = MIN(min, f(2,2,N/2));
    printf("%lld",min);
}

; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_722/source.m'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_722/source.m"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

@N = dso_local global i64 0, align 8
@Q = dso_local global i64 0, align 8
@H = dso_local global i64 0, align 8
@S = dso_local global i64 0, align 8
@D = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [25 x i8] c"%lld %lld %lld %lld %lld\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i64 @f(i64 noundef %y, i64 noundef %z, i64 noundef %w) local_unnamed_addr #0 {
entry:
  %mul = shl nsw i64 %z, 1
  %add = add nsw i64 %mul, %y
  %mul1 = shl nsw i64 %w, 2
  %add2 = add nsw i64 %add, %mul1
  %0 = load i64, ptr @N, align 8, !tbaa !5
  %mul3 = shl nsw i64 %0, 1
  %cmp = icmp sgt i64 %add2, %mul3
  br i1 %cmp, label %return, label %if.end

if.end:                                           ; preds = %entry
  %1 = load i64, ptr @Q, align 8, !tbaa !5
  %mul4 = shl nsw i64 %1, 2
  %mul5 = mul nsw i64 %mul4, %0
  %2 = load i64, ptr @H, align 8, !tbaa !5
  %mul6 = shl nsw i64 %1, 1
  %sub = sub nsw i64 %2, %mul6
  %mul7 = mul nsw i64 %sub, %y
  %add8 = add nsw i64 %mul7, %mul5
  %3 = load i64, ptr @S, align 8, !tbaa !5
  %sub10 = sub nsw i64 %3, %mul4
  %mul11 = mul nsw i64 %sub10, %z
  %add12 = add nsw i64 %add8, %mul11
  %4 = load i64, ptr @D, align 8, !tbaa !5
  %mul13 = shl nsw i64 %1, 3
  %sub14 = sub nsw i64 %4, %mul13
  %mul15 = mul nsw i64 %sub14, %w
  %add16 = add nsw i64 %add12, %mul15
  br label %return

return:                                           ; preds = %entry, %if.end
  %retval.0 = phi i64 [ %add16, %if.end ], [ 9223372036854775807, %entry ]
  ret i64 %retval.0
}

; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #1 {
entry:
  %call = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @Q, ptr noundef nonnull @H, ptr noundef nonnull @S, ptr noundef nonnull @D, ptr noundef nonnull @N)
  %0 = load i64, ptr @N, align 8, !tbaa !5
  %mul3.i = shl nsw i64 %0, 1
  %cmp.i = icmp sgt i64 %0, -1
  %1 = load i64, ptr @Q, align 8
  %mul4.i = shl i64 %0, 2
  %mul5.i = mul i64 %mul4.i, %1
  %2 = load i64, ptr @H, align 8, !tbaa !5
  %mul6.i182 = shl i64 %1, 1
  %sub.i183 = sub i64 %2, %mul6.i182
  %mul7.i = mul nsw i64 %sub.i183, %mul3.i
  %cmp851 = icmp sgt i64 %mul7.i, 0
  %cmp = select i1 %cmp.i, i1 %cmp851, i1 false
  %add8.i = select i1 %cmp, i64 0, i64 %mul7.i
  %spec.select = add nsw i64 %mul5.i, %add8.i
  %3 = load i64, ptr @S, align 8, !tbaa !5
  %add12.i271 = mul i64 %3, %0
  %cmp24 = icmp slt i64 %spec.select, %add12.i271
  br i1 %cmp24, label %cond.end42, label %f.exit307

f.exit307:                                        ; preds = %entry
  %cmp31.not = icmp eq i64 %add12.i271, 9223372036854775807
  br i1 %cmp31.not, label %cond.end42.thread, label %cond.end42

cond.end42:                                       ; preds = %entry, %f.exit307
  %cond36.ph = phi i64 [ %add12.i271, %f.exit307 ], [ %spec.select, %entry ]
  %div = sdiv i64 %0, 2
  %mul1.i = shl nsw i64 %div, 2
  %cmp.i360 = icmp sgt i64 %mul1.i, %mul3.i
  br i1 %cmp.i360, label %cond.end50, label %f.exit371.thread

cond.end42.thread:                                ; preds = %f.exit307
  %div785 = sdiv i64 %0, 2
  %mul1.i786 = shl nsw i64 %div785, 2
  %cmp.i360787 = icmp sgt i64 %mul1.i786, %mul3.i
  br i1 %cmp.i360787, label %cond.end50.thread, label %f.exit371.thread.thread

f.exit371.thread.thread:                          ; preds = %cond.end42.thread
  %4 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i367843 = shl nsw i64 %1, 3
  %sub14.i368844 = sub nsw i64 %4, %mul13.i367843
  %mul15.i845 = mul nsw i64 %sub14.i368844, %div785
  %add16.i369846 = add nsw i64 %mul15.i845, %mul5.i
  br label %if.end.i375

f.exit371.thread:                                 ; preds = %cond.end42
  %5 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i367 = shl nsw i64 %1, 3
  %sub14.i368 = sub nsw i64 %5, %mul13.i367
  %mul15.i = mul nsw i64 %sub14.i368, %div
  %add16.i369 = add nsw i64 %mul15.i, %mul5.i
  %cmp45763 = icmp slt i64 %cond36.ph, %add16.i369
  br i1 %cmp45763, label %cond.end50, label %if.end.i375

if.end.i375:                                      ; preds = %f.exit371.thread.thread, %f.exit371.thread
  %add16.i369850 = phi i64 [ %add16.i369846, %f.exit371.thread.thread ], [ %add16.i369, %f.exit371.thread ]
  %div790849 = phi i64 [ %div785, %f.exit371.thread.thread ], [ %div, %f.exit371.thread ]
  %mul1.i796848 = phi i64 [ %mul1.i786, %f.exit371.thread.thread ], [ %mul1.i, %f.exit371.thread ]
  br label %cond.end50

cond.end50:                                       ; preds = %if.end.i375, %cond.end42, %f.exit371.thread
  %mul1.i795 = phi i64 [ %mul1.i, %f.exit371.thread ], [ %mul1.i, %cond.end42 ], [ %mul1.i796848, %if.end.i375 ]
  %div792 = phi i64 [ %div, %f.exit371.thread ], [ %div, %cond.end42 ], [ %div790849, %if.end.i375 ]
  %cond51 = phi i64 [ %cond36.ph, %f.exit371.thread ], [ %cond36.ph, %cond.end42 ], [ %add16.i369850, %if.end.i375 ]
  %cmp.i390.not = icmp slt i64 %mul1.i795, %mul3.i
  br i1 %cmp.i390.not, label %f.exit403.thread, label %f.exit403

cond.end50.thread:                                ; preds = %cond.end42.thread
  %add2.i388806 = or i64 %mul1.i786, 1
  %cmp.i390807 = icmp sgt i64 %add2.i388806, %mul3.i
  br i1 %cmp.i390807, label %f.exit420, label %f.exit403.thread

f.exit403:                                        ; preds = %cond.end50
  %cmp54.not = icmp eq i64 %cond51, 9223372036854775807
  br i1 %cmp54.not, label %f.exit420, label %cond.end59

f.exit403.thread:                                 ; preds = %cond.end50, %cond.end50.thread
  %cond51817 = phi i64 [ 9223372036854775807, %cond.end50.thread ], [ %cond51, %cond.end50 ]
  %div792812 = phi i64 [ %div785, %cond.end50.thread ], [ %div792, %cond.end50 ]
  %mul1.i795810 = phi i64 [ %mul1.i786, %cond.end50.thread ], [ %mul1.i795, %cond.end50 ]
  %add8.i396 = add nsw i64 %sub.i183, %mul5.i
  %6 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i398 = shl nsw i64 %1, 3
  %sub14.i399 = sub nsw i64 %6, %mul13.i398
  %mul15.i400 = mul nsw i64 %sub14.i399, %div792812
  %add16.i401 = add nsw i64 %add8.i396, %mul15.i400
  %cmp54765 = icmp slt i64 %cond51817, %add16.i401
  br i1 %cmp54765, label %cond.end59, label %f.exit420

f.exit420:                                        ; preds = %f.exit403.thread, %cond.end50.thread, %f.exit403
  %div792813 = phi i64 [ %div792, %f.exit403 ], [ %div785, %cond.end50.thread ], [ %div792812, %f.exit403.thread ]
  %mul1.i795808 = phi i64 [ %mul1.i795, %f.exit403 ], [ %mul1.i786, %cond.end50.thread ], [ %mul1.i795810, %f.exit403.thread ]
  %retval.0.i419 = phi i64 [ 9223372036854775807, %f.exit403 ], [ 9223372036854775807, %cond.end50.thread ], [ %add16.i401, %f.exit403.thread ]
  br label %cond.end59

cond.end59:                                       ; preds = %f.exit403.thread, %f.exit403, %f.exit420
  %div792814 = phi i64 [ %div792813, %f.exit420 ], [ %div792, %f.exit403 ], [ %div792812, %f.exit403.thread ]
  %mul1.i795809 = phi i64 [ %mul1.i795808, %f.exit420 ], [ %mul1.i795, %f.exit403 ], [ %mul1.i795810, %f.exit403.thread ]
  %cond60 = phi i64 [ %retval.0.i419, %f.exit420 ], [ %cond51, %f.exit403 ], [ %cond51817, %f.exit403.thread ]
  %add2.i422 = add nuw nsw i64 %mul1.i795809, 2
  %cmp.i424 = icmp sgt i64 %add2.i422, %mul3.i
  br i1 %cmp.i424, label %f.exit438, label %f.exit438.thread

f.exit438:                                        ; preds = %cond.end59
  %cmp63.not = icmp eq i64 %cond60, 9223372036854775807
  br i1 %cmp63.not, label %f.exit456, label %cond.end68

f.exit438.thread:                                 ; preds = %cond.end59
  %7 = shl i64 %2, 1
  %8 = shl i64 %1, 2
  %mul7.i430 = sub i64 %7, %8
  %add8.i431 = add nsw i64 %mul7.i430, %mul5.i
  %9 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i433 = shl nsw i64 %1, 3
  %sub14.i434 = sub nsw i64 %9, %mul13.i433
  %mul15.i435 = mul nsw i64 %sub14.i434, %div792814
  %add16.i436 = add nsw i64 %add8.i431, %mul15.i435
  %cmp63767 = icmp slt i64 %cond60, %add16.i436
  br i1 %cmp63767, label %cond.end68, label %f.exit456

f.exit456:                                        ; preds = %f.exit438.thread, %f.exit438
  %retval.0.i455 = phi i64 [ 9223372036854775807, %f.exit438 ], [ %add16.i436, %f.exit438.thread ]
  br label %cond.end68

cond.end68:                                       ; preds = %f.exit438.thread, %f.exit438, %f.exit456
  %cond69 = phi i64 [ %retval.0.i455, %f.exit456 ], [ %cond60, %f.exit438 ], [ %cond60, %f.exit438.thread ]
  %add2.i458 = add nuw nsw i64 %mul1.i795809, 3
  %cmp.i460 = icmp sgt i64 %add2.i458, %mul3.i
  br i1 %cmp.i460, label %f.exit474, label %f.exit474.thread

f.exit474:                                        ; preds = %cond.end68
  %cmp72.not = icmp eq i64 %cond69, 9223372036854775807
  br i1 %cmp72.not, label %f.exit492, label %cond.end77

f.exit474.thread:                                 ; preds = %cond.end68
  %mul7.i466 = mul nsw i64 %sub.i183, 3
  %add8.i467 = add nsw i64 %mul7.i466, %mul5.i
  %10 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i469 = shl nsw i64 %1, 3
  %sub14.i470 = sub nsw i64 %10, %mul13.i469
  %mul15.i471 = mul nsw i64 %sub14.i470, %div792814
  %add16.i472 = add nsw i64 %add8.i467, %mul15.i471
  %cmp72769 = icmp slt i64 %cond69, %add16.i472
  br i1 %cmp72769, label %cond.end77, label %f.exit492

f.exit492:                                        ; preds = %f.exit474.thread, %f.exit474
  %retval.0.i491 = phi i64 [ 9223372036854775807, %f.exit474 ], [ %add16.i472, %f.exit474.thread ]
  br label %cond.end77

cond.end77:                                       ; preds = %f.exit474.thread, %f.exit474, %f.exit492
  %cond78 = phi i64 [ %retval.0.i491, %f.exit492 ], [ %cond69, %f.exit474 ], [ %cond69, %f.exit474.thread ]
  br i1 %cmp.i424, label %f.exit509, label %f.exit509.thread

f.exit509:                                        ; preds = %cond.end77
  %cmp81.not = icmp eq i64 %cond78, 9223372036854775807
  br i1 %cmp81.not, label %f.exit526, label %cond.end86

f.exit509.thread:                                 ; preds = %cond.end77
  %mul4.i498 = shl nsw i64 %1, 2
  %mul5.i499 = mul nsw i64 %mul4.i498, %0
  %sub10.i502 = sub i64 %3, %mul4.i498
  %add12.i503 = add nsw i64 %sub10.i502, %mul5.i499
  %11 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i504 = shl nsw i64 %1, 3
  %sub14.i505 = sub nsw i64 %11, %mul13.i504
  %mul15.i506 = mul nsw i64 %sub14.i505, %div792814
  %add16.i507 = add nsw i64 %add12.i503, %mul15.i506
  %cmp81771 = icmp slt i64 %cond78, %add16.i507
  br i1 %cmp81771, label %cond.end86, label %f.exit526

f.exit526:                                        ; preds = %f.exit509.thread, %f.exit509
  %retval.0.i525 = phi i64 [ 9223372036854775807, %f.exit509 ], [ %add16.i507, %f.exit509.thread ]
  br label %cond.end86

cond.end86:                                       ; preds = %f.exit509.thread, %f.exit509, %f.exit526
  %cond87 = phi i64 [ %retval.0.i525, %f.exit526 ], [ %cond78, %f.exit509 ], [ %cond78, %f.exit509.thread ]
  %add2.i528 = add nsw i64 %mul1.i795809, 4
  %cmp.i530 = icmp sgt i64 %add2.i528, %mul3.i
  br i1 %cmp.i530, label %f.exit544, label %f.exit544.thread

f.exit544:                                        ; preds = %cond.end86
  %cmp90.not = icmp eq i64 %cond87, 9223372036854775807
  br i1 %cmp90.not, label %f.exit562, label %cond.end95

f.exit544.thread:                                 ; preds = %cond.end86
  %mul4.i532 = shl nsw i64 %1, 2
  %mul5.i533 = mul nsw i64 %mul4.i532, %0
  %sub10.i536 = sub nsw i64 %3, %mul4.i532
  %mul11.i537 = shl nsw i64 %sub10.i536, 1
  %add12.i538 = add nsw i64 %mul11.i537, %mul5.i533
  %12 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i539 = shl nsw i64 %1, 3
  %sub14.i540 = sub nsw i64 %12, %mul13.i539
  %mul15.i541 = mul nsw i64 %sub14.i540, %div792814
  %add16.i542 = add nsw i64 %add12.i538, %mul15.i541
  %cmp90773 = icmp slt i64 %cond87, %add16.i542
  br i1 %cmp90773, label %cond.end95, label %f.exit562

f.exit562:                                        ; preds = %f.exit544.thread, %f.exit544
  %retval.0.i561 = phi i64 [ 9223372036854775807, %f.exit544 ], [ %add16.i542, %f.exit544.thread ]
  br label %cond.end95

cond.end95:                                       ; preds = %f.exit544.thread, %f.exit544, %f.exit562
  %cond96 = phi i64 [ %retval.0.i561, %f.exit562 ], [ %cond87, %f.exit544 ], [ %cond87, %f.exit544.thread ]
  %add2.i564 = add nsw i64 %mul1.i795809, 6
  %cmp.i566 = icmp sgt i64 %add2.i564, %mul3.i
  br i1 %cmp.i566, label %f.exit580, label %f.exit580.thread

f.exit580:                                        ; preds = %cond.end95
  %cmp99.not = icmp eq i64 %cond96, 9223372036854775807
  br i1 %cmp99.not, label %f.exit598, label %cond.end104

f.exit580.thread:                                 ; preds = %cond.end95
  %mul4.i568 = shl nsw i64 %1, 2
  %mul5.i569 = mul nsw i64 %mul4.i568, %0
  %sub10.i572 = sub nsw i64 %3, %mul4.i568
  %mul11.i573 = mul nsw i64 %sub10.i572, 3
  %add12.i574 = add nsw i64 %mul11.i573, %mul5.i569
  %13 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i575 = shl nsw i64 %1, 3
  %sub14.i576 = sub nsw i64 %13, %mul13.i575
  %mul15.i577 = mul nsw i64 %sub14.i576, %div792814
  %add16.i578 = add nsw i64 %add12.i574, %mul15.i577
  %cmp99775 = icmp slt i64 %cond96, %add16.i578
  br i1 %cmp99775, label %cond.end104, label %f.exit598

f.exit598:                                        ; preds = %f.exit580.thread, %f.exit580
  %retval.0.i597 = phi i64 [ 9223372036854775807, %f.exit580 ], [ %add16.i578, %f.exit580.thread ]
  br label %cond.end104

cond.end104:                                      ; preds = %f.exit580.thread, %f.exit580, %f.exit598
  %cond105 = phi i64 [ %retval.0.i597, %f.exit598 ], [ %cond96, %f.exit580 ], [ %cond96, %f.exit580.thread ]
  br i1 %cmp.i460, label %f.exit616, label %f.exit616.thread

f.exit616:                                        ; preds = %cond.end104
  %cmp108.not = icmp eq i64 %cond105, 9223372036854775807
  br i1 %cmp108.not, label %f.exit634, label %cond.end113

f.exit616.thread:                                 ; preds = %cond.end104
  %mul4.i604 = shl nsw i64 %1, 2
  %mul5.i605 = mul nsw i64 %mul4.i604, %0
  %14 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i611 = shl nsw i64 %1, 3
  %sub14.i612 = sub nsw i64 %14, %mul13.i611
  %mul15.i613 = mul nsw i64 %sub14.i612, %div792814
  %.neg = mul i64 %1, -6
  %sub.i607 = add i64 %.neg, %2
  %add8.i608 = add i64 %sub.i607, %mul5.i605
  %add12.i610 = add i64 %add8.i608, %3
  %add16.i614 = add nsw i64 %add12.i610, %mul15.i613
  %cmp108777 = icmp slt i64 %cond105, %add16.i614
  br i1 %cmp108777, label %cond.end113, label %f.exit634

f.exit634:                                        ; preds = %f.exit616.thread, %f.exit616
  %retval.0.i633 = phi i64 [ 9223372036854775807, %f.exit616 ], [ %add16.i614, %f.exit616.thread ]
  br label %cond.end113

cond.end113:                                      ; preds = %f.exit616.thread, %f.exit616, %f.exit634
  %cond114 = phi i64 [ %retval.0.i633, %f.exit634 ], [ %cond105, %f.exit616 ], [ %cond105, %f.exit616.thread ]
  %add2.i636 = add nsw i64 %mul1.i795809, 5
  %cmp.i638 = icmp sgt i64 %add2.i636, %mul3.i
  br i1 %cmp.i638, label %f.exit653, label %f.exit653.thread

f.exit653:                                        ; preds = %cond.end113
  %cmp117.not = icmp eq i64 %cond114, 9223372036854775807
  br i1 %cmp117.not, label %f.exit672, label %cond.end122

f.exit653.thread:                                 ; preds = %cond.end113
  %mul4.i640 = shl nsw i64 %1, 2
  %mul5.i641 = mul nsw i64 %mul4.i640, %0
  %add8.i644 = add nsw i64 %sub.i183, %mul5.i641
  %sub10.i645 = sub nsw i64 %3, %mul4.i640
  %mul11.i646 = shl nsw i64 %sub10.i645, 1
  %add12.i647 = add nsw i64 %add8.i644, %mul11.i646
  %15 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i648 = shl nsw i64 %1, 3
  %sub14.i649 = sub nsw i64 %15, %mul13.i648
  %mul15.i650 = mul nsw i64 %sub14.i649, %div792814
  %add16.i651 = add nsw i64 %add12.i647, %mul15.i650
  %cmp117779 = icmp slt i64 %cond114, %add16.i651
  br i1 %cmp117779, label %cond.end122, label %f.exit672

f.exit672:                                        ; preds = %f.exit653.thread, %f.exit653
  %retval.0.i671 = phi i64 [ 9223372036854775807, %f.exit653 ], [ %add16.i651, %f.exit653.thread ]
  br label %cond.end122

cond.end122:                                      ; preds = %f.exit653.thread, %f.exit653, %f.exit672
  %cond123 = phi i64 [ %retval.0.i671, %f.exit672 ], [ %cond114, %f.exit653 ], [ %cond114, %f.exit653.thread ]
  br i1 %cmp.i530, label %f.exit691, label %f.exit691.thread

f.exit691:                                        ; preds = %cond.end122
  %cmp126.not = icmp eq i64 %cond123, 9223372036854775807
  br i1 %cmp126.not, label %f.exit710, label %cond.end131

f.exit691.thread:                                 ; preds = %cond.end122
  %mul4.i678 = shl nsw i64 %1, 2
  %mul5.i679 = mul nsw i64 %mul4.i678, %0
  %16 = shl i64 %2, 1
  %17 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i686 = shl i64 %1, 3
  %sub14.i687 = sub nsw i64 %17, %mul13.i686
  %mul15.i688 = mul nsw i64 %sub14.i687, %div792814
  %add8.i683 = sub i64 %3, %mul13.i686
  %sub10.i684 = add i64 %add8.i683, %16
  %add12.i685 = add i64 %sub10.i684, %mul5.i679
  %add16.i689 = add nsw i64 %add12.i685, %mul15.i688
  %cmp126781 = icmp slt i64 %cond123, %add16.i689
  br i1 %cmp126781, label %cond.end131, label %f.exit710

f.exit710:                                        ; preds = %f.exit691.thread, %f.exit691
  %retval.0.i709 = phi i64 [ 9223372036854775807, %f.exit691 ], [ %add16.i689, %f.exit691.thread ]
  br label %cond.end131

cond.end131:                                      ; preds = %f.exit691.thread, %f.exit691, %f.exit710
  %cond132 = phi i64 [ %retval.0.i709, %f.exit710 ], [ %cond123, %f.exit691 ], [ %cond123, %f.exit691.thread ]
  br i1 %cmp.i566, label %f.exit730, label %f.exit730.thread

f.exit730:                                        ; preds = %cond.end131
  %cmp135.not = icmp eq i64 %cond132, 9223372036854775807
  br i1 %cmp135.not, label %f.exit750, label %cond.end140

f.exit730.thread:                                 ; preds = %cond.end131
  %mul4.i716 = shl i64 %1, 2
  %mul5.i717 = mul nsw i64 %mul4.i716, %0
  %18 = shl i64 %2, 1
  %mul7.i720 = sub i64 %18, %mul4.i716
  %add8.i721 = add nsw i64 %mul7.i720, %mul5.i717
  %sub10.i722 = sub nsw i64 %3, %mul4.i716
  %mul11.i723 = shl nsw i64 %sub10.i722, 1
  %add12.i724 = add nsw i64 %add8.i721, %mul11.i723
  %19 = load i64, ptr @D, align 8, !tbaa !5
  %mul13.i725 = shl nsw i64 %1, 3
  %sub14.i726 = sub nsw i64 %19, %mul13.i725
  %mul15.i727 = mul nsw i64 %sub14.i726, %div792814
  %add16.i728 = add nsw i64 %add12.i724, %mul15.i727
  %cmp135783 = icmp slt i64 %cond132, %add16.i728
  br i1 %cmp135783, label %cond.end140, label %f.exit750

f.exit750:                                        ; preds = %f.exit730.thread, %f.exit730
  %retval.0.i749 = phi i64 [ 9223372036854775807, %f.exit730 ], [ %add16.i728, %f.exit730.thread ]
  br label %cond.end140

cond.end140:                                      ; preds = %f.exit730.thread, %f.exit730, %f.exit750
  %cond141 = phi i64 [ %retval.0.i749, %f.exit750 ], [ %cond132, %f.exit730 ], [ %cond132, %f.exit730.thread ]
  %call142 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %cond141)
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.linker.options = !{}
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
