; LLVM IR from robertklee/C-Optimization-DCT :: src/dct (loeffler_float)

; 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: nounwind uwtable
define dso_local void @dct_1d_float(ptr noundef %0, ptr noundef %1, i8 noundef zeroext %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca [8 x double], align 16
  %8 = alloca [8 x double], align 16
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca [8 x double], align 16
  %12 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i8 %2, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #3
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds double, ptr %13, i64 0
  %15 = load double, ptr %14, align 8, !tbaa !10
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds double, ptr %16, i64 7
  %18 = load double, ptr %17, align 8, !tbaa !10
  %19 = fadd double %15, %18
  %20 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 0
  store double %19, ptr %20, align 16, !tbaa !10
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds double, ptr %21, i64 1
  %23 = load double, ptr %22, align 8, !tbaa !10
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i64 6
  %26 = load double, ptr %25, align 8, !tbaa !10
  %27 = fadd double %23, %26
  %28 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 1
  store double %27, ptr %28, align 8, !tbaa !10
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds double, ptr %29, i64 2
  %31 = load double, ptr %30, align 8, !tbaa !10
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %32, i64 5
  %34 = load double, ptr %33, align 8, !tbaa !10
  %35 = fadd double %31, %34
  %36 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 2
  store double %35, ptr %36, align 16, !tbaa !10
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 3
  %39 = load double, ptr %38, align 8, !tbaa !10
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 4
  %42 = load double, ptr %41, align 8, !tbaa !10
  %43 = fadd double %39, %42
  %44 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 3
  store double %43, ptr %44, align 8, !tbaa !10
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i64 3
  %47 = load double, ptr %46, align 8, !tbaa !10
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 4
  %50 = load double, ptr %49, align 8, !tbaa !10
  %51 = fsub double %47, %50
  %52 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 4
  store double %51, ptr %52, align 16, !tbaa !10
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 2
  %55 = load double, ptr %54, align 8, !tbaa !10
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 5
  %58 = load double, ptr %57, align 8, !tbaa !10
  %59 = fsub double %55, %58
  %60 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 5
  store double %59, ptr %60, align 8, !tbaa !10
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 1
  %63 = load double, ptr %62, align 8, !tbaa !10
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 6
  %66 = load double, ptr %65, align 8, !tbaa !10
  %67 = fsub double %63, %66
  %68 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 6
  store double %67, ptr %68, align 16, !tbaa !10
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 0
  %71 = load double, ptr %70, align 8, !tbaa !10
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 7
  %74 = load double, ptr %73, align 8, !tbaa !10
  %75 = fsub double %71, %74
  %76 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 7
  store double %75, ptr %76, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #3
  %77 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 0
  %78 = load double, ptr %77, align 16, !tbaa !10
  %79 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 3
  %80 = load double, ptr %79, align 8, !tbaa !10
  %81 = fadd double %78, %80
  %82 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 0
  store double %81, ptr %82, align 16, !tbaa !10
  %83 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 1
  %84 = load double, ptr %83, align 8, !tbaa !10
  %85 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 2
  %86 = load double, ptr %85, align 16, !tbaa !10
  %87 = fadd double %84, %86
  %88 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 1
  store double %87, ptr %88, align 8, !tbaa !10
  %89 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 1
  %90 = load double, ptr %89, align 8, !tbaa !10
  %91 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 2
  %92 = load double, ptr %91, align 16, !tbaa !10
  %93 = fsub double %90, %92
  %94 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 2
  store double %93, ptr %94, align 16, !tbaa !10
  %95 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 0
  %96 = load double, ptr %95, align 16, !tbaa !10
  %97 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 3
  %98 = load double, ptr %97, align 8, !tbaa !10
  %99 = fsub double %96, %98
  %100 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 3
  store double %99, ptr %100, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %101 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 4
  %102 = load double, ptr %101, align 16, !tbaa !10
  %103 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 7
  %104 = load double, ptr %103, align 8, !tbaa !10
  %105 = fadd double %102, %104
  %106 = fmul double 0x3FEA9B66290EA1A3, %105
  store double %106, ptr %9, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %107 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 5
  %108 = load double, ptr %107, align 8, !tbaa !10
  %109 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 6
  %110 = load double, ptr %109, align 16, !tbaa !10
  %111 = fadd double %108, %110
  %112 = fmul double 0x3FEF6297CFF75CB0, %111
  store double %112, ptr %10, align 8, !tbaa !10
  %113 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 7
  %114 = load double, ptr %113, align 8, !tbaa !10
  %115 = load double, ptr %9, align 8, !tbaa !10
  %116 = call double @llvm.fmuladd.f64(double 0xBFD1A855DEC071B5, double %114, double %115)
  %117 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 4
  store double %116, ptr %117, align 16, !tbaa !10
  %118 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 6
  %119 = load double, ptr %118, align 16, !tbaa !10
  %120 = load double, ptr %10, align 8, !tbaa !10
  %121 = call double @llvm.fmuladd.f64(double 0xBFE92469C0DCF32D, double %119, double %120)
  %122 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 5
  store double %121, ptr %122, align 8, !tbaa !10
  %123 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 5
  %124 = load double, ptr %123, align 8, !tbaa !10
  %125 = load double, ptr %10, align 8, !tbaa !10
  %126 = call double @llvm.fmuladd.f64(double 0xBFF2D062EF88E319, double %124, double %125)
  %127 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 6
  store double %126, ptr %127, align 16, !tbaa !10
  %128 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 4
  %129 = load double, ptr %128, align 16, !tbaa !10
  %130 = load double, ptr %9, align 8, !tbaa !10
  %131 = call double @llvm.fmuladd.f64(double 0xBFF63150B15E8536, double %129, double %130)
  %132 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 7
  store double %131, ptr %132, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #3
  %133 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 0
  %134 = load double, ptr %133, align 16, !tbaa !10
  %135 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 1
  %136 = load double, ptr %135, align 8, !tbaa !10
  %137 = fadd double %134, %136
  %138 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 0
  store double %137, ptr %138, align 16, !tbaa !10
  %139 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 0
  %140 = load double, ptr %139, align 16, !tbaa !10
  %141 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 1
  %142 = load double, ptr %141, align 8, !tbaa !10
  %143 = fsub double %140, %142
  %144 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 1
  store double %143, ptr %144, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %145 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 2
  %146 = load double, ptr %145, align 16, !tbaa !10
  %147 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 3
  %148 = load double, ptr %147, align 8, !tbaa !10
  %149 = fadd double %146, %148
  %150 = fmul double 0x3FE1517A7BDB3895, %149
  store double %150, ptr %12, align 8, !tbaa !10
  %151 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 3
  %152 = load double, ptr %151, align 8, !tbaa !10
  %153 = load double, ptr %12, align 8, !tbaa !10
  %154 = call double @llvm.fmuladd.f64(double 0x3FE87DE2A6AEA963, double %152, double %153)
  %155 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 2
  store double %154, ptr %155, align 16, !tbaa !10
  %156 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 2
  %157 = load double, ptr %156, align 16, !tbaa !10
  %158 = load double, ptr %12, align 8, !tbaa !10
  %159 = call double @llvm.fmuladd.f64(double 0xBFFD906BCF328D46, double %157, double %158)
  %160 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 3
  store double %159, ptr %160, align 8, !tbaa !10
  %161 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 4
  %162 = load double, ptr %161, align 16, !tbaa !10
  %163 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 6
  %164 = load double, ptr %163, align 16, !tbaa !10
  %165 = fadd double %162, %164
  %166 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 4
  store double %165, ptr %166, align 16, !tbaa !10
  %167 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 7
  %168 = load double, ptr %167, align 8, !tbaa !10
  %169 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 5
  %170 = load double, ptr %169, align 8, !tbaa !10
  %171 = fsub double %168, %170
  %172 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 5
  store double %171, ptr %172, align 8, !tbaa !10
  %173 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 4
  %174 = load double, ptr %173, align 16, !tbaa !10
  %175 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 6
  %176 = load double, ptr %175, align 16, !tbaa !10
  %177 = fsub double %174, %176
  %178 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 6
  store double %177, ptr %178, align 16, !tbaa !10
  %179 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 7
  %180 = load double, ptr %179, align 8, !tbaa !10
  %181 = getelementptr inbounds [8 x double], ptr %8, i64 0, i64 5
  %182 = load double, ptr %181, align 8, !tbaa !10
  %183 = fadd double %180, %182
  %184 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 7
  store double %183, ptr %184, align 8, !tbaa !10
  %185 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 0
  %186 = load double, ptr %185, align 16, !tbaa !10
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds double, ptr %187, i64 0
  store double %186, ptr %188, align 8, !tbaa !10
  %189 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 1
  %190 = load double, ptr %189, align 8, !tbaa !10
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds double, ptr %191, i64 4
  store double %190, ptr %192, align 8, !tbaa !10
  %193 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 2
  %194 = load double, ptr %193, align 16, !tbaa !10
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds double, ptr %195, i64 2
  store double %194, ptr %196, align 8, !tbaa !10
  %197 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 3
  %198 = load double, ptr %197, align 8, !tbaa !10
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %199, i64 6
  store double %198, ptr %200, align 8, !tbaa !10
  %201 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 7
  %202 = load double, ptr %201, align 8, !tbaa !10
  %203 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 4
  %204 = load double, ptr %203, align 16, !tbaa !10
  %205 = fsub double %202, %204
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds double, ptr %206, i64 7
  store double %205, ptr %207, align 8, !tbaa !10
  %208 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 5
  %209 = load double, ptr %208, align 8, !tbaa !10
  %210 = fmul double 0x3FF6A09E667F3BCD, %209
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds double, ptr %211, i64 3
  store double %210, ptr %212, align 8, !tbaa !10
  %213 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 6
  %214 = load double, ptr %213, align 16, !tbaa !10
  %215 = fmul double 0x3FF6A09E667F3BCD, %214
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 5
  store double %215, ptr %217, align 8, !tbaa !10
  %218 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 7
  %219 = load double, ptr %218, align 8, !tbaa !10
  %220 = getelementptr inbounds [8 x double], ptr %11, i64 0, i64 4
  %221 = load double, ptr %220, align 16, !tbaa !10
  %222 = fadd double %219, %221
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds double, ptr %223, i64 1
  store double %222, ptr %224, align 8, !tbaa !10
  %225 = load i8, ptr %6, align 1, !tbaa !9
  %226 = icmp ne i8 %225, 0
  br i1 %226, label %260, label %227

227:                                              ; preds = %3
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds double, ptr %228, i64 0
  %230 = load double, ptr %229, align 8, !tbaa !10
  %231 = fdiv double %230, 8.000000e+00
  store double %231, ptr %229, align 8, !tbaa !10
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i64 4
  %234 = load double, ptr %233, align 8, !tbaa !10
  %235 = fdiv double %234, 8.000000e+00
  store double %235, ptr %233, align 8, !tbaa !10
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds double, ptr %236, i64 2
  %238 = load double, ptr %237, align 8, !tbaa !10
  %239 = fdiv double %238, 8.000000e+00
  store double %239, ptr %237, align 8, !tbaa !10
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds double, ptr %240, i64 6
  %242 = load double, ptr %241, align 8, !tbaa !10
  %243 = fdiv double %242, 8.000000e+00
  store double %243, ptr %241, align 8, !tbaa !10
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds double, ptr %244, i64 7
  %246 = load double, ptr %245, align 8, !tbaa !10
  %247 = fdiv double %246, 8.000000e+00
  store double %247, ptr %245, align 8, !tbaa !10
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds double, ptr %248, i64 3
  %250 = load double, ptr %249, align 8, !tbaa !10
  %251 = fdiv double %250, 8.000000e+00
  store double %251, ptr %249, align 8, !tbaa !10
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds double, ptr %252, i64 5
  %254 = load double, ptr %253, align 8, !tbaa !10
  %255 = fdiv double %254, 8.000000e+00
  store double %255, ptr %253, align 8, !tbaa !10
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = getelementptr inbounds double, ptr %256, i64 1
  %258 = load double, ptr %257, align 8, !tbaa !10
  %259 = fdiv double %258, 8.000000e+00
  store double %259, ptr %257, align 8, !tbaa !10
  br label %260

260:                                              ; preds = %227, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #3
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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) }
attributes #3 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}


; 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 norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @dct_1d_float(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i8 noundef zeroext %2) local_unnamed_addr #0 {
  %4 = load double, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  %6 = load double, ptr %5, align 8, !tbaa !5
  %7 = fadd double %4, %6
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = fadd double %9, %11
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = fadd double %14, %16
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = fadd double %19, %21
  %23 = fsub double %19, %21
  %24 = fsub double %14, %16
  %25 = fsub double %9, %11
  %26 = fsub double %4, %6
  %27 = fsub double %12, %17
  %28 = fsub double %7, %22
  %29 = fadd double %26, %23
  %30 = fmul double %29, 0x3FEA9B66290EA1A3
  %31 = fadd double %25, %24
  %32 = fmul double %31, 0x3FEF6297CFF75CB0
  %33 = tail call double @llvm.fmuladd.f64(double %26, double 0xBFD1A855DEC071B5, double %30)
  %34 = tail call double @llvm.fmuladd.f64(double %25, double 0xBFE92469C0DCF32D, double %32)
  %35 = tail call double @llvm.fmuladd.f64(double %24, double 0xBFF2D062EF88E319, double %32)
  %36 = tail call double @llvm.fmuladd.f64(double %23, double 0xBFF63150B15E8536, double %30)
  %37 = fadd double %27, %28
  %38 = fmul double %37, 0x3FE1517A7BDB3895
  %39 = tail call double @llvm.fmuladd.f64(double %28, double 0x3FE87DE2A6AEA963, double %38)
  %40 = tail call double @llvm.fmuladd.f64(double %27, double 0xBFFD906BCF328D46, double %38)
  %41 = fsub double %36, %34
  %42 = fsub double %33, %35
  %43 = getelementptr inbounds i8, ptr %1, i64 32
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  store double %39, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %1, i64 48
  store double %40, ptr %45, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %1, i64 56
  %47 = fmul double %41, 0x3FF6A09E667F3BCD
  %48 = getelementptr inbounds i8, ptr %1, i64 24
  store double %47, ptr %48, align 8, !tbaa !5
  %49 = fmul double %42, 0x3FF6A09E667F3BCD
  %50 = getelementptr inbounds i8, ptr %1, i64 40
  store double %49, ptr %50, align 8, !tbaa !5
  %51 = insertelement <2 x double> poison, double %7, i64 0
  %52 = insertelement <2 x double> %51, double %35, i64 1
  %53 = insertelement <2 x double> poison, double %22, i64 0
  %54 = insertelement <2 x double> %53, double %33, i64 1
  %55 = fadd <2 x double> %52, %54
  %56 = insertelement <2 x double> poison, double %12, i64 0
  %57 = insertelement <2 x double> %56, double %34, i64 1
  %58 = insertelement <2 x double> poison, double %17, i64 0
  %59 = insertelement <2 x double> %58, double %36, i64 1
  %60 = fadd <2 x double> %57, %59
  %61 = fsub <2 x double> %55, %60
  %62 = extractelement <2 x double> %61, i64 0
  %63 = fadd <2 x double> %60, %55
  store double %62, ptr %43, align 8, !tbaa !5
  %64 = fsub <2 x double> %60, %55
  %65 = extractelement <2 x double> %64, i64 1
  store double %65, ptr %46, align 8, !tbaa !5
  store <2 x double> %63, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i8 %2, 0
  br i1 %.not, label %66, label %75

66:                                               ; preds = %3
  %67 = fmul <2 x double> %63, <double 1.250000e-01, double 1.250000e-01>
  %68 = insertelement <2 x double> %61, double %49, i64 1
  %69 = fmul <2 x double> %68, <double 1.250000e-01, double 1.250000e-01>
  %70 = insertelement <2 x double> poison, double %39, i64 0
  %71 = insertelement <2 x double> %70, double %47, i64 1
  %72 = fmul <2 x double> %71, <double 1.250000e-01, double 1.250000e-01>
  %73 = insertelement <2 x double> %64, double %40, i64 0
  %74 = fmul <2 x double> %73, <double 1.250000e-01, double 1.250000e-01>
  store <2 x double> %74, ptr %45, align 8, !tbaa !5
  store <2 x double> %72, ptr %44, align 8, !tbaa !5
  store <2 x double> %69, ptr %43, align 8, !tbaa !5
  store <2 x double> %67, ptr %1, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %66, %3
  ret void
}

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

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn 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) }

!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"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass,VectorCombinePass