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

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

94:                                               ; preds = %11
  %95 = load double, ptr %30, align 8, !tbaa !5
  %96 = fdiv double 1.000000e+00, %95
  store double %96, ptr %36, align 8, !tbaa !5
  %97 = load double, ptr %33, align 8, !tbaa !5
  %98 = load double, ptr %36, align 8, !tbaa !5
  %99 = fmul double %97, %98
  store double %99, ptr %37, align 8, !tbaa !5
  %100 = load double, ptr %13, align 8, !tbaa !5
  %101 = load double, ptr %23, align 8, !tbaa !5
  %102 = fsub double %100, %101
  store double %102, ptr %38, align 8, !tbaa !5
  %103 = load double, ptr %29, align 8, !tbaa !5
  %104 = call double @sqrt(double noundef %103) #4
  %105 = load double, ptr %29, align 8, !tbaa !5
  %106 = call double @sqrt(double noundef %105) #4
  %107 = fmul double %104, %106
  %108 = load double, ptr %29, align 8, !tbaa !5
  %109 = call double @sqrt(double noundef %108) #4
  %110 = fmul double %107, %109
  %111 = fdiv double 1.000000e+00, %110
  store double %111, ptr %39, align 8, !tbaa !5
  %112 = load double, ptr %33, align 8, !tbaa !5
  %113 = load double, ptr %38, align 8, !tbaa !5
  %114 = fmul double %112, %113
  %115 = load double, ptr %39, align 8, !tbaa !5
  %116 = fmul double %114, %115
  store double %116, ptr %40, align 8, !tbaa !5
  %117 = load double, ptr %40, align 8, !tbaa !5
  %118 = load double, ptr %24, align 8, !tbaa !5
  %119 = fmul double %117, %118
  store double %119, ptr %41, align 8, !tbaa !5
  %120 = load double, ptr %40, align 8, !tbaa !5
  %121 = load double, ptr %27, align 8, !tbaa !5
  %122 = fmul double %120, %121
  store double %122, ptr %42, align 8, !tbaa !5
  %123 = load double, ptr %12, align 8, !tbaa !5
  %124 = fcmp olt double %123, 0.000000e+00
  br i1 %124, label %125, label %126

125:                                              ; preds = %94
  br label %131

126:                                              ; preds = %94
  %127 = load double, ptr %12, align 8, !tbaa !5
  %128 = fcmp ogt double %127, 0.000000e+00
  %129 = zext i1 %128 to i64
  %130 = select i1 %128, double 1.000000e+00, double 0.000000e+00
  br label %131

131:                                              ; preds = %126, %125
  %132 = phi double [ 0.000000e+00, %125 ], [ %130, %126 ]
  store double %132, ptr %43, align 8, !tbaa !5
  %133 = load double, ptr %32, align 8, !tbaa !5
  %134 = fsub double %133, 0x3CB0000000000000
  %135 = fcmp olt double %134, 0.000000e+00
  br i1 %135, label %136, label %137

136:                                              ; preds = %131
  br label %143

137:                                              ; preds = %131
  %138 = load double, ptr %32, align 8, !tbaa !5
  %139 = fsub double %138, 0x3CB0000000000000
  %140 = fcmp ogt double %139, 0.000000e+00
  %141 = zext i1 %140 to i64
  %142 = select i1 %140, double 1.000000e+00, double 0.000000e+00
  br label %143

143:                                              ; preds = %137, %136
  %144 = phi double [ 0.000000e+00, %136 ], [ %142, %137 ]
  store double %144, ptr %44, align 8, !tbaa !5
  %145 = load double, ptr %18, align 8, !tbaa !5
  %146 = load double, ptr %36, align 8, !tbaa !5
  %147 = fmul double %145, %146
  %148 = load double, ptr %43, align 8, !tbaa !5
  %149 = fmul double %147, %148
  %150 = load double, ptr %44, align 8, !tbaa !5
  %151 = fmul double %149, %150
  store double %151, ptr %45, align 8, !tbaa !5
  %152 = load double, ptr %37, align 8, !tbaa !5
  %153 = fneg double %152
  %154 = fadd double %153, 1.000000e+00
  store double %154, ptr %46, align 8, !tbaa !5
  %155 = load double, ptr %14, align 8, !tbaa !5
  %156 = load double, ptr %26, align 8, !tbaa !5
  %157 = fsub double %155, %156
  store double %157, ptr %47, align 8, !tbaa !5
  %158 = load double, ptr %33, align 8, !tbaa !5
  %159 = load double, ptr %39, align 8, !tbaa !5
  %160 = fmul double %158, %159
  %161 = load double, ptr %47, align 8, !tbaa !5
  %162 = fmul double %160, %161
  store double %162, ptr %48, align 8, !tbaa !5
  %163 = load double, ptr %48, align 8, !tbaa !5
  %164 = load double, ptr %24, align 8, !tbaa !5
  %165 = fmul double %163, %164
  store double %165, ptr %49, align 8, !tbaa !5
  %166 = load double, ptr %48, align 8, !tbaa !5
  %167 = load double, ptr %27, align 8, !tbaa !5
  %168 = fmul double %166, %167
  store double %168, ptr %50, align 8, !tbaa !5
  br label %169

169:                                              ; preds = %143, %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  store double 0.000000e+00, ptr %51, align 8, !tbaa !5
  %170 = load double, ptr %19, align 8, !tbaa !5
  %171 = fneg double %170
  %172 = load double, ptr %15, align 8, !tbaa !5
  %173 = load double, ptr %12, align 8, !tbaa !5
  %174 = call double @llvm.fmuladd.f64(double %171, double %172, double %173)
  %175 = fcmp olt double %174, 0.000000e+00
  br i1 %175, label %176, label %177

176:                                              ; preds = %169
  br label %186

177:                                              ; preds = %169
  %178 = load double, ptr %19, align 8, !tbaa !5
  %179 = fneg double %178
  %180 = load double, ptr %15, align 8, !tbaa !5
  %181 = load double, ptr %12, align 8, !tbaa !5
  %182 = call double @llvm.fmuladd.f64(double %179, double %180, double %181)
  %183 = fcmp ogt double %182, 0.000000e+00
  %184 = zext i1 %183 to i64
  %185 = select i1 %183, double 1.000000e+00, double 0.000000e+00
  br label %186

186:                                              ; preds = %177, %176
  %187 = phi double [ 0.000000e+00, %176 ], [ %185, %177 ]
  store double %187, ptr %51, align 8, !tbaa !5
  %188 = load double, ptr %19, align 8, !tbaa !5
  %189 = load double, ptr %51, align 8, !tbaa !5
  %190 = fmul double %188, %189
  %191 = load ptr, ptr %22, align 8, !tbaa !9
  %192 = getelementptr inbounds double, ptr %191, i64 0
  store double %190, ptr %192, align 8, !tbaa !5
  %193 = load ptr, ptr %22, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %193, i64 1
  store double 0.000000e+00, ptr %194, align 8, !tbaa !5
  %195 = load ptr, ptr %22, align 8, !tbaa !9
  %196 = getelementptr inbounds double, ptr %195, i64 2
  store double 0.000000e+00, ptr %196, align 8, !tbaa !5
  %197 = load ptr, ptr %22, align 8, !tbaa !9
  %198 = getelementptr inbounds double, ptr %197, i64 3
  store double 0.000000e+00, ptr %198, align 8, !tbaa !5
  %199 = load i32, ptr %34, align 4, !tbaa !11
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %205

201:                                              ; preds = %186
  %202 = load double, ptr %20, align 8, !tbaa !5
  %203 = load ptr, ptr %22, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %203, i64 4
  store double %202, ptr %204, align 8, !tbaa !5
  br label %218

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

208:                                              ; preds = %205
  %209 = load double, ptr %20, align 8, !tbaa !5
  %210 = load double, ptr %37, align 8, !tbaa !5
  %211 = load double, ptr %20, align 8, !tbaa !5
  %212 = load double, ptr %41, align 8, !tbaa !5
  %213 = fmul double %211, %212
  %214 = call double @llvm.fmuladd.f64(double %209, double %210, double %213)
  %215 = load ptr, ptr %22, align 8, !tbaa !9
  %216 = getelementptr inbounds double, ptr %215, i64 4
  store double %214, ptr %216, align 8, !tbaa !5
  br label %217

217:                                              ; preds = %208, %205
  br label %218

218:                                              ; preds = %217, %201
  %219 = load i32, ptr %34, align 4, !tbaa !11
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %224

221:                                              ; preds = %218
  %222 = load ptr, ptr %22, align 8, !tbaa !9
  %223 = getelementptr inbounds double, ptr %222, i64 5
  store double 0.000000e+00, ptr %223, align 8, !tbaa !5
  br label %234

224:                                              ; preds = %218
  %225 = load i32, ptr %35, align 4, !tbaa !11
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %233

227:                                              ; preds = %224
  %228 = load double, ptr %20, align 8, !tbaa !5
  %229 = load double, ptr %49, align 8, !tbaa !5
  %230 = fmul double %228, %229
  %231 = load ptr, ptr %22, align 8, !tbaa !9
  %232 = getelementptr inbounds double, ptr %231, i64 5
  store double %230, ptr %232, align 8, !tbaa !5
  br label %233

233:                                              ; preds = %227, %224
  br label %234

234:                                              ; preds = %233, %221
  %235 = load ptr, ptr %22, align 8, !tbaa !9
  %236 = getelementptr inbounds double, ptr %235, i64 6
  store double 0.000000e+00, ptr %236, align 8, !tbaa !5
  %237 = load i32, ptr %34, align 4, !tbaa !11
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %242

239:                                              ; preds = %234
  %240 = load ptr, ptr %22, align 8, !tbaa !9
  %241 = getelementptr inbounds double, ptr %240, i64 7
  store double 0.000000e+00, ptr %241, align 8, !tbaa !5
  br label %252

242:                                              ; preds = %234
  %243 = load i32, ptr %35, align 4, !tbaa !11
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %251

245:                                              ; preds = %242
  %246 = load double, ptr %21, align 8, !tbaa !5
  %247 = load double, ptr %42, align 8, !tbaa !5
  %248 = fmul double %246, %247
  %249 = load ptr, ptr %22, align 8, !tbaa !9
  %250 = getelementptr inbounds double, ptr %249, i64 7
  store double %248, ptr %250, align 8, !tbaa !5
  br label %251

251:                                              ; preds = %245, %242
  br label %252

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

255:                                              ; preds = %252
  %256 = load double, ptr %21, align 8, !tbaa !5
  %257 = load ptr, ptr %22, align 8, !tbaa !9
  %258 = getelementptr inbounds double, ptr %257, i64 8
  store double %256, ptr %258, align 8, !tbaa !5
  br label %272

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

262:                                              ; preds = %259
  %263 = load double, ptr %21, align 8, !tbaa !5
  %264 = load double, ptr %37, align 8, !tbaa !5
  %265 = load double, ptr %21, align 8, !tbaa !5
  %266 = load double, ptr %50, align 8, !tbaa !5
  %267 = fmul double %265, %266
  %268 = call double @llvm.fmuladd.f64(double %263, double %264, double %267)
  %269 = load ptr, ptr %22, align 8, !tbaa !9
  %270 = getelementptr inbounds double, ptr %269, i64 8
  store double %268, ptr %270, align 8, !tbaa !5
  br label %271

271:                                              ; preds = %262, %259
  br label %272

272:                                              ; preds = %271, %255
  %273 = load double, ptr %51, align 8, !tbaa !5
  %274 = fneg double %273
  %275 = fadd double %274, 1.000000e+00
  %276 = load ptr, ptr %22, align 8, !tbaa !9
  %277 = getelementptr inbounds double, ptr %276, i64 9
  store double %275, ptr %277, align 8, !tbaa !5
  %278 = load i32, ptr %34, align 4, !tbaa !11
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %283

280:                                              ; preds = %272
  %281 = load ptr, ptr %22, align 8, !tbaa !9
  %282 = getelementptr inbounds double, ptr %281, i64 10
  store double 0.000000e+00, ptr %282, align 8, !tbaa !5
  br label %294

283:                                              ; preds = %272
  %284 = load i32, ptr %35, align 4, !tbaa !11
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %286, label %293

286:                                              ; preds = %283
  %287 = load double, ptr %38, align 8, !tbaa !5
  %288 = fneg double %287
  %289 = load double, ptr %45, align 8, !tbaa !5
  %290 = fmul double %288, %289
  %291 = load ptr, ptr %22, align 8, !tbaa !9
  %292 = getelementptr inbounds double, ptr %291, i64 10
  store double %290, ptr %292, align 8, !tbaa !5
  br label %293

293:                                              ; preds = %286, %283
  br label %294

294:                                              ; preds = %293, %280
  %295 = load i32, ptr %34, align 4, !tbaa !11
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %300

297:                                              ; preds = %294
  %298 = load ptr, ptr %22, align 8, !tbaa !9
  %299 = getelementptr inbounds double, ptr %298, i64 11
  store double 0.000000e+00, ptr %299, align 8, !tbaa !5
  br label %311

300:                                              ; preds = %294
  %301 = load i32, ptr %35, align 4, !tbaa !11
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %310

303:                                              ; preds = %300
  %304 = load double, ptr %45, align 8, !tbaa !5
  %305 = fneg double %304
  %306 = load double, ptr %47, align 8, !tbaa !5
  %307 = fmul double %305, %306
  %308 = load ptr, ptr %22, align 8, !tbaa !9
  %309 = getelementptr inbounds double, ptr %308, i64 11
  store double %307, ptr %309, align 8, !tbaa !5
  br label %310

310:                                              ; preds = %303, %300
  br label %311

311:                                              ; preds = %310, %297
  %312 = load ptr, ptr %22, align 8, !tbaa !9
  %313 = getelementptr inbounds double, ptr %312, i64 12
  store double 0.000000e+00, ptr %313, align 8, !tbaa !5
  %314 = load i32, ptr %34, align 4, !tbaa !11
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %319

316:                                              ; preds = %311
  %317 = load ptr, ptr %22, align 8, !tbaa !9
  %318 = getelementptr inbounds double, ptr %317, i64 13
  store double 0.000000e+00, ptr %318, align 8, !tbaa !5
  br label %330

319:                                              ; preds = %311
  %320 = load i32, ptr %35, align 4, !tbaa !11
  %321 = icmp ne i32 %320, 0
  br i1 %321, label %322, label %329

322:                                              ; preds = %319
  %323 = load double, ptr %41, align 8, !tbaa !5
  %324 = fneg double %323
  %325 = load double, ptr %46, align 8, !tbaa !5
  %326 = fadd double %324, %325
  %327 = load ptr, ptr %22, align 8, !tbaa !9
  %328 = getelementptr inbounds double, ptr %327, i64 13
  store double %326, ptr %328, align 8, !tbaa !5
  br label %329

329:                                              ; preds = %322, %319
  br label %330

330:                                              ; preds = %329, %316
  %331 = load i32, ptr %34, align 4, !tbaa !11
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %336

333:                                              ; preds = %330
  %334 = load ptr, ptr %22, align 8, !tbaa !9
  %335 = getelementptr inbounds double, ptr %334, i64 14
  store double 0.000000e+00, ptr %335, align 8, !tbaa !5
  br label %345

336:                                              ; preds = %330
  %337 = load i32, ptr %35, align 4, !tbaa !11
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %344

339:                                              ; preds = %336
  %340 = load double, ptr %49, align 8, !tbaa !5
  %341 = fneg double %340
  %342 = load ptr, ptr %22, align 8, !tbaa !9
  %343 = getelementptr inbounds double, ptr %342, i64 14
  store double %341, ptr %343, align 8, !tbaa !5
  br label %344

344:                                              ; preds = %339, %336
  br label %345

345:                                              ; preds = %344, %333
  %346 = load ptr, ptr %22, align 8, !tbaa !9
  %347 = getelementptr inbounds double, ptr %346, i64 15
  store double 0.000000e+00, ptr %347, align 8, !tbaa !5
  %348 = load i32, ptr %34, align 4, !tbaa !11
  %349 = icmp ne i32 %348, 0
  br i1 %349, label %350, label %353

350:                                              ; preds = %345
  %351 = load ptr, ptr %22, align 8, !tbaa !9
  %352 = getelementptr inbounds double, ptr %351, i64 16
  store double 0.000000e+00, ptr %352, align 8, !tbaa !5
  br label %362

353:                                              ; preds = %345
  %354 = load i32, ptr %35, align 4, !tbaa !11
  %355 = icmp ne i32 %354, 0
  br i1 %355, label %356, label %361

356:                                              ; preds = %353
  %357 = load double, ptr %42, align 8, !tbaa !5
  %358 = fneg double %357
  %359 = load ptr, ptr %22, align 8, !tbaa !9
  %360 = getelementptr inbounds double, ptr %359, i64 16
  store double %358, ptr %360, align 8, !tbaa !5
  br label %361

361:                                              ; preds = %356, %353
  br label %362

362:                                              ; preds = %361, %350
  %363 = load i32, ptr %34, align 4, !tbaa !11
  %364 = icmp ne i32 %363, 0
  br i1 %364, label %365, label %368

365:                                              ; preds = %362
  %366 = load ptr, ptr %22, align 8, !tbaa !9
  %367 = getelementptr inbounds double, ptr %366, i64 17
  store double 0.000000e+00, ptr %367, align 8, !tbaa !5
  br label %378

368:                                              ; preds = %362
  %369 = load i32, ptr %35, align 4, !tbaa !11
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %377

371:                                              ; preds = %368
  %372 = load double, ptr %46, align 8, !tbaa !5
  %373 = load double, ptr %50, align 8, !tbaa !5
  %374 = fsub double %372, %373
  %375 = load ptr, ptr %22, align 8, !tbaa !9
  %376 = getelementptr inbounds double, ptr %375, i64 17
  store double %374, ptr %376, align 8, !tbaa !5
  br label %377

377:                                              ; preds = %371, %368
  br label %378

378:                                              ; preds = %377, %365
  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 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, 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: nounwind
declare double @sqrt(double noundef) #2

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

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

; 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 = { 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 #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 = !{!"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_AlartCurnierJeanMoreauABGenerated(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 = fmul double %4, %8
  %13 = fsub double %12, %1
  %14 = fmul double %13, %13
  %15 = fmul double %5, %9
  %16 = fsub double %15, %2
  %17 = fmul double %16, %16
  %18 = fadd double %14, %17
  %sqrt = tail call double @llvm.sqrt.f64(double %18)
  %19 = tail call double @llvm.maxnum.f64(double %0, double 0.000000e+00)
  %20 = fmul double %19, %6
  %21 = tail call double @llvm.maxnum.f64(double %20, double 0x3CB0000000000000)
  %22 = fcmp ugt double %sqrt, %21
  %23 = fcmp ogt double %sqrt, %21
  br i1 %23, label %24, label %55

24:                                               ; preds = %11
  %25 = fdiv double 1.000000e+00, %sqrt
  %26 = fmul double %21, %25
  %27 = fsub double %1, %12
  %28 = fmul double %sqrt, %sqrt
  %29 = fmul double %sqrt, %28
  %30 = fdiv double 1.000000e+00, %29
  %31 = fmul double %21, %27
  %32 = fmul double %31, %30
  %33 = fmul double %13, %32
  %34 = fmul double %16, %32
  %35 = fcmp olt double %0, 0.000000e+00
  %36 = fcmp ogt double %0, 0.000000e+00
  %37 = select i1 %36, double 1.000000e+00, double 0.000000e+00
  %38 = select i1 %35, double 0.000000e+00, double %37
  %39 = fadd double %20, 0xBCB0000000000000
  %40 = fcmp olt double %39, 0.000000e+00
  %41 = fcmp ogt double %39, 0.000000e+00
  %42 = select i1 %41, double 1.000000e+00, double 0.000000e+00
  %43 = select i1 %40, double 0.000000e+00, double %42
  %44 = fmul double %25, %6
  %45 = fmul double %38, %44
  %46 = fmul double %43, %45
  %47 = fsub double 1.000000e+00, %26
  %48 = fsub double %2, %15
  %49 = fmul double %21, %30
  %50 = fmul double %48, %49
  %51 = fmul double %13, %50
  %52 = fmul double %16, %50
  %53 = insertelement <2 x double> poison, double %46, i64 0
  %54 = insertelement <2 x double> %53, double %48, i64 1
  br label %55

55:                                               ; preds = %24, %11
  %.0144 = phi double [ %26, %24 ], [ 0.000000e+00, %11 ]
  %.0143 = phi double [ %27, %24 ], [ 0.000000e+00, %11 ]
  %.0142 = phi double [ %33, %24 ], [ 0.000000e+00, %11 ]
  %.0141 = phi double [ %34, %24 ], [ 0.000000e+00, %11 ]
  %.0139 = phi double [ %47, %24 ], [ 0.000000e+00, %11 ]
  %.0137 = phi double [ %51, %24 ], [ 0.000000e+00, %11 ]
  %.0 = phi double [ %52, %24 ], [ 0.000000e+00, %11 ]
  %56 = phi <2 x double> [ %54, %24 ], [ zeroinitializer, %11 ]
  %57 = fneg double %7
  %58 = tail call double @llvm.fmuladd.f64(double %57, double %3, double %0)
  %59 = fcmp olt double %58, 0.000000e+00
  %60 = fcmp ogt double %58, 0.000000e+00
  %61 = select i1 %60, double 1.000000e+00, double 0.000000e+00
  %62 = select i1 %59, double 0.000000e+00, double %61
  %63 = fmul double %62, %7
  store double %63, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %10, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %64, i8 0, i64 24, i1 false)
  br i1 %22, label %65, label %66

65:                                               ; preds = %55
  br i1 %23, label %79, label %73

66:                                               ; preds = %55
  %67 = getelementptr inbounds i8, ptr %10, i64 32
  store double %8, ptr %67, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %10, i64 40
  %69 = getelementptr inbounds i8, ptr %10, i64 64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %68, i8 0, i64 24, i1 false)
  store double %9, ptr %69, align 8, !tbaa !5
  %70 = fsub double 1.000000e+00, %62
  %71 = getelementptr inbounds i8, ptr %10, i64 72
  store double %70, ptr %71, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %10, i64 80
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %72, i8 0, i64 64, i1 false)
  br label %108

73:                                               ; preds = %65
  %74 = getelementptr inbounds i8, ptr %10, i64 48
  store double 0.000000e+00, ptr %74, align 8, !tbaa !5
  %75 = fsub double 1.000000e+00, %62
  %76 = getelementptr inbounds i8, ptr %10, i64 72
  store double %75, ptr %76, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %10, i64 96
  store double 0.000000e+00, ptr %77, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %10, i64 120
  store double 0.000000e+00, ptr %78, align 8, !tbaa !5
  br label %108

79:                                               ; preds = %65
  %80 = fmul double %.0142, %8
  %81 = tail call double @llvm.fmuladd.f64(double %8, double %.0144, double %80)
  %82 = getelementptr inbounds i8, ptr %10, i64 32
  store double %81, ptr %82, align 8, !tbaa !5
  %83 = fmul double %.0137, %8
  %84 = getelementptr inbounds i8, ptr %10, i64 40
  store double %83, ptr %84, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %10, i64 48
  store double 0.000000e+00, ptr %85, align 8, !tbaa !5
  %86 = fmul double %.0141, %9
  %87 = getelementptr inbounds i8, ptr %10, i64 56
  store double %86, ptr %87, align 8, !tbaa !5
  %88 = fmul double %.0, %9
  %89 = tail call double @llvm.fmuladd.f64(double %9, double %.0144, double %88)
  %90 = getelementptr inbounds i8, ptr %10, i64 64
  store double %89, ptr %90, align 8, !tbaa !5
  %91 = fsub double 1.000000e+00, %62
  %92 = getelementptr inbounds i8, ptr %10, i64 72
  store double %91, ptr %92, align 8, !tbaa !5
  %93 = shufflevector <2 x double> %56, <2 x double> poison, <2 x i32> <i32 poison, i32 0>
  %94 = insertelement <2 x double> %93, double %.0143, i64 0
  %95 = fneg <2 x double> %94
  %96 = getelementptr inbounds i8, ptr %10, i64 80
  %97 = fmul <2 x double> %56, %95
  store <2 x double> %97, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %10, i64 96
  store double 0.000000e+00, ptr %98, align 8, !tbaa !5
  %99 = fsub double %.0139, %.0142
  %100 = getelementptr inbounds i8, ptr %10, i64 104
  store double %99, ptr %100, align 8, !tbaa !5
  %101 = fneg double %.0137
  %102 = getelementptr inbounds i8, ptr %10, i64 112
  store double %101, ptr %102, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %10, i64 120
  store double 0.000000e+00, ptr %103, align 8, !tbaa !5
  %104 = fneg double %.0141
  %105 = getelementptr inbounds i8, ptr %10, i64 128
  store double %104, ptr %105, align 8, !tbaa !5
  %106 = fsub double %.0139, %.0
  %107 = getelementptr inbounds i8, ptr %10, i64 136
  store double %106, ptr %107, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %73, %79, %66
  ret void
}

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

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