; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (r8lib)

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local double @r8_sign(double noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local double @r8mat_norm_fro(i32 noundef, i32 noundef, ptr noundef) #3

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

23:                                               ; preds = %282, %2
  %24 = load i32, ptr %8, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %8, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %236, %23
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %30, label %239

30:                                               ; preds = %26
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %232, %30
  %32 = load i32, ptr %10, align 4, !tbaa !5
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %35, label %235

35:                                               ; preds = %31
  %36 = load double, ptr %6, align 8, !tbaa !11
  %37 = load double, ptr %12, align 8, !tbaa !11
  %38 = fmul double %36, %37
  %39 = load ptr, ptr %4, align 8, !tbaa !9
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = load i32, ptr %10, align 4, !tbaa !5
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = mul nsw i32 %41, %42
  %44 = add nsw i32 %40, %43
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds double, ptr %39, i64 %45
  %47 = load double, ptr %46, align 8, !tbaa !11
  %48 = call double @llvm.fabs.f64(double %47)
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = mul nsw i32 %51, %52
  %54 = add nsw i32 %50, %53
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %49, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = call double @llvm.fabs.f64(double %57)
  %59 = fadd double %48, %58
  %60 = fcmp olt double %38, %59
  br i1 %60, label %61, label %231

61:                                               ; preds = %35
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = mul nsw i32 %64, %65
  %67 = add nsw i32 %63, %66
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %62, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = mul nsw i32 %73, %74
  %76 = add nsw i32 %72, %75
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %71, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fsub double %70, %79
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = mul nsw i32 %83, %84
  %86 = add nsw i32 %82, %85
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %81, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = load ptr, ptr %4, align 8, !tbaa !9
  %91 = load i32, ptr %10, align 4, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = mul nsw i32 %92, %93
  %95 = add nsw i32 %91, %94
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %90, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = fadd double %89, %98
  %100 = fdiv double %80, %99
  store double %100, ptr %18, align 8, !tbaa !11
  %101 = load double, ptr %18, align 8, !tbaa !11
  %102 = call double @r8_sign(double noundef %101)
  %103 = load double, ptr %18, align 8, !tbaa !11
  %104 = call double @llvm.fabs.f64(double %103)
  %105 = load double, ptr %18, align 8, !tbaa !11
  %106 = load double, ptr %18, align 8, !tbaa !11
  %107 = call double @llvm.fmuladd.f64(double %105, double %106, double 1.000000e+00)
  %108 = call double @sqrt(double noundef %107) #4
  %109 = fadd double %104, %108
  %110 = fdiv double %102, %109
  store double %110, ptr %15, align 8, !tbaa !11
  %111 = load double, ptr %15, align 8, !tbaa !11
  %112 = load double, ptr %15, align 8, !tbaa !11
  %113 = call double @llvm.fmuladd.f64(double %111, double %112, double 1.000000e+00)
  %114 = call double @sqrt(double noundef %113) #4
  %115 = fdiv double 1.000000e+00, %114
  store double %115, ptr %5, align 8, !tbaa !11
  %116 = load double, ptr %15, align 8, !tbaa !11
  %117 = load double, ptr %5, align 8, !tbaa !11
  %118 = fmul double %116, %117
  store double %118, ptr %13, align 8, !tbaa !11
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %171, %61
  %120 = load i32, ptr %11, align 4, !tbaa !5
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %123, label %174

123:                                              ; preds = %119
  %124 = load ptr, ptr %4, align 8, !tbaa !9
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = load i32, ptr %3, align 4, !tbaa !5
  %128 = mul nsw i32 %126, %127
  %129 = add nsw i32 %125, %128
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds double, ptr %124, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !11
  store double %132, ptr %16, align 8, !tbaa !11
  %133 = load ptr, ptr %4, align 8, !tbaa !9
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = load i32, ptr %11, align 4, !tbaa !5
  %136 = load i32, ptr %3, align 4, !tbaa !5
  %137 = mul nsw i32 %135, %136
  %138 = add nsw i32 %134, %137
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds double, ptr %133, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !11
  store double %141, ptr %17, align 8, !tbaa !11
  %142 = load double, ptr %16, align 8, !tbaa !11
  %143 = load double, ptr %5, align 8, !tbaa !11
  %144 = load double, ptr %17, align 8, !tbaa !11
  %145 = load double, ptr %13, align 8, !tbaa !11
  %146 = fmul double %144, %145
  %147 = fneg double %146
  %148 = call double @llvm.fmuladd.f64(double %142, double %143, double %147)
  %149 = load ptr, ptr %4, align 8, !tbaa !9
  %150 = load i32, ptr %7, align 4, !tbaa !5
  %151 = load i32, ptr %11, align 4, !tbaa !5
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = mul nsw i32 %151, %152
  %154 = add nsw i32 %150, %153
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %149, i64 %155
  store double %148, ptr %156, align 8, !tbaa !11
  %157 = load double, ptr %16, align 8, !tbaa !11
  %158 = load double, ptr %13, align 8, !tbaa !11
  %159 = load double, ptr %17, align 8, !tbaa !11
  %160 = load double, ptr %5, align 8, !tbaa !11
  %161 = fmul double %159, %160
  %162 = call double @llvm.fmuladd.f64(double %157, double %158, double %161)
  %163 = load ptr, ptr %4, align 8, !tbaa !9
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = load i32, ptr %3, align 4, !tbaa !5
  %167 = mul nsw i32 %165, %166
  %168 = add nsw i32 %164, %167
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %163, i64 %169
  store double %162, ptr %170, align 8, !tbaa !11
  br label %171

171:                                              ; preds = %123
  %172 = load i32, ptr %11, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %11, align 4, !tbaa !5
  br label %119, !llvm.loop !13

174:                                              ; preds = %119
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %227, %174
  %176 = load i32, ptr %11, align 4, !tbaa !5
  %177 = load i32, ptr %3, align 4, !tbaa !5
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %179, label %230

179:                                              ; preds = %175
  %180 = load ptr, ptr %4, align 8, !tbaa !9
  %181 = load i32, ptr %11, align 4, !tbaa !5
  %182 = load i32, ptr %7, align 4, !tbaa !5
  %183 = load i32, ptr %3, align 4, !tbaa !5
  %184 = mul nsw i32 %182, %183
  %185 = add nsw i32 %181, %184
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %180, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !11
  store double %188, ptr %16, align 8, !tbaa !11
  %189 = load ptr, ptr %4, align 8, !tbaa !9
  %190 = load i32, ptr %11, align 4, !tbaa !5
  %191 = load i32, ptr %10, align 4, !tbaa !5
  %192 = load i32, ptr %3, align 4, !tbaa !5
  %193 = mul nsw i32 %191, %192
  %194 = add nsw i32 %190, %193
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %189, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !11
  store double %197, ptr %17, align 8, !tbaa !11
  %198 = load double, ptr %5, align 8, !tbaa !11
  %199 = load double, ptr %16, align 8, !tbaa !11
  %200 = load double, ptr %13, align 8, !tbaa !11
  %201 = load double, ptr %17, align 8, !tbaa !11
  %202 = fmul double %200, %201
  %203 = fneg double %202
  %204 = call double @llvm.fmuladd.f64(double %198, double %199, double %203)
  %205 = load ptr, ptr %4, align 8, !tbaa !9
  %206 = load i32, ptr %11, align 4, !tbaa !5
  %207 = load i32, ptr %7, align 4, !tbaa !5
  %208 = load i32, ptr %3, align 4, !tbaa !5
  %209 = mul nsw i32 %207, %208
  %210 = add nsw i32 %206, %209
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds double, ptr %205, i64 %211
  store double %204, ptr %212, align 8, !tbaa !11
  %213 = load double, ptr %13, align 8, !tbaa !11
  %214 = load double, ptr %16, align 8, !tbaa !11
  %215 = load double, ptr %5, align 8, !tbaa !11
  %216 = load double, ptr %17, align 8, !tbaa !11
  %217 = fmul double %215, %216
  %218 = call double @llvm.fmuladd.f64(double %213, double %214, double %217)
  %219 = load ptr, ptr %4, align 8, !tbaa !9
  %220 = load i32, ptr %11, align 4, !tbaa !5
  %221 = load i32, ptr %10, align 4, !tbaa !5
  %222 = load i32, ptr %3, align 4, !tbaa !5
  %223 = mul nsw i32 %221, %222
  %224 = add nsw i32 %220, %223
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds double, ptr %219, i64 %225
  store double %218, ptr %226, align 8, !tbaa !11
  br label %227

227:                                              ; preds = %179
  %228 = load i32, ptr %11, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %11, align 4, !tbaa !5
  br label %175, !llvm.loop !15

230:                                              ; preds = %175
  br label %231

231:                                              ; preds = %230, %35
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %10, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %10, align 4, !tbaa !5
  br label %31, !llvm.loop !16

235:                                              ; preds = %31
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %7, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %7, align 4, !tbaa !5
  br label %26, !llvm.loop !17

239:                                              ; preds = %26
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %266, %239
  %241 = load i32, ptr %7, align 4, !tbaa !5
  %242 = load i32, ptr %3, align 4, !tbaa !5
  %243 = icmp slt i32 %241, %242
  br i1 %243, label %244, label %269

244:                                              ; preds = %240
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %245

245:                                              ; preds = %262, %244
  %246 = load i32, ptr %10, align 4, !tbaa !5
  %247 = load i32, ptr %7, align 4, !tbaa !5
  %248 = icmp slt i32 %246, %247
  br i1 %248, label %249, label %265

249:                                              ; preds = %245
  %250 = load double, ptr %14, align 8, !tbaa !11
  %251 = load ptr, ptr %4, align 8, !tbaa !9
  %252 = load i32, ptr %7, align 4, !tbaa !5
  %253 = load i32, ptr %10, align 4, !tbaa !5
  %254 = load i32, ptr %3, align 4, !tbaa !5
  %255 = mul nsw i32 %253, %254
  %256 = add nsw i32 %252, %255
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds double, ptr %251, i64 %257
  %259 = load double, ptr %258, align 8, !tbaa !11
  %260 = call double @llvm.fabs.f64(double %259)
  %261 = fadd double %250, %260
  store double %261, ptr %14, align 8, !tbaa !11
  br label %262

262:                                              ; preds = %249
  %263 = load i32, ptr %10, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %10, align 4, !tbaa !5
  br label %245, !llvm.loop !18

265:                                              ; preds = %245
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %7, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %7, align 4, !tbaa !5
  br label %240, !llvm.loop !19

269:                                              ; preds = %240
  %270 = load double, ptr %14, align 8, !tbaa !11
  %271 = load double, ptr %6, align 8, !tbaa !11
  %272 = load double, ptr %12, align 8, !tbaa !11
  %273 = fadd double %272, 1.000000e+00
  %274 = fmul double %271, %273
  %275 = fcmp ole double %270, %274
  br i1 %275, label %276, label %277

276:                                              ; preds = %269
  br label %283

277:                                              ; preds = %269
  %278 = load i32, ptr %9, align 4, !tbaa !5
  %279 = load i32, ptr %8, align 4, !tbaa !5
  %280 = icmp sle i32 %278, %279
  br i1 %280, label %281, label %282

281:                                              ; preds = %277
  br label %283

282:                                              ; preds = %277
  br label %23

283:                                              ; preds = %281, %276
  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
  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 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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}


; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

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

; Function Attrs: nounwind uwtable
declare dso_local double @r8_sign(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @r8mat_norm_fro(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @r8mat_symm_jacobi(i32 noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = tail call double @r8mat_norm_fro(i32 noundef %0, i32 noundef %0, ptr noundef %1)
  %.fr160 = freeze double %3
  %4 = icmp sgt i32 %0, 0
  %5 = fmul double %.fr160, 1.000000e-05
  %6 = fadd double %.fr160, 1.000000e+00
  %7 = fmul double %6, 1.000000e-05
  br i1 %4, label %.preheader124.lr.ph.us.preheader, label %.split142.us

.preheader124.lr.ph.us.preheader:                 ; preds = %2
  %8 = zext nneg i32 %0 to i64
  %min.iters.check = icmp eq i32 %0, 1
  %n.vec = and i64 %8, 2147483646
  %cmp.n = icmp eq i64 %n.vec, %8
  %xtraiter = and i64 %8, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %9 = add nsw i64 %8, -1
  br label %.preheader124.lr.ph.us

.preheader124.lr.ph.us:                           ; preds = %.preheader124.lr.ph.us.preheader, %._crit_edge139.us
  %.0113.us = phi i32 [ %99, %._crit_edge139.us ], [ 0, %.preheader124.lr.ph.us.preheader ]
  br label %.preheader124.us

._crit_edge139.us:                                ; preds = %._crit_edge136.us
  %10 = fcmp ole double %.1115.lcssa.us, %7
  %11 = icmp ugt i32 %.0113.us, 98
  %or.cond.us = select i1 %10, i1 true, i1 %11
  br i1 %or.cond.us, label %.split142.us, label %.preheader124.lr.ph.us

._crit_edge136.us.loopexit.unr-lcssa:             ; preds = %.lr.ph135.us, %.lr.ph135.us.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph135.us.preheader ], [ %31, %.lr.ph135.us ]
  %indvars.iv179.unr = phi i64 [ 0, %.lr.ph135.us.preheader ], [ %indvars.iv.next180.3, %.lr.ph135.us ]
  %.1115134.us.unr = phi double [ %.0114137.us, %.lr.ph135.us.preheader ], [ %31, %.lr.ph135.us ]
  %lcmp.mod208.not = icmp eq i64 %xtraiter207, 0
  br i1 %lcmp.mod208.not, label %._crit_edge136.us, label %.lr.ph135.us.epil

.lr.ph135.us.epil:                                ; preds = %._crit_edge136.us.loopexit.unr-lcssa, %.lr.ph135.us.epil
  %indvars.iv179.epil = phi i64 [ %indvars.iv.next180.epil, %.lr.ph135.us.epil ], [ %indvars.iv179.unr, %._crit_edge136.us.loopexit.unr-lcssa ]
  %.1115134.us.epil = phi double [ %15, %.lr.ph135.us.epil ], [ %.1115134.us.unr, %._crit_edge136.us.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph135.us.epil ], [ 0, %._crit_edge136.us.loopexit.unr-lcssa ]
  %12 = mul nuw nsw i64 %indvars.iv179.epil, %8
  %gep200.epil = getelementptr inbounds double, ptr %invariant.gep199, i64 %12
  %13 = load double, ptr %gep200.epil, align 8, !tbaa !5
  %14 = tail call double @llvm.fabs.f64(double %13)
  %15 = fadd double %.1115134.us.epil, %14
  %indvars.iv.next180.epil = add nuw nsw i64 %indvars.iv179.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter207
  br i1 %epil.iter.cmp.not, label %._crit_edge136.us, label %.lr.ph135.us.epil, !llvm.loop !9

._crit_edge136.us:                                ; preds = %._crit_edge136.us.loopexit.unr-lcssa, %.lr.ph135.us.epil, %.preheader123.us
  %.1115.lcssa.us = phi double [ %.0114137.us, %.preheader123.us ], [ %.lcssa.ph, %._crit_edge136.us.loopexit.unr-lcssa ], [ %15, %.lr.ph135.us.epil ]
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %8
  br i1 %exitcond188.not, label %._crit_edge139.us, label %.preheader123.us, !llvm.loop !11

.lr.ph135.us:                                     ; preds = %.lr.ph135.us, %.lr.ph135.us.preheader.new
  %indvars.iv179 = phi i64 [ 0, %.lr.ph135.us.preheader.new ], [ %indvars.iv.next180.3, %.lr.ph135.us ]
  %.1115134.us = phi double [ %.0114137.us, %.lr.ph135.us.preheader.new ], [ %31, %.lr.ph135.us ]
  %niter = phi i64 [ 0, %.lr.ph135.us.preheader.new ], [ %niter.next.3, %.lr.ph135.us ]
  %16 = mul nuw nsw i64 %indvars.iv179, %8
  %gep200 = getelementptr inbounds double, ptr %invariant.gep199, i64 %16
  %17 = load double, ptr %gep200, align 8, !tbaa !5
  %18 = tail call double @llvm.fabs.f64(double %17)
  %19 = fadd double %.1115134.us, %18
  %indvars.iv.next180 = or disjoint i64 %indvars.iv179, 1
  %20 = mul nuw nsw i64 %indvars.iv.next180, %8
  %gep200.1 = getelementptr inbounds double, ptr %invariant.gep199, i64 %20
  %21 = load double, ptr %gep200.1, align 8, !tbaa !5
  %22 = tail call double @llvm.fabs.f64(double %21)
  %23 = fadd double %19, %22
  %indvars.iv.next180.1 = or disjoint i64 %indvars.iv179, 2
  %24 = mul nuw nsw i64 %indvars.iv.next180.1, %8
  %gep200.2 = getelementptr inbounds double, ptr %invariant.gep199, i64 %24
  %25 = load double, ptr %gep200.2, align 8, !tbaa !5
  %26 = tail call double @llvm.fabs.f64(double %25)
  %27 = fadd double %23, %26
  %indvars.iv.next180.2 = or disjoint i64 %indvars.iv179, 3
  %28 = mul nuw nsw i64 %indvars.iv.next180.2, %8
  %gep200.3 = getelementptr inbounds double, ptr %invariant.gep199, i64 %28
  %29 = load double, ptr %gep200.3, align 8, !tbaa !5
  %30 = tail call double @llvm.fabs.f64(double %29)
  %31 = fadd double %27, %30
  %indvars.iv.next180.3 = add nuw nsw i64 %indvars.iv179, 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_edge136.us.loopexit.unr-lcssa, label %.lr.ph135.us, !llvm.loop !13

._crit_edge.us:                                   ; preds = %..loopexit_crit_edge.us, %.preheader124.us
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next175, %8
  br i1 %exitcond178.not, label %.preheader123.us.preheader, label %.preheader124.us, !llvm.loop !14

32:                                               ; preds = %.lr.ph131.us, %..loopexit_crit_edge.us
  %indvars.iv169 = phi i64 [ 0, %.lr.ph131.us ], [ %indvars.iv.next170, %..loopexit_crit_edge.us ]
  %33 = mul nuw nsw i64 %indvars.iv169, %8
  %gep196 = getelementptr inbounds double, ptr %invariant.gep195, i64 %33
  %34 = load double, ptr %gep196, align 8, !tbaa !5
  %35 = tail call double @llvm.fabs.f64(double %34)
  %gep198 = getelementptr inbounds double, ptr %invariant.gep197, i64 %indvars.iv169
  %36 = load double, ptr %gep198, align 8, !tbaa !5
  %37 = tail call double @llvm.fabs.f64(double %36)
  %38 = fadd double %35, %37
  %39 = fcmp olt double %5, %38
  br i1 %39, label %.lr.ph.us, label %..loopexit_crit_edge.us

.lr.ph.us:                                        ; preds = %32
  %indvars171 = trunc i64 %indvars.iv169 to i32
  %40 = mul nuw nsw i32 %indvars171, %0
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds double, ptr %1, i64 %indvars.iv169
  %43 = getelementptr inbounds double, ptr %42, i64 %41
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = load double, ptr %98, align 8, !tbaa !5
  %46 = fsub double %44, %45
  %47 = fadd double %34, %36
  %48 = fdiv double %46, %47
  %49 = tail call double @r8_sign(double noundef %48)
  %50 = tail call double @llvm.fabs.f64(double %48)
  %51 = tail call double @llvm.fmuladd.f64(double %48, double %48, double 1.000000e+00)
  %sqrt122.us = tail call double @llvm.sqrt.f64(double %51)
  %52 = fadd double %50, %sqrt122.us
  %53 = fdiv double %49, %52
  %54 = tail call double @llvm.fmuladd.f64(double %53, double %53, double 1.000000e+00)
  %sqrt.us = tail call double @llvm.sqrt.f64(double %54)
  %55 = fdiv double 1.000000e+00, %sqrt.us
  %56 = fmul double %53, %55
  %invariant.gep189 = getelementptr inbounds double, ptr %1, i64 %indvars.iv169
  br label %69

..loopexit_crit_edge.us:                          ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %32
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %exitcond173.not = icmp eq i64 %indvars.iv.next170, %indvars.iv174
  br i1 %exitcond173.not, label %._crit_edge.us, label %32, !llvm.loop !15

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv164 = phi i64 [ %indvars.iv.next165.1, %scalar.ph ], [ %indvars.iv164.unr, %scalar.ph.prol.loopexit ]
  %gep192 = getelementptr inbounds double, ptr %invariant.gep191, i64 %indvars.iv164
  %57 = load double, ptr %gep192, align 8, !tbaa !5
  %gep194 = getelementptr inbounds double, ptr %invariant.gep193, i64 %indvars.iv164
  %58 = load double, ptr %gep194, align 8, !tbaa !5
  %59 = fmul double %58, %79
  %60 = tail call double @llvm.fmuladd.f64(double %55, double %57, double %59)
  store double %60, ptr %gep192, align 8, !tbaa !5
  %61 = fmul double %55, %58
  %62 = tail call double @llvm.fmuladd.f64(double %56, double %57, double %61)
  store double %62, ptr %gep194, align 8, !tbaa !5
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %gep192.1 = getelementptr inbounds double, ptr %invariant.gep191, i64 %indvars.iv.next165
  %63 = load double, ptr %gep192.1, align 8, !tbaa !5
  %gep194.1 = getelementptr inbounds double, ptr %invariant.gep193, i64 %indvars.iv.next165
  %64 = load double, ptr %gep194.1, align 8, !tbaa !5
  %65 = fmul double %64, %79
  %66 = tail call double @llvm.fmuladd.f64(double %55, double %63, double %65)
  store double %66, ptr %gep192.1, align 8, !tbaa !5
  %67 = fmul double %55, %64
  %68 = tail call double @llvm.fmuladd.f64(double %56, double %63, double %67)
  store double %68, ptr %gep194.1, align 8, !tbaa !5
  %indvars.iv.next165.1 = add nuw nsw i64 %indvars.iv164, 2
  %exitcond168.not.1 = icmp eq i64 %indvars.iv.next165.1, %8
  br i1 %exitcond168.not.1, label %..loopexit_crit_edge.us, label %scalar.ph, !llvm.loop !16

69:                                               ; preds = %.lr.ph.us, %69
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %69 ]
  %70 = mul nuw nsw i64 %indvars.iv, %8
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %70
  %71 = load double, ptr %gep, align 8, !tbaa !5
  %gep190 = getelementptr inbounds double, ptr %invariant.gep189, i64 %70
  %72 = load double, ptr %gep190, align 8, !tbaa !5
  %73 = fneg double %72
  %74 = fmul double %56, %73
  %75 = tail call double @llvm.fmuladd.f64(double %71, double %55, double %74)
  store double %75, ptr %gep, align 8, !tbaa !5
  %76 = fmul double %55, %72
  %77 = tail call double @llvm.fmuladd.f64(double %71, double %56, double %76)
  store double %77, ptr %gep190, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %8
  br i1 %exitcond.not, label %..preheader_crit_edge.us, label %69, !llvm.loop !18

.preheader123.us:                                 ; preds = %.preheader123.us.preheader, %._crit_edge136.us
  %indvars.iv184 = phi i64 [ 0, %.preheader123.us.preheader ], [ %indvars.iv.next185, %._crit_edge136.us ]
  %.0114137.us = phi double [ 0.000000e+00, %.preheader123.us.preheader ], [ %.1115.lcssa.us, %._crit_edge136.us ]
  %.not161 = icmp eq i64 %indvars.iv184, 0
  br i1 %.not161, label %._crit_edge136.us, label %.lr.ph135.us.preheader

.lr.ph135.us.preheader:                           ; preds = %.preheader123.us
  %invariant.gep199 = getelementptr inbounds double, ptr %1, i64 %indvars.iv184
  %xtraiter207 = and i64 %indvars.iv184, 3
  %78 = icmp ult i64 %indvars.iv184, 4
  br i1 %78, label %._crit_edge136.us.loopexit.unr-lcssa, label %.lr.ph135.us.preheader.new

.lr.ph135.us.preheader.new:                       ; preds = %.lr.ph135.us.preheader
  %unroll_iter = and i64 %indvars.iv184, 9223372036854775804
  br label %.lr.ph135.us

.preheader124.us:                                 ; preds = %.preheader124.lr.ph.us, %._crit_edge.us
  %indvars.iv174 = phi i64 [ 0, %.preheader124.lr.ph.us ], [ %indvars.iv.next175, %._crit_edge.us ]
  %.not = icmp eq i64 %indvars.iv174, 0
  br i1 %.not, label %._crit_edge.us, label %.lr.ph131.us

..preheader_crit_edge.us:                         ; preds = %69
  %79 = fneg double %56
  %invariant.gep193 = getelementptr inbounds double, ptr %1, i64 %33
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %..preheader_crit_edge.us
  %indvars.iv164.ph = phi i64 [ 0, %..preheader_crit_edge.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %gep192.prol = getelementptr inbounds double, ptr %invariant.gep191, i64 %indvars.iv164.ph
  %80 = load double, ptr %gep192.prol, align 8, !tbaa !5
  %gep194.prol = getelementptr inbounds double, ptr %invariant.gep193, i64 %indvars.iv164.ph
  %81 = load double, ptr %gep194.prol, align 8, !tbaa !5
  %82 = fmul double %81, %79
  %83 = tail call double @llvm.fmuladd.f64(double %55, double %80, double %82)
  store double %83, ptr %gep192.prol, align 8, !tbaa !5
  %84 = fmul double %55, %81
  %85 = tail call double @llvm.fmuladd.f64(double %56, double %80, double %84)
  store double %85, ptr %gep194.prol, align 8, !tbaa !5
  %indvars.iv.next165.prol = or disjoint i64 %indvars.iv164.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv164.unr = phi i64 [ %indvars.iv164.ph, %scalar.ph.preheader ], [ %indvars.iv.next165.prol, %scalar.ph.prol ]
  %86 = icmp eq i64 %indvars.iv164.ph, %9
  br i1 %86, label %..loopexit_crit_edge.us, label %scalar.ph

vector.ph:                                        ; preds = %..preheader_crit_edge.us
  %broadcast.splatinsert = insertelement <2 x double> poison, double %79, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert203 = insertelement <2 x double> poison, double %55, i64 0
  %broadcast.splat204 = shufflevector <2 x double> %broadcast.splatinsert203, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert205 = insertelement <2 x double> poison, double %56, i64 0
  %broadcast.splat206 = shufflevector <2 x double> %broadcast.splatinsert205, <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 ]
  %87 = getelementptr inbounds double, ptr %invariant.gep191, i64 %index
  %wide.load = load <2 x double>, ptr %87, align 8, !tbaa !5, !alias.scope !19, !noalias !22
  %88 = getelementptr inbounds double, ptr %invariant.gep193, i64 %index
  %wide.load202 = load <2 x double>, ptr %88, align 8, !tbaa !5, !alias.scope !22
  %89 = fmul <2 x double> %wide.load202, %broadcast.splat
  %90 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat204, <2 x double> %wide.load, <2 x double> %89)
  store <2 x double> %90, ptr %87, align 8, !tbaa !5, !alias.scope !19, !noalias !22
  %91 = fmul <2 x double> %broadcast.splat204, %wide.load202
  %92 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat206, <2 x double> %wide.load, <2 x double> %91)
  store <2 x double> %92, ptr %88, align 8, !tbaa !5, !alias.scope !22
  %index.next = add nuw i64 %index, 2
  %93 = icmp eq i64 %index.next, %n.vec
  br i1 %93, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..loopexit_crit_edge.us, label %scalar.ph.preheader

.lr.ph131.us:                                     ; preds = %.preheader124.us
  %indvars176 = trunc i64 %indvars.iv174 to i32
  %94 = mul nuw nsw i64 %indvars.iv174, %8
  %95 = mul nuw nsw i32 %indvars176, %0
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %1, i64 %indvars.iv174
  %98 = getelementptr inbounds double, ptr %97, i64 %96
  %invariant.gep195 = getelementptr inbounds double, ptr %1, i64 %indvars.iv174
  %invariant.gep197 = getelementptr inbounds double, ptr %1, i64 %94
  %invariant.gep = getelementptr inbounds double, ptr %1, i64 %indvars.iv174
  %invariant.gep191 = getelementptr inbounds double, ptr %1, i64 %94
  br label %32

.preheader123.us.preheader:                       ; preds = %._crit_edge.us
  %99 = add nuw nsw i32 %.0113.us, 1
  br label %.preheader123.us

.split142.us:                                     ; preds = %._crit_edge139.us, %2
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #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>) #2

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

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

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


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