; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis (data)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local float @vorbis_lpc_from_data(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  %24 = sext i32 %23 to i64
  %25 = mul i64 8, %24
  %26 = alloca i8, i64 %25, align 16
  store ptr %26, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = mul i64 8, %28
  %30 = alloca i8, i64 %29, align 16
  store ptr %30, ptr %11, align 8, !tbaa !5
  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 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %15, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %63, %4
  %34 = load i32, ptr %15, align 4, !tbaa !9
  %35 = add nsw i32 %34, -1
  store i32 %35, ptr %15, align 4, !tbaa !9
  %36 = icmp ne i32 %34, 0
  br i1 %36, label %37, label %69

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  %38 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %38, ptr %14, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %60, %37
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %63

43:                                               ; preds = %39
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load i32, ptr %14, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %44, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !13
  %49 = fpext float %48 to double
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %15, align 4, !tbaa !9
  %53 = sub nsw i32 %51, %52
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %50, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !13
  %57 = fpext float %56 to double
  %58 = load double, ptr %16, align 8, !tbaa !11
  %59 = call double @llvm.fmuladd.f64(double %49, double %57, double %58)
  store double %59, ptr %16, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %43
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %14, align 4, !tbaa !9
  br label %39, !llvm.loop !15

63:                                               ; preds = %39
  %64 = load double, ptr %16, align 8, !tbaa !11
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %65, i64 %67
  store double %64, ptr %68, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %33, !llvm.loop !17

69:                                               ; preds = %33
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i64 0
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = fmul double %72, 0x3FF000000006DF38
  store double %73, ptr %12, align 8, !tbaa !11
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %74, i64 0
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = call double @llvm.fmuladd.f64(double 1.000000e-09, double %76, double 1.000000e-10)
  store double %77, ptr %13, align 8, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %203, %69
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %82, label %206

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %83, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = fneg double %88
  store double %89, ptr %17, align 8, !tbaa !11
  %90 = load double, ptr %12, align 8, !tbaa !11
  %91 = load double, ptr %13, align 8, !tbaa !11
  %92 = fcmp olt double %90, %91
  br i1 %92, label %93, label %103

93:                                               ; preds = %82
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = sub nsw i32 %98, %99
  %101 = sext i32 %100 to i64
  %102 = mul i64 %101, 8
  call void @llvm.memset.p0.i64(ptr align 8 %97, i8 0, i64 %102, i1 false)
  store i32 10, ptr %19, align 4
  br label %200

103:                                              ; preds = %82
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %124, %103
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %127

108:                                              ; preds = %104
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %109, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = sub nsw i32 %115, %116
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %114, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !11
  %121 = load double, ptr %17, align 8, !tbaa !11
  %122 = fneg double %113
  %123 = call double @llvm.fmuladd.f64(double %122, double %120, double %121)
  store double %123, ptr %17, align 8, !tbaa !11
  br label %124

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

127:                                              ; preds = %104
  %128 = load double, ptr %12, align 8, !tbaa !11
  %129 = load double, ptr %17, align 8, !tbaa !11
  %130 = fdiv double %129, %128
  store double %130, ptr %17, align 8, !tbaa !11
  %131 = load double, ptr %17, align 8, !tbaa !11
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %132, i64 %134
  store double %131, ptr %135, align 8, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %173, %127
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = sdiv i32 %138, 2
  %140 = icmp slt i32 %137, %139
  br i1 %140, label %141, label %176

141:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds double, ptr %142, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !11
  store double %146, ptr %18, align 8, !tbaa !11
  %147 = load double, ptr %17, align 8, !tbaa !11
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = sub nsw i32 %149, 1
  %151 = load i32, ptr %15, align 4, !tbaa !9
  %152 = sub nsw i32 %150, %151
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %148, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !11
  %161 = call double @llvm.fmuladd.f64(double %147, double %155, double %160)
  store double %161, ptr %159, align 8, !tbaa !11
  %162 = load double, ptr %17, align 8, !tbaa !11
  %163 = load double, ptr %18, align 8, !tbaa !11
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = sub nsw i32 %165, 1
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = sub nsw i32 %166, %167
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %164, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !11
  %172 = call double @llvm.fmuladd.f64(double %162, double %163, double %171)
  store double %172, ptr %170, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %173

173:                                              ; preds = %141
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %15, align 4, !tbaa !9
  br label %136, !llvm.loop !19

176:                                              ; preds = %136
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = and i32 %177, 1
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %193

180:                                              ; preds = %176
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = load i32, ptr %15, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !11
  %186 = load double, ptr %17, align 8, !tbaa !11
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %187, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = call double @llvm.fmuladd.f64(double %185, double %186, double %191)
  store double %192, ptr %190, align 8, !tbaa !11
  br label %193

193:                                              ; preds = %180, %176
  %194 = load double, ptr %17, align 8, !tbaa !11
  %195 = load double, ptr %17, align 8, !tbaa !11
  %196 = fneg double %194
  %197 = call double @llvm.fmuladd.f64(double %196, double %195, double 1.000000e+00)
  %198 = load double, ptr %12, align 8, !tbaa !11
  %199 = fmul double %198, %197
  store double %199, ptr %12, align 8, !tbaa !11
  store i32 0, ptr %19, align 4
  br label %200

200:                                              ; preds = %193, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %201 = load i32, ptr %19, align 4
  switch i32 %201, label %249 [
    i32 0, label %202
    i32 10, label %207
  ]

202:                                              ; preds = %200
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %14, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %14, align 4, !tbaa !9
  br label %78, !llvm.loop !20

206:                                              ; preds = %78
  br label %207

207:                                              ; preds = %206, %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store double 0x3FEFAE147AE147AE, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %208 = load double, ptr %20, align 8, !tbaa !11
  store double %208, ptr %21, align 8, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %209

209:                                              ; preds = %224, %207
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %9, align 4, !tbaa !9
  %212 = icmp slt i32 %210, %211
  br i1 %212, label %213, label %227

213:                                              ; preds = %209
  %214 = load double, ptr %21, align 8, !tbaa !11
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds double, ptr %215, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !11
  %220 = fmul double %219, %214
  store double %220, ptr %218, align 8, !tbaa !11
  %221 = load double, ptr %20, align 8, !tbaa !11
  %222 = load double, ptr %21, align 8, !tbaa !11
  %223 = fmul double %222, %221
  store double %223, ptr %21, align 8, !tbaa !11
  br label %224

224:                                              ; preds = %213
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %15, align 4, !tbaa !9
  br label %209, !llvm.loop !21

227:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %228

228:                                              ; preds = %243, %227
  %229 = load i32, ptr %15, align 4, !tbaa !9
  %230 = load i32, ptr %9, align 4, !tbaa !9
  %231 = icmp slt i32 %229, %230
  br i1 %231, label %232, label %246

232:                                              ; preds = %228
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds double, ptr %233, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !11
  %238 = fptrunc double %237 to float
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds float, ptr %239, i64 %241
  store float %238, ptr %242, align 4, !tbaa !13
  br label %243

243:                                              ; preds = %232
  %244 = load i32, ptr %15, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %15, align 4, !tbaa !9
  br label %228, !llvm.loop !22

246:                                              ; preds = %228
  %247 = load double, ptr %12, align 8, !tbaa !11
  %248 = fptrunc double %247 to float
  store float %248, ptr %5, align 4
  store i32 1, ptr %19, align 4
  br label %249

249:                                              ; preds = %246, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %250 = load float, ptr %5, align 4
  ret float %250
}

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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


; 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: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local float @vorbis_lpc_from_data(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = add nsw i32 %3, 1
  %6 = sext i32 %5 to i64
  %7 = shl nsw i64 %6, 3
  %8 = alloca i8, i64 %7, align 16
  %9 = sext i32 %3 to i64
  %10 = shl nsw i64 %9, 3
  %11 = alloca i8, i64 %10, align 16
  %.not108 = icmp eq i32 %5, 0
  br i1 %.not108, label %._crit_edge132, label %.preheader102.preheader

.preheader102.preheader:                          ; preds = %4
  %12 = sext i32 %2 to i64
  br label %.preheader102

.preheader102:                                    ; preds = %.preheader102.preheader, %._crit_edge
  %indvars.iv = phi i64 [ %9, %.preheader102.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %13 = icmp slt i64 %indvars.iv, %12
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader102, %.lr.ph
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %.lr.ph ], [ %indvars.iv, %.preheader102 ]
  %.091107 = phi double [ %21, %.lr.ph ], [ 0.000000e+00, %.preheader102 ]
  %14 = getelementptr inbounds float, ptr %0, i64 %indvars.iv140
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = fpext float %15 to double
  %17 = sub nsw i64 %indvars.iv140, %indvars.iv
  %18 = getelementptr inbounds float, ptr %0, i64 %17
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = fpext float %19 to double
  %21 = tail call double @llvm.fmuladd.f64(double %16, double %20, double %.091107)
  %indvars.iv.next141 = add nsw i64 %indvars.iv140, 1
  %22 = icmp slt i64 %indvars.iv.next141, %12
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %.preheader102
  %.091.lcssa = phi double [ 0.000000e+00, %.preheader102 ], [ %21, %.lr.ph ]
  %23 = getelementptr inbounds double, ptr %8, i64 %indvars.iv
  store double %.091.lcssa, ptr %23, align 8, !tbaa !11
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %24 = icmp eq i64 %indvars.iv, 0
  br i1 %24, label %._crit_edge109, label %.preheader102, !llvm.loop !13

._crit_edge109:                                   ; preds = %._crit_edge
  %.pre = load double, ptr %8, align 16, !tbaa !11
  %25 = fmul double %.pre, 0x3FF000000006DF38
  %26 = tail call double @llvm.fmuladd.f64(double %.pre, double 1.000000e-09, double 1.000000e-10)
  %27 = icmp sgt i32 %3, 0
  br i1 %27, label %.lr.ph124.preheader, label %._crit_edge132

.lr.ph124.preheader:                              ; preds = %._crit_edge109
  %wide.trip.count155 = zext nneg i32 %3 to i64
  br label %.lr.ph124

.lr.ph124:                                        ; preds = %.lr.ph124.preheader, %99
  %indvars.iv152 = phi i64 [ 0, %.lr.ph124.preheader ], [ %indvars.iv.next153, %99 ]
  %.089122 = phi double [ %25, %.lr.ph124.preheader ], [ %103, %99 ]
  %28 = lshr i64 %indvars.iv152, 1
  %umax196 = tail call i64 @llvm.umax.i64(i64 %28, i64 1)
  %29 = trunc nuw nsw i64 %indvars.iv152 to i32
  %30 = lshr i32 %29, 1
  %umax = tail call i32 @llvm.umax.i32(i32 %30, i32 1)
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %31 = fcmp olt double %.089122, %26
  br i1 %31, label %.thread, label %37

.thread:                                          ; preds = %.lr.ph124
  %32 = and i64 %indvars.iv152, 4294967295
  %33 = getelementptr inbounds double, ptr %11, i64 %32
  %34 = sub nsw i32 %3, %29
  %35 = sext i32 %34 to i64
  %36 = shl nsw i64 %35, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %33, i8 0, i64 %36, i1 false)
  br i1 %27, label %.lr.ph129.preheader, label %._crit_edge132

37:                                               ; preds = %.lr.ph124
  %38 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next153
  %39 = load double, ptr %38, align 8, !tbaa !11
  %40 = fneg double %39
  %.not133 = icmp eq i64 %indvars.iv152, 0
  br i1 %.not133, label %._crit_edge119.thread, label %.lr.ph113.preheader

.lr.ph113.preheader:                              ; preds = %37
  %xtraiter = and i64 %indvars.iv152, 1
  %41 = icmp eq i64 %indvars.iv152, 1
  br i1 %41, label %._crit_edge114.unr-lcssa, label %.lr.ph113.preheader.new

.lr.ph113.preheader.new:                          ; preds = %.lr.ph113.preheader
  %unroll_iter = and i64 %indvars.iv152, 9223372036854775806
  br label %.lr.ph113

._crit_edge119.thread:                            ; preds = %37
  %42 = fdiv double %40, %.089122
  %43 = getelementptr inbounds double, ptr %11, i64 %indvars.iv152
  store double %42, ptr %43, align 8, !tbaa !11
  br label %99

.lr.ph113:                                        ; preds = %.lr.ph113, %.lr.ph113.preheader.new
  %indvars.iv144 = phi i64 [ 0, %.lr.ph113.preheader.new ], [ %indvars.iv.next145.1, %.lr.ph113 ]
  %.090111 = phi double [ %40, %.lr.ph113.preheader.new ], [ %57, %.lr.ph113 ]
  %niter = phi i64 [ 0, %.lr.ph113.preheader.new ], [ %niter.next.1, %.lr.ph113 ]
  %44 = getelementptr inbounds double, ptr %11, i64 %indvars.iv144
  %45 = load double, ptr %44, align 16, !tbaa !11
  %46 = sub nsw i64 %indvars.iv152, %indvars.iv144
  %47 = getelementptr inbounds double, ptr %8, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = fneg double %45
  %50 = tail call double @llvm.fmuladd.f64(double %49, double %48, double %.090111)
  %indvars.iv.next145 = or disjoint i64 %indvars.iv144, 1
  %51 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next145
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = sub nsw i64 %indvars.iv152, %indvars.iv.next145
  %54 = getelementptr inbounds double, ptr %8, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = fneg double %52
  %57 = tail call double @llvm.fmuladd.f64(double %56, double %55, double %50)
  %indvars.iv.next145.1 = add nuw nsw i64 %indvars.iv144, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge114.unr-lcssa, label %.lr.ph113, !llvm.loop !14

._crit_edge114.unr-lcssa:                         ; preds = %.lr.ph113, %.lr.ph113.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph113.preheader ], [ %57, %.lr.ph113 ]
  %indvars.iv144.unr = phi i64 [ 0, %.lr.ph113.preheader ], [ %indvars.iv.next145.1, %.lr.ph113 ]
  %.090111.unr = phi double [ %40, %.lr.ph113.preheader ], [ %57, %.lr.ph113 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge114, label %.lr.ph113.epil

.lr.ph113.epil:                                   ; preds = %._crit_edge114.unr-lcssa
  %58 = getelementptr inbounds double, ptr %11, i64 %indvars.iv144.unr
  %59 = load double, ptr %58, align 8, !tbaa !11
  %60 = sub nsw i64 %indvars.iv152, %indvars.iv144.unr
  %61 = getelementptr inbounds double, ptr %8, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  %63 = fneg double %59
  %64 = tail call double @llvm.fmuladd.f64(double %63, double %62, double %.090111.unr)
  br label %._crit_edge114

._crit_edge114:                                   ; preds = %._crit_edge114.unr-lcssa, %.lr.ph113.epil
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge114.unr-lcssa ], [ %64, %.lr.ph113.epil ]
  %65 = fdiv double %.lcssa, %.089122
  %66 = getelementptr inbounds double, ptr %11, i64 %indvars.iv152
  store double %65, ptr %66, align 8, !tbaa !11
  %.not134 = icmp eq i64 %indvars.iv152, 1
  br i1 %.not134, label %._crit_edge119, label %.lr.ph118.preheader

.lr.ph118.preheader:                              ; preds = %._crit_edge114
  %67 = getelementptr double, ptr %11, i64 %indvars.iv152
  %xtraiter197 = and i64 %umax196, 1
  %68 = icmp ult i64 %indvars.iv152, 4
  br i1 %68, label %._crit_edge119.loopexit.unr-lcssa, label %.lr.ph118.preheader.new

.lr.ph118.preheader.new:                          ; preds = %.lr.ph118.preheader
  %unroll_iter199 = and i64 %umax196, 4611686018427387902
  br label %.lr.ph118

.lr.ph118:                                        ; preds = %.lr.ph118, %.lr.ph118.preheader.new
  %indvars.iv147 = phi i64 [ 0, %.lr.ph118.preheader.new ], [ %indvars.iv.next148.1, %.lr.ph118 ]
  %niter200 = phi i64 [ 0, %.lr.ph118.preheader.new ], [ %niter200.next.1, %.lr.ph118 ]
  %69 = getelementptr inbounds double, ptr %11, i64 %indvars.iv147
  %70 = load double, ptr %69, align 16, !tbaa !11
  %71 = xor i64 %indvars.iv147, -1
  %72 = getelementptr double, ptr %67, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = tail call double @llvm.fmuladd.f64(double %65, double %73, double %70)
  store double %74, ptr %69, align 16, !tbaa !11
  %75 = load double, ptr %72, align 8, !tbaa !11
  %76 = tail call double @llvm.fmuladd.f64(double %65, double %70, double %75)
  store double %76, ptr %72, align 8, !tbaa !11
  %indvars.iv.next148 = or disjoint i64 %indvars.iv147, 1
  %77 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next148
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = xor i64 %indvars.iv147, -2
  %80 = getelementptr double, ptr %67, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = tail call double @llvm.fmuladd.f64(double %65, double %81, double %78)
  store double %82, ptr %77, align 8, !tbaa !11
  %83 = load double, ptr %80, align 8, !tbaa !11
  %84 = tail call double @llvm.fmuladd.f64(double %65, double %78, double %83)
  store double %84, ptr %80, align 8, !tbaa !11
  %indvars.iv.next148.1 = add nuw nsw i64 %indvars.iv147, 2
  %niter200.next.1 = add i64 %niter200, 2
  %niter200.ncmp.1 = icmp eq i64 %niter200.next.1, %unroll_iter199
  br i1 %niter200.ncmp.1, label %._crit_edge119.loopexit.unr-lcssa, label %.lr.ph118, !llvm.loop !15

._crit_edge119.loopexit.unr-lcssa:                ; preds = %.lr.ph118, %.lr.ph118.preheader
  %indvars.iv147.unr = phi i64 [ 0, %.lr.ph118.preheader ], [ %indvars.iv.next148.1, %.lr.ph118 ]
  %lcmp.mod198.not = icmp eq i64 %xtraiter197, 0
  br i1 %lcmp.mod198.not, label %._crit_edge119, label %.lr.ph118.epil

.lr.ph118.epil:                                   ; preds = %._crit_edge119.loopexit.unr-lcssa
  %85 = getelementptr inbounds double, ptr %11, i64 %indvars.iv147.unr
  %86 = load double, ptr %85, align 8, !tbaa !11
  %87 = xor i64 %indvars.iv147.unr, -1
  %88 = getelementptr double, ptr %67, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = tail call double @llvm.fmuladd.f64(double %65, double %89, double %86)
  store double %90, ptr %85, align 8, !tbaa !11
  %91 = load double, ptr %88, align 8, !tbaa !11
  %92 = tail call double @llvm.fmuladd.f64(double %65, double %86, double %91)
  store double %92, ptr %88, align 8, !tbaa !11
  br label %._crit_edge119

._crit_edge119:                                   ; preds = %.lr.ph118.epil, %._crit_edge119.loopexit.unr-lcssa, %._crit_edge114
  %.294.lcssa = phi i32 [ 0, %._crit_edge114 ], [ %umax, %._crit_edge119.loopexit.unr-lcssa ], [ %umax, %.lr.ph118.epil ]
  %93 = and i32 %29, 1
  %.not99 = icmp eq i32 %93, 0
  br i1 %.not99, label %99, label %94

94:                                               ; preds = %._crit_edge119
  %95 = zext nneg i32 %.294.lcssa to i64
  %96 = getelementptr inbounds double, ptr %11, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = tail call double @llvm.fmuladd.f64(double %97, double %65, double %97)
  store double %98, ptr %96, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %._crit_edge119.thread, %._crit_edge119, %94
  %100 = phi double [ %42, %._crit_edge119.thread ], [ %65, %._crit_edge119 ], [ %65, %94 ]
  %101 = fneg double %100
  %102 = tail call double @llvm.fmuladd.f64(double %101, double %100, double 1.000000e+00)
  %103 = fmul double %.089122, %102
  %exitcond156.not = icmp eq i64 %indvars.iv.next153, %wide.trip.count155
  br i1 %exitcond156.not, label %.loopexit, label %.lr.ph124

.loopexit:                                        ; preds = %99
  br i1 %27, label %.lr.ph129.preheader, label %._crit_edge132

.lr.ph129.preheader:                              ; preds = %.thread, %.loopexit
  %.089104172 = phi double [ %.089122, %.thread ], [ %103, %.loopexit ]
  %xtraiter201 = and i64 %wide.trip.count155, 3
  %104 = icmp ult i32 %3, 4
  br i1 %104, label %.lr.ph131.preheader.unr-lcssa, label %.lr.ph129.preheader.new

.lr.ph129.preheader.new:                          ; preds = %.lr.ph129.preheader
  %unroll_iter203 = and i64 %wide.trip.count155, 2147483644
  br label %.lr.ph129

.lr.ph131.preheader.unr-lcssa:                    ; preds = %.lr.ph129, %.lr.ph129.preheader
  %indvars.iv157.unr = phi i64 [ 0, %.lr.ph129.preheader ], [ %indvars.iv.next158.3, %.lr.ph129 ]
  %.0127.unr = phi double [ 0x3FEFAE147AE147AE, %.lr.ph129.preheader ], [ %131, %.lr.ph129 ]
  %lcmp.mod202.not = icmp eq i64 %xtraiter201, 0
  br i1 %lcmp.mod202.not, label %.lr.ph131.preheader, label %.lr.ph129.epil

.lr.ph129.epil:                                   ; preds = %.lr.ph131.preheader.unr-lcssa, %.lr.ph129.epil
  %indvars.iv157.epil = phi i64 [ %indvars.iv.next158.epil, %.lr.ph129.epil ], [ %indvars.iv157.unr, %.lr.ph131.preheader.unr-lcssa ]
  %.0127.epil = phi double [ %108, %.lr.ph129.epil ], [ %.0127.unr, %.lr.ph131.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph129.epil ], [ 0, %.lr.ph131.preheader.unr-lcssa ]
  %105 = getelementptr inbounds double, ptr %11, i64 %indvars.iv157.epil
  %106 = load double, ptr %105, align 8, !tbaa !11
  %107 = fmul double %.0127.epil, %106
  store double %107, ptr %105, align 8, !tbaa !11
  %108 = fmul double %.0127.epil, 0x3FEFAE147AE147AE
  %indvars.iv.next158.epil = add nuw nsw i64 %indvars.iv157.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter201
  br i1 %epil.iter.cmp.not, label %.lr.ph131.preheader, label %.lr.ph129.epil, !llvm.loop !16

.lr.ph131.preheader:                              ; preds = %.lr.ph129.epil, %.lr.ph131.preheader.unr-lcssa
  %wide.trip.count164 = zext nneg i32 %3 to i64
  %min.iters.check = icmp ult i32 %3, 4
  br i1 %min.iters.check, label %.lr.ph131.preheader188, label %vector.ph

.lr.ph131.preheader188:                           ; preds = %middle.block, %.lr.ph131.preheader
  %indvars.iv161.ph = phi i64 [ 0, %.lr.ph131.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph131

vector.ph:                                        ; preds = %.lr.ph131.preheader
  %n.vec = and i64 %wide.trip.count155, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %109 = getelementptr inbounds double, ptr %11, i64 %index
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  %wide.load = load <2 x double>, ptr %109, align 16, !tbaa !11
  %wide.load187 = load <2 x double>, ptr %110, align 16, !tbaa !11
  %111 = fptrunc <2 x double> %wide.load to <2 x float>
  %112 = fptrunc <2 x double> %wide.load187 to <2 x float>
  %113 = getelementptr inbounds float, ptr %1, i64 %index
  %114 = getelementptr inbounds i8, ptr %113, i64 8
  store <2 x float> %111, ptr %113, align 4, !tbaa !5
  store <2 x float> %112, ptr %114, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %115 = icmp eq i64 %index.next, %n.vec
  br i1 %115, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count155
  br i1 %cmp.n, label %._crit_edge132, label %.lr.ph131.preheader188

.lr.ph129:                                        ; preds = %.lr.ph129, %.lr.ph129.preheader.new
  %indvars.iv157 = phi i64 [ 0, %.lr.ph129.preheader.new ], [ %indvars.iv.next158.3, %.lr.ph129 ]
  %.0127 = phi double [ 0x3FEFAE147AE147AE, %.lr.ph129.preheader.new ], [ %131, %.lr.ph129 ]
  %niter204 = phi i64 [ 0, %.lr.ph129.preheader.new ], [ %niter204.next.3, %.lr.ph129 ]
  %116 = getelementptr inbounds double, ptr %11, i64 %indvars.iv157
  %117 = load double, ptr %116, align 16, !tbaa !11
  %118 = fmul double %.0127, %117
  store double %118, ptr %116, align 16, !tbaa !11
  %119 = fmul double %.0127, 0x3FEFAE147AE147AE
  %indvars.iv.next158 = or disjoint i64 %indvars.iv157, 1
  %120 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next158
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = fmul double %119, %121
  store double %122, ptr %120, align 8, !tbaa !11
  %123 = fmul double %119, 0x3FEFAE147AE147AE
  %indvars.iv.next158.1 = or disjoint i64 %indvars.iv157, 2
  %124 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next158.1
  %125 = load double, ptr %124, align 16, !tbaa !11
  %126 = fmul double %123, %125
  store double %126, ptr %124, align 16, !tbaa !11
  %127 = fmul double %123, 0x3FEFAE147AE147AE
  %indvars.iv.next158.2 = or disjoint i64 %indvars.iv157, 3
  %128 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next158.2
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = fmul double %127, %129
  store double %130, ptr %128, align 8, !tbaa !11
  %131 = fmul double %127, 0x3FEFAE147AE147AE
  %indvars.iv.next158.3 = add nuw nsw i64 %indvars.iv157, 4
  %niter204.next.3 = add i64 %niter204, 4
  %niter204.ncmp.3 = icmp eq i64 %niter204.next.3, %unroll_iter203
  br i1 %niter204.ncmp.3, label %.lr.ph131.preheader.unr-lcssa, label %.lr.ph129, !llvm.loop !21

.lr.ph131:                                        ; preds = %.lr.ph131.preheader188, %.lr.ph131
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %.lr.ph131 ], [ %indvars.iv161.ph, %.lr.ph131.preheader188 ]
  %132 = getelementptr inbounds double, ptr %11, i64 %indvars.iv161
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = fptrunc double %133 to float
  %135 = getelementptr inbounds float, ptr %1, i64 %indvars.iv161
  store float %134, ptr %135, align 4, !tbaa !5
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count164
  br i1 %exitcond165.not, label %._crit_edge132, label %.lr.ph131, !llvm.loop !22

._crit_edge132:                                   ; preds = %.lr.ph131, %middle.block, %._crit_edge109, %4, %.thread, %.loopexit
  %.089104171174 = phi double [ %.089122, %.thread ], [ %103, %.loopexit ], [ 0x7FF8000000000000, %4 ], [ %25, %._crit_edge109 ], [ %.089104172, %middle.block ], [ %.089104172, %.lr.ph131 ]
  %136 = fptrunc double %.089104171174 to float
  ret float %136
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #3

attributes #0 = { nofree norecurse nosync nounwind memory(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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !10, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !20, !19}


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