; LLVM IR from tangjz/acm-icpc :: hdu (5985)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@c = external dso_local global [11 x i32], align 16
@p = external dso_local global [11 x double], align 16
@pp = external dso_local global [11 x x86_fp80], align 16
@pre = external dso_local global [11 x x86_fp80], align 16
@ans = external dso_local global [11 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 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 x86_fp80, align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca x86_fp80, align 16
  %9 = alloca x86_fp80, align 16
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %12

12:                                               ; preds = %167, %46, %0
  %13 = load i32, ptr @t, align 4, !tbaa !5
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr @t, align 4, !tbaa !5
  %15 = icmp ne i32 %13, 0
  br i1 %15, label %16, label %168

16:                                               ; preds = %12
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %40, %16
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i32, ptr @c, i64 %25
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds double, ptr @p, i64 %28
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %26, ptr noundef %29)
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [11 x x86_fp80], ptr @pp, i64 0, i64 %32
  store x86_fp80 0xK3FFF8000000000000000, ptr %33, align 16, !tbaa !9
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [11 x x86_fp80], ptr @ans, i64 0, i64 %35
  store x86_fp80 0xK00000000000000000000, ptr %36, align 16, !tbaa !9
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [11 x x86_fp80], ptr @pre, i64 0, i64 %38
  store x86_fp80 0xK00000000000000000000, ptr %39, align 16, !tbaa !9
  br label %40

40:                                               ; preds = %23
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !11

43:                                               ; preds = %22
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %48

46:                                               ; preds = %43
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef 1.000000e+00)
  br label %12, !llvm.loop !13

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %140, %48
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = icmp slt i32 %50, 101
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 7, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %143

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  store x86_fp80 0xK00000000000000000000, ptr %5, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %86, %53
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

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

59:                                               ; preds = %54
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [11 x double], ptr @p, i64 0, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !14
  %64 = fpext double %63 to x86_fp80
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [11 x x86_fp80], ptr @pp, i64 0, i64 %66
  %68 = load x86_fp80, ptr %67, align 16, !tbaa !9
  %69 = fmul x86_fp80 %68, %64
  store x86_fp80 %69, ptr %67, align 16, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sitofp i32 %73 to double
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [11 x x86_fp80], ptr @pp, i64 0, i64 %76
  %78 = load x86_fp80, ptr %77, align 16, !tbaa !9
  %79 = fsub x86_fp80 0xK3FFF8000000000000000, %78
  %80 = fptrunc x86_fp80 %79 to double
  %81 = call double @log(double noundef %80) #5
  %82 = fmul double %74, %81
  %83 = fpext double %82 to x86_fp80
  %84 = load x86_fp80, ptr %5, align 16, !tbaa !9
  %85 = fadd x86_fp80 %84, %83
  store x86_fp80 %85, ptr %5, align 16, !tbaa !9
  br label %86

86:                                               ; preds = %59
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %6, align 4, !tbaa !5
  br label %54, !llvm.loop !16

89:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %136, %89
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 13, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %139

95:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = sitofp i32 %99 to double
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [11 x x86_fp80], ptr @pp, i64 0, i64 %102
  %104 = load x86_fp80, ptr %103, align 16, !tbaa !9
  %105 = fsub x86_fp80 0xK3FFF8000000000000000, %104
  %106 = fptrunc x86_fp80 %105 to double
  %107 = call double @log(double noundef %106) #5
  %108 = fmul double %100, %107
  %109 = fpext double %108 to x86_fp80
  store x86_fp80 %109, ptr %8, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %110 = load x86_fp80, ptr %5, align 16, !tbaa !9
  %111 = load x86_fp80, ptr %8, align 16, !tbaa !9
  %112 = fsub x86_fp80 %110, %111
  %113 = fptrunc x86_fp80 %112 to double
  %114 = call double @exp(double noundef %113) #5
  %115 = fpext double %114 to x86_fp80
  store x86_fp80 %115, ptr %9, align 16, !tbaa !9
  %116 = load x86_fp80, ptr %8, align 16, !tbaa !9
  %117 = fptrunc x86_fp80 %116 to double
  %118 = call double @exp(double noundef %117) #5
  %119 = fsub double 1.000000e+00, %118
  %120 = fpext double %119 to x86_fp80
  %121 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [11 x x86_fp80], ptr @pre, i64 0, i64 %123
  %125 = load x86_fp80, ptr %124, align 16, !tbaa !9
  %126 = fsub x86_fp80 %121, %125
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [11 x x86_fp80], ptr @ans, i64 0, i64 %128
  %130 = load x86_fp80, ptr %129, align 16, !tbaa !9
  %131 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %120, x86_fp80 %126, x86_fp80 %130)
  store x86_fp80 %131, ptr %129, align 16, !tbaa !9
  %132 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %133 = load i32, ptr %7, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [11 x x86_fp80], ptr @pre, i64 0, i64 %134
  store x86_fp80 %132, ptr %135, align 16, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %136

136:                                              ; preds = %95
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %7, align 4, !tbaa !5
  br label %90, !llvm.loop !17

139:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %3, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %3, align 4, !tbaa !5
  br label %49, !llvm.loop !18

143:                                              ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %164, %143
  %145 = load i32, ptr %10, align 4, !tbaa !5
  %146 = load i32, ptr @n, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 16, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %167

149:                                              ; preds = %144
  %150 = load i32, ptr %10, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [11 x x86_fp80], ptr @ans, i64 0, i64 %151
  %153 = load x86_fp80, ptr %152, align 16, !tbaa !9
  %154 = fptrunc x86_fp80 %153 to double
  %155 = load i32, ptr %10, align 4, !tbaa !5
  %156 = load i32, ptr @n, align 4, !tbaa !5
  %157 = sub nsw i32 %156, 1
  %158 = icmp eq i32 %155, %157
  %159 = zext i1 %158 to i64
  %160 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %159
  %161 = load i8, ptr %160, align 1, !tbaa !19
  %162 = sext i8 %161 to i32
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %154, i32 noundef %162)
  br label %164

164:                                              ; preds = %149
  %165 = load i32, ptr %10, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %10, align 4, !tbaa !5
  br label %144, !llvm.loop !20

167:                                              ; preds = %148
  br label %12, !llvm.loop !13

168:                                              ; preds = %12
  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

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

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

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

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

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 = { 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 = { 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 = !{!"long double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !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"

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@c = external dso_local global [11 x i32], align 16
@p = external dso_local global [11 x double], align 16
@pp = external dso_local local_unnamed_addr global [11 x x86_fp80], align 16
@pre = external dso_local local_unnamed_addr global [11 x x86_fp80], align 16
@ans = external dso_local local_unnamed_addr global [11 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nofree 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 @t)
  %2 = load i32, ptr @t, align 4, !tbaa !5
  %3 = add nsw i32 %2, -1
  store i32 %3, ptr @t, align 4, !tbaa !5
  %.not53 = icmp eq i32 %2, 0
  br i1 %.not53, label %._crit_edge56, label %.lr.ph55

.lr.ph55:                                         ; preds = %0, %.backedge
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.preheader39.preheader

._crit_edge:                                      ; preds = %.lr.ph
  %7 = icmp eq i32 %14, 1
  br i1 %7, label %17, label %.preheader39.preheader

.preheader39.preheader:                           ; preds = %.lr.ph55, %._crit_edge
  %.ph = phi i32 [ %5, %.lr.ph55 ], [ %14, %._crit_edge ]
  br label %.preheader39

.lr.ph:                                           ; preds = %.lr.ph55, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph55 ]
  %8 = getelementptr inbounds i32, ptr @c, i64 %indvars.iv
  %9 = getelementptr inbounds double, ptr @p, i64 %indvars.iv
  %10 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %11 = getelementptr inbounds [11 x x86_fp80], ptr @pp, i64 0, i64 %indvars.iv
  store x86_fp80 0xK3FFF8000000000000000, ptr %11, align 16, !tbaa !9
  %12 = getelementptr inbounds [11 x x86_fp80], ptr @ans, i64 0, i64 %indvars.iv
  store x86_fp80 0xK00000000000000000000, ptr %12, align 16, !tbaa !9
  %13 = getelementptr inbounds [11 x x86_fp80], ptr @pre, i64 0, i64 %indvars.iv
  store x86_fp80 0xK00000000000000000000, ptr %13, align 16, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = icmp slt i64 %indvars.iv.next, %15
  br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !11

17:                                               ; preds = %._crit_edge
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef 1.000000e+00)
  br label %.backedge

.backedge:                                        ; preds = %.lr.ph52, %.preheader40, %17
  %19 = load i32, ptr @t, align 4, !tbaa !5
  %20 = add nsw i32 %19, -1
  store i32 %20, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %._crit_edge56, label %.lr.ph55, !llvm.loop !13

.preheader40:                                     ; preds = %._crit_edge49
  %21 = icmp sgt i32 %43, 0
  br i1 %21, label %.lr.ph52, label %.backedge, !llvm.loop !13

.preheader39:                                     ; preds = %.preheader39.preheader, %._crit_edge49
  %22 = phi i32 [ %43, %._crit_edge49 ], [ %.ph, %.preheader39.preheader ]
  %.03350 = phi i32 [ %44, %._crit_edge49 ], [ 1, %.preheader39.preheader ]
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph45, label %._crit_edge49

.preheader:                                       ; preds = %.lr.ph45
  %24 = icmp sgt i32 %40, 0
  br i1 %24, label %.lr.ph48, label %._crit_edge49

.lr.ph45:                                         ; preds = %.preheader39, %.lr.ph45
  %indvars.iv60 = phi i64 [ %indvars.iv.next61, %.lr.ph45 ], [ 0, %.preheader39 ]
  %.03444 = phi x86_fp80 [ %39, %.lr.ph45 ], [ 0xK00000000000000000000, %.preheader39 ]
  %25 = getelementptr inbounds [11 x double], ptr @p, i64 0, i64 %indvars.iv60
  %26 = load double, ptr %25, align 8, !tbaa !14
  %27 = fpext double %26 to x86_fp80
  %28 = getelementptr inbounds [11 x x86_fp80], ptr @pp, i64 0, i64 %indvars.iv60
  %29 = load x86_fp80, ptr %28, align 16, !tbaa !9
  %30 = fmul x86_fp80 %29, %27
  store x86_fp80 %30, ptr %28, align 16, !tbaa !9
  %31 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %indvars.iv60
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sitofp i32 %32 to double
  %34 = fsub x86_fp80 0xK3FFF8000000000000000, %30
  %35 = fptrunc x86_fp80 %34 to double
  %36 = tail call double @log(double noundef %35) #4
  %37 = fmul double %36, %33
  %38 = fpext double %37 to x86_fp80
  %39 = fadd x86_fp80 %.03444, %38
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = icmp slt i64 %indvars.iv.next61, %41
  br i1 %42, label %.lr.ph45, label %.preheader, !llvm.loop !16

._crit_edge49:                                    ; preds = %.lr.ph48, %.preheader39, %.preheader
  %43 = phi i32 [ %40, %.preheader ], [ %22, %.preheader39 ], [ %68, %.lr.ph48 ]
  %44 = add nuw nsw i32 %.03350, 1
  %exitcond.not = icmp eq i32 %44, 101
  br i1 %exitcond.not, label %.preheader40, label %.preheader39, !llvm.loop !17

.lr.ph48:                                         ; preds = %.preheader, %.lr.ph48
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %.lr.ph48 ], [ 0, %.preheader ]
  %45 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %indvars.iv63
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = sitofp i32 %46 to double
  %48 = getelementptr inbounds [11 x x86_fp80], ptr @pp, i64 0, i64 %indvars.iv63
  %49 = load x86_fp80, ptr %48, align 16, !tbaa !9
  %50 = fsub x86_fp80 0xK3FFF8000000000000000, %49
  %51 = fptrunc x86_fp80 %50 to double
  %52 = tail call double @log(double noundef %51) #4
  %53 = fmul double %52, %47
  %54 = fpext double %53 to x86_fp80
  %55 = fsub x86_fp80 %39, %54
  %56 = fptrunc x86_fp80 %55 to double
  %57 = tail call double @exp(double noundef %56) #4
  %58 = fpext double %57 to x86_fp80
  %59 = tail call double @exp(double noundef %53) #4
  %60 = fsub double 1.000000e+00, %59
  %61 = fpext double %60 to x86_fp80
  %62 = getelementptr inbounds [11 x x86_fp80], ptr @pre, i64 0, i64 %indvars.iv63
  %63 = load x86_fp80, ptr %62, align 16, !tbaa !9
  %64 = fsub x86_fp80 %58, %63
  %65 = getelementptr inbounds [11 x x86_fp80], ptr @ans, i64 0, i64 %indvars.iv63
  %66 = load x86_fp80, ptr %65, align 16, !tbaa !9
  %67 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %61, x86_fp80 %64, x86_fp80 %66)
  store x86_fp80 %67, ptr %65, align 16, !tbaa !9
  store x86_fp80 %58, ptr %62, align 16, !tbaa !9
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = icmp slt i64 %indvars.iv.next64, %69
  br i1 %70, label %.lr.ph48, label %._crit_edge49, !llvm.loop !18

.lr.ph52:                                         ; preds = %.preheader40, %.lr.ph52
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %.lr.ph52 ], [ 0, %.preheader40 ]
  %71 = phi i32 [ %83, %.lr.ph52 ], [ %43, %.preheader40 ]
  %72 = getelementptr inbounds [11 x x86_fp80], ptr @ans, i64 0, i64 %indvars.iv66
  %73 = load x86_fp80, ptr %72, align 16, !tbaa !9
  %74 = fptrunc x86_fp80 %73 to double
  %75 = add nsw i32 %71, -1
  %76 = zext i32 %75 to i64
  %77 = icmp eq i64 %indvars.iv66, %76
  %78 = zext i1 %77 to i64
  %79 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %78
  %80 = load i8, ptr %79, align 1, !tbaa !19
  %81 = sext i8 %80 to i32
  %82 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %74, i32 noundef %81)
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %83 = load i32, ptr @n, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next67, %84
  br i1 %85, label %.lr.ph52, label %.backedge, !llvm.loop !20

._crit_edge56:                                    ; preds = %.backedge, %0
  ret i32 0
}

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

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

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

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

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

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 = { 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 = { 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 = { mustprogress 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 = !{!"long double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !12}


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