; LLVM IR from Syrocco/Graphical-EDMD :: quartic (solve_quartic)

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

%struct.DComplex = type { double, double }

@retval = external dso_local global [4 x %struct.DComplex], align 16

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

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

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

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

; 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 nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: nounwind uwtable
define dso_local void @solve_quartic(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca [3 x double], align 16
  %13 = alloca i32, align 4
  %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
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store double %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %21 = load double, ptr %6, align 8, !tbaa !5
  %22 = fneg double %21
  store double %22, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %23 = load double, ptr %5, align 8, !tbaa !5
  %24 = load double, ptr %7, align 8, !tbaa !5
  %25 = load double, ptr %8, align 8, !tbaa !5
  %26 = fmul double 4.000000e+00, %25
  %27 = fneg double %26
  %28 = call double @llvm.fmuladd.f64(double %23, double %24, double %27)
  store double %28, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %29 = load double, ptr %5, align 8, !tbaa !5
  %30 = fneg double %29
  %31 = load double, ptr %5, align 8, !tbaa !5
  %32 = fmul double %30, %31
  %33 = load double, ptr %8, align 8, !tbaa !5
  %34 = load double, ptr %7, align 8, !tbaa !5
  %35 = load double, ptr %7, align 8, !tbaa !5
  %36 = fmul double %34, %35
  %37 = fneg double %36
  %38 = call double @llvm.fmuladd.f64(double %32, double %33, double %37)
  %39 = load double, ptr %6, align 8, !tbaa !5
  %40 = fmul double 4.000000e+00, %39
  %41 = load double, ptr %8, align 8, !tbaa !5
  %42 = call double @llvm.fmuladd.f64(double %40, double %41, double %38)
  store double %42, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %43 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %44 = load double, ptr %9, align 8, !tbaa !5
  %45 = load double, ptr %10, align 8, !tbaa !5
  %46 = load double, ptr %11, align 8, !tbaa !5
  %47 = call i32 @solveP3(ptr noundef %43, double noundef %44, double noundef %45, double noundef %46)
  store i32 %47, ptr %13, align 4, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %48 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %49 = load double, ptr %48, align 16, !tbaa !5
  store double %49, ptr %20, align 8, !tbaa !5
  %50 = load i32, ptr %13, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 1
  br i1 %51, label %52, label %73

52:                                               ; preds = %4
  %53 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 1
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = call double @llvm.fabs.f64(double %54)
  %56 = load double, ptr %20, align 8, !tbaa !5
  %57 = call double @llvm.fabs.f64(double %56)
  %58 = fcmp ogt double %55, %57
  br i1 %58, label %59, label %62

59:                                               ; preds = %52
  %60 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 1
  %61 = load double, ptr %60, align 8, !tbaa !5
  store double %61, ptr %20, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %59, %52
  %63 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 2
  %64 = load double, ptr %63, align 16, !tbaa !5
  %65 = call double @llvm.fabs.f64(double %64)
  %66 = load double, ptr %20, align 8, !tbaa !5
  %67 = call double @llvm.fabs.f64(double %66)
  %68 = fcmp ogt double %65, %67
  br i1 %68, label %69, label %72

69:                                               ; preds = %62
  %70 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 2
  %71 = load double, ptr %70, align 16, !tbaa !5
  store double %71, ptr %20, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %69, %62
  br label %73

73:                                               ; preds = %72, %4
  %74 = load double, ptr %20, align 8, !tbaa !5
  %75 = load double, ptr %20, align 8, !tbaa !5
  %76 = load double, ptr %8, align 8, !tbaa !5
  %77 = fmul double 4.000000e+00, %76
  %78 = fneg double %77
  %79 = call double @llvm.fmuladd.f64(double %74, double %75, double %78)
  store double %79, ptr %18, align 8, !tbaa !5
  %80 = load double, ptr %18, align 8, !tbaa !5
  %81 = call double @llvm.fabs.f64(double %80)
  %82 = fcmp olt double %81, 0x3D719799812DEA11
  br i1 %82, label %83, label %112

83:                                               ; preds = %73
  %84 = load double, ptr %20, align 8, !tbaa !5
  %85 = fmul double %84, 5.000000e-01
  store double %85, ptr %15, align 8, !tbaa !5
  store double %85, ptr %14, align 8, !tbaa !5
  %86 = load double, ptr %5, align 8, !tbaa !5
  %87 = load double, ptr %5, align 8, !tbaa !5
  %88 = load double, ptr %6, align 8, !tbaa !5
  %89 = load double, ptr %20, align 8, !tbaa !5
  %90 = fsub double %88, %89
  %91 = fmul double 4.000000e+00, %90
  %92 = fneg double %91
  %93 = call double @llvm.fmuladd.f64(double %86, double %87, double %92)
  store double %93, ptr %18, align 8, !tbaa !5
  %94 = load double, ptr %18, align 8, !tbaa !5
  %95 = call double @llvm.fabs.f64(double %94)
  %96 = fcmp olt double %95, 0x3D719799812DEA11
  br i1 %96, label %97, label %100

97:                                               ; preds = %83
  %98 = load double, ptr %5, align 8, !tbaa !5
  %99 = fmul double %98, 5.000000e-01
  store double %99, ptr %17, align 8, !tbaa !5
  store double %99, ptr %16, align 8, !tbaa !5
  br label %111

100:                                              ; preds = %83
  %101 = load double, ptr %18, align 8, !tbaa !5
  %102 = call double @sqrt(double noundef %101) #4
  store double %102, ptr %19, align 8, !tbaa !5
  %103 = load double, ptr %5, align 8, !tbaa !5
  %104 = load double, ptr %19, align 8, !tbaa !5
  %105 = fadd double %103, %104
  %106 = fmul double %105, 5.000000e-01
  store double %106, ptr %16, align 8, !tbaa !5
  %107 = load double, ptr %5, align 8, !tbaa !5
  %108 = load double, ptr %19, align 8, !tbaa !5
  %109 = fsub double %107, %108
  %110 = fmul double %109, 5.000000e-01
  store double %110, ptr %17, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %100, %97
  br label %141

112:                                              ; preds = %73
  %113 = load double, ptr %18, align 8, !tbaa !5
  %114 = call double @sqrt(double noundef %113) #4
  store double %114, ptr %19, align 8, !tbaa !5
  %115 = load double, ptr %20, align 8, !tbaa !5
  %116 = load double, ptr %19, align 8, !tbaa !5
  %117 = fadd double %115, %116
  %118 = fmul double %117, 5.000000e-01
  store double %118, ptr %14, align 8, !tbaa !5
  %119 = load double, ptr %20, align 8, !tbaa !5
  %120 = load double, ptr %19, align 8, !tbaa !5
  %121 = fsub double %119, %120
  %122 = fmul double %121, 5.000000e-01
  store double %122, ptr %15, align 8, !tbaa !5
  %123 = load double, ptr %5, align 8, !tbaa !5
  %124 = load double, ptr %14, align 8, !tbaa !5
  %125 = load double, ptr %7, align 8, !tbaa !5
  %126 = fneg double %125
  %127 = call double @llvm.fmuladd.f64(double %123, double %124, double %126)
  %128 = load double, ptr %14, align 8, !tbaa !5
  %129 = load double, ptr %15, align 8, !tbaa !5
  %130 = fsub double %128, %129
  %131 = fdiv double %127, %130
  store double %131, ptr %16, align 8, !tbaa !5
  %132 = load double, ptr %7, align 8, !tbaa !5
  %133 = load double, ptr %5, align 8, !tbaa !5
  %134 = load double, ptr %15, align 8, !tbaa !5
  %135 = fneg double %133
  %136 = call double @llvm.fmuladd.f64(double %135, double %134, double %132)
  %137 = load double, ptr %14, align 8, !tbaa !5
  %138 = load double, ptr %15, align 8, !tbaa !5
  %139 = fsub double %137, %138
  %140 = fdiv double %136, %139
  store double %140, ptr %17, align 8, !tbaa !5
  br label %141

141:                                              ; preds = %112, %111
  %142 = load double, ptr %16, align 8, !tbaa !5
  %143 = load double, ptr %16, align 8, !tbaa !5
  %144 = load double, ptr %14, align 8, !tbaa !5
  %145 = fmul double 4.000000e+00, %144
  %146 = fneg double %145
  %147 = call double @llvm.fmuladd.f64(double %142, double %143, double %146)
  store double %147, ptr %18, align 8, !tbaa !5
  %148 = load double, ptr %18, align 8, !tbaa !5
  %149 = fcmp olt double %148, 0.000000e+00
  br i1 %149, label %150, label %161

150:                                              ; preds = %141
  %151 = load double, ptr %16, align 8, !tbaa !5
  %152 = fneg double %151
  %153 = fmul double %152, 5.000000e-01
  store double %153, ptr @retval, align 16, !tbaa !11
  %154 = load double, ptr %18, align 8, !tbaa !5
  %155 = fneg double %154
  %156 = call double @sqrt(double noundef %155) #4
  %157 = fmul double %156, 5.000000e-01
  store double %157, ptr getelementptr inbounds (%struct.DComplex, ptr @retval, i32 0, i32 1), align 8, !tbaa !13
  %158 = load double, ptr @retval, align 16, !tbaa !11
  store double %158, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 1), align 16, !tbaa !11
  %159 = load double, ptr getelementptr inbounds (%struct.DComplex, ptr @retval, i32 0, i32 1), align 8, !tbaa !13
  %160 = fneg double %159
  store double %160, ptr getelementptr inbounds (%struct.DComplex, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 1), i32 0, i32 1), align 8, !tbaa !13
  br label %174

161:                                              ; preds = %141
  %162 = load double, ptr %18, align 8, !tbaa !5
  %163 = call double @sqrt(double noundef %162) #4
  store double %163, ptr %19, align 8, !tbaa !5
  %164 = load double, ptr %16, align 8, !tbaa !5
  %165 = fneg double %164
  %166 = load double, ptr %19, align 8, !tbaa !5
  %167 = fadd double %165, %166
  %168 = fmul double %167, 5.000000e-01
  store double %168, ptr @retval, align 16, !tbaa !11
  %169 = load double, ptr %16, align 8, !tbaa !5
  %170 = fneg double %169
  %171 = load double, ptr %19, align 8, !tbaa !5
  %172 = fsub double %170, %171
  %173 = fmul double %172, 5.000000e-01
  store double %173, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 1), align 16, !tbaa !11
  store double 0.000000e+00, ptr getelementptr inbounds (%struct.DComplex, ptr @retval, i32 0, i32 1), align 8, !tbaa !13
  store double 0.000000e+00, ptr getelementptr inbounds (%struct.DComplex, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 1), i32 0, i32 1), align 8, !tbaa !13
  br label %174

174:                                              ; preds = %161, %150
  %175 = load double, ptr %17, align 8, !tbaa !5
  %176 = load double, ptr %17, align 8, !tbaa !5
  %177 = load double, ptr %15, align 8, !tbaa !5
  %178 = fmul double 4.000000e+00, %177
  %179 = fneg double %178
  %180 = call double @llvm.fmuladd.f64(double %175, double %176, double %179)
  store double %180, ptr %18, align 8, !tbaa !5
  %181 = load double, ptr %18, align 8, !tbaa !5
  %182 = fcmp olt double %181, 0.000000e+00
  br i1 %182, label %183, label %194

183:                                              ; preds = %174
  %184 = load double, ptr %17, align 8, !tbaa !5
  %185 = fneg double %184
  %186 = fmul double %185, 5.000000e-01
  store double %186, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 2), align 16, !tbaa !11
  %187 = load double, ptr %18, align 8, !tbaa !5
  %188 = fneg double %187
  %189 = call double @sqrt(double noundef %188) #4
  %190 = fmul double %189, 5.000000e-01
  store double %190, ptr getelementptr inbounds (%struct.DComplex, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 2), i32 0, i32 1), align 8, !tbaa !13
  %191 = load double, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 2), align 16, !tbaa !11
  store double %191, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 3), align 16, !tbaa !11
  %192 = load double, ptr getelementptr inbounds (%struct.DComplex, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 2), i32 0, i32 1), align 8, !tbaa !13
  %193 = fneg double %192
  store double %193, ptr getelementptr inbounds (%struct.DComplex, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 3), i32 0, i32 1), align 8, !tbaa !13
  br label %207

194:                                              ; preds = %174
  %195 = load double, ptr %18, align 8, !tbaa !5
  %196 = call double @sqrt(double noundef %195) #4
  store double %196, ptr %19, align 8, !tbaa !5
  %197 = load double, ptr %17, align 8, !tbaa !5
  %198 = fneg double %197
  %199 = load double, ptr %19, align 8, !tbaa !5
  %200 = fadd double %198, %199
  %201 = fmul double %200, 5.000000e-01
  store double %201, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 2), align 16, !tbaa !11
  %202 = load double, ptr %17, align 8, !tbaa !5
  %203 = fneg double %202
  %204 = load double, ptr %19, align 8, !tbaa !5
  %205 = fsub double %203, %204
  %206 = fmul double %205, 5.000000e-01
  store double %206, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 3), align 16, !tbaa !11
  store double 0.000000e+00, ptr getelementptr inbounds (%struct.DComplex, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 2), i32 0, i32 1), align 8, !tbaa !13
  store double 0.000000e+00, ptr getelementptr inbounds (%struct.DComplex, ptr getelementptr inbounds ([4 x %struct.DComplex], ptr @retval, i64 0, i64 3), i32 0, i32 1), align 8, !tbaa !13
  br label %207

207:                                              ; preds = %194, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 24, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"DComplex", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}


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

%struct.DComplex = type { double, double }

@retval = external dso_local local_unnamed_addr global [4 x %struct.DComplex], align 16

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
define dso_local void @solve_quartic(double noundef %0, double noundef %1, double noundef %2, double noundef %3) local_unnamed_addr #0 {
  %5 = alloca [3 x double], align 16
  %6 = fneg double %1
  %7 = fmul double %3, -4.000000e+00
  %8 = tail call double @llvm.fmuladd.f64(double %0, double %2, double %7)
  %9 = fneg double %0
  %10 = fmul double %9, %0
  %11 = fneg double %2
  %12 = fmul double %11, %2
  %13 = tail call double @llvm.fmuladd.f64(double %10, double %3, double %12)
  %14 = fmul double %1, 4.000000e+00
  %15 = tail call double @llvm.fmuladd.f64(double %14, double %3, double %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %16 = call i32 @solveP3(ptr noundef nonnull %5, double noundef %6, double noundef %8, double noundef %15)
  %17 = load double, ptr %5, align 16, !tbaa !5
  %.not = icmp eq i32 %16, 1
  br i1 %.not, label %30, label %18

18:                                               ; preds = %4
  %19 = getelementptr inbounds i8, ptr %5, i64 8
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = call double @llvm.fabs.f64(double %20)
  %22 = call double @llvm.fabs.f64(double %17)
  %23 = fcmp ogt double %21, %22
  %.0 = select i1 %23, double %20, double %17
  %24 = getelementptr inbounds i8, ptr %5, i64 16
  %25 = load double, ptr %24, align 16, !tbaa !5
  %26 = call double @llvm.fabs.f64(double %25)
  %27 = call double @llvm.fabs.f64(double %.0)
  %28 = fcmp ogt double %26, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %18
  br label %30

30:                                               ; preds = %18, %29, %4
  %.1 = phi double [ %25, %29 ], [ %.0, %18 ], [ %17, %4 ]
  %31 = call double @llvm.fmuladd.f64(double %.1, double %.1, double %7)
  %32 = call double @llvm.fabs.f64(double %31)
  %33 = fcmp olt double %32, 0x3D719799812DEA11
  br i1 %33, label %34, label %52

34:                                               ; preds = %30
  %35 = fmul double %.1, 5.000000e-01
  %36 = fsub double %1, %.1
  %37 = fmul double %36, -4.000000e+00
  %38 = call double @llvm.fmuladd.f64(double %0, double %0, double %37)
  %39 = call double @llvm.fabs.f64(double %38)
  %40 = fcmp olt double %39, 0x3D719799812DEA11
  br i1 %40, label %41, label %45

41:                                               ; preds = %34
  %42 = fmul double %0, 5.000000e-01
  %43 = insertelement <2 x double> poison, double %42, i64 0
  %44 = shufflevector <2 x double> %43, <2 x double> poison, <2 x i32> zeroinitializer
  br label %70

45:                                               ; preds = %34
  %46 = call double @sqrt(double noundef %38) #5
  %47 = fadd double %46, %0
  %48 = fsub double %0, %46
  %49 = insertelement <2 x double> poison, double %47, i64 0
  %50 = insertelement <2 x double> %49, double %48, i64 1
  %51 = fmul <2 x double> %50, <double 5.000000e-01, double 5.000000e-01>
  br label %70

52:                                               ; preds = %30
  %53 = call double @sqrt(double noundef %31) #5
  %54 = fadd double %.1, %53
  %55 = fsub double %.1, %53
  %56 = insertelement <2 x double> poison, double %54, i64 0
  %57 = insertelement <2 x double> %56, double %55, i64 1
  %58 = fmul <2 x double> %57, <double 5.000000e-01, double 5.000000e-01>
  %59 = extractelement <2 x double> %58, i64 0
  %60 = extractelement <2 x double> %58, i64 1
  %61 = fsub double %59, %60
  %62 = insertelement <2 x double> poison, double %0, i64 0
  %63 = insertelement <2 x double> %62, double %9, i64 1
  %64 = insertelement <2 x double> poison, double %11, i64 0
  %65 = insertelement <2 x double> %64, double %2, i64 1
  %66 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %63, <2 x double> %58, <2 x double> %65)
  %67 = insertelement <2 x double> poison, double %61, i64 0
  %68 = shufflevector <2 x double> %67, <2 x double> poison, <2 x i32> zeroinitializer
  %69 = fdiv <2 x double> %66, %68
  br label %70

70:                                               ; preds = %41, %45, %52
  %.072 = phi double [ %35, %41 ], [ %35, %45 ], [ %59, %52 ]
  %.071 = phi double [ %35, %41 ], [ %35, %45 ], [ %60, %52 ]
  %71 = phi <2 x double> [ %44, %41 ], [ %51, %45 ], [ %69, %52 ]
  %72 = fmul double %.072, -4.000000e+00
  %73 = extractelement <2 x double> %71, i64 0
  %74 = call double @llvm.fmuladd.f64(double %73, double %73, double %72)
  %75 = fcmp olt double %74, 0.000000e+00
  br i1 %75, label %76, label %83

76:                                               ; preds = %70
  %77 = fmul double %73, -5.000000e-01
  store double %77, ptr @retval, align 16, !tbaa !9
  %78 = fneg double %74
  %79 = call double @sqrt(double noundef %78) #5
  %80 = fmul double %79, 5.000000e-01
  %81 = load double, ptr @retval, align 16, !tbaa !9
  %82 = fneg double %80
  br label %90

83:                                               ; preds = %70
  %84 = call double @sqrt(double noundef %74) #5
  %85 = fneg double %73
  %86 = fsub double %84, %73
  %87 = fmul double %86, 5.000000e-01
  store double %87, ptr @retval, align 16, !tbaa !9
  %88 = fsub double %85, %84
  %89 = fmul double %88, 5.000000e-01
  br label %90

90:                                               ; preds = %83, %76
  %.sink78 = phi double [ %80, %76 ], [ 0.000000e+00, %83 ]
  %.sink = phi double [ %81, %76 ], [ %89, %83 ]
  %storemerge = phi double [ %82, %76 ], [ 0.000000e+00, %83 ]
  store double %.sink78, ptr getelementptr inbounds (i8, ptr @retval, i64 8), align 8
  store double %.sink, ptr getelementptr inbounds (i8, ptr @retval, i64 16), align 16
  store double %storemerge, ptr getelementptr inbounds (i8, ptr @retval, i64 24), align 8, !tbaa !11
  %91 = fmul double %.071, -4.000000e+00
  %92 = extractelement <2 x double> %71, i64 1
  %93 = call double @llvm.fmuladd.f64(double %92, double %92, double %91)
  %94 = fcmp olt double %93, 0.000000e+00
  br i1 %94, label %95, label %102

95:                                               ; preds = %90
  %96 = fmul double %92, -5.000000e-01
  store double %96, ptr getelementptr inbounds (i8, ptr @retval, i64 32), align 16, !tbaa !9
  %97 = fneg double %93
  %98 = call double @sqrt(double noundef %97) #5
  %99 = fmul double %98, 5.000000e-01
  %100 = load double, ptr getelementptr inbounds (i8, ptr @retval, i64 32), align 16, !tbaa !9
  %101 = fneg double %99
  br label %109

102:                                              ; preds = %90
  %103 = call double @sqrt(double noundef %93) #5
  %104 = fneg double %92
  %105 = fsub double %103, %92
  %106 = fmul double %105, 5.000000e-01
  store double %106, ptr getelementptr inbounds (i8, ptr @retval, i64 32), align 16, !tbaa !9
  %107 = fsub double %104, %103
  %108 = fmul double %107, 5.000000e-01
  br label %109

109:                                              ; preds = %102, %95
  %.sink80 = phi double [ %99, %95 ], [ 0.000000e+00, %102 ]
  %.sink79 = phi double [ %100, %95 ], [ %108, %102 ]
  %storemerge77 = phi double [ %101, %95 ], [ 0.000000e+00, %102 ]
  store double %.sink80, ptr getelementptr inbounds (i8, ptr @retval, i64 40), align 8
  store double %.sink79, ptr getelementptr inbounds (i8, ptr @retval, i64 48), align 16
  store double %storemerge77, ptr getelementptr inbounds (i8, ptr @retval, i64 56), align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  ret void
}

; 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>) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"DComplex", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass