; LLVM IR from siconos/siconos :: numerics/src/FrictionContact/Generated (fc3d_NaturalMapFGenerated)

; 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 void @fc3d_NaturalMapFGenerated(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, ptr noundef %10) #0 {
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca i32, align 4
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  store double %0, ptr %12, align 8, !tbaa !5
  store double %1, ptr %13, align 8, !tbaa !5
  store double %2, ptr %14, align 8, !tbaa !5
  store double %3, ptr %15, align 8, !tbaa !5
  store double %4, ptr %16, align 8, !tbaa !5
  store double %5, ptr %17, align 8, !tbaa !5
  store double %6, ptr %18, align 8, !tbaa !5
  store double %7, ptr %19, align 8, !tbaa !5
  store double %8, ptr %20, align 8, !tbaa !5
  store double %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store double 0.000000e+00, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  store double 0.000000e+00, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  store double 0.000000e+00, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store double 0.000000e+00, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  store double 0.000000e+00, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  store double 0.000000e+00, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  store double 0.000000e+00, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  store double 0.000000e+00, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  store i32 0, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  store double 0.000000e+00, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  store double 0.000000e+00, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  store double 0.000000e+00, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  store double 0.000000e+00, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  store double 0.000000e+00, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  store double 0.000000e+00, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  store double 0.000000e+00, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  store double 0.000000e+00, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  store double 0.000000e+00, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  store double 0.000000e+00, ptr %41, align 8, !tbaa !5
  %45 = load double, ptr %18, align 8, !tbaa !5
  %46 = load double, ptr %16, align 8, !tbaa !5
  %47 = fmul double %45, %46
  store double %47, ptr %23, align 8, !tbaa !5
  %48 = load double, ptr %13, align 8, !tbaa !5
  %49 = load double, ptr %23, align 8, !tbaa !5
  %50 = fsub double %48, %49
  store double %50, ptr %24, align 8, !tbaa !5
  %51 = load double, ptr %24, align 8, !tbaa !5
  %52 = load double, ptr %24, align 8, !tbaa !5
  %53 = fmul double %51, %52
  store double %53, ptr %25, align 8, !tbaa !5
  %54 = load double, ptr %18, align 8, !tbaa !5
  %55 = load double, ptr %17, align 8, !tbaa !5
  %56 = fmul double %54, %55
  store double %56, ptr %26, align 8, !tbaa !5
  %57 = load double, ptr %14, align 8, !tbaa !5
  %58 = load double, ptr %26, align 8, !tbaa !5
  %59 = fsub double %57, %58
  store double %59, ptr %27, align 8, !tbaa !5
  %60 = load double, ptr %27, align 8, !tbaa !5
  %61 = load double, ptr %27, align 8, !tbaa !5
  %62 = fmul double %60, %61
  store double %62, ptr %28, align 8, !tbaa !5
  %63 = load double, ptr %25, align 8, !tbaa !5
  %64 = load double, ptr %28, align 8, !tbaa !5
  %65 = fadd double %63, %64
  store double %65, ptr %29, align 8, !tbaa !5
  %66 = load double, ptr %18, align 8, !tbaa !5
  %67 = fadd double %66, 1.000000e+00
  %68 = fmul double 0x3CB0000000000000, %67
  store double %68, ptr %30, align 8, !tbaa !5
  %69 = load double, ptr %29, align 8, !tbaa !5
  %70 = load double, ptr %30, align 8, !tbaa !5
  %71 = fcmp ogt double %69, %70
  %72 = zext i1 %71 to i32
  store i32 %72, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  store i32 0, ptr %42, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  store double 0.000000e+00, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  store double 0.000000e+00, ptr %44, align 8, !tbaa !5
  %73 = load double, ptr %29, align 8, !tbaa !5
  %74 = load double, ptr %30, align 8, !tbaa !5
  %75 = fcmp ole double %73, %74
  %76 = zext i1 %75 to i32
  store i32 %76, ptr %42, align 4, !tbaa !11
  %77 = load i32, ptr %31, align 4, !tbaa !11
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %120

79:                                               ; preds = %11
  %80 = load double, ptr %16, align 8, !tbaa !5
  %81 = load double, ptr %16, align 8, !tbaa !5
  %82 = load double, ptr %17, align 8, !tbaa !5
  %83 = load double, ptr %17, align 8, !tbaa !5
  %84 = fmul double %82, %83
  %85 = call double @llvm.fmuladd.f64(double %80, double %81, double %84)
  store double %85, ptr %32, align 8, !tbaa !5
  %86 = load double, ptr %18, align 8, !tbaa !5
  %87 = load double, ptr %12, align 8, !tbaa !5
  %88 = fmul double %86, %87
  store double %88, ptr %33, align 8, !tbaa !5
  %89 = load double, ptr %32, align 8, !tbaa !5
  %90 = call double @sqrt(double noundef %89) #4
  store double %90, ptr %34, align 8, !tbaa !5
  %91 = load double, ptr %18, align 8, !tbaa !5
  %92 = fneg double %91
  %93 = load double, ptr %34, align 8, !tbaa !5
  %94 = load double, ptr %15, align 8, !tbaa !5
  %95 = fneg double %94
  %96 = call double @llvm.fmuladd.f64(double %92, double %93, double %95)
  %97 = load double, ptr %33, align 8, !tbaa !5
  %98 = fadd double %96, %97
  store double %98, ptr %35, align 8, !tbaa !5
  %99 = load double, ptr %29, align 8, !tbaa !5
  %100 = call double @sqrt(double noundef %99) #4
  store double %100, ptr %36, align 8, !tbaa !5
  %101 = load double, ptr %36, align 8, !tbaa !5
  %102 = load double, ptr %35, align 8, !tbaa !5
  %103 = fadd double %101, %102
  %104 = call double @llvm.maxnum.f64(double 0.000000e+00, double %103)
  store double %104, ptr %37, align 8, !tbaa !5
  %105 = load double, ptr %36, align 8, !tbaa !5
  %106 = fneg double %105
  %107 = load double, ptr %35, align 8, !tbaa !5
  %108 = fadd double %106, %107
  %109 = call double @llvm.maxnum.f64(double 0.000000e+00, double %108)
  store double %109, ptr %38, align 8, !tbaa !5
  %110 = load double, ptr %36, align 8, !tbaa !5
  %111 = fdiv double 1.000000e+00, %110
  store double %111, ptr %39, align 8, !tbaa !5
  %112 = load double, ptr %37, align 8, !tbaa !5
  %113 = fmul double 5.000000e-01, %112
  %114 = load double, ptr %39, align 8, !tbaa !5
  %115 = fmul double %113, %114
  store double %115, ptr %40, align 8, !tbaa !5
  %116 = load double, ptr %38, align 8, !tbaa !5
  %117 = fmul double 5.000000e-01, %116
  %118 = load double, ptr %39, align 8, !tbaa !5
  %119 = fmul double %117, %118
  store double %119, ptr %41, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %79, %11
  %121 = load i32, ptr %42, align 4, !tbaa !11
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %158

123:                                              ; preds = %120
  %124 = load double, ptr %16, align 8, !tbaa !5
  %125 = load double, ptr %16, align 8, !tbaa !5
  %126 = load double, ptr %17, align 8, !tbaa !5
  %127 = load double, ptr %17, align 8, !tbaa !5
  %128 = fmul double %126, %127
  %129 = call double @llvm.fmuladd.f64(double %124, double %125, double %128)
  store double %129, ptr %32, align 8, !tbaa !5
  %130 = load double, ptr %18, align 8, !tbaa !5
  %131 = load double, ptr %12, align 8, !tbaa !5
  %132 = fmul double %130, %131
  store double %132, ptr %33, align 8, !tbaa !5
  %133 = load double, ptr %32, align 8, !tbaa !5
  %134 = call double @sqrt(double noundef %133) #4
  store double %134, ptr %34, align 8, !tbaa !5
  %135 = load double, ptr %18, align 8, !tbaa !5
  %136 = fneg double %135
  %137 = load double, ptr %34, align 8, !tbaa !5
  %138 = load double, ptr %15, align 8, !tbaa !5
  %139 = fneg double %138
  %140 = call double @llvm.fmuladd.f64(double %136, double %137, double %139)
  %141 = load double, ptr %33, align 8, !tbaa !5
  %142 = fadd double %140, %141
  store double %142, ptr %35, align 8, !tbaa !5
  %143 = load double, ptr %29, align 8, !tbaa !5
  %144 = call double @sqrt(double noundef %143) #4
  store double %144, ptr %36, align 8, !tbaa !5
  %145 = load double, ptr %36, align 8, !tbaa !5
  %146 = load double, ptr %35, align 8, !tbaa !5
  %147 = fadd double %145, %146
  %148 = call double @llvm.maxnum.f64(double 0.000000e+00, double %147)
  store double %148, ptr %37, align 8, !tbaa !5
  %149 = load double, ptr %37, align 8, !tbaa !5
  %150 = fmul double -5.000000e-01, %149
  store double %150, ptr %43, align 8, !tbaa !5
  %151 = load double, ptr %36, align 8, !tbaa !5
  %152 = fneg double %151
  %153 = load double, ptr %35, align 8, !tbaa !5
  %154 = fadd double %152, %153
  %155 = call double @llvm.maxnum.f64(double 0.000000e+00, double %154)
  store double %155, ptr %38, align 8, !tbaa !5
  %156 = load double, ptr %38, align 8, !tbaa !5
  %157 = fmul double 5.000000e-01, %156
  store double %157, ptr %44, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %123, %120
  %159 = load double, ptr %16, align 8, !tbaa !5
  %160 = load double, ptr %16, align 8, !tbaa !5
  %161 = load double, ptr %17, align 8, !tbaa !5
  %162 = load double, ptr %17, align 8, !tbaa !5
  %163 = fmul double %161, %162
  %164 = call double @llvm.fmuladd.f64(double %159, double %160, double %163)
  store double %164, ptr %32, align 8, !tbaa !5
  %165 = load double, ptr %18, align 8, !tbaa !5
  %166 = load double, ptr %12, align 8, !tbaa !5
  %167 = fmul double %165, %166
  store double %167, ptr %33, align 8, !tbaa !5
  %168 = load double, ptr %32, align 8, !tbaa !5
  %169 = call double @sqrt(double noundef %168) #4
  store double %169, ptr %34, align 8, !tbaa !5
  %170 = load double, ptr %18, align 8, !tbaa !5
  %171 = fneg double %170
  %172 = load double, ptr %34, align 8, !tbaa !5
  %173 = load double, ptr %15, align 8, !tbaa !5
  %174 = fneg double %173
  %175 = call double @llvm.fmuladd.f64(double %171, double %172, double %174)
  %176 = load double, ptr %33, align 8, !tbaa !5
  %177 = fadd double %175, %176
  store double %177, ptr %35, align 8, !tbaa !5
  %178 = load double, ptr %29, align 8, !tbaa !5
  %179 = call double @sqrt(double noundef %178) #4
  store double %179, ptr %36, align 8, !tbaa !5
  %180 = load double, ptr %36, align 8, !tbaa !5
  %181 = load double, ptr %35, align 8, !tbaa !5
  %182 = fadd double %180, %181
  %183 = call double @llvm.maxnum.f64(double 0.000000e+00, double %182)
  store double %183, ptr %37, align 8, !tbaa !5
  %184 = load double, ptr %37, align 8, !tbaa !5
  %185 = fmul double -5.000000e-01, %184
  store double %185, ptr %43, align 8, !tbaa !5
  %186 = load double, ptr %36, align 8, !tbaa !5
  %187 = fneg double %186
  %188 = load double, ptr %35, align 8, !tbaa !5
  %189 = fadd double %187, %188
  %190 = call double @llvm.maxnum.f64(double 0.000000e+00, double %189)
  store double %190, ptr %38, align 8, !tbaa !5
  %191 = load double, ptr %38, align 8, !tbaa !5
  %192 = fmul double 5.000000e-01, %191
  store double %192, ptr %44, align 8, !tbaa !5
  %193 = load double, ptr %43, align 8, !tbaa !5
  %194 = load double, ptr %44, align 8, !tbaa !5
  %195 = fsub double %193, %194
  %196 = load double, ptr %33, align 8, !tbaa !5
  %197 = fadd double %195, %196
  %198 = load ptr, ptr %22, align 8, !tbaa !9
  %199 = getelementptr inbounds double, ptr %198, i64 0
  store double %197, ptr %199, align 8, !tbaa !5
  %200 = load i32, ptr %31, align 4, !tbaa !11
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %213

202:                                              ; preds = %158
  %203 = load double, ptr %13, align 8, !tbaa !5
  %204 = load double, ptr %24, align 8, !tbaa !5
  %205 = load double, ptr %40, align 8, !tbaa !5
  %206 = fneg double %204
  %207 = call double @llvm.fmuladd.f64(double %206, double %205, double %203)
  %208 = load double, ptr %24, align 8, !tbaa !5
  %209 = load double, ptr %41, align 8, !tbaa !5
  %210 = call double @llvm.fmuladd.f64(double %208, double %209, double %207)
  %211 = load ptr, ptr %22, align 8, !tbaa !9
  %212 = getelementptr inbounds double, ptr %211, i64 1
  store double %210, ptr %212, align 8, !tbaa !5
  br label %221

213:                                              ; preds = %158
  %214 = load i32, ptr %42, align 4, !tbaa !11
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %220

216:                                              ; preds = %213
  %217 = load double, ptr %13, align 8, !tbaa !5
  %218 = load ptr, ptr %22, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %218, i64 1
  store double %217, ptr %219, align 8, !tbaa !5
  br label %220

220:                                              ; preds = %216, %213
  br label %221

221:                                              ; preds = %220, %202
  %222 = load i32, ptr %31, align 4, !tbaa !11
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %235

224:                                              ; preds = %221
  %225 = load double, ptr %14, align 8, !tbaa !5
  %226 = load double, ptr %27, align 8, !tbaa !5
  %227 = load double, ptr %40, align 8, !tbaa !5
  %228 = fneg double %226
  %229 = call double @llvm.fmuladd.f64(double %228, double %227, double %225)
  %230 = load double, ptr %27, align 8, !tbaa !5
  %231 = load double, ptr %41, align 8, !tbaa !5
  %232 = call double @llvm.fmuladd.f64(double %230, double %231, double %229)
  %233 = load ptr, ptr %22, align 8, !tbaa !9
  %234 = getelementptr inbounds double, ptr %233, i64 2
  store double %232, ptr %234, align 8, !tbaa !5
  br label %247

235:                                              ; preds = %221
  %236 = load i32, ptr %42, align 4, !tbaa !11
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %246

238:                                              ; preds = %235
  %239 = load double, ptr %14, align 8, !tbaa !5
  %240 = load double, ptr %43, align 8, !tbaa !5
  %241 = fadd double %239, %240
  %242 = load double, ptr %44, align 8, !tbaa !5
  %243 = fadd double %241, %242
  %244 = load ptr, ptr %22, align 8, !tbaa !9
  %245 = getelementptr inbounds double, ptr %244, i64 2
  store double %243, ptr %245, align 8, !tbaa !5
  br label %246

246:                                              ; preds = %238, %235
  br label %247

247:                                              ; preds = %246, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  ret void
}

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

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

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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !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: write) uwtable
define dso_local void @fc3d_NaturalMapFGenerated(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, ptr nocapture noundef writeonly %10) local_unnamed_addr #0 {
  %12 = insertelement <2 x double> poison, double %4, i64 0
  %13 = insertelement <2 x double> %12, double %5, i64 1
  %14 = insertelement <2 x double> poison, double %6, i64 0
  %15 = shufflevector <2 x double> %14, <2 x double> poison, <2 x i32> zeroinitializer
  %16 = fmul <2 x double> %13, %15
  %17 = insertelement <2 x double> poison, double %1, i64 0
  %18 = insertelement <2 x double> %17, double %2, i64 1
  %19 = fsub <2 x double> %18, %16
  %20 = fmul <2 x double> %19, %19
  %shift = shufflevector <2 x double> %20, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %21 = fadd <2 x double> %20, %shift
  %22 = extractelement <2 x double> %21, i64 0
  %23 = fadd double %6, 1.000000e+00
  %24 = fmul double %23, 0x3CB0000000000000
  %25 = fcmp ogt double %22, %24
  %26 = fmul double %5, %5
  %27 = tail call double @llvm.fmuladd.f64(double %4, double %4, double %26)
  %28 = fmul double %0, %6
  %sqrt106 = tail call double @llvm.sqrt.f64(double %27)
  %29 = fneg double %6
  %30 = fneg double %3
  %31 = tail call double @llvm.fmuladd.f64(double %29, double %sqrt106, double %30)
  %32 = fadd double %28, %31
  %sqrt = tail call double @llvm.sqrt.f64(double %22)
  %33 = fadd double %32, %sqrt
  %34 = fsub double %32, %sqrt
  %35 = insertelement <2 x double> poison, double %33, i64 0
  %36 = insertelement <2 x double> %35, double %34, i64 1
  %37 = tail call <2 x double> @llvm.maxnum.v2f64(<2 x double> %36, <2 x double> zeroinitializer)
  br i1 %25, label %45, label %38

38:                                               ; preds = %11
  %39 = fcmp ugt double %22, %24
  %40 = fmul <2 x double> %37, <double -5.000000e-01, double 5.000000e-01>
  %41 = extractelement <2 x double> %40, i64 0
  %42 = extractelement <2 x double> %40, i64 1
  %43 = fsub double %41, %42
  %44 = fadd double %28, %43
  store double %44, ptr %10, align 8, !tbaa !5
  br i1 %39, label %70, label %65

45:                                               ; preds = %11
  %46 = fdiv double 1.000000e+00, %sqrt
  %47 = extractelement <2 x double> %37, i64 0
  %48 = fmul double %47, 5.000000e-01
  %49 = fmul double %46, %48
  %50 = extractelement <2 x double> %37, i64 1
  %51 = fmul double %50, 5.000000e-01
  %52 = fmul double %46, %51
  %53 = fmul double %47, -5.000000e-01
  %54 = fsub double %53, %51
  %55 = fadd double %28, %54
  store double %55, ptr %10, align 8, !tbaa !5
  %56 = extractelement <2 x double> %19, i64 0
  %57 = fneg double %56
  %58 = tail call double @llvm.fmuladd.f64(double %57, double %49, double %1)
  %59 = tail call double @llvm.fmuladd.f64(double %56, double %52, double %58)
  %60 = getelementptr inbounds i8, ptr %10, i64 8
  store double %59, ptr %60, align 8, !tbaa !5
  %61 = extractelement <2 x double> %19, i64 1
  %62 = fneg double %61
  %63 = tail call double @llvm.fmuladd.f64(double %62, double %49, double %2)
  %64 = tail call double @llvm.fmuladd.f64(double %61, double %52, double %63)
  br label %.sink.split

65:                                               ; preds = %38
  %66 = getelementptr inbounds i8, ptr %10, i64 8
  store double %1, ptr %66, align 8, !tbaa !5
  %67 = fadd double %41, %2
  %68 = fadd double %42, %67
  br label %.sink.split

.sink.split:                                      ; preds = %45, %65
  %.sink = phi double [ %68, %65 ], [ %64, %45 ]
  %69 = getelementptr inbounds i8, ptr %10, i64 16
  store double %.sink, ptr %69, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %.sink.split, %38
  ret void
}

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

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

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

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) 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 = { 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: AggressiveInstCombinePass,BDCEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass