; LLVM IR from emathew1/3DCompactSolver :: Utils.ll (Z19linearInterpolationP6DomainPdS1_)

; 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"

%class.Domain = type { i32, i32, i32, i32, ptr, ptr, ptr, double, double, double, double, double, double }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16getBaseNodeIndexP6DomainPdRA3_i(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z19linearInterpolationP6DomainPdS1_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [3 x i32], align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %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 double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.Domain, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = sitofp i32 %47 to double
  store double %48, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.Domain, ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !14
  %52 = sitofp i32 %51 to double
  store double %52, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %class.Domain, ptr %53, i32 0, i32 2
  %55 = load i32, ptr %54, align 8, !tbaa !15
  %56 = sitofp i32 %55 to double
  store double %56, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #3
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_Z16getBaseNodeIndexP6DomainPdRA3_i(ptr noundef %57, ptr noundef %58, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.Domain, ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %63 = load i32, ptr %62, align 4, !tbaa !17
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %61, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !13
  store double %66, ptr %36, align 8, !tbaa !13
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.Domain, ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %71 = load i32, ptr %70, align 4, !tbaa !17
  %72 = add nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %69, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !13
  store double %75, ptr %37, align 8, !tbaa !13
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %class.Domain, ptr %76, i32 0, i32 5
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %80 = load i32, ptr %79, align 4, !tbaa !17
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %78, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !13
  store double %83, ptr %38, align 8, !tbaa !13
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %class.Domain, ptr %84, i32 0, i32 5
  %86 = load ptr, ptr %85, align 8, !tbaa !18
  %87 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %88 = load i32, ptr %87, align 4, !tbaa !17
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %86, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !13
  store double %92, ptr %39, align 8, !tbaa !13
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %class.Domain, ptr %93, i32 0, i32 6
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %96 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %97 = load i32, ptr %96, align 4, !tbaa !17
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %95, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !13
  store double %100, ptr %40, align 8, !tbaa !13
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %class.Domain, ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  %104 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %105 = load i32, ptr %104, align 4, !tbaa !17
  %106 = add nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %103, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !13
  store double %109, ptr %41, align 8, !tbaa !13
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds double, ptr %110, i64 0
  %112 = load double, ptr %111, align 8, !tbaa !13
  %113 = load double, ptr %36, align 8, !tbaa !13
  %114 = fsub double %112, %113
  %115 = load double, ptr %37, align 8, !tbaa !13
  %116 = load double, ptr %36, align 8, !tbaa !13
  %117 = fsub double %115, %116
  %118 = fdiv double %114, %117
  store double %118, ptr %42, align 8, !tbaa !13
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds double, ptr %119, i64 1
  %121 = load double, ptr %120, align 8, !tbaa !13
  %122 = load double, ptr %38, align 8, !tbaa !13
  %123 = fsub double %121, %122
  %124 = load double, ptr %39, align 8, !tbaa !13
  %125 = load double, ptr %38, align 8, !tbaa !13
  %126 = fsub double %124, %125
  %127 = fdiv double %123, %126
  store double %127, ptr %43, align 8, !tbaa !13
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds double, ptr %128, i64 2
  %130 = load double, ptr %129, align 8, !tbaa !13
  %131 = load double, ptr %40, align 8, !tbaa !13
  %132 = fsub double %130, %131
  %133 = load double, ptr %41, align 8, !tbaa !13
  %134 = load double, ptr %40, align 8, !tbaa !13
  %135 = fsub double %133, %134
  %136 = fdiv double %132, %135
  store double %136, ptr %44, align 8, !tbaa !13
  %137 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %138 = load i32, ptr %137, align 4, !tbaa !17
  store i32 %138, ptr %33, align 4, !tbaa !17
  %139 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %140 = load i32, ptr %139, align 4, !tbaa !17
  store i32 %140, ptr %34, align 4, !tbaa !17
  %141 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %142 = load i32, ptr %141, align 4, !tbaa !17
  store i32 %142, ptr %35, align 4, !tbaa !17
  %143 = load i32, ptr %35, align 4, !tbaa !17
  %144 = sitofp i32 %143 to double
  %145 = load double, ptr %8, align 8, !tbaa !13
  %146 = fmul double %144, %145
  %147 = load double, ptr %9, align 8, !tbaa !13
  %148 = load i32, ptr %34, align 4, !tbaa !17
  %149 = sitofp i32 %148 to double
  %150 = load double, ptr %8, align 8, !tbaa !13
  %151 = fmul double %149, %150
  %152 = call double @llvm.fmuladd.f64(double %146, double %147, double %151)
  %153 = load i32, ptr %33, align 4, !tbaa !17
  %154 = sitofp i32 %153 to double
  %155 = fadd double %152, %154
  %156 = fptosi double %155 to i32
  store i32 %156, ptr %25, align 4, !tbaa !17
  %157 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %158 = load i32, ptr %157, align 4, !tbaa !17
  store i32 %158, ptr %33, align 4, !tbaa !17
  %159 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %160 = load i32, ptr %159, align 4, !tbaa !17
  store i32 %160, ptr %34, align 4, !tbaa !17
  %161 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %162 = load i32, ptr %161, align 4, !tbaa !17
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %35, align 4, !tbaa !17
  %164 = load i32, ptr %35, align 4, !tbaa !17
  %165 = sitofp i32 %164 to double
  %166 = load double, ptr %8, align 8, !tbaa !13
  %167 = fmul double %165, %166
  %168 = load double, ptr %9, align 8, !tbaa !13
  %169 = load i32, ptr %34, align 4, !tbaa !17
  %170 = sitofp i32 %169 to double
  %171 = load double, ptr %8, align 8, !tbaa !13
  %172 = fmul double %170, %171
  %173 = call double @llvm.fmuladd.f64(double %167, double %168, double %172)
  %174 = load i32, ptr %33, align 4, !tbaa !17
  %175 = sitofp i32 %174 to double
  %176 = fadd double %173, %175
  %177 = fptosi double %176 to i32
  store i32 %177, ptr %26, align 4, !tbaa !17
  %178 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %179 = load i32, ptr %178, align 4, !tbaa !17
  store i32 %179, ptr %33, align 4, !tbaa !17
  %180 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %181 = load i32, ptr %180, align 4, !tbaa !17
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %34, align 4, !tbaa !17
  %183 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %184 = load i32, ptr %183, align 4, !tbaa !17
  store i32 %184, ptr %35, align 4, !tbaa !17
  %185 = load i32, ptr %35, align 4, !tbaa !17
  %186 = sitofp i32 %185 to double
  %187 = load double, ptr %8, align 8, !tbaa !13
  %188 = fmul double %186, %187
  %189 = load double, ptr %9, align 8, !tbaa !13
  %190 = load i32, ptr %34, align 4, !tbaa !17
  %191 = sitofp i32 %190 to double
  %192 = load double, ptr %8, align 8, !tbaa !13
  %193 = fmul double %191, %192
  %194 = call double @llvm.fmuladd.f64(double %188, double %189, double %193)
  %195 = load i32, ptr %33, align 4, !tbaa !17
  %196 = sitofp i32 %195 to double
  %197 = fadd double %194, %196
  %198 = fptosi double %197 to i32
  store i32 %198, ptr %27, align 4, !tbaa !17
  %199 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %200 = load i32, ptr %199, align 4, !tbaa !17
  store i32 %200, ptr %33, align 4, !tbaa !17
  %201 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %202 = load i32, ptr %201, align 4, !tbaa !17
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %34, align 4, !tbaa !17
  %204 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %205 = load i32, ptr %204, align 4, !tbaa !17
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %35, align 4, !tbaa !17
  %207 = load i32, ptr %35, align 4, !tbaa !17
  %208 = sitofp i32 %207 to double
  %209 = load double, ptr %8, align 8, !tbaa !13
  %210 = fmul double %208, %209
  %211 = load double, ptr %9, align 8, !tbaa !13
  %212 = load i32, ptr %34, align 4, !tbaa !17
  %213 = sitofp i32 %212 to double
  %214 = load double, ptr %8, align 8, !tbaa !13
  %215 = fmul double %213, %214
  %216 = call double @llvm.fmuladd.f64(double %210, double %211, double %215)
  %217 = load i32, ptr %33, align 4, !tbaa !17
  %218 = sitofp i32 %217 to double
  %219 = fadd double %216, %218
  %220 = fptosi double %219 to i32
  store i32 %220, ptr %28, align 4, !tbaa !17
  %221 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %222 = load i32, ptr %221, align 4, !tbaa !17
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %33, align 4, !tbaa !17
  %224 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %225 = load i32, ptr %224, align 4, !tbaa !17
  store i32 %225, ptr %34, align 4, !tbaa !17
  %226 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %227 = load i32, ptr %226, align 4, !tbaa !17
  store i32 %227, ptr %35, align 4, !tbaa !17
  %228 = load i32, ptr %35, align 4, !tbaa !17
  %229 = sitofp i32 %228 to double
  %230 = load double, ptr %8, align 8, !tbaa !13
  %231 = fmul double %229, %230
  %232 = load double, ptr %9, align 8, !tbaa !13
  %233 = load i32, ptr %34, align 4, !tbaa !17
  %234 = sitofp i32 %233 to double
  %235 = load double, ptr %8, align 8, !tbaa !13
  %236 = fmul double %234, %235
  %237 = call double @llvm.fmuladd.f64(double %231, double %232, double %236)
  %238 = load i32, ptr %33, align 4, !tbaa !17
  %239 = sitofp i32 %238 to double
  %240 = fadd double %237, %239
  %241 = fptosi double %240 to i32
  store i32 %241, ptr %29, align 4, !tbaa !17
  %242 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %243 = load i32, ptr %242, align 4, !tbaa !17
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %33, align 4, !tbaa !17
  %245 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %246 = load i32, ptr %245, align 4, !tbaa !17
  store i32 %246, ptr %34, align 4, !tbaa !17
  %247 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %248 = load i32, ptr %247, align 4, !tbaa !17
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %35, align 4, !tbaa !17
  %250 = load i32, ptr %35, align 4, !tbaa !17
  %251 = sitofp i32 %250 to double
  %252 = load double, ptr %8, align 8, !tbaa !13
  %253 = fmul double %251, %252
  %254 = load double, ptr %9, align 8, !tbaa !13
  %255 = load i32, ptr %34, align 4, !tbaa !17
  %256 = sitofp i32 %255 to double
  %257 = load double, ptr %8, align 8, !tbaa !13
  %258 = fmul double %256, %257
  %259 = call double @llvm.fmuladd.f64(double %253, double %254, double %258)
  %260 = load i32, ptr %33, align 4, !tbaa !17
  %261 = sitofp i32 %260 to double
  %262 = fadd double %259, %261
  %263 = fptosi double %262 to i32
  store i32 %263, ptr %30, align 4, !tbaa !17
  %264 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %265 = load i32, ptr %264, align 4, !tbaa !17
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %33, align 4, !tbaa !17
  %267 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %268 = load i32, ptr %267, align 4, !tbaa !17
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %34, align 4, !tbaa !17
  %270 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %271 = load i32, ptr %270, align 4, !tbaa !17
  store i32 %271, ptr %35, align 4, !tbaa !17
  %272 = load i32, ptr %35, align 4, !tbaa !17
  %273 = sitofp i32 %272 to double
  %274 = load double, ptr %8, align 8, !tbaa !13
  %275 = fmul double %273, %274
  %276 = load double, ptr %9, align 8, !tbaa !13
  %277 = load i32, ptr %34, align 4, !tbaa !17
  %278 = sitofp i32 %277 to double
  %279 = load double, ptr %8, align 8, !tbaa !13
  %280 = fmul double %278, %279
  %281 = call double @llvm.fmuladd.f64(double %275, double %276, double %280)
  %282 = load i32, ptr %33, align 4, !tbaa !17
  %283 = sitofp i32 %282 to double
  %284 = fadd double %281, %283
  %285 = fptosi double %284 to i32
  store i32 %285, ptr %31, align 4, !tbaa !17
  %286 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
  %287 = load i32, ptr %286, align 4, !tbaa !17
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %33, align 4, !tbaa !17
  %289 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
  %290 = load i32, ptr %289, align 4, !tbaa !17
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %34, align 4, !tbaa !17
  %292 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
  %293 = load i32, ptr %292, align 4, !tbaa !17
  %294 = add nsw i32 %293, 1
  store i32 %294, ptr %35, align 4, !tbaa !17
  %295 = load i32, ptr %35, align 4, !tbaa !17
  %296 = sitofp i32 %295 to double
  %297 = load double, ptr %8, align 8, !tbaa !13
  %298 = fmul double %296, %297
  %299 = load double, ptr %9, align 8, !tbaa !13
  %300 = load i32, ptr %34, align 4, !tbaa !17
  %301 = sitofp i32 %300 to double
  %302 = load double, ptr %8, align 8, !tbaa !13
  %303 = fmul double %301, %302
  %304 = call double @llvm.fmuladd.f64(double %298, double %299, double %303)
  %305 = load i32, ptr %33, align 4, !tbaa !17
  %306 = sitofp i32 %305 to double
  %307 = fadd double %304, %306
  %308 = fptosi double %307 to i32
  store i32 %308, ptr %32, align 4, !tbaa !17
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  %310 = load i32, ptr %25, align 4, !tbaa !17
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds double, ptr %309, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !13
  store double %313, ptr %11, align 8, !tbaa !13
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = load i32, ptr %26, align 4, !tbaa !17
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds double, ptr %314, i64 %316
  %318 = load double, ptr %317, align 8, !tbaa !13
  store double %318, ptr %12, align 8, !tbaa !13
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = load i32, ptr %27, align 4, !tbaa !17
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds double, ptr %319, i64 %321
  %323 = load double, ptr %322, align 8, !tbaa !13
  store double %323, ptr %13, align 8, !tbaa !13
  %324 = load ptr, ptr %5, align 8, !tbaa !5
  %325 = load i32, ptr %28, align 4, !tbaa !17
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds double, ptr %324, i64 %326
  %328 = load double, ptr %327, align 8, !tbaa !13
  store double %328, ptr %14, align 8, !tbaa !13
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = load i32, ptr %29, align 4, !tbaa !17
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds double, ptr %329, i64 %331
  %333 = load double, ptr %332, align 8, !tbaa !13
  store double %333, ptr %15, align 8, !tbaa !13
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = load i32, ptr %30, align 4, !tbaa !17
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds double, ptr %334, i64 %336
  %338 = load double, ptr %337, align 8, !tbaa !13
  store double %338, ptr %16, align 8, !tbaa !13
  %339 = load ptr, ptr %5, align 8, !tbaa !5
  %340 = load i32, ptr %31, align 4, !tbaa !17
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds double, ptr %339, i64 %341
  %343 = load double, ptr %342, align 8, !tbaa !13
  store double %343, ptr %17, align 8, !tbaa !13
  %344 = load ptr, ptr %5, align 8, !tbaa !5
  %345 = load i32, ptr %32, align 4, !tbaa !17
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds double, ptr %344, i64 %346
  %348 = load double, ptr %347, align 8, !tbaa !13
  store double %348, ptr %18, align 8, !tbaa !13
  %349 = load double, ptr %11, align 8, !tbaa !13
  %350 = load double, ptr %42, align 8, !tbaa !13
  %351 = fsub double 1.000000e+00, %350
  %352 = load double, ptr %15, align 8, !tbaa !13
  %353 = load double, ptr %42, align 8, !tbaa !13
  %354 = fmul double %352, %353
  %355 = call double @llvm.fmuladd.f64(double %349, double %351, double %354)
  store double %355, ptr %19, align 8, !tbaa !13
  %356 = load double, ptr %12, align 8, !tbaa !13
  %357 = load double, ptr %42, align 8, !tbaa !13
  %358 = fsub double 1.000000e+00, %357
  %359 = load double, ptr %16, align 8, !tbaa !13
  %360 = load double, ptr %42, align 8, !tbaa !13
  %361 = fmul double %359, %360
  %362 = call double @llvm.fmuladd.f64(double %356, double %358, double %361)
  store double %362, ptr %20, align 8, !tbaa !13
  %363 = load double, ptr %13, align 8, !tbaa !13
  %364 = load double, ptr %42, align 8, !tbaa !13
  %365 = fsub double 1.000000e+00, %364
  %366 = load double, ptr %17, align 8, !tbaa !13
  %367 = load double, ptr %42, align 8, !tbaa !13
  %368 = fmul double %366, %367
  %369 = call double @llvm.fmuladd.f64(double %363, double %365, double %368)
  store double %369, ptr %21, align 8, !tbaa !13
  %370 = load double, ptr %14, align 8, !tbaa !13
  %371 = load double, ptr %42, align 8, !tbaa !13
  %372 = fsub double 1.000000e+00, %371
  %373 = load double, ptr %18, align 8, !tbaa !13
  %374 = load double, ptr %42, align 8, !tbaa !13
  %375 = fmul double %373, %374
  %376 = call double @llvm.fmuladd.f64(double %370, double %372, double %375)
  store double %376, ptr %22, align 8, !tbaa !13
  %377 = load double, ptr %19, align 8, !tbaa !13
  %378 = load double, ptr %43, align 8, !tbaa !13
  %379 = fsub double 1.000000e+00, %378
  %380 = load double, ptr %21, align 8, !tbaa !13
  %381 = load double, ptr %43, align 8, !tbaa !13
  %382 = fmul double %380, %381
  %383 = call double @llvm.fmuladd.f64(double %377, double %379, double %382)
  store double %383, ptr %23, align 8, !tbaa !13
  %384 = load double, ptr %20, align 8, !tbaa !13
  %385 = load double, ptr %43, align 8, !tbaa !13
  %386 = fsub double 1.000000e+00, %385
  %387 = load double, ptr %22, align 8, !tbaa !13
  %388 = load double, ptr %43, align 8, !tbaa !13
  %389 = fmul double %387, %388
  %390 = call double @llvm.fmuladd.f64(double %384, double %386, double %389)
  store double %390, ptr %24, align 8, !tbaa !13
  %391 = load double, ptr %23, align 8, !tbaa !13
  %392 = load double, ptr %44, align 8, !tbaa !13
  %393 = fsub double 1.000000e+00, %392
  %394 = load double, ptr %24, align 8, !tbaa !13
  %395 = load double, ptr %44, align 8, !tbaa !13
  %396 = fmul double %394, %395
  %397 = call double @llvm.fmuladd.f64(double %391, double %393, double %396)
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #3
  ret double %397
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS6Domain", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !11, i64 8}
!16 = !{!10, !6, i64 16}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !6, i64 24}
!19 = !{!10, !6, i64 32}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16getBaseNodeIndexP6DomainPdRA3_i(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z19linearInterpolationP6DomainPdS1_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca [3 x i32], align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #4
  %5 = load i32, ptr %0, align 8, !tbaa !5
  %6 = sitofp i32 %5 to double
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !12
  %9 = sitofp i32 %8 to double
  call void @_Z16getBaseNodeIndexP6DomainPdRA3_i(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = load i32, ptr %4, align 4, !tbaa !14
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds double, ptr %11, i64 %13
  %15 = load double, ptr %14, align 8, !tbaa !15
  %16 = add nsw i32 %12, 1
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds double, ptr %11, i64 %17
  %19 = load double, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %4, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !14
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %21, i64 %24
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = add nsw i32 %23, 1
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds double, ptr %21, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %4, i64 8
  %34 = load i32, ptr %33, align 4, !tbaa !14
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %32, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !15
  %38 = add nsw i32 %34, 1
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %32, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !15
  %42 = load double, ptr %2, align 8, !tbaa !15
  %43 = fsub double %42, %15
  %44 = fsub double %19, %15
  %45 = fdiv double %43, %44
  %46 = getelementptr inbounds i8, ptr %2, i64 8
  %47 = load double, ptr %46, align 8, !tbaa !15
  %48 = fsub double %47, %26
  %49 = fsub double %30, %26
  %50 = fdiv double %48, %49
  %51 = getelementptr inbounds i8, ptr %2, i64 16
  %52 = load double, ptr %51, align 8, !tbaa !15
  %53 = fsub double %52, %37
  %54 = fsub double %41, %37
  %55 = fdiv double %53, %54
  %56 = sitofp i32 %12 to double
  %57 = sitofp i32 %16 to double
  %58 = insertelement <2 x i32> poison, i32 %34, i64 0
  %59 = insertelement <2 x i32> %58, i32 %38, i64 1
  %60 = sitofp <2 x i32> %59 to <2 x double>
  %61 = insertelement <2 x double> poison, double %6, i64 0
  %62 = shufflevector <2 x double> %61, <2 x double> poison, <2 x i32> zeroinitializer
  %63 = fmul <2 x double> %62, %60
  %64 = shufflevector <2 x double> %63, <2 x double> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
  %65 = insertelement <2 x i32> poison, i32 %23, i64 0
  %66 = insertelement <2 x i32> %65, i32 %27, i64 1
  %67 = sitofp <2 x i32> %66 to <2 x double>
  %68 = fmul <2 x double> %62, %67
  %69 = shufflevector <2 x double> %68, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %70 = insertelement <4 x double> poison, double %9, i64 0
  %71 = shufflevector <4 x double> %70, <4 x double> poison, <4 x i32> zeroinitializer
  %72 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %64, <4 x double> %71, <4 x double> %69)
  %73 = insertelement <4 x double> poison, double %56, i64 0
  %74 = shufflevector <4 x double> %73, <4 x double> poison, <4 x i32> zeroinitializer
  %75 = fadd <4 x double> %72, %74
  %76 = fptosi <4 x double> %75 to <4 x i32>
  %77 = extractelement <4 x i32> %76, i64 0
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %1, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !15
  %81 = extractelement <4 x i32> %76, i64 2
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %1, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !15
  %85 = extractelement <4 x i32> %76, i64 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %1, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !15
  %89 = extractelement <4 x i32> %76, i64 3
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %1, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !15
  %93 = insertelement <4 x double> poison, double %57, i64 0
  %94 = shufflevector <4 x double> %93, <4 x double> poison, <4 x i32> zeroinitializer
  %95 = fadd <4 x double> %72, %94
  %96 = fptosi <4 x double> %95 to <4 x i32>
  %97 = extractelement <4 x i32> %96, i64 0
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %1, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !15
  %101 = extractelement <4 x i32> %96, i64 2
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %1, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !15
  %105 = extractelement <4 x i32> %96, i64 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %1, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !15
  %109 = extractelement <4 x i32> %96, i64 3
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %1, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !15
  %113 = fsub double 1.000000e+00, %45
  %114 = fmul double %45, %100
  %115 = call double @llvm.fmuladd.f64(double %80, double %113, double %114)
  %116 = fmul double %45, %104
  %117 = call double @llvm.fmuladd.f64(double %84, double %113, double %116)
  %118 = fmul double %45, %108
  %119 = call double @llvm.fmuladd.f64(double %88, double %113, double %118)
  %120 = fmul double %45, %112
  %121 = call double @llvm.fmuladd.f64(double %92, double %113, double %120)
  %122 = fsub double 1.000000e+00, %50
  %123 = fmul double %50, %119
  %124 = call double @llvm.fmuladd.f64(double %115, double %122, double %123)
  %125 = fmul double %50, %121
  %126 = call double @llvm.fmuladd.f64(double %117, double %122, double %125)
  %127 = fsub double 1.000000e+00, %55
  %128 = fmul double %55, %126
  %129 = call double @llvm.fmuladd.f64(double %124, double %127, double %128)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  ret double %129
}

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress 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 = !{!"_ZTS6Domain", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !10, i64 16}
!14 = !{!7, !7, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!6, !10, i64 24}
!17 = !{!6, !10, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass