; LLVM IR from niessner/Matterport :: code/gaps/pkgs/RNBasics/RNSvd.ll (Z20householder_zero_colPdS_iiiiS_)

; 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
declare double @sqrt(double noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z20householder_zero_colPdS_iiiiS_(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  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 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  %25 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %25, ptr %22, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %43, %7
  %27 = load i32, ptr %22, align 4, !tbaa !9
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %30, label %46

30:                                               ; preds = %26
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load i32, ptr %13, align 4, !tbaa !9
  %33 = load i32, ptr %22, align 4, !tbaa !9
  %34 = mul nsw i32 %32, %33
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = add nsw i32 %34, %35
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds double, ptr %31, i64 %37
  %39 = load double, ptr %38, align 8, !tbaa !11
  %40 = call double @llvm.fabs.f64(double %39)
  %41 = load double, ptr %15, align 8, !tbaa !11
  %42 = fadd double %41, %40
  store double %42, ptr %15, align 8, !tbaa !11
  br label %43

43:                                               ; preds = %30
  %44 = load i32, ptr %22, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %22, align 4, !tbaa !9
  br label %26, !llvm.loop !13

46:                                               ; preds = %26
  %47 = load double, ptr %15, align 8, !tbaa !11
  %48 = fcmp une double %47, 0.000000e+00
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  store i32 1, ptr %24, align 4
  br label %286

50:                                               ; preds = %46
  %51 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %51, ptr %22, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %72, %50
  %53 = load i32, ptr %22, align 4, !tbaa !9
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %75

56:                                               ; preds = %52
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %22, align 4, !tbaa !9
  %60 = mul nsw i32 %58, %59
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = add nsw i32 %60, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %57, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = load double, ptr %15, align 8, !tbaa !11
  %67 = fdiv double %65, %66
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load i32, ptr %22, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %68, i64 %70
  store double %67, ptr %71, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %56
  %73 = load i32, ptr %22, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %22, align 4, !tbaa !9
  br label %52, !llvm.loop !15

75:                                               ; preds = %52
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  %76 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %76, ptr %22, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %94, %75
  %78 = load i32, ptr %22, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %81, label %97

81:                                               ; preds = %77
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = load i32, ptr %22, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %82, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !11
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = load i32, ptr %22, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %87, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !11
  %92 = load double, ptr %16, align 8, !tbaa !11
  %93 = call double @llvm.fmuladd.f64(double %86, double %91, double %92)
  store double %93, ptr %16, align 8, !tbaa !11
  br label %94

94:                                               ; preds = %81
  %95 = load i32, ptr %22, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %22, align 4, !tbaa !9
  br label %77, !llvm.loop !16

97:                                               ; preds = %77
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %98, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !11
  store double %102, ptr %18, align 8, !tbaa !11
  %103 = load double, ptr %18, align 8, !tbaa !11
  %104 = fcmp ogt double %103, 0.000000e+00
  br i1 %104, label %105, label %109

105:                                              ; preds = %97
  %106 = load double, ptr %16, align 8, !tbaa !11
  %107 = call double @sqrt(double noundef %106) #4
  %108 = fneg double %107
  br label %112

109:                                              ; preds = %97
  %110 = load double, ptr %16, align 8, !tbaa !11
  %111 = call double @sqrt(double noundef %110) #4
  br label %112

112:                                              ; preds = %109, %105
  %113 = phi double [ %108, %105 ], [ %111, %109 ]
  store double %113, ptr %17, align 8, !tbaa !11
  %114 = load double, ptr %18, align 8, !tbaa !11
  %115 = load double, ptr %17, align 8, !tbaa !11
  %116 = load double, ptr %16, align 8, !tbaa !11
  %117 = fneg double %116
  %118 = call double @llvm.fmuladd.f64(double %114, double %115, double %117)
  store double %118, ptr %19, align 8, !tbaa !11
  %119 = load double, ptr %18, align 8, !tbaa !11
  %120 = load double, ptr %17, align 8, !tbaa !11
  %121 = fsub double %119, %120
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds double, ptr %122, i64 %124
  store double %121, ptr %125, align 8, !tbaa !11
  %126 = load double, ptr %15, align 8, !tbaa !11
  %127 = load double, ptr %17, align 8, !tbaa !11
  %128 = fmul double %126, %127
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = load i32, ptr %10, align 4, !tbaa !9
  %132 = mul nsw i32 %130, %131
  %133 = load i32, ptr %11, align 4, !tbaa !9
  %134 = add nsw i32 %132, %133
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %129, i64 %135
  store double %128, ptr %136, align 8, !tbaa !11
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %22, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %152, %112
  %140 = load i32, ptr %22, align 4, !tbaa !9
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %143, label %155

143:                                              ; preds = %139
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = load i32, ptr %22, align 4, !tbaa !9
  %147 = mul nsw i32 %145, %146
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = add nsw i32 %147, %148
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %144, i64 %150
  store double 0.000000e+00, ptr %151, align 8, !tbaa !11
  br label %152

152:                                              ; preds = %143
  %153 = load i32, ptr %22, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %22, align 4, !tbaa !9
  br label %139, !llvm.loop !17

155:                                              ; preds = %139
  %156 = load i32, ptr %11, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %22, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %218, %155
  %159 = load i32, ptr %22, align 4, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %162, label %221

162:                                              ; preds = %158
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  %163 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %163, ptr %23, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %185, %162
  %165 = load i32, ptr %23, align 4, !tbaa !9
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %168, label %188

168:                                              ; preds = %164
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = load i32, ptr %23, align 4, !tbaa !9
  %172 = mul nsw i32 %170, %171
  %173 = load i32, ptr %22, align 4, !tbaa !9
  %174 = add nsw i32 %172, %173
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %169, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !11
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = load i32, ptr %23, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds double, ptr %178, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !11
  %183 = load double, ptr %21, align 8, !tbaa !11
  %184 = call double @llvm.fmuladd.f64(double %177, double %182, double %183)
  store double %184, ptr %21, align 8, !tbaa !11
  br label %185

185:                                              ; preds = %168
  %186 = load i32, ptr %23, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %23, align 4, !tbaa !9
  br label %164, !llvm.loop !18

188:                                              ; preds = %164
  %189 = load double, ptr %21, align 8, !tbaa !11
  %190 = load double, ptr %19, align 8, !tbaa !11
  %191 = fdiv double %189, %190
  store double %191, ptr %20, align 8, !tbaa !11
  %192 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %192, ptr %23, align 4, !tbaa !9
  br label %193

193:                                              ; preds = %214, %188
  %194 = load i32, ptr %23, align 4, !tbaa !9
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = icmp slt i32 %194, %195
  br i1 %196, label %197, label %217

197:                                              ; preds = %193
  %198 = load double, ptr %20, align 8, !tbaa !11
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = load i32, ptr %23, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !11
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = mul nsw i32 %205, %206
  %208 = load i32, ptr %22, align 4, !tbaa !9
  %209 = add nsw i32 %207, %208
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds double, ptr %204, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !11
  %213 = call double @llvm.fmuladd.f64(double %198, double %203, double %212)
  store double %213, ptr %211, align 8, !tbaa !11
  br label %214

214:                                              ; preds = %197
  %215 = load i32, ptr %23, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %23, align 4, !tbaa !9
  br label %193, !llvm.loop !19

217:                                              ; preds = %193
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %22, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %22, align 4, !tbaa !9
  br label %158, !llvm.loop !20

221:                                              ; preds = %158
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %222

222:                                              ; preds = %282, %221
  %223 = load i32, ptr %22, align 4, !tbaa !9
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = icmp slt i32 %223, %224
  br i1 %225, label %226, label %285

226:                                              ; preds = %222
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  %227 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %227, ptr %23, align 4, !tbaa !9
  br label %228

228:                                              ; preds = %249, %226
  %229 = load i32, ptr %23, align 4, !tbaa !9
  %230 = load i32, ptr %12, align 4, !tbaa !9
  %231 = icmp slt i32 %229, %230
  br i1 %231, label %232, label %252

232:                                              ; preds = %228
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = load i32, ptr %22, align 4, !tbaa !9
  %236 = mul nsw i32 %234, %235
  %237 = load i32, ptr %23, align 4, !tbaa !9
  %238 = add nsw i32 %236, %237
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds double, ptr %233, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !11
  %242 = load ptr, ptr %14, align 8, !tbaa !5
  %243 = load i32, ptr %23, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !11
  %247 = load double, ptr %21, align 8, !tbaa !11
  %248 = call double @llvm.fmuladd.f64(double %241, double %246, double %247)
  store double %248, ptr %21, align 8, !tbaa !11
  br label %249

249:                                              ; preds = %232
  %250 = load i32, ptr %23, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %23, align 4, !tbaa !9
  br label %228, !llvm.loop !21

252:                                              ; preds = %228
  %253 = load double, ptr %21, align 8, !tbaa !11
  %254 = load double, ptr %19, align 8, !tbaa !11
  %255 = fdiv double %253, %254
  store double %255, ptr %20, align 8, !tbaa !11
  %256 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %256, ptr %23, align 4, !tbaa !9
  br label %257

257:                                              ; preds = %278, %252
  %258 = load i32, ptr %23, align 4, !tbaa !9
  %259 = load i32, ptr %12, align 4, !tbaa !9
  %260 = icmp slt i32 %258, %259
  br i1 %260, label %261, label %281

261:                                              ; preds = %257
  %262 = load double, ptr %20, align 8, !tbaa !11
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = load i32, ptr %23, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds double, ptr %263, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !11
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  %269 = load i32, ptr %12, align 4, !tbaa !9
  %270 = load i32, ptr %22, align 4, !tbaa !9
  %271 = mul nsw i32 %269, %270
  %272 = load i32, ptr %23, align 4, !tbaa !9
  %273 = add nsw i32 %271, %272
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds double, ptr %268, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !11
  %277 = call double @llvm.fmuladd.f64(double %262, double %267, double %276)
  store double %277, ptr %275, align 8, !tbaa !11
  br label %278

278:                                              ; preds = %261
  %279 = load i32, ptr %23, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %23, align 4, !tbaa !9
  br label %257, !llvm.loop !22

281:                                              ; preds = %257
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %22, align 4, !tbaa !9
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %22, align 4, !tbaa !9
  br label %222, !llvm.loop !23

285:                                              ; preds = %222
  store i32 0, ptr %24, align 4
  br label %286

286:                                              ; preds = %285, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  %287 = load i32, ptr %24, align 4
  switch i32 %287, label %289 [
    i32 0, label %288
    i32 1, label %288
  ]

288:                                              ; preds = %286, %286
  ret void

289:                                              ; preds = %286
  unreachable
}

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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++ 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}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !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: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind memory(write, argmem: readwrite) uwtable
define dso_local void @_Z20householder_zero_colPdS_iiiiS_(ptr nocapture noundef %0, ptr nocapture noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr nocapture noundef %6) local_unnamed_addr #2 {
  %8 = ptrtoint ptr %0 to i64
  %9 = ptrtoint ptr %6 to i64
  %10 = icmp slt i32 %2, %4
  br i1 %10, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %7
  %11 = sext i32 %2 to i64
  %12 = sext i32 %5 to i64
  %13 = sext i32 %3 to i64
  %wide.trip.count = sext i32 %4 to i64
  %invariant.gep = getelementptr double, ptr %0, i64 %13
  %14 = sub nsw i64 %wide.trip.count, %11
  %15 = xor i64 %11, -1
  %16 = add nsw i64 %15, %wide.trip.count
  %xtraiter = and i64 %14, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %11, %.lr.ph.preheader ]
  %.0116126.prol = phi double [ %20, %.lr.ph.prol ], [ 0.000000e+00, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %17 = mul nsw i64 %indvars.iv.prol, %12
  %gep.prol = getelementptr double, ptr %invariant.gep, i64 %17
  %18 = load double, ptr %gep.prol, align 8, !tbaa !5
  %19 = tail call double @llvm.fabs.f64(double %18)
  %20 = fadd double %.0116126.prol, %19
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !9

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.lcssa302.unr = phi double [ poison, %.lr.ph.preheader ], [ %20, %.lr.ph.prol ]
  %indvars.iv.unr = phi i64 [ %11, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %.0116126.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %20, %.lr.ph.prol ]
  %21 = icmp ult i64 %16, 3
  br i1 %21, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %.0116126 = phi double [ %37, %.lr.ph ], [ %.0116126.unr, %.lr.ph.prol.loopexit ]
  %22 = mul nsw i64 %indvars.iv, %12
  %gep = getelementptr double, ptr %invariant.gep, i64 %22
  %23 = load double, ptr %gep, align 8, !tbaa !5
  %24 = tail call double @llvm.fabs.f64(double %23)
  %25 = fadd double %.0116126, %24
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %26 = mul nsw i64 %indvars.iv.next, %12
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %26
  %27 = load double, ptr %gep.1, align 8, !tbaa !5
  %28 = tail call double @llvm.fabs.f64(double %27)
  %29 = fadd double %25, %28
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, 2
  %30 = mul nsw i64 %indvars.iv.next.1, %12
  %gep.2 = getelementptr double, ptr %invariant.gep, i64 %30
  %31 = load double, ptr %gep.2, align 8, !tbaa !5
  %32 = tail call double @llvm.fabs.f64(double %31)
  %33 = fadd double %29, %32
  %indvars.iv.next.2 = add nsw i64 %indvars.iv, 3
  %34 = mul nsw i64 %indvars.iv.next.2, %12
  %gep.3 = getelementptr double, ptr %invariant.gep, i64 %34
  %35 = load double, ptr %gep.3, align 8, !tbaa !5
  %36 = tail call double @llvm.fabs.f64(double %35)
  %37 = fadd double %33, %36
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.prol.loopexit
  %.lcssa302 = phi double [ %.lcssa302.unr, %.lr.ph.prol.loopexit ], [ %37, %.lr.ph ]
  %38 = fcmp une double %.lcssa302, 0.000000e+00
  br i1 %38, label %.preheader125, label %.loopexit

.preheader125:                                    ; preds = %._crit_edge
  br i1 %10, label %.lr.ph129.preheader, label %.preheader124.._crit_edge133_crit_edge

.lr.ph129.preheader:                              ; preds = %.preheader125
  %39 = sext i32 %2 to i64
  %40 = sext i32 %5 to i64
  %41 = sext i32 %3 to i64
  %wide.trip.count166 = sext i32 %4 to i64
  %invariant.gep213 = getelementptr double, ptr %0, i64 %41
  %42 = sub nsw i64 %wide.trip.count, %11
  %min.iters.check = icmp ugt i64 %42, 1
  %ident.check.not = icmp eq i32 %5, 1
  %or.cond = and i1 %min.iters.check, %ident.check.not
  br i1 %or.cond, label %vector.memcheck, label %.lr.ph129.preheader301

.lr.ph129.preheader301:                           ; preds = %middle.block, %vector.memcheck, %.lr.ph129.preheader
  %indvars.iv163.ph = phi i64 [ %39, %vector.memcheck ], [ %39, %.lr.ph129.preheader ], [ %ind.end, %middle.block ]
  %43 = sub nsw i64 %wide.trip.count, %indvars.iv163.ph
  %xtraiter303 = and i64 %43, 3
  %lcmp.mod304.not = icmp eq i64 %xtraiter303, 0
  br i1 %lcmp.mod304.not, label %.lr.ph129.prol.loopexit, label %.lr.ph129.prol

.lr.ph129.prol:                                   ; preds = %.lr.ph129.preheader301, %.lr.ph129.prol
  %indvars.iv163.prol = phi i64 [ %indvars.iv.next164.prol, %.lr.ph129.prol ], [ %indvars.iv163.ph, %.lr.ph129.preheader301 ]
  %prol.iter305 = phi i64 [ %prol.iter305.next, %.lr.ph129.prol ], [ 0, %.lr.ph129.preheader301 ]
  %44 = mul nsw i64 %indvars.iv163.prol, %40
  %gep214.prol = getelementptr double, ptr %invariant.gep213, i64 %44
  %45 = load double, ptr %gep214.prol, align 8, !tbaa !5
  %46 = fdiv double %45, %.lcssa302
  %47 = getelementptr inbounds double, ptr %6, i64 %indvars.iv163.prol
  store double %46, ptr %47, align 8, !tbaa !5
  %indvars.iv.next164.prol = add nsw i64 %indvars.iv163.prol, 1
  %prol.iter305.next = add i64 %prol.iter305, 1
  %prol.iter305.cmp.not = icmp eq i64 %prol.iter305.next, %xtraiter303
  br i1 %prol.iter305.cmp.not, label %.lr.ph129.prol.loopexit, label %.lr.ph129.prol, !llvm.loop !13

.lr.ph129.prol.loopexit:                          ; preds = %.lr.ph129.prol, %.lr.ph129.preheader301
  %indvars.iv163.unr = phi i64 [ %indvars.iv163.ph, %.lr.ph129.preheader301 ], [ %indvars.iv.next164.prol, %.lr.ph129.prol ]
  %48 = sub nsw i64 %indvars.iv163.ph, %wide.trip.count
  %49 = icmp ugt i64 %48, -4
  br i1 %49, label %.preheader124, label %.lr.ph129

vector.memcheck:                                  ; preds = %.lr.ph129.preheader
  %50 = shl nsw i64 %13, 3
  %51 = add i64 %50, %8
  %52 = sub i64 %9, %51
  %diff.check = icmp ult i64 %52, 16
  br i1 %diff.check, label %.lr.ph129.preheader301, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %42, -2
  %ind.end = add nsw i64 %n.vec, %39
  %broadcast.splatinsert = insertelement <2 x double> poison, double %.lcssa302, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %index, %39
  %53 = getelementptr double, ptr %invariant.gep213, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %53, align 8, !tbaa !5
  %54 = fdiv <2 x double> %wide.load, %broadcast.splat
  %55 = getelementptr inbounds double, ptr %6, i64 %offset.idx
  store <2 x double> %54, ptr %55, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %56 = icmp eq i64 %index.next, %n.vec
  br i1 %56, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %42, %n.vec
  br i1 %cmp.n, label %.preheader124, label %.lr.ph129.preheader301

.preheader124:                                    ; preds = %.lr.ph129.prol.loopexit, %.lr.ph129, %middle.block
  br i1 %10, label %.lr.ph132.preheader, label %.preheader124.._crit_edge133_crit_edge

.preheader124.._crit_edge133_crit_edge:           ; preds = %.preheader125, %.preheader124
  %.pre = sext i32 %2 to i64
  br label %._crit_edge133

.lr.ph132.preheader:                              ; preds = %.preheader124
  %57 = sext i32 %2 to i64
  %wide.trip.count171 = sext i32 %4 to i64
  %xtraiter306 = and i64 %14, 3
  %lcmp.mod307.not = icmp eq i64 %xtraiter306, 0
  br i1 %lcmp.mod307.not, label %.lr.ph132.prol.loopexit, label %.lr.ph132.prol

.lr.ph132.prol:                                   ; preds = %.lr.ph132.preheader, %.lr.ph132.prol
  %indvars.iv168.prol = phi i64 [ %indvars.iv.next169.prol, %.lr.ph132.prol ], [ %57, %.lr.ph132.preheader ]
  %.0117130.prol = phi double [ %60, %.lr.ph132.prol ], [ 0.000000e+00, %.lr.ph132.preheader ]
  %prol.iter308 = phi i64 [ %prol.iter308.next, %.lr.ph132.prol ], [ 0, %.lr.ph132.preheader ]
  %58 = getelementptr inbounds double, ptr %6, i64 %indvars.iv168.prol
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = tail call double @llvm.fmuladd.f64(double %59, double %59, double %.0117130.prol)
  %indvars.iv.next169.prol = add nsw i64 %indvars.iv168.prol, 1
  %prol.iter308.next = add i64 %prol.iter308, 1
  %prol.iter308.cmp.not = icmp eq i64 %prol.iter308.next, %xtraiter306
  br i1 %prol.iter308.cmp.not, label %.lr.ph132.prol.loopexit, label %.lr.ph132.prol, !llvm.loop !17

.lr.ph132.prol.loopexit:                          ; preds = %.lr.ph132.prol, %.lr.ph132.preheader
  %.lcssa300.unr = phi double [ poison, %.lr.ph132.preheader ], [ %60, %.lr.ph132.prol ]
  %indvars.iv168.unr = phi i64 [ %57, %.lr.ph132.preheader ], [ %indvars.iv.next169.prol, %.lr.ph132.prol ]
  %.0117130.unr = phi double [ 0.000000e+00, %.lr.ph132.preheader ], [ %60, %.lr.ph132.prol ]
  %61 = icmp ult i64 %16, 3
  br i1 %61, label %._crit_edge133, label %.lr.ph132.preheader.new

.lr.ph132.preheader.new:                          ; preds = %.lr.ph132.prol.loopexit
  %invariant.gep332 = getelementptr i8, ptr %6, i64 8
  %invariant.gep334 = getelementptr i8, ptr %6, i64 16
  %invariant.gep336 = getelementptr i8, ptr %6, i64 24
  br label %.lr.ph132

.lr.ph129:                                        ; preds = %.lr.ph129.prol.loopexit, %.lr.ph129
  %indvars.iv163 = phi i64 [ %indvars.iv.next164.3, %.lr.ph129 ], [ %indvars.iv163.unr, %.lr.ph129.prol.loopexit ]
  %62 = mul nsw i64 %indvars.iv163, %40
  %gep214 = getelementptr double, ptr %invariant.gep213, i64 %62
  %63 = load double, ptr %gep214, align 8, !tbaa !5
  %64 = fdiv double %63, %.lcssa302
  %65 = getelementptr inbounds double, ptr %6, i64 %indvars.iv163
  store double %64, ptr %65, align 8, !tbaa !5
  %indvars.iv.next164 = add nsw i64 %indvars.iv163, 1
  %66 = mul nsw i64 %indvars.iv.next164, %40
  %gep214.1 = getelementptr double, ptr %invariant.gep213, i64 %66
  %67 = load double, ptr %gep214.1, align 8, !tbaa !5
  %68 = fdiv double %67, %.lcssa302
  %69 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next164
  store double %68, ptr %69, align 8, !tbaa !5
  %indvars.iv.next164.1 = add nsw i64 %indvars.iv163, 2
  %70 = mul nsw i64 %indvars.iv.next164.1, %40
  %gep214.2 = getelementptr double, ptr %invariant.gep213, i64 %70
  %71 = load double, ptr %gep214.2, align 8, !tbaa !5
  %72 = fdiv double %71, %.lcssa302
  %73 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next164.1
  store double %72, ptr %73, align 8, !tbaa !5
  %indvars.iv.next164.2 = add nsw i64 %indvars.iv163, 3
  %74 = mul nsw i64 %indvars.iv.next164.2, %40
  %gep214.3 = getelementptr double, ptr %invariant.gep213, i64 %74
  %75 = load double, ptr %gep214.3, align 8, !tbaa !5
  %76 = fdiv double %75, %.lcssa302
  %77 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next164.2
  store double %76, ptr %77, align 8, !tbaa !5
  %indvars.iv.next164.3 = add nsw i64 %indvars.iv163, 4
  %exitcond167.not.3 = icmp eq i64 %indvars.iv.next164.3, %wide.trip.count166
  br i1 %exitcond167.not.3, label %.preheader124, label %.lr.ph129, !llvm.loop !18

.lr.ph132:                                        ; preds = %.lr.ph132, %.lr.ph132.preheader.new
  %indvars.iv168 = phi i64 [ %indvars.iv168.unr, %.lr.ph132.preheader.new ], [ %indvars.iv.next169.3, %.lr.ph132 ]
  %.0117130 = phi double [ %.0117130.unr, %.lr.ph132.preheader.new ], [ %86, %.lr.ph132 ]
  %78 = getelementptr inbounds double, ptr %6, i64 %indvars.iv168
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = tail call double @llvm.fmuladd.f64(double %79, double %79, double %.0117130)
  %gep333 = getelementptr double, ptr %invariant.gep332, i64 %indvars.iv168
  %81 = load double, ptr %gep333, align 8, !tbaa !5
  %82 = tail call double @llvm.fmuladd.f64(double %81, double %81, double %80)
  %gep335 = getelementptr double, ptr %invariant.gep334, i64 %indvars.iv168
  %83 = load double, ptr %gep335, align 8, !tbaa !5
  %84 = tail call double @llvm.fmuladd.f64(double %83, double %83, double %82)
  %gep337 = getelementptr double, ptr %invariant.gep336, i64 %indvars.iv168
  %85 = load double, ptr %gep337, align 8, !tbaa !5
  %86 = tail call double @llvm.fmuladd.f64(double %85, double %85, double %84)
  %indvars.iv.next169.3 = add nsw i64 %indvars.iv168, 4
  %exitcond172.not.3 = icmp eq i64 %indvars.iv.next169.3, %wide.trip.count171
  br i1 %exitcond172.not.3, label %._crit_edge133, label %.lr.ph132, !llvm.loop !19

._crit_edge133:                                   ; preds = %.lr.ph132.prol.loopexit, %.lr.ph132, %.preheader124.._crit_edge133_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader124.._crit_edge133_crit_edge ], [ %57, %.lr.ph132 ], [ %57, %.lr.ph132.prol.loopexit ]
  %.0117.lcssa = phi double [ 0.000000e+00, %.preheader124.._crit_edge133_crit_edge ], [ %.lcssa300.unr, %.lr.ph132.prol.loopexit ], [ %86, %.lr.ph132 ]
  %87 = getelementptr inbounds double, ptr %6, i64 %.pre-phi
  %88 = load double, ptr %87, align 8, !tbaa !5
  %89 = fcmp ogt double %88, 0.000000e+00
  %90 = tail call double @sqrt(double noundef %.0117.lcssa) #4
  %91 = fneg double %90
  %92 = select i1 %89, double %91, double %90
  %93 = fneg double %.0117.lcssa
  %94 = tail call double @llvm.fmuladd.f64(double %88, double %92, double %93)
  %95 = fsub double %88, %92
  store double %95, ptr %87, align 8, !tbaa !5
  %96 = fmul double %.lcssa302, %92
  %97 = mul nsw i32 %5, %2
  %98 = add nsw i32 %97, %3
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %0, i64 %99
  store double %96, ptr %100, align 8, !tbaa !5
  %.3113135 = add nsw i32 %2, 1
  %101 = icmp slt i32 %.3113135, %4
  br i1 %101, label %.lr.ph138.preheader, label %.preheader123

.lr.ph138.preheader:                              ; preds = %._crit_edge133
  %102 = sext i32 %.3113135 to i64
  %103 = sext i32 %5 to i64
  %104 = sext i32 %3 to i64
  %invariant.gep215 = getelementptr double, ptr %0, i64 %104
  %105 = add i32 %4, -2
  %106 = sub i32 %105, %2
  %107 = zext i32 %106 to i64
  %108 = add nuw nsw i64 %107, 1
  %min.iters.check232 = icmp ugt i32 %106, 2
  %ident.check229.not = icmp eq i32 %5, 1
  %or.cond295 = and i1 %min.iters.check232, %ident.check229.not
  br i1 %or.cond295, label %vector.ph233, label %.lr.ph138.preheader299

.lr.ph138.preheader299:                           ; preds = %middle.block230, %.lr.ph138.preheader
  %indvars.iv173.ph = phi i64 [ %102, %.lr.ph138.preheader ], [ %ind.end236, %middle.block230 ]
  %109 = trunc i64 %indvars.iv173.ph to i32
  %110 = sub i32 %4, %109
  %xtraiter309 = and i32 %110, 3
  %lcmp.mod310.not = icmp eq i32 %xtraiter309, 0
  br i1 %lcmp.mod310.not, label %.lr.ph138.prol.loopexit, label %.lr.ph138.prol

.lr.ph138.prol:                                   ; preds = %.lr.ph138.preheader299, %.lr.ph138.prol
  %indvars.iv173.prol = phi i64 [ %indvars.iv.next174.prol, %.lr.ph138.prol ], [ %indvars.iv173.ph, %.lr.ph138.preheader299 ]
  %prol.iter311 = phi i32 [ %prol.iter311.next, %.lr.ph138.prol ], [ 0, %.lr.ph138.preheader299 ]
  %111 = mul nsw i64 %indvars.iv173.prol, %103
  %gep216.prol = getelementptr double, ptr %invariant.gep215, i64 %111
  store double 0.000000e+00, ptr %gep216.prol, align 8, !tbaa !5
  %indvars.iv.next174.prol = add nsw i64 %indvars.iv173.prol, 1
  %prol.iter311.next = add i32 %prol.iter311, 1
  %prol.iter311.cmp.not = icmp eq i32 %prol.iter311.next, %xtraiter309
  br i1 %prol.iter311.cmp.not, label %.lr.ph138.prol.loopexit, label %.lr.ph138.prol, !llvm.loop !20

.lr.ph138.prol.loopexit:                          ; preds = %.lr.ph138.prol, %.lr.ph138.preheader299
  %indvars.iv173.unr = phi i64 [ %indvars.iv173.ph, %.lr.ph138.preheader299 ], [ %indvars.iv.next174.prol, %.lr.ph138.prol ]
  %112 = sub i32 %109, %4
  %113 = icmp ugt i32 %112, -4
  br i1 %113, label %.preheader123, label %.lr.ph138

vector.ph233:                                     ; preds = %.lr.ph138.preheader
  %n.vec235 = and i64 %108, 8589934588
  %ind.end236 = add nsw i64 %n.vec235, %102
  %invariant.gep338 = getelementptr double, ptr %invariant.gep215, i64 %102
  br label %vector.body238

vector.body238:                                   ; preds = %vector.body238, %vector.ph233
  %index239 = phi i64 [ 0, %vector.ph233 ], [ %index.next241, %vector.body238 ]
  %gep339 = getelementptr double, ptr %invariant.gep338, i64 %index239
  %114 = getelementptr i8, ptr %gep339, i64 16
  store <2 x double> zeroinitializer, ptr %gep339, align 8, !tbaa !5
  store <2 x double> zeroinitializer, ptr %114, align 8, !tbaa !5
  %index.next241 = add nuw i64 %index239, 4
  %115 = icmp eq i64 %index.next241, %n.vec235
  br i1 %115, label %middle.block230, label %vector.body238, !llvm.loop !21

middle.block230:                                  ; preds = %vector.body238
  %cmp.n242 = icmp eq i64 %108, %n.vec235
  br i1 %cmp.n242, label %.preheader123, label %.lr.ph138.preheader299

.preheader123:                                    ; preds = %.lr.ph138.prol.loopexit, %.lr.ph138, %middle.block230, %._crit_edge133
  %.4147 = add nsw i32 %3, 1
  %116 = icmp slt i32 %.4147, %5
  br i1 %116, label %.preheader122.lr.ph, label %.preheader120

.preheader122.lr.ph:                              ; preds = %.preheader123
  %117 = sext i32 %5 to i64
  %118 = sext i32 %.4147 to i64
  %wide.trip.count180 = sext i32 %4 to i64
  %wide.trip.count185 = sext i32 %4 to i64
  %119 = shl nsw i64 %.pre-phi, 3
  %120 = add nsw i64 %.pre-phi, %118
  %121 = shl nsw i64 %120, 3
  %scevgep = getelementptr i8, ptr %0, i64 %121
  %122 = add nsw i64 %wide.trip.count, %118
  %123 = add i32 %5, -2
  %124 = sub i32 %123, %3
  %125 = zext i32 %124 to i64
  %126 = add nsw i64 %122, %125
  %127 = shl nsw i64 %126, 3
  %scevgep246 = getelementptr i8, ptr %0, i64 %127
  %scevgep247 = getelementptr i8, ptr %6, i64 %119
  %128 = shl nsw i64 %wide.trip.count, 3
  %scevgep248 = getelementptr i8, ptr %6, i64 %128
  %129 = sub nsw i64 %wide.trip.count, %.pre-phi
  %130 = sub nsw i64 %wide.trip.count, %.pre-phi
  %xtraiter312 = and i64 %130, 3
  %lcmp.mod313.not = icmp eq i64 %xtraiter312, 0
  %131 = sub nsw i64 %.pre-phi, %wide.trip.count
  %132 = icmp ugt i64 %131, -4
  %min.iters.check251 = icmp ugt i64 %129, 3
  %ident.check244.not = icmp eq i32 %5, 1
  %or.cond296 = and i1 %min.iters.check251, %ident.check244.not
  %bound0 = icmp ult ptr %scevgep, %scevgep248
  %bound1 = icmp ult ptr %scevgep247, %scevgep246
  %found.conflict = and i1 %bound0, %bound1
  %n.vec254 = and i64 %129, -4
  %ind.end255 = add nsw i64 %.pre-phi, %n.vec254
  %cmp.n267 = icmp eq i64 %129, %n.vec254
  %133 = add nsw i64 %wide.trip.count, -1
  br label %.preheader122

.lr.ph138:                                        ; preds = %.lr.ph138.prol.loopexit, %.lr.ph138
  %indvars.iv173 = phi i64 [ %indvars.iv.next174.3, %.lr.ph138 ], [ %indvars.iv173.unr, %.lr.ph138.prol.loopexit ]
  %134 = mul nsw i64 %indvars.iv173, %103
  %gep216 = getelementptr double, ptr %invariant.gep215, i64 %134
  store double 0.000000e+00, ptr %gep216, align 8, !tbaa !5
  %indvars.iv.next174 = add nsw i64 %indvars.iv173, 1
  %135 = mul nsw i64 %indvars.iv.next174, %103
  %gep216.1 = getelementptr double, ptr %invariant.gep215, i64 %135
  store double 0.000000e+00, ptr %gep216.1, align 8, !tbaa !5
  %indvars.iv.next174.1 = add nsw i64 %indvars.iv173, 2
  %136 = mul nsw i64 %indvars.iv.next174.1, %103
  %gep216.2 = getelementptr double, ptr %invariant.gep215, i64 %136
  store double 0.000000e+00, ptr %gep216.2, align 8, !tbaa !5
  %indvars.iv.next174.2 = add nsw i64 %indvars.iv173, 3
  %137 = mul nsw i64 %indvars.iv.next174.2, %103
  %gep216.3 = getelementptr double, ptr %invariant.gep215, i64 %137
  store double 0.000000e+00, ptr %gep216.3, align 8, !tbaa !5
  %indvars.iv.next174.3 = add nsw i64 %indvars.iv173, 4
  %lftr.wideiv.3 = trunc i64 %indvars.iv.next174.3 to i32
  %exitcond176.not.3 = icmp eq i32 %lftr.wideiv.3, %4
  br i1 %exitcond176.not.3, label %.preheader123, label %.lr.ph138, !llvm.loop !22

.loopexit121:                                     ; preds = %.lr.ph146.prol.loopexit, %.lr.ph146, %middle.block249, %.preheader122, %._crit_edge142
  %indvars.iv.next188 = add nsw i64 %indvars.iv187, 1
  %lftr.wideiv190 = trunc i64 %indvars.iv.next188 to i32
  %exitcond191.not = icmp eq i32 %lftr.wideiv190, %5
  br i1 %exitcond191.not, label %.preheader120, label %.preheader122, !llvm.loop !23

.preheader122:                                    ; preds = %.preheader122.lr.ph, %.loopexit121
  %indvars.iv187 = phi i64 [ %118, %.preheader122.lr.ph ], [ %indvars.iv.next188, %.loopexit121 ]
  br i1 %10, label %.lr.ph141.preheader, label %.loopexit121

.lr.ph141.preheader:                              ; preds = %.preheader122
  %invariant.gep217 = getelementptr double, ptr %0, i64 %indvars.iv187
  br i1 %lcmp.mod313.not, label %.lr.ph141.prol.loopexit, label %.lr.ph141.prol

.lr.ph141.prol:                                   ; preds = %.lr.ph141.preheader, %.lr.ph141.prol
  %indvars.iv177.prol = phi i64 [ %indvars.iv.next178.prol, %.lr.ph141.prol ], [ %.pre-phi, %.lr.ph141.preheader ]
  %.0114139.prol = phi double [ %142, %.lr.ph141.prol ], [ 0.000000e+00, %.lr.ph141.preheader ]
  %prol.iter314 = phi i64 [ %prol.iter314.next, %.lr.ph141.prol ], [ 0, %.lr.ph141.preheader ]
  %138 = mul nsw i64 %indvars.iv177.prol, %117
  %gep218.prol = getelementptr double, ptr %invariant.gep217, i64 %138
  %139 = load double, ptr %gep218.prol, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %6, i64 %indvars.iv177.prol
  %141 = load double, ptr %140, align 8, !tbaa !5
  %142 = tail call double @llvm.fmuladd.f64(double %139, double %141, double %.0114139.prol)
  %indvars.iv.next178.prol = add nsw i64 %indvars.iv177.prol, 1
  %prol.iter314.next = add i64 %prol.iter314, 1
  %prol.iter314.cmp.not = icmp eq i64 %prol.iter314.next, %xtraiter312
  br i1 %prol.iter314.cmp.not, label %.lr.ph141.prol.loopexit, label %.lr.ph141.prol, !llvm.loop !24

.lr.ph141.prol.loopexit:                          ; preds = %.lr.ph141.prol, %.lr.ph141.preheader
  %.lcssa298.unr = phi double [ poison, %.lr.ph141.preheader ], [ %142, %.lr.ph141.prol ]
  %indvars.iv177.unr = phi i64 [ %.pre-phi, %.lr.ph141.preheader ], [ %indvars.iv.next178.prol, %.lr.ph141.prol ]
  %.0114139.unr = phi double [ 0.000000e+00, %.lr.ph141.preheader ], [ %142, %.lr.ph141.prol ]
  br i1 %132, label %._crit_edge142, label %.lr.ph141

.preheader120:                                    ; preds = %.loopexit121, %.preheader123
  %143 = icmp sgt i32 %4, 0
  br i1 %143, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.preheader120
  %144 = zext nneg i32 %4 to i64
  %wide.trip.count205 = zext nneg i32 %4 to i64
  %145 = shl nsw i64 %.pre-phi, 3
  %scevgep269 = getelementptr i8, ptr %1, i64 %145
  %146 = mul nuw nsw i64 %144, %144
  %147 = shl i64 %146, 3
  %scevgep270 = getelementptr i8, ptr %1, i64 %147
  %scevgep271 = getelementptr i8, ptr %6, i64 %145
  %148 = shl nuw nsw i64 %144, 3
  %scevgep272 = getelementptr i8, ptr %6, i64 %148
  %149 = sub nsw i64 %144, %.pre-phi
  %150 = sub nsw i64 %144, %.pre-phi
  %xtraiter318 = and i64 %150, 3
  %lcmp.mod319.not = icmp eq i64 %xtraiter318, 0
  %151 = sub nsw i64 %.pre-phi, %144
  %152 = icmp ugt i64 %151, -4
  %min.iters.check278 = icmp ult i64 %149, 4
  %bound0273 = icmp ult ptr %scevgep269, %scevgep272
  %bound1274 = icmp ult ptr %scevgep271, %scevgep270
  %found.conflict275 = and i1 %bound0273, %bound1274
  %n.vec281 = and i64 %149, -4
  %ind.end282 = add nsw i64 %.pre-phi, %n.vec281
  %cmp.n294 = icmp eq i64 %149, %n.vec281
  %153 = add nsw i64 %144, -1
  br label %.preheader

.lr.ph141:                                        ; preds = %.lr.ph141.prol.loopexit, %.lr.ph141
  %indvars.iv177 = phi i64 [ %indvars.iv.next178.3, %.lr.ph141 ], [ %indvars.iv177.unr, %.lr.ph141.prol.loopexit ]
  %.0114139 = phi double [ %173, %.lr.ph141 ], [ %.0114139.unr, %.lr.ph141.prol.loopexit ]
  %154 = mul nsw i64 %indvars.iv177, %117
  %gep218 = getelementptr double, ptr %invariant.gep217, i64 %154
  %155 = load double, ptr %gep218, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %6, i64 %indvars.iv177
  %157 = load double, ptr %156, align 8, !tbaa !5
  %158 = tail call double @llvm.fmuladd.f64(double %155, double %157, double %.0114139)
  %indvars.iv.next178 = add nsw i64 %indvars.iv177, 1
  %159 = mul nsw i64 %indvars.iv.next178, %117
  %gep218.1 = getelementptr double, ptr %invariant.gep217, i64 %159
  %160 = load double, ptr %gep218.1, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next178
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = tail call double @llvm.fmuladd.f64(double %160, double %162, double %158)
  %indvars.iv.next178.1 = add nsw i64 %indvars.iv177, 2
  %164 = mul nsw i64 %indvars.iv.next178.1, %117
  %gep218.2 = getelementptr double, ptr %invariant.gep217, i64 %164
  %165 = load double, ptr %gep218.2, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next178.1
  %167 = load double, ptr %166, align 8, !tbaa !5
  %168 = tail call double @llvm.fmuladd.f64(double %165, double %167, double %163)
  %indvars.iv.next178.2 = add nsw i64 %indvars.iv177, 3
  %169 = mul nsw i64 %indvars.iv.next178.2, %117
  %gep218.3 = getelementptr double, ptr %invariant.gep217, i64 %169
  %170 = load double, ptr %gep218.3, align 8, !tbaa !5
  %171 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next178.2
  %172 = load double, ptr %171, align 8, !tbaa !5
  %173 = tail call double @llvm.fmuladd.f64(double %170, double %172, double %168)
  %indvars.iv.next178.3 = add nsw i64 %indvars.iv177, 4
  %exitcond181.not.3 = icmp eq i64 %indvars.iv.next178.3, %wide.trip.count180
  br i1 %exitcond181.not.3, label %._crit_edge142, label %.lr.ph141, !llvm.loop !25

._crit_edge142:                                   ; preds = %.lr.ph141, %.lr.ph141.prol.loopexit
  %.lcssa298 = phi double [ %.lcssa298.unr, %.lr.ph141.prol.loopexit ], [ %173, %.lr.ph141 ]
  %174 = fdiv double %.lcssa298, %94
  br i1 %10, label %.lr.ph146.preheader, label %.loopexit121

.lr.ph146.preheader:                              ; preds = %._crit_edge142
  %invariant.gep219 = getelementptr double, ptr %0, i64 %indvars.iv187
  %or.cond296.not = xor i1 %or.cond296, true
  %brmerge = select i1 %or.cond296.not, i1 true, i1 %found.conflict
  br i1 %brmerge, label %.lr.ph146.preheader297, label %vector.ph252

vector.ph252:                                     ; preds = %.lr.ph146.preheader
  %broadcast.splatinsert264 = insertelement <2 x double> poison, double %174, i64 0
  %broadcast.splat265 = shufflevector <2 x double> %broadcast.splatinsert264, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body257

vector.body257:                                   ; preds = %vector.body257, %vector.ph252
  %index258 = phi i64 [ 0, %vector.ph252 ], [ %index.next266, %vector.body257 ]
  %offset.idx259 = add i64 %.pre-phi, %index258
  %175 = getelementptr inbounds double, ptr %6, i64 %offset.idx259
  %176 = getelementptr inbounds i8, ptr %175, i64 16
  %wide.load260 = load <2 x double>, ptr %175, align 8, !tbaa !5, !alias.scope !26
  %wide.load261 = load <2 x double>, ptr %176, align 8, !tbaa !5, !alias.scope !26
  %177 = getelementptr double, ptr %invariant.gep219, i64 %offset.idx259
  %178 = getelementptr i8, ptr %177, i64 16
  %wide.load262 = load <2 x double>, ptr %177, align 8, !tbaa !5, !alias.scope !29, !noalias !26
  %wide.load263 = load <2 x double>, ptr %178, align 8, !tbaa !5, !alias.scope !29, !noalias !26
  %179 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat265, <2 x double> %wide.load260, <2 x double> %wide.load262)
  %180 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat265, <2 x double> %wide.load261, <2 x double> %wide.load263)
  store <2 x double> %179, ptr %177, align 8, !tbaa !5, !alias.scope !29, !noalias !26
  store <2 x double> %180, ptr %178, align 8, !tbaa !5, !alias.scope !29, !noalias !26
  %index.next266 = add nuw i64 %index258, 4
  %181 = icmp eq i64 %index.next266, %n.vec254
  br i1 %181, label %middle.block249, label %vector.body257, !llvm.loop !31

middle.block249:                                  ; preds = %vector.body257
  br i1 %cmp.n267, label %.loopexit121, label %.lr.ph146.preheader297

.lr.ph146.preheader297:                           ; preds = %.lr.ph146.preheader, %middle.block249
  %indvars.iv182.ph = phi i64 [ %.pre-phi, %.lr.ph146.preheader ], [ %ind.end255, %middle.block249 ]
  %182 = sub nsw i64 %wide.trip.count, %indvars.iv182.ph
  %xtraiter315 = and i64 %182, 1
  %lcmp.mod316.not = icmp eq i64 %xtraiter315, 0
  br i1 %lcmp.mod316.not, label %.lr.ph146.prol.loopexit, label %.lr.ph146.prol

.lr.ph146.prol:                                   ; preds = %.lr.ph146.preheader297
  %183 = getelementptr inbounds double, ptr %6, i64 %indvars.iv182.ph
  %184 = load double, ptr %183, align 8, !tbaa !5
  %185 = mul nsw i64 %indvars.iv182.ph, %117
  %gep220.prol = getelementptr double, ptr %invariant.gep219, i64 %185
  %186 = load double, ptr %gep220.prol, align 8, !tbaa !5
  %187 = tail call double @llvm.fmuladd.f64(double %174, double %184, double %186)
  store double %187, ptr %gep220.prol, align 8, !tbaa !5
  %indvars.iv.next183.prol = add nsw i64 %indvars.iv182.ph, 1
  br label %.lr.ph146.prol.loopexit

.lr.ph146.prol.loopexit:                          ; preds = %.lr.ph146.prol, %.lr.ph146.preheader297
  %indvars.iv182.unr = phi i64 [ %indvars.iv182.ph, %.lr.ph146.preheader297 ], [ %indvars.iv.next183.prol, %.lr.ph146.prol ]
  %188 = icmp eq i64 %indvars.iv182.ph, %133
  br i1 %188, label %.loopexit121, label %.lr.ph146

.lr.ph146:                                        ; preds = %.lr.ph146.prol.loopexit, %.lr.ph146
  %indvars.iv182 = phi i64 [ %indvars.iv.next183.1, %.lr.ph146 ], [ %indvars.iv182.unr, %.lr.ph146.prol.loopexit ]
  %189 = getelementptr inbounds double, ptr %6, i64 %indvars.iv182
  %190 = load double, ptr %189, align 8, !tbaa !5
  %191 = mul nsw i64 %indvars.iv182, %117
  %gep220 = getelementptr double, ptr %invariant.gep219, i64 %191
  %192 = load double, ptr %gep220, align 8, !tbaa !5
  %193 = tail call double @llvm.fmuladd.f64(double %174, double %190, double %192)
  store double %193, ptr %gep220, align 8, !tbaa !5
  %indvars.iv.next183 = add nsw i64 %indvars.iv182, 1
  %194 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next183
  %195 = load double, ptr %194, align 8, !tbaa !5
  %196 = mul nsw i64 %indvars.iv.next183, %117
  %gep220.1 = getelementptr double, ptr %invariant.gep219, i64 %196
  %197 = load double, ptr %gep220.1, align 8, !tbaa !5
  %198 = tail call double @llvm.fmuladd.f64(double %174, double %195, double %197)
  store double %198, ptr %gep220.1, align 8, !tbaa !5
  %indvars.iv.next183.1 = add nsw i64 %indvars.iv182, 2
  %exitcond186.not.1 = icmp eq i64 %indvars.iv.next183.1, %wide.trip.count185
  br i1 %exitcond186.not.1, label %.loopexit121, label %.lr.ph146, !llvm.loop !32

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge157
  %indvars.iv202 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next203, %._crit_edge157 ]
  br i1 %10, label %.lr.ph151, label %._crit_edge157

.lr.ph151:                                        ; preds = %.preheader
  %199 = mul nuw nsw i64 %indvars.iv202, %144
  %invariant.gep221 = getelementptr double, ptr %1, i64 %199
  br i1 %lcmp.mod319.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph151, %.prol.preheader
  %indvars.iv192.prol = phi i64 [ %indvars.iv.next193.prol, %.prol.preheader ], [ %.pre-phi, %.lr.ph151 ]
  %.1115149.prol = phi double [ %203, %.prol.preheader ], [ 0.000000e+00, %.lr.ph151 ]
  %prol.iter320 = phi i64 [ %prol.iter320.next, %.prol.preheader ], [ 0, %.lr.ph151 ]
  %gep222.prol = getelementptr double, ptr %invariant.gep221, i64 %indvars.iv192.prol
  %200 = load double, ptr %gep222.prol, align 8, !tbaa !5
  %201 = getelementptr inbounds double, ptr %6, i64 %indvars.iv192.prol
  %202 = load double, ptr %201, align 8, !tbaa !5
  %203 = tail call double @llvm.fmuladd.f64(double %200, double %202, double %.1115149.prol)
  %indvars.iv.next193.prol = add nsw i64 %indvars.iv192.prol, 1
  %prol.iter320.next = add i64 %prol.iter320, 1
  %prol.iter320.cmp.not = icmp eq i64 %prol.iter320.next, %xtraiter318
  br i1 %prol.iter320.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !33

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph151
  %.lcssa.unr = phi double [ poison, %.lr.ph151 ], [ %203, %.prol.preheader ]
  %indvars.iv192.unr = phi i64 [ %.pre-phi, %.lr.ph151 ], [ %indvars.iv.next193.prol, %.prol.preheader ]
  %.1115149.unr = phi double [ 0.000000e+00, %.lr.ph151 ], [ %203, %.prol.preheader ]
  br i1 %152, label %._crit_edge152, label %.lr.ph151.new

.lr.ph151.new:                                    ; preds = %.prol.loopexit, %.lr.ph151.new
  %indvars.iv192 = phi i64 [ %indvars.iv.next193.3, %.lr.ph151.new ], [ %indvars.iv192.unr, %.prol.loopexit ]
  %.1115149 = phi double [ %219, %.lr.ph151.new ], [ %.1115149.unr, %.prol.loopexit ]
  %gep222 = getelementptr double, ptr %invariant.gep221, i64 %indvars.iv192
  %204 = load double, ptr %gep222, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %6, i64 %indvars.iv192
  %206 = load double, ptr %205, align 8, !tbaa !5
  %207 = tail call double @llvm.fmuladd.f64(double %204, double %206, double %.1115149)
  %indvars.iv.next193 = add nsw i64 %indvars.iv192, 1
  %gep222.1 = getelementptr double, ptr %invariant.gep221, i64 %indvars.iv.next193
  %208 = load double, ptr %gep222.1, align 8, !tbaa !5
  %209 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next193
  %210 = load double, ptr %209, align 8, !tbaa !5
  %211 = tail call double @llvm.fmuladd.f64(double %208, double %210, double %207)
  %indvars.iv.next193.1 = add nsw i64 %indvars.iv192, 2
  %gep222.2 = getelementptr double, ptr %invariant.gep221, i64 %indvars.iv.next193.1
  %212 = load double, ptr %gep222.2, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next193.1
  %214 = load double, ptr %213, align 8, !tbaa !5
  %215 = tail call double @llvm.fmuladd.f64(double %212, double %214, double %211)
  %indvars.iv.next193.2 = add nsw i64 %indvars.iv192, 3
  %gep222.3 = getelementptr double, ptr %invariant.gep221, i64 %indvars.iv.next193.2
  %216 = load double, ptr %gep222.3, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next193.2
  %218 = load double, ptr %217, align 8, !tbaa !5
  %219 = tail call double @llvm.fmuladd.f64(double %216, double %218, double %215)
  %indvars.iv.next193.3 = add nsw i64 %indvars.iv192, 4
  %exitcond196.not.3 = icmp eq i64 %indvars.iv.next193.3, %144
  br i1 %exitcond196.not.3, label %._crit_edge152, label %.lr.ph151.new, !llvm.loop !34

._crit_edge152:                                   ; preds = %.lr.ph151.new, %.prol.loopexit
  %.lcssa = phi double [ %.lcssa.unr, %.prol.loopexit ], [ %219, %.lr.ph151.new ]
  %220 = fdiv double %.lcssa, %94
  br i1 %10, label %.lr.ph156, label %._crit_edge157

.lr.ph156:                                        ; preds = %._crit_edge152
  %221 = mul nuw nsw i64 %indvars.iv202, %144
  %invariant.gep223 = getelementptr double, ptr %1, i64 %221
  %brmerge340 = select i1 %min.iters.check278, i1 true, i1 %found.conflict275
  br i1 %brmerge340, label %scalar.ph277.preheader, label %vector.ph279

vector.ph279:                                     ; preds = %.lr.ph156
  %broadcast.splatinsert291 = insertelement <2 x double> poison, double %220, i64 0
  %broadcast.splat292 = shufflevector <2 x double> %broadcast.splatinsert291, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body284

vector.body284:                                   ; preds = %vector.body284, %vector.ph279
  %index285 = phi i64 [ 0, %vector.ph279 ], [ %index.next293, %vector.body284 ]
  %offset.idx286 = add i64 %.pre-phi, %index285
  %222 = getelementptr inbounds double, ptr %6, i64 %offset.idx286
  %223 = getelementptr inbounds i8, ptr %222, i64 16
  %wide.load287 = load <2 x double>, ptr %222, align 8, !tbaa !5, !alias.scope !35
  %wide.load288 = load <2 x double>, ptr %223, align 8, !tbaa !5, !alias.scope !35
  %224 = getelementptr double, ptr %invariant.gep223, i64 %offset.idx286
  %225 = getelementptr i8, ptr %224, i64 16
  %wide.load289 = load <2 x double>, ptr %224, align 8, !tbaa !5, !alias.scope !38, !noalias !35
  %wide.load290 = load <2 x double>, ptr %225, align 8, !tbaa !5, !alias.scope !38, !noalias !35
  %226 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat292, <2 x double> %wide.load287, <2 x double> %wide.load289)
  %227 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat292, <2 x double> %wide.load288, <2 x double> %wide.load290)
  store <2 x double> %226, ptr %224, align 8, !tbaa !5, !alias.scope !38, !noalias !35
  store <2 x double> %227, ptr %225, align 8, !tbaa !5, !alias.scope !38, !noalias !35
  %index.next293 = add nuw i64 %index285, 4
  %228 = icmp eq i64 %index.next293, %n.vec281
  br i1 %228, label %middle.block276, label %vector.body284, !llvm.loop !40

middle.block276:                                  ; preds = %vector.body284
  br i1 %cmp.n294, label %._crit_edge157, label %scalar.ph277.preheader

scalar.ph277.preheader:                           ; preds = %.lr.ph156, %middle.block276
  %indvars.iv197.ph = phi i64 [ %.pre-phi, %.lr.ph156 ], [ %ind.end282, %middle.block276 ]
  %229 = sub nsw i64 %144, %indvars.iv197.ph
  %xtraiter321 = and i64 %229, 1
  %lcmp.mod322.not = icmp eq i64 %xtraiter321, 0
  br i1 %lcmp.mod322.not, label %scalar.ph277.prol.loopexit, label %scalar.ph277.prol

scalar.ph277.prol:                                ; preds = %scalar.ph277.preheader
  %230 = getelementptr inbounds double, ptr %6, i64 %indvars.iv197.ph
  %231 = load double, ptr %230, align 8, !tbaa !5
  %gep224.prol = getelementptr double, ptr %invariant.gep223, i64 %indvars.iv197.ph
  %232 = load double, ptr %gep224.prol, align 8, !tbaa !5
  %233 = tail call double @llvm.fmuladd.f64(double %220, double %231, double %232)
  store double %233, ptr %gep224.prol, align 8, !tbaa !5
  %indvars.iv.next198.prol = add nsw i64 %indvars.iv197.ph, 1
  br label %scalar.ph277.prol.loopexit

scalar.ph277.prol.loopexit:                       ; preds = %scalar.ph277.prol, %scalar.ph277.preheader
  %indvars.iv197.unr = phi i64 [ %indvars.iv197.ph, %scalar.ph277.preheader ], [ %indvars.iv.next198.prol, %scalar.ph277.prol ]
  %234 = icmp eq i64 %indvars.iv197.ph, %153
  br i1 %234, label %._crit_edge157, label %scalar.ph277

scalar.ph277:                                     ; preds = %scalar.ph277.prol.loopexit, %scalar.ph277
  %indvars.iv197 = phi i64 [ %indvars.iv.next198.1, %scalar.ph277 ], [ %indvars.iv197.unr, %scalar.ph277.prol.loopexit ]
  %235 = getelementptr inbounds double, ptr %6, i64 %indvars.iv197
  %236 = load double, ptr %235, align 8, !tbaa !5
  %gep224 = getelementptr double, ptr %invariant.gep223, i64 %indvars.iv197
  %237 = load double, ptr %gep224, align 8, !tbaa !5
  %238 = tail call double @llvm.fmuladd.f64(double %220, double %236, double %237)
  store double %238, ptr %gep224, align 8, !tbaa !5
  %indvars.iv.next198 = add nsw i64 %indvars.iv197, 1
  %239 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next198
  %240 = load double, ptr %239, align 8, !tbaa !5
  %gep224.1 = getelementptr double, ptr %invariant.gep223, i64 %indvars.iv.next198
  %241 = load double, ptr %gep224.1, align 8, !tbaa !5
  %242 = tail call double @llvm.fmuladd.f64(double %220, double %240, double %241)
  store double %242, ptr %gep224.1, align 8, !tbaa !5
  %indvars.iv.next198.1 = add nsw i64 %indvars.iv197, 2
  %exitcond201.not.1 = icmp eq i64 %indvars.iv.next198.1, %144
  br i1 %exitcond201.not.1, label %._crit_edge157, label %scalar.ph277, !llvm.loop !41

._crit_edge157:                                   ; preds = %scalar.ph277.prol.loopexit, %scalar.ph277, %middle.block276, %.preheader, %._crit_edge152
  %indvars.iv.next203 = add nuw nsw i64 %indvars.iv202, 1
  %exitcond206.not = icmp eq i64 %indvars.iv.next203, %wide.trip.count205
  br i1 %exitcond206.not, label %.loopexit, label %.preheader, !llvm.loop !42

.loopexit:                                        ; preds = %._crit_edge157, %7, %.preheader120, %._crit_edge
  ret void
}

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

; 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 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind memory(write, argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !12, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !12, !15}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !12, !15, !16}
!22 = distinct !{!22, !12, !15}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !12}
!26 = !{!27}
!27 = distinct !{!27, !28}
!28 = distinct !{!28, !"LVerDomain"}
!29 = !{!30}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !12, !15, !16}
!32 = distinct !{!32, !12, !15}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !12}
!35 = !{!36}
!36 = distinct !{!36, !37}
!37 = distinct !{!37, !"LVerDomain"}
!38 = !{!39}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !12, !15, !16}
!41 = distinct !{!41, !12, !15}
!42 = distinct !{!42, !12}


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