; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (hyperspherical)

; 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.HypersphericalInterpolationStructure = type { i32, double, double, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr }

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: nounwind uwtable
declare dso_local i32 @ClosedModY(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

113:                                              ; preds = %367, %7
  %114 = load i32, ptr %41, align 4, !tbaa !9
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %370

117:                                              ; preds = %113
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load i32, ptr %41, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %118, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !14
  store double %122, ptr %19, align 8, !tbaa !14
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.HypersphericalInterpolationStructure, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !17
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %135

127:                                              ; preds = %117
  %128 = load i32, ptr %15, align 4, !tbaa !9
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.HypersphericalInterpolationStructure, ptr %129, i32 0, i32 1
  %131 = load double, ptr %130, align 8, !tbaa !18
  %132 = fadd double %131, 2.000000e-01
  %133 = fptosi double %132 to i32
  %134 = call i32 @ClosedModY(i32 noundef %128, i32 noundef %133, ptr noundef %19, ptr noundef %46, ptr noundef %47)
  br label %135

135:                                              ; preds = %127, %117
  %136 = load double, ptr %19, align 8, !tbaa !14
  %137 = load double, ptr %35, align 8, !tbaa !14
  %138 = fcmp olt double %136, %137
  br i1 %138, label %143, label %139

139:                                              ; preds = %135
  %140 = load double, ptr %19, align 8, !tbaa !14
  %141 = load double, ptr %36, align 8, !tbaa !14
  %142 = fcmp ogt double %140, %141
  br i1 %142, label %143, label %152

143:                                              ; preds = %139, %135
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = load i32, ptr %41, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  store double 0.000000e+00, ptr %147, align 8, !tbaa !14
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = load i32, ptr %41, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %148, i64 %150
  store double 0.000000e+00, ptr %151, align 8, !tbaa !14
  br label %367

152:                                              ; preds = %139
  %153 = load double, ptr %19, align 8, !tbaa !14
  %154 = load double, ptr %39, align 8, !tbaa !14
  %155 = fcmp ogt double %153, %154
  br i1 %155, label %160, label %156

156:                                              ; preds = %152
  %157 = load double, ptr %19, align 8, !tbaa !14
  %158 = load double, ptr %38, align 8, !tbaa !14
  %159 = fcmp olt double %157, %158
  br i1 %159, label %160, label %318

160:                                              ; preds = %156, %152
  %161 = load double, ptr %19, align 8, !tbaa !14
  %162 = load double, ptr %40, align 8, !tbaa !14
  %163 = fcmp ogt double %161, %162
  br i1 %163, label %168, label %164

164:                                              ; preds = %160
  %165 = load double, ptr %19, align 8, !tbaa !14
  %166 = load double, ptr %38, align 8, !tbaa !14
  %167 = fcmp olt double %165, %166
  br i1 %167, label %168, label %206

168:                                              ; preds = %164, %160
  %169 = load double, ptr %19, align 8, !tbaa !14
  %170 = load double, ptr %35, align 8, !tbaa !14
  %171 = fsub double %169, %170
  %172 = load double, ptr %37, align 8, !tbaa !14
  %173 = fdiv double %171, %172
  %174 = fptosi double %173 to i32
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %43, align 4, !tbaa !9
  %176 = load i32, ptr %43, align 4, !tbaa !9
  %177 = icmp slt i32 1, %176
  br i1 %177, label %178, label %180

178:                                              ; preds = %168
  %179 = load i32, ptr %43, align 4, !tbaa !9
  br label %181

180:                                              ; preds = %168
  br label %181

181:                                              ; preds = %180, %178
  %182 = phi i32 [ %179, %178 ], [ 1, %180 ]
  store i32 %182, ptr %43, align 4, !tbaa !9
  %183 = load i32, ptr %42, align 4, !tbaa !9
  %184 = sub nsw i32 %183, 1
  %185 = load i32, ptr %43, align 4, !tbaa !9
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %187, label %190

187:                                              ; preds = %181
  %188 = load i32, ptr %42, align 4, !tbaa !9
  %189 = sub nsw i32 %188, 1
  br label %192

190:                                              ; preds = %181
  %191 = load i32, ptr %43, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %190, %187
  %193 = phi i32 [ %189, %187 ], [ %191, %190 ]
  store i32 %193, ptr %43, align 4, !tbaa !9
  %194 = load ptr, ptr %44, align 8, !tbaa !5
  %195 = load i32, ptr %43, align 4, !tbaa !9
  %196 = sub nsw i32 %195, 1
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %194, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !14
  store double %199, ptr %16, align 8, !tbaa !14
  %200 = load ptr, ptr %45, align 8, !tbaa !5
  %201 = load i32, ptr %43, align 4, !tbaa !9
  %202 = sub nsw i32 %201, 1
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds double, ptr %200, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !14
  store double %205, ptr %23, align 8, !tbaa !14
  br label %211

206:                                              ; preds = %164
  %207 = load i32, ptr %43, align 4, !tbaa !9
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %43, align 4, !tbaa !9
  %209 = load double, ptr %17, align 8, !tbaa !14
  store double %209, ptr %16, align 8, !tbaa !14
  %210 = load double, ptr %18, align 8, !tbaa !14
  store double %210, ptr %23, align 8, !tbaa !14
  br label %211

211:                                              ; preds = %206, %192
  %212 = load ptr, ptr %34, align 8, !tbaa !5
  %213 = load i32, ptr %43, align 4, !tbaa !9
  %214 = sub nsw i32 %213, 1
  %215 = icmp slt i32 0, %214
  br i1 %215, label %216, label %219

216:                                              ; preds = %211
  %217 = load i32, ptr %43, align 4, !tbaa !9
  %218 = sub nsw i32 %217, 1
  br label %220

219:                                              ; preds = %211
  br label %220

220:                                              ; preds = %219, %216
  %221 = phi i32 [ %218, %216 ], [ 0, %219 ]
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds double, ptr %212, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !14
  store double %224, ptr %38, align 8, !tbaa !14
  %225 = load ptr, ptr %34, align 8, !tbaa !5
  %226 = load i32, ptr %43, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds double, ptr %225, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !14
  store double %229, ptr %39, align 8, !tbaa !14
  %230 = load ptr, ptr %34, align 8, !tbaa !5
  %231 = load i32, ptr %42, align 4, !tbaa !9
  %232 = sub nsw i32 %231, 1
  %233 = load i32, ptr %43, align 4, !tbaa !9
  %234 = add nsw i32 %233, 1
  %235 = icmp slt i32 %232, %234
  br i1 %235, label %236, label %239

236:                                              ; preds = %220
  %237 = load i32, ptr %42, align 4, !tbaa !9
  %238 = sub nsw i32 %237, 1
  br label %242

239:                                              ; preds = %220
  %240 = load i32, ptr %43, align 4, !tbaa !9
  %241 = add nsw i32 %240, 1
  br label %242

242:                                              ; preds = %239, %236
  %243 = phi i32 [ %238, %236 ], [ %241, %239 ]
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %230, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !14
  store double %246, ptr %40, align 8, !tbaa !14
  %247 = load ptr, ptr %44, align 8, !tbaa !5
  %248 = load i32, ptr %43, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds double, ptr %247, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !14
  store double %251, ptr %17, align 8, !tbaa !14
  %252 = load ptr, ptr %45, align 8, !tbaa !5
  %253 = load i32, ptr %43, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds double, ptr %252, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !14
  store double %256, ptr %18, align 8, !tbaa !14
  %257 = load ptr, ptr %29, align 8, !tbaa !5
  %258 = load i32, ptr %43, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !14
  store double %261, ptr %25, align 8, !tbaa !14
  %262 = load ptr, ptr %28, align 8, !tbaa !5
  %263 = load i32, ptr %43, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds double, ptr %262, i64 %264
  %266 = load double, ptr %265, align 8, !tbaa !14
  store double %266, ptr %26, align 8, !tbaa !14
  %267 = load double, ptr %26, align 8, !tbaa !14
  %268 = load double, ptr %26, align 8, !tbaa !14
  %269 = fmul double %267, %268
  store double %269, ptr %27, align 8, !tbaa !14
  %270 = load double, ptr %18, align 8, !tbaa !14
  %271 = fmul double -2.000000e+00, %270
  %272 = load double, ptr %25, align 8, !tbaa !14
  %273 = load double, ptr %17, align 8, !tbaa !14
  %274 = load double, ptr %31, align 8, !tbaa !14
  %275 = load double, ptr %27, align 8, !tbaa !14
  %276 = fdiv double %274, %275
  %277 = load double, ptr %33, align 8, !tbaa !14
  %278 = fsub double %276, %277
  %279 = load i32, ptr %30, align 4, !tbaa !9
  %280 = sitofp i32 %279 to double
  %281 = fadd double %278, %280
  %282 = fmul double %273, %281
  %283 = call double @llvm.fmuladd.f64(double %271, double %272, double %282)
  store double %283, ptr %24, align 8, !tbaa !14
  %284 = load double, ptr %18, align 8, !tbaa !14
  %285 = fneg double %284
  %286 = load double, ptr %37, align 8, !tbaa !14
  %287 = load double, ptr %16, align 8, !tbaa !14
  %288 = fmul double 2.000000e+00, %287
  %289 = fneg double %288
  %290 = call double @llvm.fmuladd.f64(double %285, double %286, double %289)
  %291 = load double, ptr %17, align 8, !tbaa !14
  %292 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %291, double %290)
  %293 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  store double %292, ptr %293, align 16, !tbaa !14
  %294 = load double, ptr %18, align 8, !tbaa !14
  %295 = load double, ptr %37, align 8, !tbaa !14
  %296 = load double, ptr %16, align 8, !tbaa !14
  %297 = call double @llvm.fmuladd.f64(double %294, double %295, double %296)
  %298 = load double, ptr %17, align 8, !tbaa !14
  %299 = fsub double %297, %298
  %300 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
  store double %299, ptr %300, align 8, !tbaa !14
  %301 = load double, ptr %24, align 8, !tbaa !14
  %302 = fneg double %301
  %303 = load double, ptr %37, align 8, !tbaa !14
  %304 = load double, ptr %23, align 8, !tbaa !14
  %305 = fmul double 2.000000e+00, %304
  %306 = fneg double %305
  %307 = call double @llvm.fmuladd.f64(double %302, double %303, double %306)
  %308 = load double, ptr %18, align 8, !tbaa !14
  %309 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %308, double %307)
  %310 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 0
  store double %309, ptr %310, align 16, !tbaa !14
  %311 = load double, ptr %24, align 8, !tbaa !14
  %312 = load double, ptr %37, align 8, !tbaa !14
  %313 = load double, ptr %23, align 8, !tbaa !14
  %314 = call double @llvm.fmuladd.f64(double %311, double %312, double %313)
  %315 = load double, ptr %18, align 8, !tbaa !14
  %316 = fsub double %314, %315
  %317 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 1
  store double %316, ptr %317, align 8, !tbaa !14
  br label %318

318:                                              ; preds = %242, %156
  %319 = load double, ptr %19, align 8, !tbaa !14
  %320 = load double, ptr %38, align 8, !tbaa !14
  %321 = fsub double %319, %320
  %322 = load double, ptr %37, align 8, !tbaa !14
  %323 = fdiv double %321, %322
  %324 = getelementptr inbounds [2 x double], ptr %20, i64 0, i64 0
  store double %323, ptr %324, align 16, !tbaa !14
  %325 = getelementptr inbounds [2 x double], ptr %20, i64 0, i64 0
  %326 = load double, ptr %325, align 16, !tbaa !14
  %327 = getelementptr inbounds [2 x double], ptr %20, i64 0, i64 0
  %328 = load double, ptr %327, align 16, !tbaa !14
  %329 = fmul double %326, %328
  %330 = getelementptr inbounds [2 x double], ptr %20, i64 0, i64 1
  store double %329, ptr %330, align 8, !tbaa !14
  %331 = load double, ptr %16, align 8, !tbaa !14
  %332 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  %333 = load double, ptr %332, align 16, !tbaa !14
  %334 = getelementptr inbounds [2 x double], ptr %20, i64 0, i64 0
  %335 = load double, ptr %334, align 16, !tbaa !14
  %336 = call double @llvm.fmuladd.f64(double %333, double %335, double %331)
  %337 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
  %338 = load double, ptr %337, align 8, !tbaa !14
  %339 = getelementptr inbounds [2 x double], ptr %20, i64 0, i64 1
  %340 = load double, ptr %339, align 8, !tbaa !14
  %341 = call double @llvm.fmuladd.f64(double %338, double %340, double %336)
  %342 = load i32, ptr %46, align 4, !tbaa !9
  %343 = sitofp i32 %342 to double
  %344 = fmul double %341, %343
  %345 = load ptr, ptr %12, align 8, !tbaa !5
  %346 = load i32, ptr %41, align 4, !tbaa !9
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds double, ptr %345, i64 %347
  store double %344, ptr %348, align 8, !tbaa !14
  %349 = load double, ptr %23, align 8, !tbaa !14
  %350 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 0
  %351 = load double, ptr %350, align 16, !tbaa !14
  %352 = getelementptr inbounds [2 x double], ptr %20, i64 0, i64 0
  %353 = load double, ptr %352, align 16, !tbaa !14
  %354 = call double @llvm.fmuladd.f64(double %351, double %353, double %349)
  %355 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 1
  %356 = load double, ptr %355, align 8, !tbaa !14
  %357 = getelementptr inbounds [2 x double], ptr %20, i64 0, i64 1
  %358 = load double, ptr %357, align 8, !tbaa !14
  %359 = call double @llvm.fmuladd.f64(double %356, double %358, double %354)
  %360 = load i32, ptr %47, align 4, !tbaa !9
  %361 = sitofp i32 %360 to double
  %362 = fmul double %359, %361
  %363 = load ptr, ptr %13, align 8, !tbaa !5
  %364 = load i32, ptr %41, align 4, !tbaa !9
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds double, ptr %363, i64 %365
  store double %362, ptr %366, align 8, !tbaa !14
  br label %367

367:                                              ; preds = %318, %143
  %368 = load i32, ptr %41, align 4, !tbaa !9
  %369 = add nsw i32 %368, 1
  store i32 %369, ptr %41, align 4, !tbaa !9
  br label %113, !llvm.loop !24

370:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, 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
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"HypersphericalInterpolationStructure", !10, i64 0, !13, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !6, i64 64}
!16 = !{!12, !6, i64 72}
!17 = !{!12, !10, i64 0}
!18 = !{!12, !13, i64 8}
!19 = !{!12, !6, i64 56}
!20 = !{!12, !13, i64 16}
!21 = !{!12, !10, i64 48}
!22 = !{!12, !6, i64 80}
!23 = !{!12, !6, i64 88}
!24 = distinct !{!24, !25}
!25 = !{!"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 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: nounwind uwtable
declare dso_local i32 @ClosedModY(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @hyperspherical_Hermite3_interpolation_vector_PhidPhi(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef readnone %6) local_unnamed_addr #2 {
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = sext i32 %2 to i64
  %14 = getelementptr inbounds i32, ptr %12, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = load i32, ptr %0, align 8, !tbaa !15
  %21 = sitofp i32 %15 to double
  %22 = fadd double %21, 1.000000e+00
  %23 = fmul double %22, %21
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = load double, ptr %24, align 8, !tbaa !16
  %26 = fmul double %25, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  store i32 1, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  store i32 1, ptr %10, align 4, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %0, i64 56
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load double, ptr %29, align 8, !tbaa !18
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  %32 = load i32, ptr %31, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %0, i64 80
  %34 = load ptr, ptr %33, align 8, !tbaa !20
  %35 = mul nsw i32 %32, %2
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %34, i64 %36
  %38 = getelementptr inbounds i8, ptr %0, i64 88
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  %40 = getelementptr inbounds double, ptr %39, i64 %36
  %41 = load double, ptr %28, align 8, !tbaa !22
  %42 = add nsw i32 %32, -1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds double, ptr %28, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !22
  %invariant.gep = getelementptr i8, ptr %28, i64 -8
  %46 = icmp sgt i32 %1, 0
  br i1 %46, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %47 = sitofp i32 %20 to double
  %wide.trip.count = zext nneg i32 %1 to i64
  %48 = insertelement <2 x double> poison, double %30, i64 0
  %49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
  br label %50

50:                                               ; preds = %.lr.ph, %153
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %153 ]
  %.0157 = phi double [ 0.000000e+00, %.lr.ph ], [ %.3, %153 ]
  %.0119155 = phi i32 [ 0, %.lr.ph ], [ %.3122, %153 ]
  %.0127152 = phi double [ %41, %.lr.ph ], [ %.2129, %153 ]
  %.0130151 = phi double [ %41, %.lr.ph ], [ %.2132, %153 ]
  %.0133150 = phi double [ %45, %.lr.ph ], [ %.2135, %153 ]
  %.0136145 = phi double [ 0.000000e+00, %.lr.ph ], [ %.3139, %153 ]
  %51 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %154, %153 ]
  %52 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %155, %153 ]
  %53 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %156, %153 ]
  %54 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %55 = load double, ptr %54, align 8, !tbaa !22
  store double %55, ptr %8, align 8, !tbaa !22
  %56 = load i32, ptr %0, align 8, !tbaa !15
  %57 = icmp eq i32 %56, 1
  br i1 %57, label %58, label %63

58:                                               ; preds = %50
  %59 = load double, ptr %24, align 8, !tbaa !16
  %60 = fadd double %59, 2.000000e-01
  %61 = fptosi double %60 to i32
  %62 = call i32 @ClosedModY(i32 noundef %15, i32 noundef %61, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %.pre = load double, ptr %8, align 8, !tbaa !22
  br label %63

63:                                               ; preds = %58, %50
  %64 = phi double [ %.pre, %58 ], [ %55, %50 ]
  %65 = fcmp olt double %64, %41
  %66 = fcmp ogt double %64, %45
  %or.cond = select i1 %65, i1 true, i1 %66
  br i1 %or.cond, label %67, label %69

67:                                               ; preds = %63
  %68 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double 0.000000e+00, ptr %68, align 8, !tbaa !22
  br label %153

69:                                               ; preds = %63
  %70 = fcmp ogt double %64, %.0130151
  %71 = fcmp olt double %64, %.0133150
  %or.cond143 = select i1 %70, i1 true, i1 %71
  br i1 %or.cond143, label %72, label %131

72:                                               ; preds = %69
  %73 = fcmp ogt double %64, %.0127152
  %or.cond144 = select i1 %73, i1 true, i1 %71
  br i1 %or.cond144, label %74, label %89

74:                                               ; preds = %72
  %75 = fsub double %64, %41
  %76 = fdiv double %75, %30
  %77 = fptosi double %76 to i32
  %78 = call i32 @llvm.smax.i32(i32 %77, i32 0)
  %79 = add nuw nsw i32 %78, 1
  %80 = call i32 @llvm.smin.i32(i32 %42, i32 %79)
  %81 = add nsw i32 %80, -1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %37, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !22
  %85 = getelementptr inbounds double, ptr %40, i64 %82
  %86 = load double, ptr %85, align 8, !tbaa !22
  %87 = insertelement <2 x double> poison, double %86, i64 0
  %88 = insertelement <2 x double> %87, double %84, i64 1
  br label %91

89:                                               ; preds = %72
  %90 = add nsw i32 %.0119155, 1
  br label %91

91:                                               ; preds = %89, %74
  %.1120 = phi i32 [ %80, %74 ], [ %90, %89 ]
  %92 = phi <2 x double> [ %88, %74 ], [ %52, %89 ]
  %93 = call i32 @llvm.smax.i32(i32 %.1120, i32 1)
  %94 = zext nneg i32 %93 to i64
  %gep = getelementptr double, ptr %invariant.gep, i64 %94
  %95 = load double, ptr %gep, align 8, !tbaa !22
  %96 = sext i32 %.1120 to i64
  %97 = getelementptr inbounds double, ptr %28, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !22
  %99 = add nsw i32 %.1120, 1
  %100 = call i32 @llvm.smin.i32(i32 %42, i32 %99)
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %28, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !22
  %104 = getelementptr inbounds double, ptr %37, i64 %96
  %105 = load double, ptr %104, align 8, !tbaa !22
  %106 = getelementptr inbounds double, ptr %40, i64 %96
  %107 = load double, ptr %106, align 8, !tbaa !22
  %108 = getelementptr inbounds double, ptr %19, i64 %96
  %109 = load double, ptr %108, align 8, !tbaa !22
  %110 = getelementptr inbounds double, ptr %17, i64 %96
  %111 = load double, ptr %110, align 8, !tbaa !22
  %112 = fmul double %111, %111
  %113 = fmul double %107, -2.000000e+00
  %114 = fdiv double %23, %112
  %115 = fsub double %114, %26
  %116 = fadd double %115, %47
  %117 = fmul double %105, %116
  %118 = call double @llvm.fmuladd.f64(double %113, double %109, double %117)
  %119 = fmul <2 x double> %92, <double -2.000000e+00, double -2.000000e+00>
  %120 = insertelement <2 x double> poison, double %118, i64 0
  %121 = insertelement <2 x double> %120, double %107, i64 1
  %122 = fneg <2 x double> %121
  %123 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %122, <2 x double> %49, <2 x double> %119)
  %124 = insertelement <2 x double> poison, double %107, i64 0
  %125 = insertelement <2 x double> %124, double %105, i64 1
  %126 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %125, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %123)
  %127 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %121, <2 x double> %49, <2 x double> %92)
  %128 = fsub <2 x double> %127, %125
  %129 = extractelement <2 x double> %92, i64 0
  %130 = extractelement <2 x double> %92, i64 1
  br label %131

131:                                              ; preds = %69, %91
  %.2138 = phi double [ %129, %91 ], [ %.0136145, %69 ]
  %.1134 = phi double [ %95, %91 ], [ %.0133150, %69 ]
  %.1131 = phi double [ %98, %91 ], [ %.0130151, %69 ]
  %.1128 = phi double [ %103, %91 ], [ %.0127152, %69 ]
  %.2121 = phi i32 [ %.1120, %91 ], [ %.0119155, %69 ]
  %.2 = phi double [ %130, %91 ], [ %.0157, %69 ]
  %132 = phi <2 x double> [ %126, %91 ], [ %51, %69 ]
  %133 = phi <2 x double> [ %125, %91 ], [ %52, %69 ]
  %134 = phi <2 x double> [ %128, %91 ], [ %53, %69 ]
  %135 = fsub double %64, %.1134
  %136 = fdiv double %135, %30
  %137 = fmul double %136, %136
  %138 = extractelement <2 x double> %132, i64 1
  %139 = call double @llvm.fmuladd.f64(double %138, double %136, double %.2)
  %140 = extractelement <2 x double> %134, i64 1
  %141 = call double @llvm.fmuladd.f64(double %140, double %137, double %139)
  %142 = load i32, ptr %9, align 4, !tbaa !12
  %143 = sitofp i32 %142 to double
  %144 = fmul double %141, %143
  %145 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double %144, ptr %145, align 8, !tbaa !22
  %146 = extractelement <2 x double> %132, i64 0
  %147 = call double @llvm.fmuladd.f64(double %146, double %136, double %.2138)
  %148 = extractelement <2 x double> %134, i64 0
  %149 = call double @llvm.fmuladd.f64(double %148, double %137, double %147)
  %150 = load i32, ptr %10, align 4, !tbaa !12
  %151 = sitofp i32 %150 to double
  %152 = fmul double %149, %151
  br label %153

153:                                              ; preds = %131, %67
  %.sink = phi double [ %152, %131 ], [ 0.000000e+00, %67 ]
  %.3139 = phi double [ %.2138, %131 ], [ %.0136145, %67 ]
  %.2135 = phi double [ %.1134, %131 ], [ %.0133150, %67 ]
  %.2132 = phi double [ %.1131, %131 ], [ %.0130151, %67 ]
  %.2129 = phi double [ %.1128, %131 ], [ %.0127152, %67 ]
  %.3122 = phi i32 [ %.2121, %131 ], [ %.0119155, %67 ]
  %.3 = phi double [ %.2, %131 ], [ %.0157, %67 ]
  %154 = phi <2 x double> [ %132, %131 ], [ %51, %67 ]
  %155 = phi <2 x double> [ %133, %131 ], [ %52, %67 ]
  %156 = phi <2 x double> [ %134, %131 ], [ %53, %67 ]
  %157 = getelementptr inbounds double, ptr %5, i64 %indvars.iv
  store double %.sink, ptr %157, align 8, !tbaa !22
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %50, !llvm.loop !23

._crit_edge:                                      ; preds = %153, %7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret i32 0
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 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 = { 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 #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, !11, i64 32}
!6 = !{!"HypersphericalInterpolationStructure", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !11, i64 32, !11, i64 40, !7, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !11, i64 64}
!14 = !{!6, !11, i64 72}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !10, i64 8}
!17 = !{!6, !11, i64 56}
!18 = !{!6, !10, i64 16}
!19 = !{!6, !7, i64 48}
!20 = !{!6, !11, i64 80}
!21 = !{!6, !11, i64 88}
!22 = !{!10, !10, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass