; LLVM IR from simbody/simbody :: SimTKmath/Integrators/src/CPodes/sundials/src/sundials (sundials_dense)

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

; Function Attrs: nounwind uwtable
define dso_local i32 @denseGEQRF(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %233, %5
  %22 = load i32, ptr %19, align 4, !tbaa !9
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %25, label %236

25:                                               ; preds = %21
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i32, ptr %19, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds ptr, ptr %26, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %30, ptr %16, align 8, !tbaa !5
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  %32 = load i32, ptr %19, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr %31, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !11
  store double %35, ptr %11, align 8, !tbaa !11
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i64 0
  store double 1.000000e+00, ptr %37, align 8, !tbaa !11
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %68, %25
  %39 = load i32, ptr %18, align 4, !tbaa !9
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = load i32, ptr %19, align 4, !tbaa !9
  %42 = sub nsw i32 %40, %41
  %43 = icmp slt i32 %39, %42
  br i1 %43, label %44, label %71

44:                                               ; preds = %38
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = load i32, ptr %18, align 4, !tbaa !9
  %47 = load i32, ptr %19, align 4, !tbaa !9
  %48 = add nsw i32 %46, %47
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %45, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !11
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load i32, ptr %18, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds double, ptr %52, i64 %54
  store double %51, ptr %55, align 8, !tbaa !11
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = load i32, ptr %18, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = load i32, ptr %18, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = load double, ptr %12, align 8, !tbaa !11
  %67 = call double @llvm.fmuladd.f64(double %60, double %65, double %66)
  store double %67, ptr %12, align 8, !tbaa !11
  br label %68

68:                                               ; preds = %44
  %69 = load i32, ptr %18, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %18, align 4, !tbaa !9
  br label %38, !llvm.loop !13

71:                                               ; preds = %38
  %72 = load double, ptr %12, align 8, !tbaa !11
  %73 = fcmp une double %72, 0.000000e+00
  br i1 %73, label %74, label %126

74:                                               ; preds = %71
  %75 = load double, ptr %11, align 8, !tbaa !11
  %76 = load double, ptr %11, align 8, !tbaa !11
  %77 = load double, ptr %12, align 8, !tbaa !11
  %78 = call double @llvm.fmuladd.f64(double %75, double %76, double %77)
  %79 = call double @RSqrt(double noundef %78)
  store double %79, ptr %13, align 8, !tbaa !11
  %80 = load double, ptr %11, align 8, !tbaa !11
  %81 = fcmp ole double %80, 0.000000e+00
  br i1 %81, label %82, label %86

82:                                               ; preds = %74
  %83 = load double, ptr %11, align 8, !tbaa !11
  %84 = load double, ptr %13, align 8, !tbaa !11
  %85 = fsub double %83, %84
  br label %93

86:                                               ; preds = %74
  %87 = load double, ptr %12, align 8, !tbaa !11
  %88 = fneg double %87
  %89 = load double, ptr %11, align 8, !tbaa !11
  %90 = load double, ptr %13, align 8, !tbaa !11
  %91 = fadd double %89, %90
  %92 = fdiv double %88, %91
  br label %93

93:                                               ; preds = %86, %82
  %94 = phi double [ %85, %82 ], [ %92, %86 ]
  store double %94, ptr %14, align 8, !tbaa !11
  %95 = load double, ptr %14, align 8, !tbaa !11
  %96 = load double, ptr %14, align 8, !tbaa !11
  %97 = fmul double %95, %96
  store double %97, ptr %15, align 8, !tbaa !11
  %98 = load double, ptr %15, align 8, !tbaa !11
  %99 = fmul double 2.000000e+00, %98
  %100 = load double, ptr %12, align 8, !tbaa !11
  %101 = load double, ptr %15, align 8, !tbaa !11
  %102 = fadd double %100, %101
  %103 = fdiv double %99, %102
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  store double %103, ptr %107, align 8, !tbaa !11
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %122, %93
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = load i32, ptr %19, align 4, !tbaa !9
  %112 = sub nsw i32 %110, %111
  %113 = icmp slt i32 %109, %112
  br i1 %113, label %114, label %125

114:                                              ; preds = %108
  %115 = load double, ptr %14, align 8, !tbaa !11
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !11
  %121 = fdiv double %120, %115
  store double %121, ptr %119, align 8, !tbaa !11
  br label %122

122:                                              ; preds = %114
  %123 = load i32, ptr %18, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %18, align 4, !tbaa !9
  br label %108, !llvm.loop !15

125:                                              ; preds = %108
  br label %131

126:                                              ; preds = %71
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load i32, ptr %19, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds double, ptr %127, i64 %129
  store double 0.000000e+00, ptr %130, align 8, !tbaa !11
  br label %131

131:                                              ; preds = %126, %125
  %132 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %132, ptr %20, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %201, %131
  %134 = load i32, ptr %20, align 4, !tbaa !9
  %135 = load i32, ptr %8, align 4, !tbaa !9
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %137, label %204

137:                                              ; preds = %133
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds ptr, ptr %138, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  store ptr %142, ptr %17, align 8, !tbaa !5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %164, %137
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %7, align 4, !tbaa !9
  %146 = load i32, ptr %19, align 4, !tbaa !9
  %147 = sub nsw i32 %145, %146
  %148 = icmp slt i32 %144, %147
  br i1 %148, label %149, label %167

149:                                              ; preds = %143
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = add nsw i32 %151, %152
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds double, ptr %150, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !11
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds double, ptr %157, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !11
  %162 = load double, ptr %12, align 8, !tbaa !11
  %163 = call double @llvm.fmuladd.f64(double %156, double %161, double %162)
  store double %163, ptr %12, align 8, !tbaa !11
  br label %164

164:                                              ; preds = %149
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %18, align 4, !tbaa !9
  br label %143, !llvm.loop !16

167:                                              ; preds = %143
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = load i32, ptr %19, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !11
  %173 = load double, ptr %12, align 8, !tbaa !11
  %174 = fmul double %173, %172
  store double %174, ptr %12, align 8, !tbaa !11
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %197, %167
  %176 = load i32, ptr %18, align 4, !tbaa !9
  %177 = load i32, ptr %7, align 4, !tbaa !9
  %178 = load i32, ptr %19, align 4, !tbaa !9
  %179 = sub nsw i32 %177, %178
  %180 = icmp slt i32 %176, %179
  br i1 %180, label %181, label %200

181:                                              ; preds = %175
  %182 = load double, ptr %12, align 8, !tbaa !11
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = load i32, ptr %18, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds double, ptr %183, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = load i32, ptr %18, align 4, !tbaa !9
  %190 = load i32, ptr %19, align 4, !tbaa !9
  %191 = add nsw i32 %189, %190
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds double, ptr %188, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !11
  %195 = fneg double %182
  %196 = call double @llvm.fmuladd.f64(double %195, double %187, double %194)
  store double %196, ptr %193, align 8, !tbaa !11
  br label %197

197:                                              ; preds = %181
  %198 = load i32, ptr %18, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %18, align 4, !tbaa !9
  br label %175, !llvm.loop !17

200:                                              ; preds = %175
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %20, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %20, align 4, !tbaa !9
  br label %133, !llvm.loop !18

204:                                              ; preds = %133
  %205 = load i32, ptr %19, align 4, !tbaa !9
  %206 = load i32, ptr %7, align 4, !tbaa !9
  %207 = sub nsw i32 %206, 1
  %208 = icmp slt i32 %205, %207
  br i1 %208, label %209, label %232

209:                                              ; preds = %204
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %210

210:                                              ; preds = %228, %209
  %211 = load i32, ptr %18, align 4, !tbaa !9
  %212 = load i32, ptr %7, align 4, !tbaa !9
  %213 = load i32, ptr %19, align 4, !tbaa !9
  %214 = sub nsw i32 %212, %213
  %215 = icmp slt i32 %211, %214
  br i1 %215, label %216, label %231

216:                                              ; preds = %210
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = load i32, ptr %18, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !11
  %222 = load ptr, ptr %16, align 8, !tbaa !5
  %223 = load i32, ptr %18, align 4, !tbaa !9
  %224 = load i32, ptr %19, align 4, !tbaa !9
  %225 = add nsw i32 %223, %224
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds double, ptr %222, i64 %226
  store double %221, ptr %227, align 8, !tbaa !11
  br label %228

228:                                              ; preds = %216
  %229 = load i32, ptr %18, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %18, align 4, !tbaa !9
  br label %210, !llvm.loop !19

231:                                              ; preds = %210
  br label %232

232:                                              ; preds = %231, %204
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %19, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %19, align 4, !tbaa !9
  br label %21, !llvm.loop !20

236:                                              ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret i32 0
}

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

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

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

declare double @RSqrt(double noundef) #3

attributes #0 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @denseGEQRF(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4) local_unnamed_addr #0 {
  %6 = icmp sgt i32 %2, 0
  br i1 %6, label %.lr.ph121, label %._crit_edge122

.lr.ph121:                                        ; preds = %5
  %7 = ptrtoint ptr %4 to i64
  %8 = add nsw i32 %1, -1
  %9 = sext i32 %1 to i64
  %10 = sext i32 %8 to i64
  %wide.trip.count156 = zext nneg i32 %2 to i64
  br label %11

11:                                               ; preds = %.lr.ph121, %.loopexit
  %indvars.iv142 = phi i64 [ 0, %.lr.ph121 ], [ %indvars.iv.next143, %.loopexit ]
  %indvars.iv125 = phi i32 [ %1, %.lr.ph121 ], [ %indvars.iv.next126, %.loopexit ]
  %12 = zext i32 %indvars.iv125 to i64
  %13 = zext i32 %indvars.iv125 to i64
  %14 = zext i32 %indvars.iv125 to i64
  %15 = add nsw i64 %14, -1
  %16 = zext i32 %indvars.iv125 to i64
  %17 = add nsw i64 %16, -1
  %18 = zext i32 %indvars.iv125 to i64
  %19 = add nsw i64 %18, -1
  %20 = zext i32 %indvars.iv125 to i64
  %21 = zext i32 %indvars.iv125 to i64
  %22 = shl nuw nsw i64 %21, 3
  %23 = add nuw i64 %indvars.iv142, %21
  %24 = shl i64 %23, 3
  %scevgep170 = getelementptr i8, ptr %4, i64 %22
  %25 = zext i32 %indvars.iv125 to i64
  %26 = add nsw i64 %25, -1
  %27 = shl nuw nsw i64 %indvars.iv142, 3
  %28 = sub i64 %27, %7
  %29 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv142
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = ptrtoint ptr %30 to i64
  %32 = getelementptr inbounds double, ptr %30, i64 %indvars.iv142
  %33 = load double, ptr %32, align 8, !tbaa !9
  store double 1.000000e+00, ptr %4, align 8, !tbaa !9
  %34 = sub nsw i64 %9, %indvars.iv142
  %35 = icmp sgt i64 %34, 1
  br i1 %35, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %11
  %36 = add nsw i64 %16, -2
  %invariant.gep = getelementptr inbounds double, ptr %30, i64 %indvars.iv142
  %xtraiter = and i64 %17, 3
  %37 = icmp ult i64 %36, 3
  br i1 %37, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %17, -4
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.08996 = phi double [ 0.000000e+00, %.lr.ph.preheader.new ], [ %49, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv
  %38 = load double, ptr %gep, align 8, !tbaa !9
  %39 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double %38, ptr %39, align 8, !tbaa !9
  %40 = tail call double @llvm.fmuladd.f64(double %38, double %38, double %.08996)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %gep.1 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next
  %41 = load double, ptr %gep.1, align 8, !tbaa !9
  %42 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next
  store double %41, ptr %42, align 8, !tbaa !9
  %43 = tail call double @llvm.fmuladd.f64(double %41, double %41, double %40)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %gep.2 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next.1
  %44 = load double, ptr %gep.2, align 8, !tbaa !9
  %45 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next.1
  store double %44, ptr %45, align 8, !tbaa !9
  %46 = tail call double @llvm.fmuladd.f64(double %44, double %44, double %43)
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %gep.3 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next.2
  %47 = load double, ptr %gep.3, align 8, !tbaa !9
  %48 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next.2
  store double %47, ptr %48, align 8, !tbaa !9
  %49 = tail call double @llvm.fmuladd.f64(double %47, double %47, double %46)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 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 !11

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %49, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.08996.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %49, %.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.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %.08996.epil = phi double [ %52, %.lr.ph.epil ], [ %.08996.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %gep.epil = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.epil
  %50 = load double, ptr %gep.epil, align 8, !tbaa !9
  %51 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.epil
  store double %50, ptr %51, align 8, !tbaa !9
  %52 = tail call double @llvm.fmuladd.f64(double %50, double %50, double %.08996.epil)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.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 !13

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %52, %.lr.ph.epil ]
  %53 = fcmp une double %.lcssa, 0.000000e+00
  br i1 %53, label %54, label %._crit_edge.thread

54:                                               ; preds = %._crit_edge
  %55 = tail call double @llvm.fmuladd.f64(double %33, double %33, double %.lcssa)
  %56 = tail call double @RSqrt(double noundef %55) #4
  %57 = fcmp ugt double %33, 0.000000e+00
  %58 = fsub double %33, %56
  %59 = fneg double %.lcssa
  %60 = fadd double %33, %56
  %61 = fdiv double %59, %60
  %62 = select i1 %57, double %61, double %58
  %63 = fmul double %62, %62
  %64 = fmul double %63, 2.000000e+00
  %65 = fadd double %.lcssa, %63
  %66 = fdiv double %64, %65
  %67 = getelementptr inbounds double, ptr %3, i64 %indvars.iv142
  store double %66, ptr %67, align 8, !tbaa !9
  br i1 %35, label %.lr.ph101.preheader, label %.lr.ph114

.lr.ph101.preheader:                              ; preds = %54
  %wide.trip.count130 = zext i32 %indvars.iv125 to i64
  %min.iters.check188 = icmp ult i64 %19, 2
  br i1 %min.iters.check188, label %.lr.ph101.preheader204, label %vector.ph189

vector.ph189:                                     ; preds = %.lr.ph101.preheader
  %n.vec191 = and i64 %19, -2
  %ind.end192 = or i64 %19, 1
  %broadcast.splatinsert198 = insertelement <2 x double> poison, double %62, i64 0
  %broadcast.splat199 = shufflevector <2 x double> %broadcast.splatinsert198, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body194

vector.body194:                                   ; preds = %vector.body194, %vector.ph189
  %index195 = phi i64 [ 0, %vector.ph189 ], [ %index.next200, %vector.body194 ]
  %offset.idx196 = or disjoint i64 %index195, 1
  %68 = getelementptr inbounds double, ptr %4, i64 %offset.idx196
  %wide.load197 = load <2 x double>, ptr %68, align 8, !tbaa !9
  %69 = fdiv <2 x double> %wide.load197, %broadcast.splat199
  store <2 x double> %69, ptr %68, align 8, !tbaa !9
  %index.next200 = add nuw i64 %index195, 2
  %70 = icmp eq i64 %index.next200, %n.vec191
  br i1 %70, label %middle.block186, label %vector.body194, !llvm.loop !15

middle.block186:                                  ; preds = %vector.body194
  %cmp.n201 = icmp eq i64 %19, %n.vec191
  br i1 %cmp.n201, label %.lr.ph114, label %.lr.ph101.preheader204

.lr.ph101.preheader204:                           ; preds = %middle.block186, %.lr.ph101.preheader
  %indvars.iv127.ph = phi i64 [ 1, %.lr.ph101.preheader ], [ %ind.end192, %middle.block186 ]
  br label %.lr.ph101

.lr.ph101:                                        ; preds = %.lr.ph101.preheader204, %.lr.ph101
  %indvars.iv127 = phi i64 [ %indvars.iv.next128, %.lr.ph101 ], [ %indvars.iv127.ph, %.lr.ph101.preheader204 ]
  %71 = getelementptr inbounds double, ptr %4, i64 %indvars.iv127
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = fdiv double %72, %62
  store double %73, ptr %71, align 8, !tbaa !9
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next128, %wide.trip.count130
  br i1 %exitcond131.not, label %.lr.ph114, label %.lr.ph101, !llvm.loop !18

._crit_edge.thread:                               ; preds = %11, %._crit_edge
  %74 = getelementptr inbounds double, ptr %3, i64 %indvars.iv142
  store double 0.000000e+00, ptr %74, align 8, !tbaa !9
  br label %.lr.ph114

.lr.ph114:                                        ; preds = %.lr.ph101, %middle.block186, %._crit_edge.thread, %54
  %75 = icmp sgt i64 %34, 0
  %76 = getelementptr inbounds double, ptr %3, i64 %indvars.iv142
  %wide.trip.count140 = zext i32 %indvars.iv125 to i64
  %xtraiter207 = and i64 %14, 3
  %77 = icmp ult i64 %15, 3
  %unroll_iter211 = and i64 %14, 4294967292
  %lcmp.mod209.not = icmp eq i64 %xtraiter207, 0
  %min.iters.check173 = icmp ult i32 %indvars.iv125, 4
  %n.vec176 = and i64 %20, 4294967292
  %cmp.n185 = icmp eq i64 %n.vec176, %20
  %xtraiter213 = and i64 %13, 1
  %lcmp.mod214.not = icmp eq i64 %xtraiter213, 0
  %78 = add nsw i64 %13, -1
  br label %79

79:                                               ; preds = %.lr.ph114, %._crit_edge111
  %indvars.iv144 = phi i64 [ %indvars.iv142, %.lr.ph114 ], [ %indvars.iv.next145, %._crit_edge111 ]
  %80 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv144
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  br i1 %75, label %.lr.ph105.preheader, label %._crit_edge111

.lr.ph105.preheader:                              ; preds = %79
  %invariant.gep161 = getelementptr inbounds double, ptr %81, i64 %indvars.iv142
  br i1 %77, label %._crit_edge106.unr-lcssa, label %.lr.ph105

.lr.ph105:                                        ; preds = %.lr.ph105.preheader, %.lr.ph105
  %indvars.iv132 = phi i64 [ %indvars.iv.next133.3, %.lr.ph105 ], [ 0, %.lr.ph105.preheader ]
  %.190102 = phi double [ %97, %.lr.ph105 ], [ 0.000000e+00, %.lr.ph105.preheader ]
  %niter212 = phi i64 [ %niter212.next.3, %.lr.ph105 ], [ 0, %.lr.ph105.preheader ]
  %gep162 = getelementptr inbounds double, ptr %invariant.gep161, i64 %indvars.iv132
  %82 = load double, ptr %gep162, align 8, !tbaa !9
  %83 = getelementptr inbounds double, ptr %4, i64 %indvars.iv132
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = tail call double @llvm.fmuladd.f64(double %82, double %84, double %.190102)
  %indvars.iv.next133 = or disjoint i64 %indvars.iv132, 1
  %gep162.1 = getelementptr inbounds double, ptr %invariant.gep161, i64 %indvars.iv.next133
  %86 = load double, ptr %gep162.1, align 8, !tbaa !9
  %87 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next133
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = tail call double @llvm.fmuladd.f64(double %86, double %88, double %85)
  %indvars.iv.next133.1 = or disjoint i64 %indvars.iv132, 2
  %gep162.2 = getelementptr inbounds double, ptr %invariant.gep161, i64 %indvars.iv.next133.1
  %90 = load double, ptr %gep162.2, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next133.1
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = tail call double @llvm.fmuladd.f64(double %90, double %92, double %89)
  %indvars.iv.next133.2 = or disjoint i64 %indvars.iv132, 3
  %gep162.3 = getelementptr inbounds double, ptr %invariant.gep161, i64 %indvars.iv.next133.2
  %94 = load double, ptr %gep162.3, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next133.2
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = tail call double @llvm.fmuladd.f64(double %94, double %96, double %93)
  %indvars.iv.next133.3 = add nuw nsw i64 %indvars.iv132, 4
  %niter212.next.3 = add i64 %niter212, 4
  %niter212.ncmp.3 = icmp eq i64 %niter212.next.3, %unroll_iter211
  br i1 %niter212.ncmp.3, label %._crit_edge106.unr-lcssa, label %.lr.ph105, !llvm.loop !19

._crit_edge106.unr-lcssa:                         ; preds = %.lr.ph105, %.lr.ph105.preheader
  %.lcssa205.ph = phi double [ poison, %.lr.ph105.preheader ], [ %97, %.lr.ph105 ]
  %indvars.iv132.unr = phi i64 [ 0, %.lr.ph105.preheader ], [ %indvars.iv.next133.3, %.lr.ph105 ]
  %.190102.unr = phi double [ 0.000000e+00, %.lr.ph105.preheader ], [ %97, %.lr.ph105 ]
  br i1 %lcmp.mod209.not, label %._crit_edge106, label %.lr.ph105.epil

.lr.ph105.epil:                                   ; preds = %._crit_edge106.unr-lcssa, %.lr.ph105.epil
  %indvars.iv132.epil = phi i64 [ %indvars.iv.next133.epil, %.lr.ph105.epil ], [ %indvars.iv132.unr, %._crit_edge106.unr-lcssa ]
  %.190102.epil = phi double [ %101, %.lr.ph105.epil ], [ %.190102.unr, %._crit_edge106.unr-lcssa ]
  %epil.iter208 = phi i64 [ %epil.iter208.next, %.lr.ph105.epil ], [ 0, %._crit_edge106.unr-lcssa ]
  %gep162.epil = getelementptr inbounds double, ptr %invariant.gep161, i64 %indvars.iv132.epil
  %98 = load double, ptr %gep162.epil, align 8, !tbaa !9
  %99 = getelementptr inbounds double, ptr %4, i64 %indvars.iv132.epil
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = tail call double @llvm.fmuladd.f64(double %98, double %100, double %.190102.epil)
  %indvars.iv.next133.epil = add nuw nsw i64 %indvars.iv132.epil, 1
  %epil.iter208.next = add i64 %epil.iter208, 1
  %epil.iter208.cmp.not = icmp eq i64 %epil.iter208.next, %xtraiter207
  br i1 %epil.iter208.cmp.not, label %._crit_edge106, label %.lr.ph105.epil, !llvm.loop !20

._crit_edge106:                                   ; preds = %.lr.ph105.epil, %._crit_edge106.unr-lcssa
  %.lcssa205 = phi double [ %.lcssa205.ph, %._crit_edge106.unr-lcssa ], [ %101, %.lr.ph105.epil ]
  br i1 %75, label %.lr.ph110, label %._crit_edge111

.lr.ph110:                                        ; preds = %._crit_edge106
  %102 = load double, ptr %76, align 8, !tbaa !9
  %103 = fneg double %.lcssa205
  %104 = fmul double %102, %103
  %invariant.gep163 = getelementptr inbounds double, ptr %81, i64 %indvars.iv142
  br i1 %min.iters.check173, label %scalar.ph172.preheader, label %vector.memcheck169

vector.memcheck169:                               ; preds = %.lr.ph110
  %scevgep = getelementptr i8, ptr %81, i64 %24
  %bound0 = icmp ult ptr %invariant.gep163, %scevgep170
  %bound1 = icmp ugt ptr %scevgep, %4
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph172.preheader, label %vector.ph174

vector.ph174:                                     ; preds = %vector.memcheck169
  %broadcast.splatinsert = insertelement <2 x double> poison, double %104, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body178

vector.body178:                                   ; preds = %vector.body178, %vector.ph174
  %index179 = phi i64 [ 0, %vector.ph174 ], [ %index.next184, %vector.body178 ]
  %105 = getelementptr inbounds double, ptr %4, i64 %index179
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  %wide.load180 = load <2 x double>, ptr %105, align 8, !tbaa !9, !alias.scope !21
  %wide.load181 = load <2 x double>, ptr %106, align 8, !tbaa !9, !alias.scope !21
  %107 = getelementptr inbounds double, ptr %invariant.gep163, i64 %index179
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  %wide.load182 = load <2 x double>, ptr %107, align 8, !tbaa !9, !alias.scope !24, !noalias !21
  %wide.load183 = load <2 x double>, ptr %108, align 8, !tbaa !9, !alias.scope !24, !noalias !21
  %109 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load180, <2 x double> %wide.load182)
  %110 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load181, <2 x double> %wide.load183)
  store <2 x double> %109, ptr %107, align 8, !tbaa !9, !alias.scope !24, !noalias !21
  store <2 x double> %110, ptr %108, align 8, !tbaa !9, !alias.scope !24, !noalias !21
  %index.next184 = add nuw i64 %index179, 4
  %111 = icmp eq i64 %index.next184, %n.vec176
  br i1 %111, label %middle.block171, label %vector.body178, !llvm.loop !26

middle.block171:                                  ; preds = %vector.body178
  br i1 %cmp.n185, label %._crit_edge111, label %scalar.ph172.preheader

scalar.ph172.preheader:                           ; preds = %middle.block171, %vector.memcheck169, %.lr.ph110
  %indvars.iv137.ph = phi i64 [ 0, %vector.memcheck169 ], [ 0, %.lr.ph110 ], [ %n.vec176, %middle.block171 ]
  br i1 %lcmp.mod214.not, label %scalar.ph172.prol.loopexit, label %scalar.ph172.prol

scalar.ph172.prol:                                ; preds = %scalar.ph172.preheader
  %112 = getelementptr inbounds double, ptr %4, i64 %indvars.iv137.ph
  %113 = load double, ptr %112, align 8, !tbaa !9
  %gep164.prol = getelementptr inbounds double, ptr %invariant.gep163, i64 %indvars.iv137.ph
  %114 = load double, ptr %gep164.prol, align 8, !tbaa !9
  %115 = tail call double @llvm.fmuladd.f64(double %104, double %113, double %114)
  store double %115, ptr %gep164.prol, align 8, !tbaa !9
  %indvars.iv.next138.prol = or disjoint i64 %indvars.iv137.ph, 1
  br label %scalar.ph172.prol.loopexit

scalar.ph172.prol.loopexit:                       ; preds = %scalar.ph172.prol, %scalar.ph172.preheader
  %indvars.iv137.unr = phi i64 [ %indvars.iv137.ph, %scalar.ph172.preheader ], [ %indvars.iv.next138.prol, %scalar.ph172.prol ]
  %116 = icmp eq i64 %indvars.iv137.ph, %78
  br i1 %116, label %._crit_edge111, label %scalar.ph172

scalar.ph172:                                     ; preds = %scalar.ph172.prol.loopexit, %scalar.ph172
  %indvars.iv137 = phi i64 [ %indvars.iv.next138.1, %scalar.ph172 ], [ %indvars.iv137.unr, %scalar.ph172.prol.loopexit ]
  %117 = getelementptr inbounds double, ptr %4, i64 %indvars.iv137
  %118 = load double, ptr %117, align 8, !tbaa !9
  %gep164 = getelementptr inbounds double, ptr %invariant.gep163, i64 %indvars.iv137
  %119 = load double, ptr %gep164, align 8, !tbaa !9
  %120 = tail call double @llvm.fmuladd.f64(double %104, double %118, double %119)
  store double %120, ptr %gep164, align 8, !tbaa !9
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %121 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next138
  %122 = load double, ptr %121, align 8, !tbaa !9
  %gep164.1 = getelementptr inbounds double, ptr %invariant.gep163, i64 %indvars.iv.next138
  %123 = load double, ptr %gep164.1, align 8, !tbaa !9
  %124 = tail call double @llvm.fmuladd.f64(double %104, double %122, double %123)
  store double %124, ptr %gep164.1, align 8, !tbaa !9
  %indvars.iv.next138.1 = add nuw nsw i64 %indvars.iv137, 2
  %exitcond141.not.1 = icmp eq i64 %indvars.iv.next138.1, %wide.trip.count140
  br i1 %exitcond141.not.1, label %._crit_edge111, label %scalar.ph172, !llvm.loop !27

._crit_edge111:                                   ; preds = %scalar.ph172.prol.loopexit, %scalar.ph172, %middle.block171, %79, %._crit_edge106
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %exitcond148.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count156
  br i1 %exitcond148.not, label %._crit_edge115, label %79, !llvm.loop !28

._crit_edge115:                                   ; preds = %._crit_edge111
  %125 = icmp slt i64 %indvars.iv142, %10
  %or.cond = and i1 %125, %35
  br i1 %or.cond, label %.lr.ph117.preheader, label %.loopexit

.lr.ph117.preheader:                              ; preds = %._crit_edge115
  %wide.trip.count153 = zext i32 %indvars.iv125 to i64
  %invariant.gep165 = getelementptr inbounds double, ptr %30, i64 %indvars.iv142
  %min.iters.check = icmp ult i64 %26, 4
  %126 = add i64 %28, %31
  %diff.check = icmp ult i64 %126, 32
  %or.cond202 = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond202, label %.lr.ph117.preheader203, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph117.preheader
  %n.vec = and i64 %26, -4
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %127 = getelementptr inbounds double, ptr %4, i64 %offset.idx
  %128 = getelementptr inbounds i8, ptr %127, i64 16
  %wide.load = load <2 x double>, ptr %127, align 8, !tbaa !9
  %wide.load168 = load <2 x double>, ptr %128, align 8, !tbaa !9
  %129 = getelementptr inbounds double, ptr %invariant.gep165, i64 %offset.idx
  %130 = getelementptr inbounds i8, ptr %129, i64 16
  store <2 x double> %wide.load, ptr %129, align 8, !tbaa !9
  store <2 x double> %wide.load168, ptr %130, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %131 = icmp eq i64 %index.next, %n.vec
  br i1 %131, label %middle.block, label %vector.body, !llvm.loop !29

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %26, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph117.preheader203

.lr.ph117.preheader203:                           ; preds = %middle.block, %.lr.ph117.preheader
  %indvars.iv150.ph = phi i64 [ 1, %.lr.ph117.preheader ], [ %ind.end, %middle.block ]
  %132 = sub nsw i64 %12, %indvars.iv150.ph
  %xtraiter215 = and i64 %132, 3
  %lcmp.mod216.not = icmp eq i64 %xtraiter215, 0
  br i1 %lcmp.mod216.not, label %.lr.ph117.prol.loopexit, label %.lr.ph117.prol

.lr.ph117.prol:                                   ; preds = %.lr.ph117.preheader203, %.lr.ph117.prol
  %indvars.iv150.prol = phi i64 [ %indvars.iv.next151.prol, %.lr.ph117.prol ], [ %indvars.iv150.ph, %.lr.ph117.preheader203 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph117.prol ], [ 0, %.lr.ph117.preheader203 ]
  %133 = getelementptr inbounds double, ptr %4, i64 %indvars.iv150.prol
  %134 = load double, ptr %133, align 8, !tbaa !9
  %gep166.prol = getelementptr inbounds double, ptr %invariant.gep165, i64 %indvars.iv150.prol
  store double %134, ptr %gep166.prol, align 8, !tbaa !9
  %indvars.iv.next151.prol = add nuw nsw i64 %indvars.iv150.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter215
  br i1 %prol.iter.cmp.not, label %.lr.ph117.prol.loopexit, label %.lr.ph117.prol, !llvm.loop !30

.lr.ph117.prol.loopexit:                          ; preds = %.lr.ph117.prol, %.lr.ph117.preheader203
  %indvars.iv150.unr = phi i64 [ %indvars.iv150.ph, %.lr.ph117.preheader203 ], [ %indvars.iv.next151.prol, %.lr.ph117.prol ]
  %135 = sub nsw i64 %indvars.iv150.ph, %12
  %136 = icmp ugt i64 %135, -4
  br i1 %136, label %.loopexit, label %.lr.ph117

.lr.ph117:                                        ; preds = %.lr.ph117.prol.loopexit, %.lr.ph117
  %indvars.iv150 = phi i64 [ %indvars.iv.next151.3, %.lr.ph117 ], [ %indvars.iv150.unr, %.lr.ph117.prol.loopexit ]
  %137 = getelementptr inbounds double, ptr %4, i64 %indvars.iv150
  %138 = load double, ptr %137, align 8, !tbaa !9
  %gep166 = getelementptr inbounds double, ptr %invariant.gep165, i64 %indvars.iv150
  store double %138, ptr %gep166, align 8, !tbaa !9
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %139 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next151
  %140 = load double, ptr %139, align 8, !tbaa !9
  %gep166.1 = getelementptr inbounds double, ptr %invariant.gep165, i64 %indvars.iv.next151
  store double %140, ptr %gep166.1, align 8, !tbaa !9
  %indvars.iv.next151.1 = add nuw nsw i64 %indvars.iv150, 2
  %141 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next151.1
  %142 = load double, ptr %141, align 8, !tbaa !9
  %gep166.2 = getelementptr inbounds double, ptr %invariant.gep165, i64 %indvars.iv.next151.1
  store double %142, ptr %gep166.2, align 8, !tbaa !9
  %indvars.iv.next151.2 = add nuw nsw i64 %indvars.iv150, 3
  %143 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next151.2
  %144 = load double, ptr %143, align 8, !tbaa !9
  %gep166.3 = getelementptr inbounds double, ptr %invariant.gep165, i64 %indvars.iv.next151.2
  store double %144, ptr %gep166.3, align 8, !tbaa !9
  %indvars.iv.next151.3 = add nuw nsw i64 %indvars.iv150, 4
  %exitcond154.not.3 = icmp eq i64 %indvars.iv.next151.3, %wide.trip.count153
  br i1 %exitcond154.not.3, label %.loopexit, label %.lr.ph117, !llvm.loop !31

.loopexit:                                        ; preds = %.lr.ph117.prol.loopexit, %.lr.ph117, %middle.block, %._crit_edge115
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %indvars.iv.next126 = add i32 %indvars.iv125, -1
  %exitcond157.not = icmp eq i64 %indvars.iv.next143, %wide.trip.count156
  br i1 %exitcond157.not, label %._crit_edge122, label %11, !llvm.loop !32

._crit_edge122:                                   ; preds = %.loopexit, %5
  ret i32 0
}

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

declare double @RSqrt(double noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !12, !17, !16}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !14}
!21 = !{!22}
!22 = distinct !{!22, !23}
!23 = distinct !{!23, !"LVerDomain"}
!24 = !{!25}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !12, !16, !17}
!27 = distinct !{!27, !12, !16}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12, !16, !17}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !12, !16}
!32 = distinct !{!32, !12}


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