; LLVM IR from tangjz/acm-icpc :: TDL_training/2015-11-15 (E - The Emperor's plan - tjz)

; 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
@m = external dso_local global i32, align 4
@f = external dso_local global [210 x [210 x double]], align 16
@fact = external dso_local global [210 x double], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4calciiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %26, %0
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = icmp slt i32 %10, 210
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %29

13:                                               ; preds = %9
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = sub nsw i32 %14, 1
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [210 x double], ptr @fact, i64 0, i64 %16
  %18 = load double, ptr %17, align 8, !tbaa !9
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sitofp i32 %19 to double
  %21 = call double @log(double noundef %20) #6
  %22 = fadd double %18, %21
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [210 x double], ptr @fact, i64 0, i64 %24
  store double %22, ptr %25, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %13
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %2, align 4, !tbaa !5
  br label %9, !llvm.loop !11

29:                                               ; preds = %12
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %142, %29
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %138, %36
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = load i32, ptr @m, align 4, !tbaa !5
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %41, label %45

41:                                               ; preds = %37
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = icmp sle i32 %42, %43
  br label %45

45:                                               ; preds = %41, %37
  %46 = phi i1 [ false, %37 ], [ %44, %41 ]
  br i1 %46, label %48, label %47

47:                                               ; preds = %45
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %141

48:                                               ; preds = %45
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %60

51:                                               ; preds = %48
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sitofp i32 %52 to double
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %55
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [210 x double], ptr %56, i64 0, i64 %58
  store double %53, ptr %59, align 8, !tbaa !9
  br label %138

60:                                               ; preds = %48
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = mul nsw i32 %61, 2
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = icmp sge i32 %62, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %60
  br label %138

66:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %134, %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = sub nsw i32 %69, %70
  %72 = icmp sle i32 %68, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %67
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %137

74:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %112, %74
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = load i32, ptr %5, align 4, !tbaa !5
  %78 = icmp sle i32 %76, %77
  br i1 %78, label %79, label %83

79:                                               ; preds = %75
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = icmp sle i32 %80, %81
  br label %83

83:                                               ; preds = %79, %75
  %84 = phi i1 [ false, %75 ], [ %82, %79 ]
  br i1 %84, label %86, label %85

85:                                               ; preds = %83
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %115

86:                                               ; preds = %83
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = sub nsw i32 %87, %88
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = sub nsw i32 %89, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %92
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = sub nsw i32 %94, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [210 x double], ptr %93, i64 0, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = mul nsw i32 %101, 2
  %103 = sub nsw i32 %100, %102
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = sub nsw i32 %104, %105
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = call noundef double @_Z4calciiii(i32 noundef %103, i32 noundef %106, i32 noundef %107, i32 noundef %108)
  %110 = load double, ptr %7, align 8, !tbaa !9
  %111 = call double @llvm.fmuladd.f64(double %99, double %109, double %110)
  store double %111, ptr %7, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %86
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %8, align 4, !tbaa !5
  br label %75, !llvm.loop !13

115:                                              ; preds = %85
  %116 = load i32, ptr %3, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %117
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [210 x double], ptr %118, i64 0, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = load double, ptr %7, align 8, !tbaa !9
  %124 = fcmp olt double %122, %123
  br i1 %124, label %125, label %133

125:                                              ; preds = %115
  %126 = load double, ptr %7, align 8, !tbaa !9
  %127 = load i32, ptr %3, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %128
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [210 x double], ptr %129, i64 0, i64 %131
  store double %126, ptr %132, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %125, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %6, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %6, align 4, !tbaa !5
  br label %67, !llvm.loop !14

137:                                              ; preds = %73
  br label %138

138:                                              ; preds = %137, %65, %51
  %139 = load i32, ptr %5, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %5, align 4, !tbaa !5
  br label %37, !llvm.loop !15

141:                                              ; preds = %47
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %3, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %3, align 4, !tbaa !5
  br label %31, !llvm.loop !16

145:                                              ; preds = %35
  %146 = load i32, ptr @n, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %147
  %149 = load i32, ptr @m, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [210 x double], ptr %148, i64 0, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %152)
  ret i32 0
}

; Function Attrs: nounwind
declare double @log(double noundef) #3

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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}
!16 = distinct !{!16, !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
@m = external dso_local global i32, align 4
@f = external dso_local local_unnamed_addr global [210 x [210 x double]], align 16
@fact = external dso_local local_unnamed_addr global [210 x double], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4calciiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %.pre = load double, ptr getelementptr inbounds (i8, ptr @fact, i64 8), align 8, !tbaa !5
  br label %5

1:                                                ; preds = %5
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %3 = load i32, ptr @n, align 4, !tbaa !9
  %.not62 = icmp sgt i32 %3, 0
  %.pre91 = load i32, ptr @m, align 4, !tbaa !9
  %4 = icmp sgt i32 %.pre91, -1
  %or.cond = select i1 %.not62, i1 %4, i1 false
  br i1 %or.cond, label %.preheader54, label %._crit_edge64

5:                                                ; preds = %0, %5
  %6 = phi double [ %.pre, %0 ], [ %10, %5 ]
  %indvars.iv = phi i64 [ 2, %0 ], [ %indvars.iv.next, %5 ]
  %7 = trunc nuw nsw i64 %indvars.iv to i32
  %8 = uitofp nneg i32 %7 to double
  %9 = tail call double @log(double noundef %8) #6
  %10 = fadd double %6, %9
  %11 = getelementptr inbounds [210 x double], ptr @fact, i64 0, i64 %indvars.iv
  store double %10, ptr %11, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 210
  br i1 %exitcond.not, label %1, label %5, !llvm.loop !11

.preheader54:                                     ; preds = %1, %._crit_edge
  %12 = phi i32 [ %25, %._crit_edge ], [ %3, %1 ]
  %13 = phi i32 [ %26, %._crit_edge ], [ %.pre91, %1 ]
  %14 = phi i32 [ %27, %._crit_edge ], [ %.pre91, %1 ]
  %indvars.iv86 = phi i64 [ %indvars.iv.next87, %._crit_edge ], [ 1, %1 ]
  %indvars.iv77 = phi i32 [ %indvars.iv.next78, %._crit_edge ], [ 2, %1 ]
  %15 = icmp sgt i32 %14, -1
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader54
  %16 = trunc nuw nsw i64 %indvars.iv86 to i32
  %17 = uitofp nneg i32 %16 to double
  %18 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %indvars.iv86
  br label %29

._crit_edge64:                                    ; preds = %._crit_edge, %1
  %19 = phi i32 [ %.pre91, %1 ], [ %26, %._crit_edge ]
  %.lcssa = phi i32 [ %3, %1 ], [ %25, %._crit_edge ]
  %20 = sext i32 %.lcssa to i64
  %21 = sext i32 %19 to i64
  %22 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %20, i64 %21
  %23 = load double, ptr %22, align 8, !tbaa !5
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %23)
  ret i32 0

._crit_edge.loopexit:                             ; preds = %.loopexit
  %.pre90 = load i32, ptr @n, align 4, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader54
  %25 = phi i32 [ %.pre90, %._crit_edge.loopexit ], [ %12, %.preheader54 ]
  %26 = phi i32 [ %55, %._crit_edge.loopexit ], [ %13, %.preheader54 ]
  %27 = phi i32 [ %55, %._crit_edge.loopexit ], [ %14, %.preheader54 ]
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %28 = sext i32 %25 to i64
  %.not.not = icmp slt i64 %indvars.iv86, %28
  %indvars.iv.next78 = add nuw i32 %indvars.iv77, 1
  br i1 %.not.not, label %.preheader54, label %._crit_edge64, !llvm.loop !13

29:                                               ; preds = %.lr.ph, %.loopexit
  %30 = phi i32 [ %13, %.lr.ph ], [ %55, %.loopexit ]
  %indvars.iv83 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next84, %.loopexit ]
  %indvars.iv79 = phi i32 [ %indvars.iv77, %.lr.ph ], [ %indvars.iv.next80, %.loopexit ]
  %indvars85 = trunc i64 %indvars.iv83 to i32
  %31 = icmp eq i64 %indvars.iv83, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  store double %17, ptr %18, align 16, !tbaa !5
  br label %.loopexit

33:                                               ; preds = %29
  %34 = shl nuw nsw i64 %indvars.iv83, 1
  %35 = shl nuw nsw i32 %indvars85, 1
  %36 = icmp ult i64 %34, %indvars.iv86
  br i1 %36, label %.preheader53, label %.loopexit

.preheader53:                                     ; preds = %33
  %37 = sub nsw i64 %indvars.iv86, %indvars.iv83
  %.not5258 = icmp slt i64 %37, 1
  br i1 %.not5258, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader53
  %38 = sub nsw i32 %16, %35
  %39 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %indvars.iv86, i64 %indvars.iv83
  %wide.trip.count81 = zext i32 %indvars.iv79 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %54
  %indvars.iv74 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next75, %54 ]
  %40 = trunc nuw nsw i64 %indvars.iv74 to i32
  %umin = tail call i32 @llvm.umin.i32(i32 %indvars85, i32 %40)
  %41 = add nuw i32 %umin, 1
  %42 = sub nsw i64 %37, %indvars.iv74
  %wide.trip.count = zext i32 %41 to i64
  br label %46

43:                                               ; preds = %46
  %44 = load double, ptr %39, align 8, !tbaa !5
  %45 = fcmp olt double %44, %52
  br i1 %45, label %53, label %54

46:                                               ; preds = %.preheader, %46
  %indvars.iv70 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next71, %46 ]
  %.04356 = phi double [ 0.000000e+00, %.preheader ], [ %52, %46 ]
  %indvars72 = trunc i64 %indvars.iv70 to i32
  %47 = sub nsw i64 %indvars.iv83, %indvars.iv70
  %48 = getelementptr inbounds [210 x [210 x double]], ptr @f, i64 0, i64 %42, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = sub nsw i32 %40, %indvars72
  %51 = tail call noundef double @_Z4calciiii(i32 noundef %38, i32 noundef %50, i32 noundef %indvars85, i32 noundef %indvars72)
  %52 = tail call double @llvm.fmuladd.f64(double %49, double %51, double %.04356)
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next71, %wide.trip.count
  br i1 %exitcond73.not, label %43, label %46, !llvm.loop !15

53:                                               ; preds = %43
  store double %52, ptr %39, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %53, %43
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next75, %wide.trip.count81
  br i1 %exitcond82.not, label %.loopexit.loopexit, label %.preheader, !llvm.loop !16

.loopexit.loopexit:                               ; preds = %54
  %.pre89 = load i32, ptr @m, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.preheader53, %33, %32
  %55 = phi i32 [ %.pre89, %.loopexit.loopexit ], [ %30, %.preheader53 ], [ %30, %33 ], [ %30, %32 ]
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %56 = sext i32 %55 to i64
  %57 = icmp slt i64 %indvars.iv83, %56
  %58 = icmp ult i64 %indvars.iv83, %indvars.iv86
  %59 = and i1 %58, %57
  %indvars.iv.next80 = add i32 %indvars.iv79, -1
  br i1 %59, label %29, label %._crit_edge.loopexit, !llvm.loop !17
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12, !14}
!14 = !{!"llvm.loop.unswitch.partial.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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