; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/OFORTUNE (ofor)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %15

15:                                               ; preds = %98, %0
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %2, align 4, !tbaa !5
  %18 = icmp ne i32 %16, 0
  br i1 %18, label %19, label %101

19:                                               ; preds = %15
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %4)
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %5)
  store i32 0, ptr %8, align 4, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %95, %19
  %24 = load i32, ptr %11, align 4, !tbaa !5
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %27, label %98

27:                                               ; preds = %23
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %6, ptr noundef %13, ptr noundef %7)
  %29 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %29, ptr %9, align 4, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !5
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %65

32:                                               ; preds = %27
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %48, %32
  %34 = load i32, ptr %12, align 4, !tbaa !5
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %51

37:                                               ; preds = %33
  %38 = load i32, ptr %9, align 4, !tbaa !5
  %39 = sitofp i32 %38 to double
  %40 = load double, ptr %13, align 8, !tbaa !9
  %41 = load i32, ptr %10, align 4, !tbaa !5
  %42 = sitofp i32 %41 to double
  %43 = call double @llvm.fmuladd.f64(double %39, double %40, double %42)
  %44 = fptosi double %43 to i32
  store i32 %44, ptr %10, align 4, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = sub nsw i32 %46, %45
  store i32 %47, ptr %9, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %37
  %49 = load i32, ptr %12, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %12, align 4, !tbaa !5
  br label %33, !llvm.loop !11

51:                                               ; preds = %33
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = add nsw i32 %53, %54
  %56 = icmp sgt i32 %52, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %51
  %58 = load i32, ptr %8, align 4, !tbaa !5
  br label %63

59:                                               ; preds = %51
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = add nsw i32 %60, %61
  br label %63

63:                                               ; preds = %59, %57
  %64 = phi i32 [ %58, %57 ], [ %62, %59 ]
  store i32 %64, ptr %8, align 4, !tbaa !5
  br label %94

65:                                               ; preds = %27
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %81, %65
  %67 = load i32, ptr %12, align 4, !tbaa !5
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %70, label %84

70:                                               ; preds = %66
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = sitofp i32 %71 to double
  %73 = load double, ptr %13, align 8, !tbaa !9
  %74 = fmul double %72, %73
  %75 = fptosi double %74 to i32
  store i32 %75, ptr %10, align 4, !tbaa !5
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = add nsw i32 %76, %77
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sub nsw i32 %78, %79
  store i32 %80, ptr %9, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %70
  %82 = load i32, ptr %12, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %12, align 4, !tbaa !5
  br label %66, !llvm.loop !13

84:                                               ; preds = %66
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = icmp sgt i32 %85, %86
  br i1 %87, label %88, label %90

88:                                               ; preds = %84
  %89 = load i32, ptr %8, align 4, !tbaa !5
  br label %92

90:                                               ; preds = %84
  %91 = load i32, ptr %9, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %90, %88
  %93 = phi i32 [ %89, %88 ], [ %91, %90 ]
  store i32 %93, ptr %8, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %92, %63
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %11, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %11, align 4, !tbaa !5
  br label %23, !llvm.loop !14

98:                                               ; preds = %23
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %99)
  br label %15, !llvm.loop !15

101:                                              ; preds = %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { mustprogress norecurse 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!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 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = add nsw i32 %9, -1
  store i32 %10, ptr %1, align 4, !tbaa !5
  %.not45 = icmp eq i32 %9, 0
  br i1 %.not45, label %._crit_edge48, label %.lr.ph47

.lr.ph47:                                         ; preds = %0, %._crit_edge43
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph42, label %._crit_edge43

.lr.ph42:                                         ; preds = %.lr.ph47, %._crit_edge
  %.02340 = phi i32 [ %73, %._crit_edge ], [ 0, %.lr.ph47 ]
  %.02739 = phi i32 [ %72, %._crit_edge ], [ 0, %.lr.ph47 ]
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %5, ptr noundef nonnull %7, ptr noundef nonnull %6)
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 0
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %19, label %.preheader, label %.preheader29

.preheader29:                                     ; preds = %.lr.ph42
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader29
  %22 = load double, ptr %7, align 8, !tbaa !9
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %xtraiter = and i32 %20, 3
  %24 = icmp ult i32 %20, 4
  br i1 %24, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i32 %20, 2147483644
  br label %46

.preheader:                                       ; preds = %.lr.ph42
  br i1 %21, label %.lr.ph35, label %._crit_edge36

.lr.ph35:                                         ; preds = %.preheader
  %25 = load double, ptr %7, align 8, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = mul i32 %20, %26
  %xtraiter59 = and i32 %20, 1
  %28 = icmp eq i32 %20, 1
  br i1 %28, label %._crit_edge36.loopexit.unr-lcssa, label %.lr.ph35.new

.lr.ph35.new:                                     ; preds = %.lr.ph35
  %unroll_iter63 = and i32 %20, 2147483646
  br label %29

29:                                               ; preds = %29, %.lr.ph35.new
  %.02433 = phi i32 [ 0, %.lr.ph35.new ], [ %38, %29 ]
  %.02532 = phi i32 [ %17, %.lr.ph35.new ], [ %39, %29 ]
  %niter64 = phi i32 [ 0, %.lr.ph35.new ], [ %niter64.next.1, %29 ]
  %30 = sitofp i32 %.02532 to double
  %31 = sitofp i32 %.02433 to double
  %32 = call double @llvm.fmuladd.f64(double %30, double %25, double %31)
  %33 = fptosi double %32 to i32
  %34 = sub nsw i32 %.02532, %26
  %35 = sitofp i32 %34 to double
  %36 = sitofp i32 %33 to double
  %37 = call double @llvm.fmuladd.f64(double %35, double %25, double %36)
  %38 = fptosi double %37 to i32
  %39 = sub nsw i32 %34, %26
  %niter64.next.1 = add i32 %niter64, 2
  %niter64.ncmp.1 = icmp eq i32 %niter64.next.1, %unroll_iter63
  br i1 %niter64.ncmp.1, label %._crit_edge36.loopexit.unr-lcssa, label %29, !llvm.loop !11

._crit_edge36.loopexit.unr-lcssa:                 ; preds = %29, %.lr.ph35
  %.lcssa55.ph = phi i32 [ poison, %.lr.ph35 ], [ %38, %29 ]
  %.02433.unr = phi i32 [ 0, %.lr.ph35 ], [ %38, %29 ]
  %.02532.unr = phi i32 [ %17, %.lr.ph35 ], [ %39, %29 ]
  %lcmp.mod61.not = icmp eq i32 %xtraiter59, 0
  br i1 %lcmp.mod61.not, label %._crit_edge36.loopexit, label %._crit_edge36.loopexit.epilog-lcssa

._crit_edge36.loopexit.epilog-lcssa:              ; preds = %._crit_edge36.loopexit.unr-lcssa
  %40 = sitofp i32 %.02532.unr to double
  %41 = sitofp i32 %.02433.unr to double
  %42 = call double @llvm.fmuladd.f64(double %40, double %25, double %41)
  %43 = fptosi double %42 to i32
  br label %._crit_edge36.loopexit

._crit_edge36.loopexit:                           ; preds = %._crit_edge36.loopexit.unr-lcssa, %._crit_edge36.loopexit.epilog-lcssa
  %.lcssa55 = phi i32 [ %.lcssa55.ph, %._crit_edge36.loopexit.unr-lcssa ], [ %43, %._crit_edge36.loopexit.epilog-lcssa ]
  %44 = sub i32 %17, %27
  br label %._crit_edge36

._crit_edge36:                                    ; preds = %._crit_edge36.loopexit, %.preheader
  %.025.lcssa = phi i32 [ %17, %.preheader ], [ %44, %._crit_edge36.loopexit ]
  %.024.lcssa = phi i32 [ 0, %.preheader ], [ %.lcssa55, %._crit_edge36.loopexit ]
  %45 = add nsw i32 %.024.lcssa, %.025.lcssa
  br label %._crit_edge

46:                                               ; preds = %46, %.lr.ph.new
  %.12630 = phi i32 [ %17, %.lr.ph.new ], [ %66, %46 ]
  %niter = phi i32 [ 0, %.lr.ph.new ], [ %niter.next.3, %46 ]
  %47 = sitofp i32 %.12630 to double
  %48 = fmul double %22, %47
  %49 = fptosi double %48 to i32
  %50 = sub i32 %.12630, %23
  %51 = add i32 %50, %49
  %52 = sitofp i32 %51 to double
  %53 = fmul double %22, %52
  %54 = fptosi double %53 to i32
  %55 = sub i32 %51, %23
  %56 = add i32 %55, %54
  %57 = sitofp i32 %56 to double
  %58 = fmul double %22, %57
  %59 = fptosi double %58 to i32
  %60 = sub i32 %56, %23
  %61 = add i32 %60, %59
  %62 = sitofp i32 %61 to double
  %63 = fmul double %22, %62
  %64 = fptosi double %63 to i32
  %65 = sub i32 %61, %23
  %66 = add i32 %65, %64
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %46, !llvm.loop !13

._crit_edge.loopexit.unr-lcssa:                   ; preds = %46, %.lr.ph
  %.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %66, %46 ]
  %.12630.unr = phi i32 [ %17, %.lr.ph ], [ %66, %46 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.12630.epil = phi i32 [ %71, %.epil.preheader ], [ %.12630.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %67 = sitofp i32 %.12630.epil to double
  %68 = fmul double %22, %67
  %69 = fptosi double %68 to i32
  %70 = sub i32 %.12630.epil, %23
  %71 = add i32 %70, %69
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !14

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.preheader29, %._crit_edge36
  %.sink = phi i32 [ %45, %._crit_edge36 ], [ %17, %.preheader29 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %71, %.epil.preheader ]
  %72 = call i32 @llvm.smax.i32(i32 %.02739, i32 %.sink)
  %73 = add nuw nsw i32 %.02340, 1
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %.lr.ph42, label %._crit_edge43, !llvm.loop !16

._crit_edge43:                                    ; preds = %._crit_edge, %.lr.ph47
  %.027.lcssa = phi i32 [ 0, %.lr.ph47 ], [ %72, %._crit_edge ]
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.027.lcssa)
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = add nsw i32 %77, -1
  store i32 %78, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %77, 0
  br i1 %.not, label %._crit_edge48, label %.lr.ph47, !llvm.loop !17

._crit_edge48:                                    ; preds = %._crit_edge43, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { mustprogress nofree norecurse 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!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 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass