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

; 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_AlartCurnierABGenerated(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 double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %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 double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = 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 8, ptr %31) #4
  store double 0.000000e+00, ptr %31, align 8, !tbaa !5
  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 4, ptr %35) #4
  store i32 0, ptr %35, align 4, !tbaa !11
  %53 = load double, ptr %19, align 8, !tbaa !5
  %54 = fneg double %53
  %55 = load double, ptr %15, align 8, !tbaa !5
  %56 = load double, ptr %12, align 8, !tbaa !5
  %57 = call double @llvm.fmuladd.f64(double %54, double %55, double %56)
  store double %57, ptr %23, align 8, !tbaa !5
  %58 = load double, ptr %20, align 8, !tbaa !5
  %59 = load double, ptr %16, align 8, !tbaa !5
  %60 = fmul double %58, %59
  store double %60, ptr %24, align 8, !tbaa !5
  %61 = load double, ptr %13, align 8, !tbaa !5
  %62 = fneg double %61
  %63 = load double, ptr %24, align 8, !tbaa !5
  %64 = fadd double %62, %63
  store double %64, ptr %25, align 8, !tbaa !5
  %65 = load double, ptr %25, align 8, !tbaa !5
  %66 = load double, ptr %25, align 8, !tbaa !5
  %67 = fmul double %65, %66
  store double %67, ptr %26, align 8, !tbaa !5
  %68 = load double, ptr %21, align 8, !tbaa !5
  %69 = load double, ptr %17, align 8, !tbaa !5
  %70 = fmul double %68, %69
  store double %70, ptr %27, align 8, !tbaa !5
  %71 = load double, ptr %14, align 8, !tbaa !5
  %72 = fneg double %71
  %73 = load double, ptr %27, align 8, !tbaa !5
  %74 = fadd double %72, %73
  store double %74, ptr %28, align 8, !tbaa !5
  %75 = load double, ptr %28, align 8, !tbaa !5
  %76 = load double, ptr %28, align 8, !tbaa !5
  %77 = fmul double %75, %76
  store double %77, ptr %29, align 8, !tbaa !5
  %78 = load double, ptr %26, align 8, !tbaa !5
  %79 = load double, ptr %29, align 8, !tbaa !5
  %80 = fadd double %78, %79
  store double %80, ptr %30, align 8, !tbaa !5
  %81 = load double, ptr %30, align 8, !tbaa !5
  %82 = call double @sqrt(double noundef %81) #4
  store double %82, ptr %31, align 8, !tbaa !5
  %83 = load double, ptr %23, align 8, !tbaa !5
  %84 = call double @llvm.maxnum.f64(double 0.000000e+00, double %83)
  store double %84, ptr %32, align 8, !tbaa !5
  %85 = load double, ptr %18, align 8, !tbaa !5
  %86 = load double, ptr %32, align 8, !tbaa !5
  %87 = fmul double %85, %86
  store double %87, ptr %33, align 8, !tbaa !5
  %88 = load double, ptr %33, align 8, !tbaa !5
  %89 = call double @llvm.maxnum.f64(double 0x3CB0000000000000, double %88)
  store double %89, ptr %34, align 8, !tbaa !5
  %90 = load double, ptr %31, align 8, !tbaa !5
  %91 = load double, ptr %34, align 8, !tbaa !5
  %92 = fcmp ole double %90, %91
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %35, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  store i32 0, ptr %36, align 4, !tbaa !11
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  store double 0.000000e+00, ptr %42, align 8, !tbaa !5
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  store double 0.000000e+00, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  store double 0.000000e+00, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  store double 0.000000e+00, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  store double 0.000000e+00, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  store double 0.000000e+00, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  store double 0.000000e+00, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  store double 0.000000e+00, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  store double 0.000000e+00, ptr %52, align 8, !tbaa !5
  %94 = load double, ptr %31, align 8, !tbaa !5
  %95 = load double, ptr %34, align 8, !tbaa !5
  %96 = fcmp ogt double %94, %95
  %97 = zext i1 %96 to i32
  store i32 %97, ptr %36, align 4, !tbaa !11
  %98 = load i32, ptr %36, align 4, !tbaa !11
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %184

100:                                              ; preds = %11
  %101 = load double, ptr %23, align 8, !tbaa !5
  %102 = fcmp olt double %101, 0.000000e+00
  br i1 %102, label %103, label %104

103:                                              ; preds = %100
  br label %109

104:                                              ; preds = %100
  %105 = load double, ptr %23, align 8, !tbaa !5
  %106 = fcmp ogt double %105, 0.000000e+00
  %107 = zext i1 %106 to i64
  %108 = select i1 %106, double 1.000000e+00, double 0.000000e+00
  br label %109

109:                                              ; preds = %104, %103
  %110 = phi double [ 0.000000e+00, %103 ], [ %108, %104 ]
  store double %110, ptr %37, align 8, !tbaa !5
  %111 = load double, ptr %13, align 8, !tbaa !5
  %112 = load double, ptr %24, align 8, !tbaa !5
  %113 = fsub double %111, %112
  store double %113, ptr %38, align 8, !tbaa !5
  %114 = load double, ptr %33, align 8, !tbaa !5
  %115 = fsub double %114, 0x3CB0000000000000
  %116 = fcmp olt double %115, 0.000000e+00
  br i1 %116, label %117, label %118

117:                                              ; preds = %109
  br label %124

118:                                              ; preds = %109
  %119 = load double, ptr %33, align 8, !tbaa !5
  %120 = fsub double %119, 0x3CB0000000000000
  %121 = fcmp ogt double %120, 0.000000e+00
  %122 = zext i1 %121 to i64
  %123 = select i1 %121, double 1.000000e+00, double 0.000000e+00
  br label %124

124:                                              ; preds = %118, %117
  %125 = phi double [ 0.000000e+00, %117 ], [ %123, %118 ]
  store double %125, ptr %39, align 8, !tbaa !5
  %126 = load double, ptr %31, align 8, !tbaa !5
  %127 = fdiv double 1.000000e+00, %126
  store double %127, ptr %40, align 8, !tbaa !5
  %128 = load double, ptr %18, align 8, !tbaa !5
  %129 = load double, ptr %19, align 8, !tbaa !5
  %130 = fmul double %128, %129
  %131 = load double, ptr %39, align 8, !tbaa !5
  %132 = fmul double %130, %131
  %133 = load double, ptr %40, align 8, !tbaa !5
  %134 = fmul double %132, %133
  %135 = load double, ptr %37, align 8, !tbaa !5
  %136 = fmul double %134, %135
  store double %136, ptr %41, align 8, !tbaa !5
  %137 = load double, ptr %34, align 8, !tbaa !5
  %138 = load double, ptr %40, align 8, !tbaa !5
  %139 = fmul double %137, %138
  store double %139, ptr %42, align 8, !tbaa !5
  %140 = load double, ptr %30, align 8, !tbaa !5
  %141 = call double @sqrt(double noundef %140) #4
  %142 = load double, ptr %30, align 8, !tbaa !5
  %143 = call double @sqrt(double noundef %142) #4
  %144 = fmul double %141, %143
  %145 = load double, ptr %30, align 8, !tbaa !5
  %146 = call double @sqrt(double noundef %145) #4
  %147 = fmul double %144, %146
  %148 = fdiv double 1.000000e+00, %147
  store double %148, ptr %43, align 8, !tbaa !5
  %149 = load double, ptr %34, align 8, !tbaa !5
  %150 = load double, ptr %38, align 8, !tbaa !5
  %151 = fmul double %149, %150
  %152 = load double, ptr %43, align 8, !tbaa !5
  %153 = fmul double %151, %152
  store double %153, ptr %44, align 8, !tbaa !5
  %154 = load double, ptr %44, align 8, !tbaa !5
  %155 = load double, ptr %25, align 8, !tbaa !5
  %156 = fmul double %154, %155
  store double %156, ptr %45, align 8, !tbaa !5
  %157 = load double, ptr %44, align 8, !tbaa !5
  %158 = load double, ptr %28, align 8, !tbaa !5
  %159 = fmul double %157, %158
  store double %159, ptr %46, align 8, !tbaa !5
  %160 = load double, ptr %18, align 8, !tbaa !5
  %161 = load double, ptr %39, align 8, !tbaa !5
  %162 = fmul double %160, %161
  %163 = load double, ptr %40, align 8, !tbaa !5
  %164 = fmul double %162, %163
  %165 = load double, ptr %37, align 8, !tbaa !5
  %166 = fmul double %164, %165
  store double %166, ptr %47, align 8, !tbaa !5
  %167 = load double, ptr %42, align 8, !tbaa !5
  %168 = fneg double %167
  %169 = fadd double %168, 1.000000e+00
  store double %169, ptr %48, align 8, !tbaa !5
  %170 = load double, ptr %14, align 8, !tbaa !5
  %171 = load double, ptr %27, align 8, !tbaa !5
  %172 = fsub double %170, %171
  store double %172, ptr %49, align 8, !tbaa !5
  %173 = load double, ptr %34, align 8, !tbaa !5
  %174 = load double, ptr %43, align 8, !tbaa !5
  %175 = fmul double %173, %174
  %176 = load double, ptr %49, align 8, !tbaa !5
  %177 = fmul double %175, %176
  store double %177, ptr %50, align 8, !tbaa !5
  %178 = load double, ptr %50, align 8, !tbaa !5
  %179 = load double, ptr %25, align 8, !tbaa !5
  %180 = fmul double %178, %179
  store double %180, ptr %51, align 8, !tbaa !5
  %181 = load double, ptr %50, align 8, !tbaa !5
  %182 = load double, ptr %28, align 8, !tbaa !5
  %183 = fmul double %181, %182
  store double %183, ptr %52, align 8, !tbaa !5
  br label %184

184:                                              ; preds = %124, %11
  %185 = load double, ptr %23, align 8, !tbaa !5
  %186 = fcmp olt double %185, 0.000000e+00
  br i1 %186, label %187, label %188

187:                                              ; preds = %184
  br label %193

188:                                              ; preds = %184
  %189 = load double, ptr %23, align 8, !tbaa !5
  %190 = fcmp ogt double %189, 0.000000e+00
  %191 = zext i1 %190 to i64
  %192 = select i1 %190, double 1.000000e+00, double 0.000000e+00
  br label %193

193:                                              ; preds = %188, %187
  %194 = phi double [ 0.000000e+00, %187 ], [ %192, %188 ]
  store double %194, ptr %37, align 8, !tbaa !5
  %195 = load double, ptr %19, align 8, !tbaa !5
  %196 = load double, ptr %37, align 8, !tbaa !5
  %197 = fmul 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 %35, align 4, !tbaa !11
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %205

202:                                              ; preds = %193
  %203 = load ptr, ptr %22, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %203, i64 1
  store double 0.000000e+00, ptr %204, align 8, !tbaa !5
  br label %215

205:                                              ; preds = %193
  %206 = load i32, ptr %36, align 4, !tbaa !11
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %214

208:                                              ; preds = %205
  %209 = load double, ptr %38, align 8, !tbaa !5
  %210 = load double, ptr %41, align 8, !tbaa !5
  %211 = fmul double %209, %210
  %212 = load ptr, ptr %22, align 8, !tbaa !9
  %213 = getelementptr inbounds double, ptr %212, i64 1
  store double %211, ptr %213, align 8, !tbaa !5
  br label %214

214:                                              ; preds = %208, %205
  br label %215

215:                                              ; preds = %214, %202
  %216 = load i32, ptr %35, align 4, !tbaa !11
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %221

218:                                              ; preds = %215
  %219 = load ptr, ptr %22, align 8, !tbaa !9
  %220 = getelementptr inbounds double, ptr %219, i64 2
  store double 0.000000e+00, ptr %220, align 8, !tbaa !5
  br label %231

221:                                              ; preds = %215
  %222 = load i32, ptr %36, align 4, !tbaa !11
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %230

224:                                              ; preds = %221
  %225 = load double, ptr %41, align 8, !tbaa !5
  %226 = load double, ptr %49, align 8, !tbaa !5
  %227 = fmul double %225, %226
  %228 = load ptr, ptr %22, align 8, !tbaa !9
  %229 = getelementptr inbounds double, ptr %228, i64 2
  store double %227, ptr %229, align 8, !tbaa !5
  br label %230

230:                                              ; preds = %224, %221
  br label %231

231:                                              ; preds = %230, %218
  %232 = load ptr, ptr %22, align 8, !tbaa !9
  %233 = getelementptr inbounds double, ptr %232, i64 3
  store double 0.000000e+00, ptr %233, align 8, !tbaa !5
  %234 = load i32, ptr %35, align 4, !tbaa !11
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %240

236:                                              ; preds = %231
  %237 = load double, ptr %20, align 8, !tbaa !5
  %238 = load ptr, ptr %22, align 8, !tbaa !9
  %239 = getelementptr inbounds double, ptr %238, i64 4
  store double %237, ptr %239, align 8, !tbaa !5
  br label %253

240:                                              ; preds = %231
  %241 = load i32, ptr %36, align 4, !tbaa !11
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %252

243:                                              ; preds = %240
  %244 = load double, ptr %20, align 8, !tbaa !5
  %245 = load double, ptr %42, align 8, !tbaa !5
  %246 = load double, ptr %20, align 8, !tbaa !5
  %247 = load double, ptr %45, align 8, !tbaa !5
  %248 = fmul double %246, %247
  %249 = call double @llvm.fmuladd.f64(double %244, double %245, double %248)
  %250 = load ptr, ptr %22, align 8, !tbaa !9
  %251 = getelementptr inbounds double, ptr %250, i64 4
  store double %249, ptr %251, align 8, !tbaa !5
  br label %252

252:                                              ; preds = %243, %240
  br label %253

253:                                              ; preds = %252, %236
  %254 = load i32, ptr %35, align 4, !tbaa !11
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %259

256:                                              ; preds = %253
  %257 = load ptr, ptr %22, align 8, !tbaa !9
  %258 = getelementptr inbounds double, ptr %257, i64 5
  store double 0.000000e+00, ptr %258, align 8, !tbaa !5
  br label %269

259:                                              ; preds = %253
  %260 = load i32, ptr %36, align 4, !tbaa !11
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %268

262:                                              ; preds = %259
  %263 = load double, ptr %20, align 8, !tbaa !5
  %264 = load double, ptr %51, align 8, !tbaa !5
  %265 = fmul double %263, %264
  %266 = load ptr, ptr %22, align 8, !tbaa !9
  %267 = getelementptr inbounds double, ptr %266, i64 5
  store double %265, ptr %267, align 8, !tbaa !5
  br label %268

268:                                              ; preds = %262, %259
  br label %269

269:                                              ; preds = %268, %256
  %270 = load ptr, ptr %22, align 8, !tbaa !9
  %271 = getelementptr inbounds double, ptr %270, i64 6
  store double 0.000000e+00, ptr %271, align 8, !tbaa !5
  %272 = load i32, ptr %35, align 4, !tbaa !11
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %277

274:                                              ; preds = %269
  %275 = load ptr, ptr %22, align 8, !tbaa !9
  %276 = getelementptr inbounds double, ptr %275, i64 7
  store double 0.000000e+00, ptr %276, align 8, !tbaa !5
  br label %287

277:                                              ; preds = %269
  %278 = load i32, ptr %36, align 4, !tbaa !11
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %286

280:                                              ; preds = %277
  %281 = load double, ptr %21, align 8, !tbaa !5
  %282 = load double, ptr %46, align 8, !tbaa !5
  %283 = fmul double %281, %282
  %284 = load ptr, ptr %22, align 8, !tbaa !9
  %285 = getelementptr inbounds double, ptr %284, i64 7
  store double %283, ptr %285, align 8, !tbaa !5
  br label %286

286:                                              ; preds = %280, %277
  br label %287

287:                                              ; preds = %286, %274
  %288 = load i32, ptr %35, align 4, !tbaa !11
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %294

290:                                              ; preds = %287
  %291 = load double, ptr %21, align 8, !tbaa !5
  %292 = load ptr, ptr %22, align 8, !tbaa !9
  %293 = getelementptr inbounds double, ptr %292, i64 8
  store double %291, ptr %293, align 8, !tbaa !5
  br label %307

294:                                              ; preds = %287
  %295 = load i32, ptr %36, align 4, !tbaa !11
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %306

297:                                              ; preds = %294
  %298 = load double, ptr %21, align 8, !tbaa !5
  %299 = load double, ptr %42, align 8, !tbaa !5
  %300 = load double, ptr %21, align 8, !tbaa !5
  %301 = load double, ptr %52, align 8, !tbaa !5
  %302 = fmul double %300, %301
  %303 = call double @llvm.fmuladd.f64(double %298, double %299, double %302)
  %304 = load ptr, ptr %22, align 8, !tbaa !9
  %305 = getelementptr inbounds double, ptr %304, i64 8
  store double %303, ptr %305, align 8, !tbaa !5
  br label %306

306:                                              ; preds = %297, %294
  br label %307

307:                                              ; preds = %306, %290
  %308 = load double, ptr %37, align 8, !tbaa !5
  %309 = fneg double %308
  %310 = fadd double %309, 1.000000e+00
  %311 = load ptr, ptr %22, align 8, !tbaa !9
  %312 = getelementptr inbounds double, ptr %311, i64 9
  store double %310, ptr %312, align 8, !tbaa !5
  %313 = load i32, ptr %35, align 4, !tbaa !11
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %315, label %318

315:                                              ; preds = %307
  %316 = load ptr, ptr %22, align 8, !tbaa !9
  %317 = getelementptr inbounds double, ptr %316, i64 10
  store double 0.000000e+00, ptr %317, align 8, !tbaa !5
  br label %329

318:                                              ; preds = %307
  %319 = load i32, ptr %36, align 4, !tbaa !11
  %320 = icmp ne i32 %319, 0
  br i1 %320, label %321, label %328

321:                                              ; preds = %318
  %322 = load double, ptr %38, align 8, !tbaa !5
  %323 = fneg double %322
  %324 = load double, ptr %47, align 8, !tbaa !5
  %325 = fmul double %323, %324
  %326 = load ptr, ptr %22, align 8, !tbaa !9
  %327 = getelementptr inbounds double, ptr %326, i64 10
  store double %325, ptr %327, align 8, !tbaa !5
  br label %328

328:                                              ; preds = %321, %318
  br label %329

329:                                              ; preds = %328, %315
  %330 = load i32, ptr %35, align 4, !tbaa !11
  %331 = icmp ne i32 %330, 0
  br i1 %331, label %332, label %335

332:                                              ; preds = %329
  %333 = load ptr, ptr %22, align 8, !tbaa !9
  %334 = getelementptr inbounds double, ptr %333, i64 11
  store double 0.000000e+00, ptr %334, align 8, !tbaa !5
  br label %346

335:                                              ; preds = %329
  %336 = load i32, ptr %36, align 4, !tbaa !11
  %337 = icmp ne i32 %336, 0
  br i1 %337, label %338, label %345

338:                                              ; preds = %335
  %339 = load double, ptr %47, align 8, !tbaa !5
  %340 = fneg double %339
  %341 = load double, ptr %49, align 8, !tbaa !5
  %342 = fmul double %340, %341
  %343 = load ptr, ptr %22, align 8, !tbaa !9
  %344 = getelementptr inbounds double, ptr %343, i64 11
  store double %342, ptr %344, align 8, !tbaa !5
  br label %345

345:                                              ; preds = %338, %335
  br label %346

346:                                              ; preds = %345, %332
  %347 = load ptr, ptr %22, align 8, !tbaa !9
  %348 = getelementptr inbounds double, ptr %347, i64 12
  store double 0.000000e+00, ptr %348, align 8, !tbaa !5
  %349 = load i32, ptr %35, align 4, !tbaa !11
  %350 = icmp ne i32 %349, 0
  br i1 %350, label %351, label %354

351:                                              ; preds = %346
  %352 = load ptr, ptr %22, align 8, !tbaa !9
  %353 = getelementptr inbounds double, ptr %352, i64 13
  store double 0.000000e+00, ptr %353, align 8, !tbaa !5
  br label %365

354:                                              ; preds = %346
  %355 = load i32, ptr %36, align 4, !tbaa !11
  %356 = icmp ne i32 %355, 0
  br i1 %356, label %357, label %364

357:                                              ; preds = %354
  %358 = load double, ptr %45, align 8, !tbaa !5
  %359 = fneg double %358
  %360 = load double, ptr %48, align 8, !tbaa !5
  %361 = fadd double %359, %360
  %362 = load ptr, ptr %22, align 8, !tbaa !9
  %363 = getelementptr inbounds double, ptr %362, i64 13
  store double %361, ptr %363, align 8, !tbaa !5
  br label %364

364:                                              ; preds = %357, %354
  br label %365

365:                                              ; preds = %364, %351
  %366 = load i32, ptr %35, align 4, !tbaa !11
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %371

368:                                              ; preds = %365
  %369 = load ptr, ptr %22, align 8, !tbaa !9
  %370 = getelementptr inbounds double, ptr %369, i64 14
  store double 0.000000e+00, ptr %370, align 8, !tbaa !5
  br label %380

371:                                              ; preds = %365
  %372 = load i32, ptr %36, align 4, !tbaa !11
  %373 = icmp ne i32 %372, 0
  br i1 %373, label %374, label %379

374:                                              ; preds = %371
  %375 = load double, ptr %51, align 8, !tbaa !5
  %376 = fneg double %375
  %377 = load ptr, ptr %22, align 8, !tbaa !9
  %378 = getelementptr inbounds double, ptr %377, i64 14
  store double %376, ptr %378, align 8, !tbaa !5
  br label %379

379:                                              ; preds = %374, %371
  br label %380

380:                                              ; preds = %379, %368
  %381 = load ptr, ptr %22, align 8, !tbaa !9
  %382 = getelementptr inbounds double, ptr %381, i64 15
  store double 0.000000e+00, ptr %382, align 8, !tbaa !5
  %383 = load i32, ptr %35, align 4, !tbaa !11
  %384 = icmp ne i32 %383, 0
  br i1 %384, label %385, label %388

385:                                              ; preds = %380
  %386 = load ptr, ptr %22, align 8, !tbaa !9
  %387 = getelementptr inbounds double, ptr %386, i64 16
  store double 0.000000e+00, ptr %387, align 8, !tbaa !5
  br label %397

388:                                              ; preds = %380
  %389 = load i32, ptr %36, align 4, !tbaa !11
  %390 = icmp ne i32 %389, 0
  br i1 %390, label %391, label %396

391:                                              ; preds = %388
  %392 = load double, ptr %46, align 8, !tbaa !5
  %393 = fneg double %392
  %394 = load ptr, ptr %22, align 8, !tbaa !9
  %395 = getelementptr inbounds double, ptr %394, i64 16
  store double %393, ptr %395, align 8, !tbaa !5
  br label %396

396:                                              ; preds = %391, %388
  br label %397

397:                                              ; preds = %396, %385
  %398 = load i32, ptr %35, align 4, !tbaa !11
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %403

400:                                              ; preds = %397
  %401 = load ptr, ptr %22, align 8, !tbaa !9
  %402 = getelementptr inbounds double, ptr %401, i64 17
  store double 0.000000e+00, ptr %402, align 8, !tbaa !5
  br label %413

403:                                              ; preds = %397
  %404 = load i32, ptr %36, align 4, !tbaa !11
  %405 = icmp ne i32 %404, 0
  br i1 %405, label %406, label %412

406:                                              ; preds = %403
  %407 = load double, ptr %48, align 8, !tbaa !5
  %408 = load double, ptr %52, align 8, !tbaa !5
  %409 = fsub double %407, %408
  %410 = load ptr, ptr %22, align 8, !tbaa !9
  %411 = getelementptr inbounds double, ptr %410, i64 17
  store double %409, ptr %411, align 8, !tbaa !5
  br label %412

412:                                              ; preds = %406, %403
  br label %413

413:                                              ; preds = %412, %400
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  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 8, 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 4, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 8, 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_AlartCurnierABGenerated(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 = fneg double %7
  %13 = tail call double @llvm.fmuladd.f64(double %12, double %3, double %0)
  %14 = insertelement <2 x double> poison, double %4, i64 0
  %15 = insertelement <2 x double> %14, double %5, i64 1
  %16 = insertelement <2 x double> poison, double %8, i64 0
  %17 = insertelement <2 x double> %16, double %9, i64 1
  %18 = fmul <2 x double> %15, %17
  %19 = insertelement <2 x double> poison, double %1, i64 0
  %20 = insertelement <2 x double> %19, double %2, i64 1
  %21 = fsub <2 x double> %18, %20
  %22 = fmul <2 x double> %21, %21
  %shift = shufflevector <2 x double> %22, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %23 = fadd <2 x double> %22, %shift
  %24 = extractelement <2 x double> %23, i64 0
  %sqrt = tail call double @llvm.sqrt.f64(double %24)
  %25 = tail call double @llvm.maxnum.f64(double %13, double 0.000000e+00)
  %26 = fmul double %25, %6
  %27 = tail call double @llvm.maxnum.f64(double %26, double 0x3CB0000000000000)
  %28 = fcmp ole double %sqrt, %27
  %29 = fcmp ogt double %sqrt, %27
  %30 = fcmp olt double %13, 0.000000e+00
  %31 = fcmp ogt double %13, 0.000000e+00
  %32 = select i1 %31, double 1.000000e+00, double 0.000000e+00
  %33 = select i1 %30, double 0.000000e+00, double %32
  %34 = fmul double %33, %7
  store double %34, ptr %10, align 8, !tbaa !5
  br i1 %29, label %35, label %.thread

35:                                               ; preds = %11
  br i1 %28, label %36, label %50

.thread:                                          ; preds = %11
  br i1 %28, label %36, label %.thread204

36:                                               ; preds = %.thread, %35
  %37 = getelementptr inbounds i8, ptr %10, i64 8
  %38 = getelementptr inbounds i8, ptr %10, i64 32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %37, i8 0, i64 24, i1 false)
  store double %8, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %10, i64 40
  %40 = getelementptr inbounds i8, ptr %10, i64 64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %39, i8 0, i64 24, i1 false)
  store double %9, ptr %40, align 8, !tbaa !5
  %41 = fsub double 1.000000e+00, %33
  %42 = getelementptr inbounds i8, ptr %10, i64 72
  store double %41, ptr %42, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %10, i64 80
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %43, i8 0, i64 64, i1 false)
  br label %115

.thread204:                                       ; preds = %.thread
  %44 = getelementptr inbounds i8, ptr %10, i64 24
  store double 0.000000e+00, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %10, i64 48
  store double 0.000000e+00, ptr %45, align 8, !tbaa !5
  %46 = fsub double 1.000000e+00, %33
  %47 = getelementptr inbounds i8, ptr %10, i64 72
  store double %46, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %10, i64 96
  store double 0.000000e+00, ptr %48, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %10, i64 120
  store double 0.000000e+00, ptr %49, align 8, !tbaa !5
  br label %115

50:                                               ; preds = %35
  %51 = fmul double %sqrt, %sqrt
  %52 = fmul double %sqrt, %51
  %53 = fdiv double 1.000000e+00, %52
  %54 = fmul double %27, %53
  %55 = fsub <2 x double> %20, %18
  %56 = extractelement <2 x double> %55, i64 1
  %57 = fmul double %56, %54
  %58 = extractelement <2 x double> %21, i64 1
  %59 = fmul double %58, %57
  %60 = extractelement <2 x double> %21, i64 0
  %61 = fmul double %60, %57
  %62 = fdiv double 1.000000e+00, %sqrt
  %63 = fmul double %27, %62
  %64 = fsub double 1.000000e+00, %63
  %65 = fadd double %26, 0xBCB0000000000000
  %66 = fcmp olt double %65, 0.000000e+00
  %67 = fcmp ogt double %65, 0.000000e+00
  %68 = select i1 %67, double 1.000000e+00, double 0.000000e+00
  %69 = select i1 %66, double 0.000000e+00, double %68
  %70 = fmul double %69, %6
  %71 = fmul double %70, %62
  %72 = fmul double %33, %71
  %73 = extractelement <2 x double> %55, i64 0
  %74 = fmul double %73, %27
  %75 = fmul double %74, %53
  %76 = fmul double %58, %75
  %77 = fmul double %60, %75
  %78 = fmul double %6, %7
  %79 = fmul double %78, %69
  %80 = fmul double %79, %62
  %81 = fmul double %33, %80
  %82 = getelementptr inbounds i8, ptr %10, i64 8
  %83 = insertelement <2 x double> poison, double %81, i64 0
  %84 = shufflevector <2 x double> %83, <2 x double> poison, <2 x i32> zeroinitializer
  %85 = fmul <2 x double> %55, %84
  store <2 x double> %85, ptr %82, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %10, i64 24
  store double 0.000000e+00, ptr %86, align 8, !tbaa !5
  %87 = fmul double %77, %8
  %88 = tail call double @llvm.fmuladd.f64(double %8, double %63, double %87)
  %89 = getelementptr inbounds i8, ptr %10, i64 32
  store double %88, ptr %89, align 8, !tbaa !5
  %90 = fmul double %61, %8
  %91 = getelementptr inbounds i8, ptr %10, i64 40
  store double %90, ptr %91, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %10, i64 48
  store double 0.000000e+00, ptr %92, align 8, !tbaa !5
  %93 = fmul double %76, %9
  %94 = getelementptr inbounds i8, ptr %10, i64 56
  store double %93, ptr %94, align 8, !tbaa !5
  %95 = fmul double %59, %9
  %96 = tail call double @llvm.fmuladd.f64(double %9, double %63, double %95)
  %97 = getelementptr inbounds i8, ptr %10, i64 64
  store double %96, ptr %97, align 8, !tbaa !5
  %98 = fsub double 1.000000e+00, %33
  %99 = getelementptr inbounds i8, ptr %10, i64 72
  store double %98, ptr %99, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %10, i64 80
  %101 = insertelement <2 x double> %55, double %72, i64 1
  %102 = fneg <2 x double> %101
  %103 = insertelement <2 x double> %55, double %72, i64 0
  %104 = fmul <2 x double> %103, %102
  store <2 x double> %104, ptr %100, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %10, i64 96
  store double 0.000000e+00, ptr %105, align 8, !tbaa !5
  %106 = fsub double %64, %77
  %107 = getelementptr inbounds i8, ptr %10, i64 104
  store double %106, ptr %107, align 8, !tbaa !5
  %108 = fneg double %61
  %109 = getelementptr inbounds i8, ptr %10, i64 112
  store double %108, ptr %109, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %10, i64 120
  store double 0.000000e+00, ptr %110, align 8, !tbaa !5
  %111 = fneg double %76
  %112 = getelementptr inbounds i8, ptr %10, i64 128
  store double %111, ptr %112, align 8, !tbaa !5
  %113 = fsub double %64, %59
  %114 = getelementptr inbounds i8, ptr %10, i64 136
  store double %113, ptr %114, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %.thread204, %50, %36
  ret void
}

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

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

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

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

attributes #0 = { 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) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass