; LLVM IR from microsoft/LightAIMD :: src (basis_func)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.vec3d = type { double, double, double }
%struct.basis_func = type { i64, i64, i64, i64, ptr, ptr, ptr, double, double, double, double }

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #0

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

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @basis_funcs_third_derivative(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #3 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, 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 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 double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca i64, 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
  %53 = alloca double, align 8
  %54 = alloca double, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.vec3d, ptr %55, i32 0, i32 0
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.basis_func, ptr %58, i32 0, i32 8
  %60 = load double, ptr %59, align 8, !tbaa !12
  %61 = fsub double %57, %60
  %62 = fadd double %61, 0x3379B604AAACA626
  store double %62, ptr %23, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.vec3d, ptr %63, i32 0, i32 1
  %65 = load double, ptr %64, align 8, !tbaa !16
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.basis_func, ptr %66, i32 0, i32 9
  %68 = load double, ptr %67, align 8, !tbaa !17
  %69 = fsub double %65, %68
  %70 = fadd double %69, 0x3379B604AAACA626
  store double %70, ptr %24, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.vec3d, ptr %71, i32 0, i32 2
  %73 = load double, ptr %72, align 8, !tbaa !18
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.basis_func, ptr %74, i32 0, i32 10
  %76 = load double, ptr %75, align 8, !tbaa !19
  %77 = fsub double %73, %76
  %78 = fadd double %77, 0x3379B604AAACA626
  store double %78, ptr %25, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %79 = load double, ptr %23, align 8, !tbaa !15
  %80 = load double, ptr %23, align 8, !tbaa !15
  %81 = load double, ptr %24, align 8, !tbaa !15
  %82 = load double, ptr %24, align 8, !tbaa !15
  %83 = fmul double %81, %82
  %84 = call double @llvm.fmuladd.f64(double %79, double %80, double %83)
  %85 = load double, ptr %25, align 8, !tbaa !15
  %86 = load double, ptr %25, align 8, !tbaa !15
  %87 = call double @llvm.fmuladd.f64(double %85, double %86, double %84)
  store double %87, ptr %26, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %88 = load double, ptr %23, align 8, !tbaa !15
  %89 = load double, ptr %23, align 8, !tbaa !15
  %90 = fmul double %88, %89
  store double %90, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %91 = load double, ptr %24, align 8, !tbaa !15
  %92 = load double, ptr %24, align 8, !tbaa !15
  %93 = fmul double %91, %92
  store double %93, ptr %28, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %94 = load double, ptr %25, align 8, !tbaa !15
  %95 = load double, ptr %25, align 8, !tbaa !15
  %96 = fmul double %94, %95
  store double %96, ptr %29, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %97 = load double, ptr %27, align 8, !tbaa !15
  %98 = load double, ptr %23, align 8, !tbaa !15
  %99 = fmul double %97, %98
  store double %99, ptr %30, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %100 = load double, ptr %28, align 8, !tbaa !15
  %101 = load double, ptr %24, align 8, !tbaa !15
  %102 = fmul double %100, %101
  store double %102, ptr %31, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %103 = load double, ptr %29, align 8, !tbaa !15
  %104 = load double, ptr %25, align 8, !tbaa !15
  %105 = fmul double %103, %104
  store double %105, ptr %32, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %106 = load double, ptr %27, align 8, !tbaa !15
  %107 = load double, ptr %27, align 8, !tbaa !15
  %108 = fmul double %106, %107
  store double %108, ptr %33, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %109 = load double, ptr %28, align 8, !tbaa !15
  %110 = load double, ptr %28, align 8, !tbaa !15
  %111 = fmul double %109, %110
  store double %111, ptr %34, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %112 = load double, ptr %29, align 8, !tbaa !15
  %113 = load double, ptr %29, align 8, !tbaa !15
  %114 = fmul double %112, %113
  store double %114, ptr %35, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  store double 0.000000e+00, ptr %36, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  store double 0.000000e+00, ptr %37, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  store double 0.000000e+00, ptr %38, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  store double 0.000000e+00, ptr %39, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  store double 0.000000e+00, ptr %40, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  store double 0.000000e+00, ptr %41, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  store double 0.000000e+00, ptr %42, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  store double 0.000000e+00, ptr %43, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  store double 0.000000e+00, ptr %44, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  store i64 0, ptr %45, align 8, !tbaa !20
  br label %115

115:                                              ; preds = %517, %11
  %116 = load i64, ptr %45, align 8, !tbaa !20
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.basis_func, ptr %117, i32 0, i32 3
  %119 = load i64, ptr %118, align 8, !tbaa !21
  %120 = icmp ult i64 %116, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  br label %520

122:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.basis_func, ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !22
  %126 = load i64, ptr %45, align 8, !tbaa !20
  %127 = getelementptr inbounds double, ptr %125, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !15
  store double %128, ptr %46, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.basis_func, ptr %129, i32 0, i32 5
  %131 = load ptr, ptr %130, align 8, !tbaa !23
  %132 = load i64, ptr %45, align 8, !tbaa !20
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !15
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.basis_func, ptr %135, i32 0, i32 6
  %137 = load ptr, ptr %136, align 8, !tbaa !24
  %138 = load i64, ptr %45, align 8, !tbaa !20
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !15
  %141 = fmul double %134, %140
  %142 = load double, ptr %23, align 8, !tbaa !15
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.basis_func, ptr %143, i32 0, i32 0
  %145 = load i64, ptr %144, align 8, !tbaa !25
  %146 = uitofp i64 %145 to double
  %147 = call double @pow(double noundef %142, double noundef %146) #4
  %148 = fmul double %141, %147
  %149 = load double, ptr %24, align 8, !tbaa !15
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.basis_func, ptr %150, i32 0, i32 1
  %152 = load i64, ptr %151, align 8, !tbaa !26
  %153 = uitofp i64 %152 to double
  %154 = call double @pow(double noundef %149, double noundef %153) #4
  %155 = fmul double %148, %154
  %156 = load double, ptr %25, align 8, !tbaa !15
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.basis_func, ptr %157, i32 0, i32 2
  %159 = load i64, ptr %158, align 8, !tbaa !27
  %160 = uitofp i64 %159 to double
  %161 = call double @pow(double noundef %156, double noundef %160) #4
  %162 = fmul double %155, %161
  %163 = load double, ptr %46, align 8, !tbaa !15
  %164 = load double, ptr %26, align 8, !tbaa !15
  %165 = fmul double %163, %164
  %166 = fneg double %165
  %167 = call double @exp(double noundef %166) #4
  %168 = fmul double %162, %167
  store double %168, ptr %47, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  %169 = load double, ptr %46, align 8, !tbaa !15
  %170 = load double, ptr %46, align 8, !tbaa !15
  %171 = fmul double %169, %170
  store double %171, ptr %48, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.basis_func, ptr %172, i32 0, i32 0
  %174 = load i64, ptr %173, align 8, !tbaa !25
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.basis_func, ptr %175, i32 0, i32 0
  %177 = load i64, ptr %176, align 8, !tbaa !25
  %178 = mul i64 %174, %177
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.basis_func, ptr %179, i32 0, i32 0
  %181 = load i64, ptr %180, align 8, !tbaa !25
  %182 = mul i64 %178, %181
  %183 = uitofp i64 %182 to double
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.basis_func, ptr %184, i32 0, i32 0
  %186 = load i64, ptr %185, align 8, !tbaa !25
  %187 = mul i64 3, %186
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.basis_func, ptr %188, i32 0, i32 0
  %190 = load i64, ptr %189, align 8, !tbaa !25
  %191 = mul i64 %187, %190
  %192 = uitofp i64 %191 to double
  %193 = load double, ptr %46, align 8, !tbaa !15
  %194 = fmul double 2.000000e+00, %193
  %195 = load double, ptr %27, align 8, !tbaa !15
  %196 = call double @llvm.fmuladd.f64(double %194, double %195, double 1.000000e+00)
  %197 = fneg double %192
  %198 = call double @llvm.fmuladd.f64(double %197, double %196, double %183)
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.basis_func, ptr %199, i32 0, i32 0
  %201 = load i64, ptr %200, align 8, !tbaa !25
  %202 = mul i64 2, %201
  %203 = uitofp i64 %202 to double
  %204 = load double, ptr %48, align 8, !tbaa !15
  %205 = fmul double 6.000000e+00, %204
  %206 = load double, ptr %33, align 8, !tbaa !15
  %207 = call double @llvm.fmuladd.f64(double %205, double %206, double 1.000000e+00)
  %208 = call double @llvm.fmuladd.f64(double %203, double %207, double %198)
  %209 = load double, ptr %48, align 8, !tbaa !15
  %210 = fmul double 4.000000e+00, %209
  %211 = load double, ptr %46, align 8, !tbaa !15
  %212 = fmul double 2.000000e+00, %211
  %213 = load double, ptr %27, align 8, !tbaa !15
  %214 = call double @llvm.fmuladd.f64(double %212, double %213, double -3.000000e+00)
  %215 = fmul double %210, %214
  %216 = load double, ptr %33, align 8, !tbaa !15
  %217 = fneg double %215
  %218 = call double @llvm.fmuladd.f64(double %217, double %216, double %208)
  store double %218, ptr %49, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  %219 = load ptr, ptr %12, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.basis_func, ptr %219, i32 0, i32 1
  %221 = load i64, ptr %220, align 8, !tbaa !26
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.basis_func, ptr %222, i32 0, i32 1
  %224 = load i64, ptr %223, align 8, !tbaa !26
  %225 = mul i64 %221, %224
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.basis_func, ptr %226, i32 0, i32 1
  %228 = load i64, ptr %227, align 8, !tbaa !26
  %229 = mul i64 %225, %228
  %230 = uitofp i64 %229 to double
  %231 = load ptr, ptr %12, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.basis_func, ptr %231, i32 0, i32 1
  %233 = load i64, ptr %232, align 8, !tbaa !26
  %234 = mul i64 3, %233
  %235 = load ptr, ptr %12, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.basis_func, ptr %235, i32 0, i32 1
  %237 = load i64, ptr %236, align 8, !tbaa !26
  %238 = mul i64 %234, %237
  %239 = uitofp i64 %238 to double
  %240 = load double, ptr %46, align 8, !tbaa !15
  %241 = fmul double 2.000000e+00, %240
  %242 = load double, ptr %28, align 8, !tbaa !15
  %243 = call double @llvm.fmuladd.f64(double %241, double %242, double 1.000000e+00)
  %244 = fneg double %239
  %245 = call double @llvm.fmuladd.f64(double %244, double %243, double %230)
  %246 = load ptr, ptr %12, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.basis_func, ptr %246, i32 0, i32 1
  %248 = load i64, ptr %247, align 8, !tbaa !26
  %249 = mul i64 2, %248
  %250 = uitofp i64 %249 to double
  %251 = load double, ptr %48, align 8, !tbaa !15
  %252 = fmul double 6.000000e+00, %251
  %253 = load double, ptr %34, align 8, !tbaa !15
  %254 = call double @llvm.fmuladd.f64(double %252, double %253, double 1.000000e+00)
  %255 = call double @llvm.fmuladd.f64(double %250, double %254, double %245)
  %256 = load double, ptr %48, align 8, !tbaa !15
  %257 = fmul double 4.000000e+00, %256
  %258 = load double, ptr %46, align 8, !tbaa !15
  %259 = fmul double 2.000000e+00, %258
  %260 = load double, ptr %28, align 8, !tbaa !15
  %261 = call double @llvm.fmuladd.f64(double %259, double %260, double -3.000000e+00)
  %262 = fmul double %257, %261
  %263 = load double, ptr %34, align 8, !tbaa !15
  %264 = fneg double %262
  %265 = call double @llvm.fmuladd.f64(double %264, double %263, double %255)
  store double %265, ptr %50, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.basis_func, ptr %266, i32 0, i32 2
  %268 = load i64, ptr %267, align 8, !tbaa !27
  %269 = load ptr, ptr %12, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.basis_func, ptr %269, i32 0, i32 2
  %271 = load i64, ptr %270, align 8, !tbaa !27
  %272 = mul i64 %268, %271
  %273 = load ptr, ptr %12, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.basis_func, ptr %273, i32 0, i32 2
  %275 = load i64, ptr %274, align 8, !tbaa !27
  %276 = mul i64 %272, %275
  %277 = uitofp i64 %276 to double
  %278 = load ptr, ptr %12, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.basis_func, ptr %278, i32 0, i32 2
  %280 = load i64, ptr %279, align 8, !tbaa !27
  %281 = mul i64 3, %280
  %282 = load ptr, ptr %12, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.basis_func, ptr %282, i32 0, i32 2
  %284 = load i64, ptr %283, align 8, !tbaa !27
  %285 = mul i64 %281, %284
  %286 = uitofp i64 %285 to double
  %287 = load double, ptr %46, align 8, !tbaa !15
  %288 = fmul double 2.000000e+00, %287
  %289 = load double, ptr %29, align 8, !tbaa !15
  %290 = call double @llvm.fmuladd.f64(double %288, double %289, double 1.000000e+00)
  %291 = fneg double %286
  %292 = call double @llvm.fmuladd.f64(double %291, double %290, double %277)
  %293 = load ptr, ptr %12, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.basis_func, ptr %293, i32 0, i32 2
  %295 = load i64, ptr %294, align 8, !tbaa !27
  %296 = mul i64 2, %295
  %297 = uitofp i64 %296 to double
  %298 = load double, ptr %48, align 8, !tbaa !15
  %299 = fmul double 6.000000e+00, %298
  %300 = load double, ptr %35, align 8, !tbaa !15
  %301 = call double @llvm.fmuladd.f64(double %299, double %300, double 1.000000e+00)
  %302 = call double @llvm.fmuladd.f64(double %297, double %301, double %292)
  %303 = load double, ptr %48, align 8, !tbaa !15
  %304 = fmul double 4.000000e+00, %303
  %305 = load double, ptr %46, align 8, !tbaa !15
  %306 = fmul double 2.000000e+00, %305
  %307 = load double, ptr %29, align 8, !tbaa !15
  %308 = call double @llvm.fmuladd.f64(double %306, double %307, double -3.000000e+00)
  %309 = fmul double %304, %308
  %310 = load double, ptr %35, align 8, !tbaa !15
  %311 = fneg double %309
  %312 = call double @llvm.fmuladd.f64(double %311, double %310, double %302)
  store double %312, ptr %51, align 8, !tbaa !15
  %313 = load double, ptr %49, align 8, !tbaa !15
  %314 = load double, ptr %47, align 8, !tbaa !15
  %315 = fmul double %313, %314
  %316 = load double, ptr %30, align 8, !tbaa !15
  %317 = fdiv double %315, %316
  %318 = load double, ptr %36, align 8, !tbaa !15
  %319 = fadd double %318, %317
  store double %319, ptr %36, align 8, !tbaa !15
  %320 = load double, ptr %50, align 8, !tbaa !15
  %321 = load double, ptr %47, align 8, !tbaa !15
  %322 = fmul double %320, %321
  %323 = load double, ptr %31, align 8, !tbaa !15
  %324 = fdiv double %322, %323
  %325 = load double, ptr %40, align 8, !tbaa !15
  %326 = fadd double %325, %324
  store double %326, ptr %40, align 8, !tbaa !15
  %327 = load double, ptr %51, align 8, !tbaa !15
  %328 = load double, ptr %47, align 8, !tbaa !15
  %329 = fmul double %327, %328
  %330 = load double, ptr %32, align 8, !tbaa !15
  %331 = fdiv double %329, %330
  %332 = load double, ptr %44, align 8, !tbaa !15
  %333 = fadd double %332, %331
  store double %333, ptr %44, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  %334 = load ptr, ptr %12, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.basis_func, ptr %334, i32 0, i32 0
  %336 = load i64, ptr %335, align 8, !tbaa !25
  %337 = load ptr, ptr %12, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.basis_func, ptr %337, i32 0, i32 0
  %339 = load i64, ptr %338, align 8, !tbaa !25
  %340 = mul i64 %336, %339
  %341 = uitofp i64 %340 to double
  %342 = load ptr, ptr %12, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.basis_func, ptr %342, i32 0, i32 0
  %344 = load i64, ptr %343, align 8, !tbaa !25
  %345 = uitofp i64 %344 to double
  %346 = load double, ptr %46, align 8, !tbaa !15
  %347 = fmul double 4.000000e+00, %346
  %348 = load double, ptr %27, align 8, !tbaa !15
  %349 = call double @llvm.fmuladd.f64(double %347, double %348, double 1.000000e+00)
  %350 = fneg double %345
  %351 = call double @llvm.fmuladd.f64(double %350, double %349, double %341)
  %352 = load double, ptr %46, align 8, !tbaa !15
  %353 = fmul double 2.000000e+00, %352
  %354 = load double, ptr %46, align 8, !tbaa !15
  %355 = fmul double 2.000000e+00, %354
  %356 = load double, ptr %27, align 8, !tbaa !15
  %357 = call double @llvm.fmuladd.f64(double %355, double %356, double -1.000000e+00)
  %358 = fmul double %353, %357
  %359 = load double, ptr %27, align 8, !tbaa !15
  %360 = call double @llvm.fmuladd.f64(double %358, double %359, double %351)
  store double %360, ptr %52, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #4
  %361 = load ptr, ptr %12, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.basis_func, ptr %361, i32 0, i32 1
  %363 = load i64, ptr %362, align 8, !tbaa !26
  %364 = load ptr, ptr %12, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.basis_func, ptr %364, i32 0, i32 1
  %366 = load i64, ptr %365, align 8, !tbaa !26
  %367 = mul i64 %363, %366
  %368 = uitofp i64 %367 to double
  %369 = load ptr, ptr %12, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.basis_func, ptr %369, i32 0, i32 1
  %371 = load i64, ptr %370, align 8, !tbaa !26
  %372 = uitofp i64 %371 to double
  %373 = load double, ptr %46, align 8, !tbaa !15
  %374 = fmul double 4.000000e+00, %373
  %375 = load double, ptr %28, align 8, !tbaa !15
  %376 = call double @llvm.fmuladd.f64(double %374, double %375, double 1.000000e+00)
  %377 = fneg double %372
  %378 = call double @llvm.fmuladd.f64(double %377, double %376, double %368)
  %379 = load double, ptr %46, align 8, !tbaa !15
  %380 = fmul double 2.000000e+00, %379
  %381 = load double, ptr %46, align 8, !tbaa !15
  %382 = fmul double 2.000000e+00, %381
  %383 = load double, ptr %28, align 8, !tbaa !15
  %384 = call double @llvm.fmuladd.f64(double %382, double %383, double -1.000000e+00)
  %385 = fmul double %380, %384
  %386 = load double, ptr %28, align 8, !tbaa !15
  %387 = call double @llvm.fmuladd.f64(double %385, double %386, double %378)
  store double %387, ptr %53, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  %388 = load ptr, ptr %12, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.basis_func, ptr %388, i32 0, i32 2
  %390 = load i64, ptr %389, align 8, !tbaa !27
  %391 = load ptr, ptr %12, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.basis_func, ptr %391, i32 0, i32 2
  %393 = load i64, ptr %392, align 8, !tbaa !27
  %394 = mul i64 %390, %393
  %395 = uitofp i64 %394 to double
  %396 = load ptr, ptr %12, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.basis_func, ptr %396, i32 0, i32 2
  %398 = load i64, ptr %397, align 8, !tbaa !27
  %399 = uitofp i64 %398 to double
  %400 = load double, ptr %46, align 8, !tbaa !15
  %401 = fmul double 4.000000e+00, %400
  %402 = load double, ptr %29, align 8, !tbaa !15
  %403 = call double @llvm.fmuladd.f64(double %401, double %402, double 1.000000e+00)
  %404 = fneg double %399
  %405 = call double @llvm.fmuladd.f64(double %404, double %403, double %395)
  %406 = load double, ptr %46, align 8, !tbaa !15
  %407 = fmul double 2.000000e+00, %406
  %408 = load double, ptr %46, align 8, !tbaa !15
  %409 = fmul double 2.000000e+00, %408
  %410 = load double, ptr %29, align 8, !tbaa !15
  %411 = call double @llvm.fmuladd.f64(double %409, double %410, double -1.000000e+00)
  %412 = fmul double %407, %411
  %413 = load double, ptr %29, align 8, !tbaa !15
  %414 = call double @llvm.fmuladd.f64(double %412, double %413, double %405)
  store double %414, ptr %54, align 8, !tbaa !15
  %415 = load ptr, ptr %12, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.basis_func, ptr %415, i32 0, i32 0
  %417 = load i64, ptr %416, align 8, !tbaa !25
  %418 = uitofp i64 %417 to double
  %419 = load double, ptr %46, align 8, !tbaa !15
  %420 = fmul double 2.000000e+00, %419
  %421 = load double, ptr %27, align 8, !tbaa !15
  %422 = fneg double %420
  %423 = call double @llvm.fmuladd.f64(double %422, double %421, double %418)
  %424 = load double, ptr %53, align 8, !tbaa !15
  %425 = fmul double %423, %424
  %426 = load double, ptr %23, align 8, !tbaa !15
  %427 = load double, ptr %28, align 8, !tbaa !15
  %428 = fmul double %426, %427
  %429 = fdiv double %425, %428
  %430 = load double, ptr %37, align 8, !tbaa !15
  %431 = fadd double %430, %429
  store double %431, ptr %37, align 8, !tbaa !15
  %432 = load ptr, ptr %12, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.basis_func, ptr %432, i32 0, i32 0
  %434 = load i64, ptr %433, align 8, !tbaa !25
  %435 = uitofp i64 %434 to double
  %436 = load double, ptr %46, align 8, !tbaa !15
  %437 = fmul double 2.000000e+00, %436
  %438 = load double, ptr %27, align 8, !tbaa !15
  %439 = fneg double %437
  %440 = call double @llvm.fmuladd.f64(double %439, double %438, double %435)
  %441 = load double, ptr %54, align 8, !tbaa !15
  %442 = fmul double %440, %441
  %443 = load double, ptr %23, align 8, !tbaa !15
  %444 = load double, ptr %29, align 8, !tbaa !15
  %445 = fmul double %443, %444
  %446 = fdiv double %442, %445
  %447 = load double, ptr %38, align 8, !tbaa !15
  %448 = fadd double %447, %446
  store double %448, ptr %38, align 8, !tbaa !15
  %449 = load ptr, ptr %12, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.basis_func, ptr %449, i32 0, i32 1
  %451 = load i64, ptr %450, align 8, !tbaa !26
  %452 = uitofp i64 %451 to double
  %453 = load double, ptr %46, align 8, !tbaa !15
  %454 = fmul double 2.000000e+00, %453
  %455 = load double, ptr %28, align 8, !tbaa !15
  %456 = fneg double %454
  %457 = call double @llvm.fmuladd.f64(double %456, double %455, double %452)
  %458 = load double, ptr %52, align 8, !tbaa !15
  %459 = fmul double %457, %458
  %460 = load double, ptr %24, align 8, !tbaa !15
  %461 = load double, ptr %27, align 8, !tbaa !15
  %462 = fmul double %460, %461
  %463 = fdiv double %459, %462
  %464 = load double, ptr %39, align 8, !tbaa !15
  %465 = fadd double %464, %463
  store double %465, ptr %39, align 8, !tbaa !15
  %466 = load ptr, ptr %12, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.basis_func, ptr %466, i32 0, i32 1
  %468 = load i64, ptr %467, align 8, !tbaa !26
  %469 = uitofp i64 %468 to double
  %470 = load double, ptr %46, align 8, !tbaa !15
  %471 = fmul double 2.000000e+00, %470
  %472 = load double, ptr %28, align 8, !tbaa !15
  %473 = fneg double %471
  %474 = call double @llvm.fmuladd.f64(double %473, double %472, double %469)
  %475 = load double, ptr %54, align 8, !tbaa !15
  %476 = fmul double %474, %475
  %477 = load double, ptr %24, align 8, !tbaa !15
  %478 = load double, ptr %29, align 8, !tbaa !15
  %479 = fmul double %477, %478
  %480 = fdiv double %476, %479
  %481 = load double, ptr %41, align 8, !tbaa !15
  %482 = fadd double %481, %480
  store double %482, ptr %41, align 8, !tbaa !15
  %483 = load ptr, ptr %12, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.basis_func, ptr %483, i32 0, i32 2
  %485 = load i64, ptr %484, align 8, !tbaa !27
  %486 = uitofp i64 %485 to double
  %487 = load double, ptr %46, align 8, !tbaa !15
  %488 = fmul double 2.000000e+00, %487
  %489 = load double, ptr %29, align 8, !tbaa !15
  %490 = fneg double %488
  %491 = call double @llvm.fmuladd.f64(double %490, double %489, double %486)
  %492 = load double, ptr %52, align 8, !tbaa !15
  %493 = fmul double %491, %492
  %494 = load double, ptr %25, align 8, !tbaa !15
  %495 = load double, ptr %27, align 8, !tbaa !15
  %496 = fmul double %494, %495
  %497 = fdiv double %493, %496
  %498 = load double, ptr %42, align 8, !tbaa !15
  %499 = fadd double %498, %497
  store double %499, ptr %42, align 8, !tbaa !15
  %500 = load ptr, ptr %12, align 8, !tbaa !5
  %501 = getelementptr inbounds %struct.basis_func, ptr %500, i32 0, i32 2
  %502 = load i64, ptr %501, align 8, !tbaa !27
  %503 = uitofp i64 %502 to double
  %504 = load double, ptr %46, align 8, !tbaa !15
  %505 = fmul double 2.000000e+00, %504
  %506 = load double, ptr %29, align 8, !tbaa !15
  %507 = fneg double %505
  %508 = call double @llvm.fmuladd.f64(double %507, double %506, double %503)
  %509 = load double, ptr %53, align 8, !tbaa !15
  %510 = fmul double %508, %509
  %511 = load double, ptr %25, align 8, !tbaa !15
  %512 = load double, ptr %28, align 8, !tbaa !15
  %513 = fmul double %511, %512
  %514 = fdiv double %510, %513
  %515 = load double, ptr %43, align 8, !tbaa !15
  %516 = fadd double %515, %514
  store double %516, ptr %43, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #4
  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
  br label %517

517:                                              ; preds = %122
  %518 = load i64, ptr %45, align 8, !tbaa !20
  %519 = add i64 %518, 1
  store i64 %519, ptr %45, align 8, !tbaa !20
  br label %115, !llvm.loop !28

520:                                              ; preds = %121
  %521 = load double, ptr %36, align 8, !tbaa !15
  %522 = load ptr, ptr %14, align 8, !tbaa !5
  store double %521, ptr %522, align 8, !tbaa !15
  %523 = load double, ptr %37, align 8, !tbaa !15
  %524 = load ptr, ptr %15, align 8, !tbaa !5
  store double %523, ptr %524, align 8, !tbaa !15
  %525 = load double, ptr %38, align 8, !tbaa !15
  %526 = load ptr, ptr %16, align 8, !tbaa !5
  store double %525, ptr %526, align 8, !tbaa !15
  %527 = load double, ptr %39, align 8, !tbaa !15
  %528 = load ptr, ptr %18, align 8, !tbaa !5
  store double %527, ptr %528, align 8, !tbaa !15
  %529 = load double, ptr %40, align 8, !tbaa !15
  %530 = load ptr, ptr %17, align 8, !tbaa !5
  store double %529, ptr %530, align 8, !tbaa !15
  %531 = load double, ptr %41, align 8, !tbaa !15
  %532 = load ptr, ptr %19, align 8, !tbaa !5
  store double %531, ptr %532, align 8, !tbaa !15
  %533 = load double, ptr %42, align 8, !tbaa !15
  %534 = load ptr, ptr %21, align 8, !tbaa !5
  store double %533, ptr %534, align 8, !tbaa !15
  %535 = load double, ptr %43, align 8, !tbaa !15
  %536 = load ptr, ptr %22, align 8, !tbaa !5
  store double %535, ptr %536, align 8, !tbaa !15
  %537 = load double, ptr %44, align 8, !tbaa !15
  %538 = load ptr, ptr %20, align 8, !tbaa !5
  store double %537, ptr %538, align 8, !tbaa !15
  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 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 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
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"vec3d", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !11, i64 64}
!13 = !{!"basis_func", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80}
!14 = !{!"long", !7, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 8}
!17 = !{!13, !11, i64 72}
!18 = !{!10, !11, i64 16}
!19 = !{!13, !11, i64 80}
!20 = !{!14, !14, i64 0}
!21 = !{!13, !14, i64 24}
!22 = !{!13, !6, i64 32}
!23 = !{!13, !6, i64 40}
!24 = !{!13, !6, i64 48}
!25 = !{!13, !14, i64 0}
!26 = !{!13, !14, i64 8}
!27 = !{!13, !14, i64 16}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; 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 nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #0

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

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

; Function Attrs: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local void @basis_funcs_third_derivative(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef writeonly %7, ptr nocapture noundef writeonly %8, ptr nocapture noundef writeonly %9, ptr nocapture noundef writeonly %10) local_unnamed_addr #2 {
  %12 = load double, ptr %1, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  %14 = load double, ptr %13, align 8, !tbaa !10
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = load double, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  %18 = load double, ptr %17, align 8, !tbaa !15
  %19 = fsub double %16, %18
  %20 = fadd double %19, 0x3379B604AAACA626
  %21 = getelementptr inbounds i8, ptr %1, i64 16
  %22 = load double, ptr %21, align 8, !tbaa !16
  %23 = getelementptr inbounds i8, ptr %0, i64 80
  %24 = load double, ptr %23, align 8, !tbaa !17
  %25 = insertelement <2 x double> poison, double %12, i64 0
  %26 = insertelement <2 x double> %25, double %22, i64 1
  %27 = insertelement <2 x double> poison, double %14, i64 0
  %28 = insertelement <2 x double> %27, double %24, i64 1
  %29 = fsub <2 x double> %26, %28
  %30 = fadd <2 x double> %29, <double 0x3379B604AAACA626, double 0x3379B604AAACA626>
  %31 = extractelement <2 x double> %30, i64 0
  %32 = extractelement <2 x double> %30, i64 1
  %33 = fmul <2 x double> %30, %30
  %34 = extractelement <2 x double> %33, i64 0
  %35 = fmul <2 x double> %30, %33
  %36 = extractelement <2 x double> %35, i64 0
  %37 = extractelement <2 x double> %33, i64 1
  %38 = fmul <2 x double> %33, %33
  %39 = extractelement <2 x double> %38, i64 0
  %40 = shufflevector <2 x double> %33, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %41 = insertelement <2 x double> %40, double %20, i64 1
  %42 = fmul <2 x double> %41, %41
  %43 = extractelement <2 x double> %42, i64 1
  %44 = tail call double @llvm.fmuladd.f64(double %31, double %31, double %43)
  %45 = tail call double @llvm.fmuladd.f64(double %32, double %32, double %44)
  %46 = fmul double %20, %43
  %47 = fmul double %43, %43
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  %49 = load i64, ptr %48, align 8, !tbaa !18
  %.not = icmp eq i64 %49, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %11
  %50 = fmul double %32, %37
  %51 = getelementptr inbounds i8, ptr %0, i64 32
  %52 = getelementptr inbounds i8, ptr %0, i64 40
  %53 = getelementptr inbounds i8, ptr %0, i64 48
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = getelementptr inbounds i8, ptr %0, i64 16
  %56 = fmul double %31, %43
  %57 = shufflevector <2 x double> %30, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %58 = insertelement <2 x double> %57, double %20, i64 0
  %59 = fmul <2 x double> %33, %58
  %60 = insertelement <2 x double> %57, double %20, i64 1
  %61 = fmul <2 x double> %33, %60
  %62 = fmul double %43, %32
  %63 = insertelement <8 x double> poison, double %50, i64 0
  %64 = insertelement <8 x double> %63, double %62, i64 1
  %65 = shufflevector <2 x double> %61, <2 x double> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %66 = shufflevector <8 x double> %64, <8 x double> %65, <8 x i32> <i32 0, i32 1, i32 8, i32 9, i32 poison, i32 poison, i32 poison, i32 poison>
  %67 = shufflevector <2 x double> %59, <2 x double> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %68 = shufflevector <2 x double> %33, <2 x double> %42, <4 x i32> <i32 2, i32 3, i32 0, i32 1>
  %69 = shufflevector <2 x double> %33, <2 x double> %42, <2 x i32> <i32 1, i32 3>
  %70 = shufflevector <2 x double> %69, <2 x double> %33, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %71 = shufflevector <2 x double> %42, <2 x double> %33, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison>
  %72 = insertelement <8 x double> %71, double %47, i64 4
  %73 = shufflevector <8 x double> %72, <8 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 1, i32 2, i32 1>
  %74 = insertelement <8 x double> %66, double %46, i64 4
  %75 = shufflevector <8 x double> %74, <8 x double> %67, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 8, i32 9, i32 poison>
  %76 = insertelement <8 x double> %75, double %56, i64 7
  br label %86

._crit_edge:                                      ; preds = %86, %11
  %.0.lcssa = phi double [ 0.000000e+00, %11 ], [ %183, %86 ]
  %77 = phi <8 x double> [ zeroinitializer, %11 ], [ %210, %86 ]
  store double %.0.lcssa, ptr %2, align 8, !tbaa !19
  %78 = extractelement <8 x double> %77, i64 7
  store double %78, ptr %3, align 8, !tbaa !19
  %79 = extractelement <8 x double> %77, i64 6
  store double %79, ptr %4, align 8, !tbaa !19
  %80 = extractelement <8 x double> %77, i64 5
  store double %80, ptr %6, align 8, !tbaa !19
  %81 = extractelement <8 x double> %77, i64 4
  store double %81, ptr %5, align 8, !tbaa !19
  %82 = extractelement <8 x double> %77, i64 3
  store double %82, ptr %7, align 8, !tbaa !19
  %83 = extractelement <8 x double> %77, i64 2
  store double %83, ptr %9, align 8, !tbaa !19
  %84 = extractelement <8 x double> %77, i64 1
  store double %84, ptr %10, align 8, !tbaa !19
  %85 = extractelement <8 x double> %77, i64 0
  store double %85, ptr %8, align 8, !tbaa !19
  ret void

86:                                               ; preds = %.lr.ph, %86
  %.0207 = phi double [ 0.000000e+00, %.lr.ph ], [ %183, %86 ]
  %.0197198 = phi i64 [ 0, %.lr.ph ], [ %211, %86 ]
  %87 = phi <8 x double> [ zeroinitializer, %.lr.ph ], [ %210, %86 ]
  %88 = load ptr, ptr %51, align 8, !tbaa !20
  %89 = getelementptr inbounds double, ptr %88, i64 %.0197198
  %90 = load double, ptr %89, align 8, !tbaa !19
  %91 = load ptr, ptr %52, align 8, !tbaa !21
  %92 = getelementptr inbounds double, ptr %91, i64 %.0197198
  %93 = load double, ptr %92, align 8, !tbaa !19
  %94 = load ptr, ptr %53, align 8, !tbaa !22
  %95 = getelementptr inbounds double, ptr %94, i64 %.0197198
  %96 = load double, ptr %95, align 8, !tbaa !19
  %97 = fmul double %93, %96
  %98 = load i64, ptr %0, align 8, !tbaa !23
  %99 = uitofp i64 %98 to double
  %100 = tail call double @pow(double noundef %31, double noundef %99) #4
  %101 = fmul double %97, %100
  %102 = load i64, ptr %54, align 8, !tbaa !24
  %103 = uitofp i64 %102 to double
  %104 = tail call double @pow(double noundef %20, double noundef %103) #4
  %105 = fmul double %101, %104
  %106 = load i64, ptr %55, align 8, !tbaa !25
  %107 = uitofp i64 %106 to double
  %108 = tail call double @pow(double noundef %32, double noundef %107) #4
  %109 = fmul double %105, %108
  %110 = fneg double %90
  %111 = fmul double %45, %110
  %112 = tail call double @exp(double noundef %111) #4
  %113 = fmul double %109, %112
  %114 = fmul double %90, %90
  %115 = load i64, ptr %55, align 8, !tbaa !25
  %116 = mul i64 %115, %115
  %117 = mul i64 %116, %115
  %118 = uitofp i64 %117 to double
  %119 = mul i64 %116, 3
  %120 = uitofp i64 %119 to double
  %121 = fneg double %120
  %122 = shl i64 %115, 1
  %123 = uitofp i64 %122 to double
  %124 = load <2 x i64>, ptr %0, align 8, !tbaa !26
  %125 = extractelement <2 x i64> %124, i64 0
  %126 = mul i64 %125, %125
  %127 = mul i64 %126, %125
  %128 = uitofp i64 %127 to double
  %129 = mul i64 %126, 3
  %130 = uitofp i64 %129 to double
  %131 = fneg double %130
  %132 = shl i64 %125, 1
  %133 = uitofp i64 %132 to double
  %134 = extractelement <2 x i64> %124, i64 1
  %135 = mul i64 %134, %134
  %136 = mul i64 %135, %134
  %137 = uitofp i64 %136 to double
  %138 = mul i64 %135, 3
  %139 = uitofp i64 %138 to double
  %140 = fneg double %139
  %141 = shl i64 %134, 1
  %142 = uitofp i64 %141 to double
  %143 = uitofp i64 %126 to double
  %144 = uitofp <2 x i64> %124 to <2 x double>
  %145 = uitofp i64 %135 to double
  %146 = extractelement <2 x double> %144, i64 1
  %147 = fneg double %146
  %148 = uitofp i64 %116 to double
  %149 = uitofp i64 %115 to double
  %150 = insertelement <2 x double> %144, double %149, i64 1
  %151 = insertelement <2 x double> poison, double %114, i64 0
  %152 = insertelement <2 x double> %151, double %90, i64 1
  %153 = fmul <2 x double> %152, <double 6.000000e+00, double 4.000000e+00>
  %154 = shufflevector <2 x double> %153, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 1>
  %155 = extractelement <2 x double> %153, i64 0
  %156 = tail call double @llvm.fmuladd.f64(double %155, double %39, double 1.000000e+00)
  %157 = tail call double @llvm.fmuladd.f64(double %155, double %47, double 1.000000e+00)
  %158 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %154, <4 x double> %68, <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>)
  %159 = insertelement <4 x double> poison, double %123, i64 0
  %160 = insertelement <4 x double> %159, double %147, i64 1
  %161 = shufflevector <2 x double> %150, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %162 = fneg <4 x double> %161
  %163 = shufflevector <4 x double> %160, <4 x double> %162, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  %164 = fmul <2 x double> %152, <double -4.000000e+00, double 2.000000e+00>
  %165 = shufflevector <2 x double> %164, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 1>
  %166 = extractelement <2 x double> %164, i64 1
  %167 = tail call double @llvm.fmuladd.f64(double %166, double %34, double 1.000000e+00)
  %168 = tail call double @llvm.fmuladd.f64(double %166, double %34, double -3.000000e+00)
  %169 = extractelement <2 x double> %164, i64 0
  %170 = fmul double %168, %169
  %171 = tail call double @llvm.fmuladd.f64(double %166, double %43, double 1.000000e+00)
  %172 = tail call double @llvm.fmuladd.f64(double %166, double %43, double -3.000000e+00)
  %173 = fmul double %172, %169
  %174 = tail call double @llvm.fmuladd.f64(double %166, double %37, double 1.000000e+00)
  %175 = tail call double @llvm.fmuladd.f64(double %121, double %174, double %118)
  %176 = tail call double @llvm.fmuladd.f64(double %131, double %167, double %128)
  %177 = tail call double @llvm.fmuladd.f64(double %140, double %171, double %137)
  %178 = tail call double @llvm.fmuladd.f64(double %133, double %156, double %176)
  %179 = tail call double @llvm.fmuladd.f64(double %170, double %39, double %178)
  %180 = tail call double @llvm.fmuladd.f64(double %142, double %157, double %177)
  %181 = fmul double %113, %179
  %182 = fdiv double %181, %36
  %183 = fadd double %.0207, %182
  %184 = insertelement <4 x double> poison, double %175, i64 0
  %185 = insertelement <4 x double> %184, double %145, i64 1
  %186 = insertelement <4 x double> %185, double %143, i64 2
  %187 = insertelement <4 x double> %186, double %148, i64 3
  %188 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %163, <4 x double> %158, <4 x double> %187)
  %189 = shufflevector <2 x double> %164, <2 x double> poison, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
  %190 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %189, <4 x double> %70, <4 x double> <double -3.000000e+00, double -1.000000e+00, double -1.000000e+00, double -1.000000e+00>)
  %191 = fmul <4 x double> %190, %165
  %192 = fneg double %166
  %193 = tail call double @llvm.fmuladd.f64(double %192, double %37, double %149)
  %194 = shufflevector <4 x double> %191, <4 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison>
  %195 = insertelement <8 x double> %194, double %173, i64 4
  %196 = insertelement <8 x double> %195, double %192, i64 5
  %197 = shufflevector <8 x double> %196, <8 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 5, i32 1>
  %198 = shufflevector <4 x double> %188, <4 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison>
  %199 = insertelement <8 x double> %198, double %180, i64 4
  %200 = shufflevector <2 x double> %144, <2 x double> poison, <8 x i32> <i32 1, i32 0, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %201 = shufflevector <8 x double> %199, <8 x double> %200, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 8, i32 9, i32 poison>
  %202 = shufflevector <8 x double> %201, <8 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 1>
  %203 = tail call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %197, <8 x double> %73, <8 x double> %202)
  %204 = shufflevector <8 x double> %203, <8 x double> poison, <8 x i32> <i32 poison, i32 poison, i32 poison, i32 5, i32 poison, i32 2, i32 3, i32 6>
  %205 = insertelement <8 x double> %204, double %113, i64 0
  %206 = insertelement <8 x double> %205, double %193, i64 1
  %207 = shufflevector <8 x double> %206, <8 x double> poison, <8 x i32> <i32 0, i32 1, i32 1, i32 3, i32 0, i32 5, i32 6, i32 7>
  %208 = fmul <8 x double> %207, %203
  %209 = fdiv <8 x double> %208, %76
  %210 = fadd <8 x double> %87, %209
  %211 = add nuw i64 %.0197198, 1
  %212 = load i64, ptr %48, align 8, !tbaa !18
  %213 = icmp ult i64 %211, %212
  br i1 %213, label %86, label %._crit_edge, !llvm.loop !27
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x double> @llvm.fmuladd.v8f64(<8 x double>, <8 x double>, <8 x double>) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x double> @llvm.fmuladd.v4f64(<4 x double>, <4 x double>, <4 x double>) #3

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nofree nounwind memory(readwrite, inaccessiblemem: 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 #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, !7, i64 0}
!6 = !{!"vec3d", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 64}
!11 = !{!"basis_func", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !7, i64 8}
!15 = !{!11, !7, i64 72}
!16 = !{!6, !7, i64 16}
!17 = !{!11, !7, i64 80}
!18 = !{!11, !12, i64 24}
!19 = !{!7, !7, i64 0}
!20 = !{!11, !13, i64 32}
!21 = !{!11, !13, i64 40}
!22 = !{!11, !13, i64 48}
!23 = !{!11, !12, i64 0}
!24 = !{!11, !12, i64 8}
!25 = !{!11, !12, i64 16}
!26 = !{!12, !12, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass