; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/301 Division 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"

@dp = external dso_local global [102 x [102 x [102 x double]]], align 16
@res = external dso_local global double, align 8
@r = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 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 double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @r, ptr noundef @s, ptr noundef @p)
  %14 = load i32, ptr @r, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %15
  %17 = load i32, ptr @s, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [102 x [102 x double]], ptr %16, i64 0, i64 %18
  %20 = load i32, ptr @p, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [102 x double], ptr %19, i64 0, i64 %21
  store double 1.000000e+00, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  %23 = load i32, ptr @r, align 4, !tbaa !5
  store i32 %23, ptr %2, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %172, %0
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = icmp sge i32 %25, 0
  br i1 %26, label %28, label %27

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

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %29 = load i32, ptr @s, align 4, !tbaa !5
  store i32 %29, ptr %4, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %168, %28
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = icmp sge i32 %31, 0
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %35 = load i32, ptr @p, align 4, !tbaa !5
  store i32 %35, ptr %5, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %164, %34
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = icmp sge i32 %37, 0
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %167

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = mul nsw i32 %41, %42
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = mul nsw i32 %44, %45
  %47 = add nsw i32 %43, %46
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = mul nsw i32 %48, %49
  %51 = add nsw i32 %47, %50
  store i32 %51, ptr %6, align 4, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %40
  store i32 10, ptr %3, align 4
  br label %161

55:                                               ; preds = %40
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = sub nsw i32 %56, 1
  %58 = icmp sge i32 %57, 0
  br i1 %58, label %59, label %90

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = mul nsw i32 %60, %61
  %63 = sitofp i32 %62 to double
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = sitofp i32 %64 to double
  %66 = fdiv double %63, %65
  store double %66, ptr %7, align 8, !tbaa !9
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %68
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [102 x [102 x double]], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [102 x double], ptr %72, i64 0, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = load double, ptr %7, align 8, !tbaa !9
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %80
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [102 x [102 x double]], ptr %81, i64 0, i64 %83
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [102 x double], ptr %84, i64 0, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = call double @llvm.fmuladd.f64(double %76, double %77, double %88)
  store double %89, ptr %87, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %90

90:                                               ; preds = %59, %55
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = sub nsw i32 %91, 1
  %93 = icmp sge i32 %92, 0
  br i1 %93, label %94, label %125

94:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %95 = load i32, ptr %2, align 4, !tbaa !5
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = mul nsw i32 %95, %96
  %98 = sitofp i32 %97 to double
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = sitofp i32 %99 to double
  %101 = fdiv double %98, %100
  store double %101, ptr %8, align 8, !tbaa !9
  %102 = load i32, ptr %2, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %103
  %105 = load i32, ptr %4, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [102 x [102 x double]], ptr %104, i64 0, i64 %106
  %108 = load i32, ptr %5, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [102 x double], ptr %107, i64 0, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = load double, ptr %8, align 8, !tbaa !9
  %113 = load i32, ptr %2, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %114
  %116 = load i32, ptr %4, align 4, !tbaa !5
  %117 = sub nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [102 x [102 x double]], ptr %115, i64 0, i64 %118
  %120 = load i32, ptr %5, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [102 x double], ptr %119, i64 0, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !9
  %124 = call double @llvm.fmuladd.f64(double %111, double %112, double %123)
  store double %124, ptr %122, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %125

125:                                              ; preds = %94, %90
  %126 = load i32, ptr %5, align 4, !tbaa !5
  %127 = sub nsw i32 %126, 1
  %128 = icmp sge i32 %127, 0
  br i1 %128, label %129, label %160

129:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %130 = load i32, ptr %4, align 4, !tbaa !5
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = mul nsw i32 %130, %131
  %133 = sitofp i32 %132 to double
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = sitofp i32 %134 to double
  %136 = fdiv double %133, %135
  store double %136, ptr %9, align 8, !tbaa !9
  %137 = load i32, ptr %2, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %138
  %140 = load i32, ptr %4, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [102 x [102 x double]], ptr %139, i64 0, i64 %141
  %143 = load i32, ptr %5, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [102 x double], ptr %142, i64 0, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = load double, ptr %9, align 8, !tbaa !9
  %148 = load i32, ptr %2, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %149
  %151 = load i32, ptr %4, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [102 x [102 x double]], ptr %150, i64 0, i64 %152
  %154 = load i32, ptr %5, align 4, !tbaa !5
  %155 = sub nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [102 x double], ptr %153, i64 0, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = call double @llvm.fmuladd.f64(double %146, double %147, double %158)
  store double %159, ptr %157, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %160

160:                                              ; preds = %129, %125
  store i32 0, ptr %3, align 4
  br label %161

161:                                              ; preds = %160, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %162 = load i32, ptr %3, align 4
  switch i32 %162, label %233 [
    i32 0, label %163
    i32 10, label %164
  ]

163:                                              ; preds = %161
  br label %164

164:                                              ; preds = %163, %161
  %165 = load i32, ptr %5, align 4, !tbaa !5
  %166 = add nsw i32 %165, -1
  store i32 %166, ptr %5, align 4, !tbaa !5
  br label %36, !llvm.loop !11

167:                                              ; preds = %39
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %4, align 4, !tbaa !5
  %170 = add nsw i32 %169, -1
  store i32 %170, ptr %4, align 4, !tbaa !5
  br label %30, !llvm.loop !13

171:                                              ; preds = %33
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %2, align 4, !tbaa !5
  %174 = add nsw i32 %173, -1
  store i32 %174, ptr %2, align 4, !tbaa !5
  br label %24, !llvm.loop !14

175:                                              ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %190, %175
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = load i32, ptr @r, align 4, !tbaa !5
  %179 = icmp sle i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %193

181:                                              ; preds = %176
  %182 = load i32, ptr %10, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %183
  %185 = getelementptr inbounds [102 x [102 x double]], ptr %184, i64 0, i64 0
  %186 = getelementptr inbounds [102 x double], ptr %185, i64 0, i64 0
  %187 = load double, ptr %186, align 16, !tbaa !9
  %188 = load double, ptr @res, align 8, !tbaa !9
  %189 = fadd double %188, %187
  store double %189, ptr @res, align 8, !tbaa !9
  br label %190

190:                                              ; preds = %181
  %191 = load i32, ptr %10, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %10, align 4, !tbaa !5
  br label %176, !llvm.loop !15

193:                                              ; preds = %180
  %194 = load double, ptr @res, align 8, !tbaa !9
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %194)
  store double 0.000000e+00, ptr @res, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %196

196:                                              ; preds = %209, %193
  %197 = load i32, ptr %11, align 4, !tbaa !5
  %198 = load i32, ptr @s, align 4, !tbaa !5
  %199 = icmp sle i32 %197, %198
  br i1 %199, label %201, label %200

200:                                              ; preds = %196
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %212

201:                                              ; preds = %196
  %202 = load i32, ptr %11, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [102 x [102 x double]], ptr @dp, i64 0, i64 %203
  %205 = getelementptr inbounds [102 x double], ptr %204, i64 0, i64 0
  %206 = load double, ptr %205, align 16, !tbaa !9
  %207 = load double, ptr @res, align 8, !tbaa !9
  %208 = fadd double %207, %206
  store double %208, ptr @res, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %201
  %210 = load i32, ptr %11, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %11, align 4, !tbaa !5
  br label %196, !llvm.loop !16

212:                                              ; preds = %200
  %213 = load double, ptr @res, align 8, !tbaa !9
  %214 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %213)
  store double 0.000000e+00, ptr @res, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %227, %212
  %216 = load i32, ptr %12, align 4, !tbaa !5
  %217 = load i32, ptr @p, align 4, !tbaa !5
  %218 = icmp sle i32 %216, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %215
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %230

220:                                              ; preds = %215
  %221 = load i32, ptr %12, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !9
  %225 = load double, ptr @res, align 8, !tbaa !9
  %226 = fadd double %225, %224
  store double %226, ptr @res, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %220
  %228 = load i32, ptr %12, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %12, align 4, !tbaa !5
  br label %215, !llvm.loop !17

230:                                              ; preds = %219
  %231 = load double, ptr @res, align 8, !tbaa !9
  %232 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %231)
  ret i32 0

233:                                              ; preds = %161
  unreachable
}

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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; 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

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 = { 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}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !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"

@dp = external dso_local local_unnamed_addr global [102 x [102 x [102 x double]]], align 16
@res = external dso_local local_unnamed_addr global double, align 8
@r = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 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 @r, ptr noundef nonnull @s, ptr noundef nonnull @p)
  %2 = load i32, ptr @r, align 4, !tbaa !5
  %.fr = freeze i32 %2
  %3 = sext i32 %.fr to i64
  %4 = load i32, ptr @s, align 4, !tbaa !5
  %.fr114 = freeze i32 %4
  %5 = sext i32 %.fr114 to i64
  %6 = load i32, ptr @p, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %3, i64 %5, i64 %7
  store double 1.000000e+00, ptr %8, align 8, !tbaa !9
  %9 = icmp sgt i32 %.fr, -1
  br i1 %9, label %.preheader69.lr.ph, label %.preheader.thread

.preheader.thread:                                ; preds = %0
  %res.promoted161 = load double, ptr @res, align 8, !tbaa !9
  br label %89

.preheader69.lr.ph:                               ; preds = %0
  %10 = or i32 %.fr114, %6
  %or.cond = icmp sgt i32 %10, -1
  br i1 %or.cond, label %.preheader69.us.us.preheader, label %.preheader

.preheader69.us.us.preheader:                     ; preds = %.preheader69.lr.ph
  %11 = zext nneg i32 %6 to i64
  %12 = zext nneg i32 %.fr114 to i64
  %13 = zext nneg i32 %.fr to i64
  br label %.preheader69.us.us

.preheader69.us.us:                               ; preds = %.preheader69.us.us.preheader, %._crit_edge73.split.us.us.us
  %indvars.iv138 = phi i64 [ %13, %.preheader69.us.us.preheader ], [ %indvars.iv.next139, %._crit_edge73.split.us.us.us ]
  %.not65.us.us = icmp eq i64 %indvars.iv138, 0
  %indvars.iv.next139 = add nsw i64 %indvars.iv138, -1
  br i1 %.not65.us.us, label %.preheader68.us.us.us.us, label %.preheader68.us.us85.us.preheader

.preheader68.us.us85.us.preheader:                ; preds = %.preheader69.us.us
  %14 = trunc nuw nsw i64 %indvars.iv138 to i32
  br label %.preheader68.us.us85.us

.preheader68.us.us85.us:                          ; preds = %.preheader68.us.us85.us.preheader, %._crit_edge.split.us76.us.us
  %indvars.iv126 = phi i64 [ %12, %.preheader68.us.us85.us.preheader ], [ %indvars.iv.next127, %._crit_edge.split.us76.us.us ]
  %15 = mul nuw nsw i64 %indvars.iv126, %indvars.iv138
  %.not66.us.us87.us = icmp eq i64 %indvars.iv126, 0
  %indvars.iv.next127 = add nsw i64 %indvars.iv126, -1
  %16 = trunc nuw i64 %15 to i32
  %17 = uitofp nneg i32 %16 to double
  br i1 %.not66.us.us87.us, label %.preheader68.us.us85.split.us.us, label %.preheader68.us.us85.split.us97.preheader

.preheader68.us.us85.split.us97.preheader:        ; preds = %.preheader68.us.us85.us, %37
  %indvars.iv = phi i64 [ %indvars.iv.next, %37 ], [ %11, %.preheader68.us.us85.us ]
  %18 = mul nuw nsw i64 %indvars.iv, %indvars.iv126
  %19 = add nuw nsw i64 %18, %15
  %20 = trunc nuw i64 %19 to i32
  %indvars122 = trunc i64 %indvars.iv to i32
  %21 = mul nuw nsw i32 %indvars122, %14
  %22 = add nuw nsw i32 %21, %20
  %23 = mul nuw nsw i64 %indvars.iv, %indvars.iv138
  %24 = trunc nuw i64 %23 to i32
  %25 = uitofp nneg i32 %24 to double
  %26 = uitofp nneg i32 %22 to double
  %27 = fdiv double %25, %26
  %28 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv138, i64 %indvars.iv126, i64 %indvars.iv
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv.next139, i64 %indvars.iv126, i64 %indvars.iv
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = tail call double @llvm.fmuladd.f64(double %29, double %27, double %31)
  store double %32, ptr %30, align 8, !tbaa !9
  %33 = fdiv double %17, %26
  %34 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv138, i64 %indvars.iv.next127, i64 %indvars.iv
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = tail call double @llvm.fmuladd.f64(double %29, double %33, double %35)
  store double %36, ptr %34, align 8, !tbaa !9
  %.not67.us75.us.us95 = icmp eq i64 %indvars.iv, 0
  br i1 %.not67.us75.us.us95, label %._crit_edge.split.us76.us.us, label %37

37:                                               ; preds = %.preheader68.us.us85.split.us97.preheader
  %38 = add nsw i64 %indvars.iv, -1
  %39 = trunc nuw i64 %18 to i32
  %40 = uitofp nneg i32 %39 to double
  %41 = fdiv double %40, %26
  %42 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv138, i64 %indvars.iv126, i64 %38
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = tail call double @llvm.fmuladd.f64(double %29, double %41, double %43)
  store double %44, ptr %42, align 8, !tbaa !9
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %45 = icmp sgt i64 %indvars.iv, 0
  br i1 %45, label %.preheader68.us.us85.split.us97.preheader, label %._crit_edge.split.us76.us.us, !llvm.loop !11

._crit_edge73.split.us.us.us:                     ; preds = %._crit_edge.split.us76.us.us, %._crit_edge.split.us.us.us.us.us
  %46 = icmp sgt i64 %indvars.iv138, 0
  br i1 %46, label %.preheader69.us.us, label %.preheader, !llvm.loop !13

.preheader68.us.us.us.us:                         ; preds = %.preheader69.us.us, %._crit_edge.split.us.us.us.us.us
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %._crit_edge.split.us.us.us.us.us ], [ %12, %.preheader69.us.us ]
  %.not66.us.us.us.us = icmp eq i64 %indvars.iv135, 0
  %indvars.iv.next136 = add nsw i64 %indvars.iv135, -1
  br i1 %.not66.us.us.us.us, label %._crit_edge.split.us.us.us.us.us, label %.lr.ph.split.us.us.us.split.us93.us

.lr.ph.split.us.us.us.split.us93.us:              ; preds = %.preheader68.us.us.us.us, %48
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %48 ], [ %11, %.preheader68.us.us.us.us ]
  %47 = icmp eq i64 %indvars.iv129, 0
  br i1 %47, label %._crit_edge.split.us.us.us.us.us, label %48

48:                                               ; preds = %.lr.ph.split.us.us.us.split.us93.us
  %49 = mul nuw i64 %indvars.iv129, %indvars.iv135
  %50 = trunc nuw i64 %49 to i32
  %51 = uitofp nneg i32 %50 to double
  %52 = fdiv double 0.000000e+00, %51
  %53 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 0, i64 %indvars.iv135, i64 %indvars.iv129
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 0, i64 %indvars.iv.next136, i64 %indvars.iv129
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = tail call double @llvm.fmuladd.f64(double %54, double %52, double %56)
  store double %57, ptr %55, align 8, !tbaa !9
  %58 = add nsw i64 %indvars.iv129, -1
  %59 = fdiv double %51, %51
  %60 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 0, i64 %indvars.iv135, i64 %58
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = tail call double @llvm.fmuladd.f64(double %54, double %59, double %61)
  store double %62, ptr %60, align 8, !tbaa !9
  %indvars.iv.next130 = add nsw i64 %indvars.iv129, -1
  %63 = icmp sgt i64 %indvars.iv129, 0
  br i1 %63, label %.lr.ph.split.us.us.us.split.us93.us, label %._crit_edge.split.us.us.us.us.us, !llvm.loop !11

._crit_edge.split.us.us.us.us.us:                 ; preds = %.lr.ph.split.us.us.us.split.us93.us, %48, %.preheader68.us.us.us.us
  %64 = icmp sgt i64 %indvars.iv135, 0
  br i1 %64, label %.preheader68.us.us.us.us, label %._crit_edge73.split.us.us.us, !llvm.loop !14

._crit_edge.split.us76.us.us:                     ; preds = %.preheader68.us.us85.split.us97.preheader, %37, %.preheader68.us.us85.split.us.us, %67
  %65 = icmp sgt i64 %indvars.iv126, 0
  br i1 %65, label %.preheader68.us.us85.us, label %._crit_edge73.split.us.us.us, !llvm.loop !14

.preheader68.us.us85.split.us.us:                 ; preds = %.preheader68.us.us85.us, %67
  %indvars.iv123 = phi i64 [ %indvars.iv.next124, %67 ], [ %11, %.preheader68.us.us85.us ]
  %66 = icmp eq i64 %indvars.iv123, 0
  br i1 %66, label %._crit_edge.split.us76.us.us, label %67

67:                                               ; preds = %.preheader68.us.us85.split.us.us
  %68 = mul nuw nsw i64 %indvars.iv123, %indvars.iv138
  %69 = trunc nuw i64 %68 to i32
  %70 = uitofp nneg i32 %69 to double
  %71 = fdiv double %70, %70
  %72 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv138, i64 0, i64 %indvars.iv123
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv.next139, i64 0, i64 %indvars.iv123
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = tail call double @llvm.fmuladd.f64(double %73, double %71, double %75)
  store double %76, ptr %74, align 8, !tbaa !9
  %77 = add nsw i64 %indvars.iv123, -1
  %78 = fdiv double 0.000000e+00, %70
  %79 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv138, i64 0, i64 %77
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = tail call double @llvm.fmuladd.f64(double %73, double %78, double %80)
  store double %81, ptr %79, align 8, !tbaa !9
  %indvars.iv.next124 = add nsw i64 %indvars.iv123, -1
  %82 = icmp sgt i64 %indvars.iv123, 0
  br i1 %82, label %.preheader68.us.us85.split.us.us, label %._crit_edge.split.us76.us.us, !llvm.loop !11

.preheader:                                       ; preds = %._crit_edge73.split.us.us.us, %.preheader69.lr.ph
  %res.promoted = load double, ptr @res, align 8, !tbaa !9
  %.not98 = icmp eq i32 %.fr, 0
  br i1 %.not98, label %89, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %83 = zext nneg i32 %.fr to i64
  %xtraiter = and i64 %83, 3
  %84 = icmp ult i32 %.fr, 4
  br i1 %84, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %83, 2147483644
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa174.ph = phi double [ poison, %.lr.ph.preheader ], [ %107, %.lr.ph ]
  %indvars.iv141.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next142.3, %.lr.ph ]
  %.unr = phi double [ %res.promoted, %.lr.ph.preheader ], [ %107, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv141.epil = phi i64 [ %indvars.iv.next142.epil, %.lr.ph.epil ], [ %indvars.iv141.unr, %._crit_edge.unr-lcssa ]
  %85 = phi double [ %88, %.lr.ph.epil ], [ %.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %86 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv141.epil
  %87 = load double, ptr %86, align 16, !tbaa !9
  %88 = fadd double %87, %85
  %indvars.iv.next142.epil = add nuw nsw i64 %indvars.iv141.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %.lcssa174 = phi double [ %.lcssa174.ph, %._crit_edge.unr-lcssa ], [ %88, %.lr.ph.epil ]
  store double %.lcssa174, ptr @res, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %.preheader.thread, %._crit_edge, %.preheader
  %90 = phi double [ %.lcssa174, %._crit_edge ], [ %res.promoted, %.preheader ], [ %res.promoted161, %.preheader.thread ]
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %90)
  store double 0.000000e+00, ptr @res, align 8, !tbaa !9
  %92 = load i32, ptr @s, align 4, !tbaa !5
  %.not63101 = icmp slt i32 %92, 1
  br i1 %.not63101, label %112, label %.lr.ph104.preheader

.lr.ph104.preheader:                              ; preds = %89
  %93 = zext nneg i32 %92 to i64
  %xtraiter178 = and i64 %93, 3
  %94 = icmp ult i32 %92, 4
  br i1 %94, label %._crit_edge105.unr-lcssa, label %.lr.ph104.preheader.new

.lr.ph104.preheader.new:                          ; preds = %.lr.ph104.preheader
  %unroll_iter183 = and i64 %93, 2147483644
  br label %.lr.ph104

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv141 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next142.3, %.lr.ph ]
  %95 = phi double [ %res.promoted, %.lr.ph.preheader.new ], [ %107, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %96 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv141
  %97 = load double, ptr %96, align 16, !tbaa !9
  %98 = fadd double %97, %95
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %99 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv.next142
  %100 = load double, ptr %99, align 16, !tbaa !9
  %101 = fadd double %100, %98
  %indvars.iv.next142.1 = add nuw nsw i64 %indvars.iv141, 2
  %102 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv.next142.1
  %103 = load double, ptr %102, align 16, !tbaa !9
  %104 = fadd double %103, %101
  %indvars.iv.next142.2 = add nuw nsw i64 %indvars.iv141, 3
  %105 = getelementptr inbounds [102 x [102 x [102 x double]]], ptr @dp, i64 0, i64 %indvars.iv.next142.2
  %106 = load double, ptr %105, align 16, !tbaa !9
  %107 = fadd double %106, %104
  %indvars.iv.next142.3 = add nuw nsw i64 %indvars.iv141, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !17

._crit_edge105.unr-lcssa:                         ; preds = %.lr.ph104, %.lr.ph104.preheader
  %.lcssa173.ph = phi double [ poison, %.lr.ph104.preheader ], [ %130, %.lr.ph104 ]
  %indvars.iv144.unr = phi i64 [ 1, %.lr.ph104.preheader ], [ %indvars.iv.next145.3, %.lr.ph104 ]
  %.unr180 = phi double [ 0.000000e+00, %.lr.ph104.preheader ], [ %130, %.lr.ph104 ]
  %lcmp.mod181.not = icmp eq i64 %xtraiter178, 0
  br i1 %lcmp.mod181.not, label %._crit_edge105, label %.lr.ph104.epil

.lr.ph104.epil:                                   ; preds = %._crit_edge105.unr-lcssa, %.lr.ph104.epil
  %indvars.iv144.epil = phi i64 [ %indvars.iv.next145.epil, %.lr.ph104.epil ], [ %indvars.iv144.unr, %._crit_edge105.unr-lcssa ]
  %108 = phi double [ %111, %.lr.ph104.epil ], [ %.unr180, %._crit_edge105.unr-lcssa ]
  %epil.iter179 = phi i64 [ %epil.iter179.next, %.lr.ph104.epil ], [ 0, %._crit_edge105.unr-lcssa ]
  %109 = getelementptr inbounds [102 x [102 x double]], ptr @dp, i64 0, i64 %indvars.iv144.epil
  %110 = load double, ptr %109, align 16, !tbaa !9
  %111 = fadd double %110, %108
  %indvars.iv.next145.epil = add nuw nsw i64 %indvars.iv144.epil, 1
  %epil.iter179.next = add i64 %epil.iter179, 1
  %epil.iter179.cmp.not = icmp eq i64 %epil.iter179.next, %xtraiter178
  br i1 %epil.iter179.cmp.not, label %._crit_edge105, label %.lr.ph104.epil, !llvm.loop !18

._crit_edge105:                                   ; preds = %.lr.ph104.epil, %._crit_edge105.unr-lcssa
  %.lcssa173 = phi double [ %.lcssa173.ph, %._crit_edge105.unr-lcssa ], [ %111, %.lr.ph104.epil ]
  store double %.lcssa173, ptr @res, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %._crit_edge105, %89
  %113 = phi double [ %.lcssa173, %._crit_edge105 ], [ 0.000000e+00, %89 ]
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %113)
  store double 0.000000e+00, ptr @res, align 8, !tbaa !9
  %115 = load i32, ptr @p, align 4, !tbaa !5
  %.not64108 = icmp slt i32 %115, 1
  br i1 %.not64108, label %135, label %.lr.ph111.preheader

.lr.ph111.preheader:                              ; preds = %112
  %116 = zext nneg i32 %115 to i64
  %xtraiter185 = and i64 %116, 7
  %117 = icmp ult i32 %115, 8
  br i1 %117, label %._crit_edge112.unr-lcssa, label %.lr.ph111.preheader.new

.lr.ph111.preheader.new:                          ; preds = %.lr.ph111.preheader
  %unroll_iter190 = and i64 %116, 2147483640
  br label %.lr.ph111

.lr.ph104:                                        ; preds = %.lr.ph104, %.lr.ph104.preheader.new
  %indvars.iv144 = phi i64 [ 1, %.lr.ph104.preheader.new ], [ %indvars.iv.next145.3, %.lr.ph104 ]
  %118 = phi double [ 0.000000e+00, %.lr.ph104.preheader.new ], [ %130, %.lr.ph104 ]
  %niter184 = phi i64 [ 0, %.lr.ph104.preheader.new ], [ %niter184.next.3, %.lr.ph104 ]
  %119 = getelementptr inbounds [102 x [102 x double]], ptr @dp, i64 0, i64 %indvars.iv144
  %120 = load double, ptr %119, align 16, !tbaa !9
  %121 = fadd double %120, %118
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %122 = getelementptr inbounds [102 x [102 x double]], ptr @dp, i64 0, i64 %indvars.iv.next145
  %123 = load double, ptr %122, align 16, !tbaa !9
  %124 = fadd double %123, %121
  %indvars.iv.next145.1 = add nuw nsw i64 %indvars.iv144, 2
  %125 = getelementptr inbounds [102 x [102 x double]], ptr @dp, i64 0, i64 %indvars.iv.next145.1
  %126 = load double, ptr %125, align 16, !tbaa !9
  %127 = fadd double %126, %124
  %indvars.iv.next145.2 = add nuw nsw i64 %indvars.iv144, 3
  %128 = getelementptr inbounds [102 x [102 x double]], ptr @dp, i64 0, i64 %indvars.iv.next145.2
  %129 = load double, ptr %128, align 16, !tbaa !9
  %130 = fadd double %129, %127
  %indvars.iv.next145.3 = add nuw nsw i64 %indvars.iv144, 4
  %niter184.next.3 = add i64 %niter184, 4
  %niter184.ncmp.3 = icmp eq i64 %niter184.next.3, %unroll_iter183
  br i1 %niter184.ncmp.3, label %._crit_edge105.unr-lcssa, label %.lr.ph104, !llvm.loop !19

._crit_edge112.unr-lcssa:                         ; preds = %.lr.ph111, %.lr.ph111.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph111.preheader ], [ %162, %.lr.ph111 ]
  %indvars.iv149.unr = phi i64 [ 1, %.lr.ph111.preheader ], [ %indvars.iv.next150.7, %.lr.ph111 ]
  %.unr187 = phi double [ 0.000000e+00, %.lr.ph111.preheader ], [ %162, %.lr.ph111 ]
  %lcmp.mod188.not = icmp eq i64 %xtraiter185, 0
  br i1 %lcmp.mod188.not, label %._crit_edge112, label %.lr.ph111.epil

.lr.ph111.epil:                                   ; preds = %._crit_edge112.unr-lcssa, %.lr.ph111.epil
  %indvars.iv149.epil = phi i64 [ %indvars.iv.next150.epil, %.lr.ph111.epil ], [ %indvars.iv149.unr, %._crit_edge112.unr-lcssa ]
  %131 = phi double [ %134, %.lr.ph111.epil ], [ %.unr187, %._crit_edge112.unr-lcssa ]
  %epil.iter186 = phi i64 [ %epil.iter186.next, %.lr.ph111.epil ], [ 0, %._crit_edge112.unr-lcssa ]
  %132 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv149.epil
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = fadd double %133, %131
  %indvars.iv.next150.epil = add nuw nsw i64 %indvars.iv149.epil, 1
  %epil.iter186.next = add i64 %epil.iter186, 1
  %epil.iter186.cmp.not = icmp eq i64 %epil.iter186.next, %xtraiter185
  br i1 %epil.iter186.cmp.not, label %._crit_edge112, label %.lr.ph111.epil, !llvm.loop !20

._crit_edge112:                                   ; preds = %.lr.ph111.epil, %._crit_edge112.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge112.unr-lcssa ], [ %134, %.lr.ph111.epil ]
  store double %.lcssa, ptr @res, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %._crit_edge112, %112
  %136 = phi double [ %.lcssa, %._crit_edge112 ], [ 0.000000e+00, %112 ]
  %137 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %136)
  ret i32 0

.lr.ph111:                                        ; preds = %.lr.ph111, %.lr.ph111.preheader.new
  %indvars.iv149 = phi i64 [ 1, %.lr.ph111.preheader.new ], [ %indvars.iv.next150.7, %.lr.ph111 ]
  %138 = phi double [ 0.000000e+00, %.lr.ph111.preheader.new ], [ %162, %.lr.ph111 ]
  %niter191 = phi i64 [ 0, %.lr.ph111.preheader.new ], [ %niter191.next.7, %.lr.ph111 ]
  %139 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv149
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = fadd double %140, %138
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %142 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv.next150
  %143 = load double, ptr %142, align 8, !tbaa !9
  %144 = fadd double %143, %141
  %indvars.iv.next150.1 = add nuw nsw i64 %indvars.iv149, 2
  %145 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv.next150.1
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = fadd double %146, %144
  %indvars.iv.next150.2 = add nuw nsw i64 %indvars.iv149, 3
  %148 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv.next150.2
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = fadd double %149, %147
  %indvars.iv.next150.3 = add nuw nsw i64 %indvars.iv149, 4
  %151 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv.next150.3
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = fadd double %152, %150
  %indvars.iv.next150.4 = add nuw nsw i64 %indvars.iv149, 5
  %154 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv.next150.4
  %155 = load double, ptr %154, align 8, !tbaa !9
  %156 = fadd double %155, %153
  %indvars.iv.next150.5 = add nuw nsw i64 %indvars.iv149, 6
  %157 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv.next150.5
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = fadd double %158, %156
  %indvars.iv.next150.6 = add nuw nsw i64 %indvars.iv149, 7
  %160 = getelementptr inbounds [102 x double], ptr @dp, i64 0, i64 %indvars.iv.next150.6
  %161 = load double, ptr %160, align 8, !tbaa !9
  %162 = fadd double %161, %159
  %indvars.iv.next150.7 = add nuw nsw i64 %indvars.iv149, 8
  %niter191.next.7 = add i64 %niter191, 8
  %niter191.ncmp.7 = icmp eq i64 %niter191.next.7, %unroll_iter190
  br i1 %niter191.ncmp.7, label %._crit_edge112.unr-lcssa, label %.lr.ph111, !llvm.loop !21
}

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

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

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

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 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}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !12}


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