; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/284 Divison 2/Problem D (D)

; 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"

@n = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@t = external dso_local global [5001 x i32], align 16
@b = external dso_local global i32, align 4
@dp = external dso_local global [5001 x [5001 x double]], align 16
@p = external dso_local global [5001 x double], align 16
@a = external dso_local global double, align 8
@temp = external dso_local global double, align 8
@res = external dso_local global double, align 8
@sum = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 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
  store i32 0, ptr %1, align 4
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @T)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %23, %0
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = icmp sle i32 %8, %9
  br i1 %10, label %12, label %11

11:                                               ; preds = %7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %26

12:                                               ; preds = %7
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @a, ptr noundef @b)
  %14 = load double, ptr @a, align 8, !tbaa !9
  %15 = fdiv double %14, 1.000000e+02
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [5001 x double], ptr @p, i64 0, i64 %17
  store double %15, ptr %18, align 8, !tbaa !9
  %19 = load i32, ptr @b, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [5001 x i32], ptr @t, i64 0, i64 %21
  store i32 %19, ptr %22, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %12
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %2, align 4, !tbaa !5
  br label %7, !llvm.loop !11

26:                                               ; preds = %11
  store double 1.000000e+00, ptr @dp, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %151, %26
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = load i32, ptr @n, align 4, !tbaa !5
  %30 = icmp sle i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %154

32:                                               ; preds = %27
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sub nsw i32 %33, 1
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %35
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = sub nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [5001 x double], ptr %36, i64 0, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !9
  store double %41, ptr @sum, align 8, !tbaa !9
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [5001 x double], ptr @p, i64 0, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = fsub double 1.000000e+00, %45
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [5001 x i32], ptr @t, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = sub nsw i32 %50, 1
  %52 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %46, i32 noundef %51)
  store double %52, ptr @temp, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %53 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %53, ptr %5, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %147, %32
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = load i32, ptr @T, align 4, !tbaa !5
  %57 = icmp sle i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %150

59:                                               ; preds = %54
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [5001 x i32], ptr @t, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = sub nsw i32 %60, %64
  %66 = icmp sge i32 %65, 0
  br i1 %66, label %67, label %107

67:                                               ; preds = %59
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = sub nsw i32 %68, 1
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %70
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [5001 x i32], ptr @t, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = sub nsw i32 %72, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [5001 x double], ptr %71, i64 0, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = load double, ptr @temp, align 8, !tbaa !9
  %82 = load double, ptr @sum, align 8, !tbaa !9
  %83 = fneg double %80
  %84 = call double @llvm.fmuladd.f64(double %83, double %81, double %82)
  store double %84, ptr @sum, align 8, !tbaa !9
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = sub nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %87
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [5001 x i32], ptr @t, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = sub nsw i32 %89, %93
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [5001 x double], ptr %88, i64 0, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = load double, ptr @temp, align 8, !tbaa !9
  %99 = load i32, ptr %3, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %100
  %102 = load i32, ptr %5, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [5001 x double], ptr %101, i64 0, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !9
  %106 = call double @llvm.fmuladd.f64(double %97, double %98, double %105)
  store double %106, ptr %104, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %67, %59
  %108 = load double, ptr @sum, align 8, !tbaa !9
  %109 = load i32, ptr %3, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [5001 x double], ptr @p, i64 0, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = load i32, ptr %3, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %114
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [5001 x double], ptr %115, i64 0, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = call double @llvm.fmuladd.f64(double %108, double %112, double %119)
  store double %120, ptr %118, align 8, !tbaa !9
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [5001 x double], ptr @p, i64 0, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !9
  %125 = fsub double 1.000000e+00, %124
  %126 = load double, ptr @sum, align 8, !tbaa !9
  %127 = fmul double %126, %125
  store double %127, ptr @sum, align 8, !tbaa !9
  %128 = load i32, ptr %3, align 4, !tbaa !5
  %129 = sub nsw i32 %128, 1
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %130
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [5001 x double], ptr %131, i64 0, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !9
  %136 = load double, ptr @sum, align 8, !tbaa !9
  %137 = fadd double %136, %135
  store double %137, ptr @sum, align 8, !tbaa !9
  %138 = load i32, ptr %3, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %139
  %141 = load i32, ptr %5, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [5001 x double], ptr %140, i64 0, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = load double, ptr @res, align 8, !tbaa !9
  %146 = fadd double %145, %144
  store double %146, ptr @res, align 8, !tbaa !9
  br label %147

147:                                              ; preds = %107
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %5, align 4, !tbaa !5
  br label %54, !llvm.loop !13

150:                                              ; preds = %58
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %3, align 4, !tbaa !5
  br label %27, !llvm.loop !14

154:                                              ; preds = %31
  %155 = load double, ptr @res, align 8, !tbaa !9
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %155)
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #3

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

declare i32 @printf(ptr noundef, ...) #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 #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, !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"

@n = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@t = external dso_local local_unnamed_addr global [5001 x i32], align 16
@b = external dso_local global i32, align 4
@dp = external dso_local local_unnamed_addr global [5001 x [5001 x double]], align 16
@p = external dso_local local_unnamed_addr global [5001 x double], align 16
@a = external dso_local global double, align 8
@temp = external dso_local local_unnamed_addr global double, align 8
@res = external dso_local local_unnamed_addr global double, align 8
@sum = external dso_local local_unnamed_addr global double, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @T)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not36 = icmp slt i32 %2, 1
  br i1 %.not36, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %0
  store double 1.000000e+00, ptr @dp, align 16, !tbaa !9
  br label %._crit_edge48

._crit_edge:                                      ; preds = %.lr.ph
  %3 = icmp slt i32 %10, 1
  store double 1.000000e+00, ptr @dp, align 16, !tbaa !9
  br i1 %3, label %._crit_edge48, label %.lr.ph47

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @a, ptr noundef nonnull @b)
  %5 = load double, ptr @a, align 8, !tbaa !9
  %6 = fdiv double %5, 1.000000e+02
  %7 = getelementptr inbounds [5001 x double], ptr @p, i64 0, i64 %indvars.iv
  store double %6, ptr %7, align 8, !tbaa !9
  %8 = load i32, ptr @b, align 4, !tbaa !5
  %9 = getelementptr inbounds [5001 x i32], ptr @t, i64 0, i64 %indvars.iv
  store i32 %8, ptr %9, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %.not.not = icmp slt i64 %indvars.iv, %11
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge48:                                    ; preds = %31, %._crit_edge.thread, %._crit_edge
  %12 = load double, ptr @res, align 8, !tbaa !9
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %12)
  ret i32 0

.lr.ph47:                                         ; preds = %._crit_edge, %31
  %indvars.iv51 = phi i64 [ %indvars.iv.next52, %31 ], [ 1, %._crit_edge ]
  %14 = add nsw i64 %indvars.iv51, -1
  %15 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %14, i64 %14
  %16 = load double, ptr %15, align 8, !tbaa !9
  store double %16, ptr @sum, align 8, !tbaa !9
  %17 = getelementptr inbounds [5001 x double], ptr @p, i64 0, i64 %indvars.iv51
  %18 = load double, ptr %17, align 8, !tbaa !9
  %19 = fsub double 1.000000e+00, %18
  %20 = getelementptr inbounds [5001 x i32], ptr @t, i64 0, i64 %indvars.iv51
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  %23 = tail call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %19, i32 noundef %22)
  store double %23, ptr @temp, align 8, !tbaa !9
  %24 = load i32, ptr @T, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %.not3538 = icmp sgt i64 %indvars.iv51, %25
  br i1 %.not3538, label %31, label %.lr.ph41

.lr.ph41:                                         ; preds = %.lr.ph47
  %res.promoted = load double, ptr @res, align 8, !tbaa !9
  %sum.promoted = load double, ptr @sum, align 8, !tbaa !9
  %26 = load i32, ptr %20, align 4, !tbaa !5
  %27 = load double, ptr %17, align 8, !tbaa !9
  %28 = fsub double 1.000000e+00, %27
  %29 = sext i32 %26 to i64
  %30 = add i32 %24, 1
  %wide.trip.count = zext i32 %30 to i64
  br label %34

._crit_edge42:                                    ; preds = %47
  store double %55, ptr @sum, align 8, !tbaa !9
  store double %56, ptr @res, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %._crit_edge42, %.lr.ph47
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %.not34.not = icmp slt i64 %indvars.iv51, %33
  br i1 %.not34.not, label %.lr.ph47, label %._crit_edge48, !llvm.loop !13

34:                                               ; preds = %.lr.ph41, %47
  %indvars.iv53 = phi i64 [ %indvars.iv51, %.lr.ph41 ], [ %indvars.iv.next54, %47 ]
  %35 = phi double [ %sum.promoted, %.lr.ph41 ], [ %55, %47 ]
  %36 = phi double [ %res.promoted, %.lr.ph41 ], [ %56, %47 ]
  %37 = sub nsw i64 %indvars.iv53, %29
  %38 = icmp sgt i64 %37, -1
  br i1 %38, label %39, label %._crit_edge57

._crit_edge57:                                    ; preds = %34
  %.phi.trans.insert = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %indvars.iv51, i64 %indvars.iv53
  %.pre = load double, ptr %.phi.trans.insert, align 8, !tbaa !9
  br label %47

39:                                               ; preds = %34
  %40 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %14, i64 %37
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = fneg double %41
  %43 = tail call double @llvm.fmuladd.f64(double %42, double %23, double %35)
  %44 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %indvars.iv51, i64 %indvars.iv53
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = tail call double @llvm.fmuladd.f64(double %41, double %23, double %45)
  br label %47

47:                                               ; preds = %._crit_edge57, %39
  %48 = phi double [ %46, %39 ], [ %.pre, %._crit_edge57 ]
  %49 = phi double [ %43, %39 ], [ %35, %._crit_edge57 ]
  %50 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %indvars.iv51, i64 %indvars.iv53
  %51 = tail call double @llvm.fmuladd.f64(double %49, double %27, double %48)
  store double %51, ptr %50, align 8, !tbaa !9
  %52 = fmul double %49, %28
  %53 = getelementptr inbounds [5001 x [5001 x double]], ptr @dp, i64 0, i64 %14, i64 %indvars.iv53
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fadd double %52, %54
  %56 = fadd double %51, %36
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next54, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge42, label %34, !llvm.loop !14
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) 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 #1

attributes #0 = { mustprogress 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 = { 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 #2 = { inlinehint mustprogress 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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}


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