; LLVM IR from bjack205/altro :: src/linesearch (cubicspline)

; 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.CubicSpline = type { double, double, double, double, double }

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

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

; 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 double @CubicSpline_ArgMin(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca double, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %2
  store ptr %6, ptr %5, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %23, %2
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %29, label %27

27:                                               ; preds = %24
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 2, ptr %28, align 4, !tbaa !9
  store double 0x7FF8000000000000, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %157

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.CubicSpline, ptr %30, i32 0, i32 2
  %32 = load double, ptr %31, align 8, !tbaa !11
  store double %32, ptr %8, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.CubicSpline, ptr %33, i32 0, i32 3
  %35 = load double, ptr %34, align 8, !tbaa !15
  store double %35, ptr %9, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.CubicSpline, ptr %36, i32 0, i32 4
  %38 = load double, ptr %37, align 8, !tbaa !16
  store double %38, ptr %10, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %39 = load double, ptr %10, align 8, !tbaa !14
  %40 = call double @llvm.fabs.f64(double %39)
  %41 = fcmp olt double %40, 0x3EB0C6F7A0B5ED8D
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %49

45:                                               ; preds = %29
  %46 = load double, ptr %9, align 8, !tbaa !14
  %47 = call double @llvm.fabs.f64(double %46)
  %48 = fcmp olt double %47, 0x3EB0C6F7A0B5ED8D
  br label %49

49:                                               ; preds = %45, %29
  %50 = phi i1 [ false, %29 ], [ %48, %45 ]
  %51 = zext i1 %50 to i32
  store i32 %51, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %58

54:                                               ; preds = %49
  %55 = load double, ptr %8, align 8, !tbaa !14
  %56 = call double @llvm.fabs.f64(double %55)
  %57 = fcmp olt double %56, 0x3EB0C6F7A0B5ED8D
  br label %58

58:                                               ; preds = %54, %49
  %59 = phi i1 [ false, %49 ], [ %57, %54 ]
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %90

63:                                               ; preds = %58
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %74

66:                                               ; preds = %63
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %66
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 7, ptr %70, align 4, !tbaa !9
  br label %73

71:                                               ; preds = %66
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 6, ptr %72, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %71, %69
  store double 0x7FF8000000000000, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %156

74:                                               ; preds = %63
  %75 = load double, ptr %9, align 8, !tbaa !14
  %76 = fcmp ole double %75, 0.000000e+00
  br i1 %76, label %77, label %79

77:                                               ; preds = %74
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 5, ptr %78, align 4, !tbaa !9
  store double 0x7FF8000000000000, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %156

79:                                               ; preds = %74
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 1, ptr %80, align 4, !tbaa !9
  %81 = load double, ptr %8, align 8, !tbaa !14
  %82 = fneg double %81
  %83 = load double, ptr %9, align 8, !tbaa !14
  %84 = fmul double 2.000000e+00, %83
  %85 = fdiv double %82, %84
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.CubicSpline, ptr %86, i32 0, i32 0
  %88 = load double, ptr %87, align 8, !tbaa !17
  %89 = fadd double %85, %88
  store double %89, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %156

90:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %91 = load double, ptr %10, align 8, !tbaa !14
  %92 = fmul double 3.000000e+00, %91
  %93 = load double, ptr %9, align 8, !tbaa !14
  %94 = fmul double 2.000000e+00, %93
  %95 = load double, ptr %8, align 8, !tbaa !14
  %96 = call i32 @QuadraticFormula(ptr noundef %14, ptr noundef %15, double noundef %92, double noundef %94, double noundef %95)
  store i32 %96, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %102

99:                                               ; preds = %90
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 %100, ptr %101, align 4, !tbaa !9
  store double 0x7FF8000000000000, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %155

102:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %103 = load double, ptr %9, align 8, !tbaa !14
  %104 = load double, ptr %10, align 8, !tbaa !14
  %105 = fmul double 6.000000e+00, %104
  %106 = load double, ptr %14, align 8, !tbaa !14
  %107 = fmul double %105, %106
  %108 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %103, double %107)
  store double %108, ptr %17, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %109 = load double, ptr %9, align 8, !tbaa !14
  %110 = load double, ptr %10, align 8, !tbaa !14
  %111 = fmul double 6.000000e+00, %110
  %112 = load double, ptr %15, align 8, !tbaa !14
  %113 = fmul double %111, %112
  %114 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %109, double %113)
  store double %114, ptr %18, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %115 = load double, ptr %14, align 8, !tbaa !14
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.CubicSpline, ptr %116, i32 0, i32 0
  %118 = load double, ptr %117, align 8, !tbaa !17
  %119 = fadd double %115, %118
  store double %119, ptr %19, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %120 = load double, ptr %15, align 8, !tbaa !14
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.CubicSpline, ptr %121, i32 0, i32 0
  %123 = load double, ptr %122, align 8, !tbaa !17
  %124 = fadd double %120, %123
  store double %124, ptr %20, align 8, !tbaa !14
  %125 = load double, ptr %17, align 8, !tbaa !14
  %126 = call double @llvm.fabs.f64(double %125)
  %127 = fcmp olt double %126, 0x3EB0C6F7A0B5ED8D
  br i1 %127, label %128, label %134

128:                                              ; preds = %102
  %129 = load double, ptr %18, align 8, !tbaa !14
  %130 = call double @llvm.fabs.f64(double %129)
  %131 = fcmp olt double %130, 0x3EB0C6F7A0B5ED8D
  br i1 %131, label %132, label %134

132:                                              ; preds = %128
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 3, ptr %133, align 4, !tbaa !9
  store double 0x7FF8000000000000, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %154

134:                                              ; preds = %128, %102
  %135 = load double, ptr %17, align 8, !tbaa !14
  %136 = fcmp ogt double %135, 0.000000e+00
  br i1 %136, label %137, label %143

137:                                              ; preds = %134
  %138 = load double, ptr %18, align 8, !tbaa !14
  %139 = fcmp olt double %138, 0.000000e+00
  br i1 %139, label %140, label %143

140:                                              ; preds = %137
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 1, ptr %141, align 4, !tbaa !9
  %142 = load double, ptr %19, align 8, !tbaa !14
  store double %142, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %154

143:                                              ; preds = %137, %134
  %144 = load double, ptr %17, align 8, !tbaa !14
  %145 = fcmp olt double %144, 0.000000e+00
  br i1 %145, label %146, label %152

146:                                              ; preds = %143
  %147 = load double, ptr %18, align 8, !tbaa !14
  %148 = fcmp ogt double %147, 0.000000e+00
  br i1 %148, label %149, label %152

149:                                              ; preds = %146
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 1, ptr %150, align 4, !tbaa !9
  %151 = load double, ptr %20, align 8, !tbaa !14
  store double %151, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %154

152:                                              ; preds = %146, %143
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 8, ptr %153, align 4, !tbaa !9
  store double 0x7FF8000000000000, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %154

154:                                              ; preds = %152, %149, %140, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %155

155:                                              ; preds = %154, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %156

156:                                              ; preds = %155, %79, %77, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %8) #3
  br label %157

157:                                              ; preds = %156, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %158 = load double, ptr %3, align 8
  ret double %158
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !13, i64 16}
!12 = !{!"CubicSpline", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 24}
!16 = !{!12, !13, i64 32}
!17 = !{!12, !13, 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress 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 double @CubicSpline_ArgMin(ptr noundef readonly %0, ptr noundef writeonly %1) local_unnamed_addr #2 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %.not = icmp eq ptr %1, null
  %.not52 = icmp eq ptr %0, null
  br i1 %.not52, label %5, label %6

5:                                                ; preds = %2
  br i1 %.not, label %.cont56, label %.else58

.else58:                                          ; preds = %5
  store i32 2, ptr %1, align 4, !tbaa !5
  br label %.cont56

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load double, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load <2 x double>, ptr %9, align 8, !tbaa !12
  %11 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %10)
  %12 = fcmp olt <2 x double> %11, <double 0x3EB0C6F7A0B5ED8D, double 0x3EB0C6F7A0B5ED8D>
  %13 = extractelement <2 x i1> %12, i64 0
  %14 = extractelement <2 x i1> %12, i64 1
  %15 = select i1 %14, i1 %13, i1 false
  %16 = tail call double @llvm.fabs.f64(double %8)
  %17 = fcmp olt double %16, 0x3EB0C6F7A0B5ED8D
  %18 = select i1 %15, i1 %17, i1 false
  br i1 %14, label %19, label %30

19:                                               ; preds = %6
  br i1 %13, label %20, label %21

20:                                               ; preds = %19
  br i1 %.not, label %.cont56, label %.else

.else:                                            ; preds = %20
  %. = select i1 %18, i32 7, i32 6
  store i32 %., ptr %1, align 4, !tbaa !5
  br label %.cont56

21:                                               ; preds = %19
  %22 = extractelement <2 x double> %10, i64 0
  %23 = fcmp ugt double %22, 0.000000e+00
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  br i1 %.not, label %.cont56, label %.else79

.else79:                                          ; preds = %24
  store i32 5, ptr %1, align 4, !tbaa !5
  br label %.cont56

25:                                               ; preds = %21
  br i1 %.not, label %.cont74, label %.else76

.else76:                                          ; preds = %25
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %.cont74

.cont74:                                          ; preds = %25, %.else76
  %26 = fmul double %22, 2.000000e+00
  %27 = load double, ptr %0, align 8, !tbaa !13
  %28 = fdiv double %8, %26
  %29 = fsub double %27, %28
  br label %.cont56

30:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %31 = extractelement <2 x double> %10, i64 1
  %32 = fmul double %31, 3.000000e+00
  %33 = extractelement <2 x double> %10, i64 0
  %34 = fmul double %33, 2.000000e+00
  %35 = call i32 @QuadraticFormula(ptr noundef nonnull %3, ptr noundef nonnull %4, double noundef %32, double noundef %34, double noundef %8)
  %.not53 = icmp eq i32 %35, 0
  br i1 %.not53, label %37, label %36

36:                                               ; preds = %30
  br i1 %.not, label %.cont71, label %.cont71.sink.split

37:                                               ; preds = %30
  %38 = fmul double %31, 6.000000e+00
  %39 = load double, ptr %3, align 8, !tbaa !12
  %40 = load double, ptr %4, align 8, !tbaa !12
  %41 = load double, ptr %0, align 8, !tbaa !13
  %42 = fadd double %39, %41
  %43 = fadd double %40, %41
  %44 = insertelement <2 x double> poison, double %38, i64 0
  %45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> zeroinitializer
  %46 = insertelement <2 x double> poison, double %40, i64 0
  %47 = insertelement <2 x double> %46, double %39, i64 1
  %48 = fmul <2 x double> %45, %47
  %49 = shufflevector <2 x double> %10, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %49, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %48)
  %51 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %50)
  %52 = fcmp olt <2 x double> %51, <double 0x3EB0C6F7A0B5ED8D, double 0x3EB0C6F7A0B5ED8D>
  %53 = extractelement <2 x i1> %52, i64 0
  %54 = extractelement <2 x i1> %52, i64 1
  %or.cond55 = select i1 %54, i1 %53, i1 false
  br i1 %or.cond55, label %55, label %56

55:                                               ; preds = %37
  br i1 %.not, label %.cont71, label %.cont71.sink.split

56:                                               ; preds = %37
  %57 = extractelement <2 x double> %50, i64 1
  %58 = fcmp ogt double %57, 0.000000e+00
  %59 = extractelement <2 x double> %50, i64 0
  %60 = fcmp olt double %59, 0.000000e+00
  %or.cond = select i1 %58, i1 %60, i1 false
  br i1 %or.cond, label %61, label %62

61:                                               ; preds = %56
  br i1 %.not, label %.cont71, label %.cont71.sink.split

62:                                               ; preds = %56
  %63 = fcmp olt double %57, 0.000000e+00
  %64 = fcmp ogt double %59, 0.000000e+00
  %or.cond3 = select i1 %63, i1 %64, i1 false
  %.80 = select i1 %or.cond3, double %43, double 0x7FF8000000000000
  %.81 = select i1 %or.cond3, i32 1, i32 8
  br i1 %.not, label %.cont71, label %.cont71.sink.split

.cont71.sink.split:                               ; preds = %62, %61, %55, %36
  %.sink = phi i32 [ %35, %36 ], [ 3, %55 ], [ 1, %61 ], [ %.81, %62 ]
  %.1.ph = phi double [ 0x7FF8000000000000, %36 ], [ 0x7FF8000000000000, %55 ], [ %42, %61 ], [ %.80, %62 ]
  store i32 %.sink, ptr %1, align 4, !tbaa !5
  br label %.cont71

.cont71:                                          ; preds = %62, %.cont71.sink.split, %61, %55, %36
  %.1 = phi double [ 0x7FF8000000000000, %36 ], [ 0x7FF8000000000000, %55 ], [ %42, %61 ], [ %.1.ph, %.cont71.sink.split ], [ %.80, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %.cont56

.cont56:                                          ; preds = %.else79, %24, %.else, %20, %.else58, %5, %.cont74, %.cont71
  %.3 = phi double [ %29, %.cont74 ], [ %.1, %.cont71 ], [ 0x7FF8000000000000, %5 ], [ 0x7FF8000000000000, %.else58 ], [ 0x7FF8000000000000, %20 ], [ 0x7FF8000000000000, %.else ], [ 0x7FF8000000000000, %24 ], [ 0x7FF8000000000000, %.else79 ]
  ret double %.3
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @QuadraticFormula(ptr noundef, ptr noundef, double noundef, double noundef, double noundef) local_unnamed_addr #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>) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #3

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass