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

114:                                              ; preds = %383, %6
  %115 = load i32, ptr %42, align 4, !tbaa !9
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %386

118:                                              ; preds = %114
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load i32, ptr %42, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !14
  store double %123, ptr %18, align 8, !tbaa !14
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.HypersphericalInterpolationStructure, ptr %124, i32 0, i32 0
  %126 = load i32, ptr %125, align 8, !tbaa !17
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %128, label %136

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

136:                                              ; preds = %128, %118
  %137 = load double, ptr %18, align 8, !tbaa !14
  %138 = load double, ptr %36, align 8, !tbaa !14
  %139 = fcmp olt double %137, %138
  br i1 %139, label %144, label %140

140:                                              ; preds = %136
  %141 = load double, ptr %18, align 8, !tbaa !14
  %142 = load double, ptr %37, align 8, !tbaa !14
  %143 = fcmp ogt double %141, %142
  br i1 %143, label %144, label %149

144:                                              ; preds = %140, %136
  %145 = load ptr, ptr %11, align 8, !tbaa !5
  %146 = load i32, ptr %42, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  store double 0.000000e+00, ptr %148, align 8, !tbaa !14
  br label %383

149:                                              ; preds = %140
  %150 = load double, ptr %18, align 8, !tbaa !14
  %151 = load double, ptr %40, align 8, !tbaa !14
  %152 = fcmp ogt double %150, %151
  br i1 %152, label %157, label %153

153:                                              ; preds = %149
  %154 = load double, ptr %18, align 8, !tbaa !14
  %155 = load double, ptr %39, align 8, !tbaa !14
  %156 = fcmp olt double %154, %155
  br i1 %156, label %157, label %341

157:                                              ; preds = %153, %149
  %158 = load double, ptr %18, align 8, !tbaa !14
  %159 = load double, ptr %41, align 8, !tbaa !14
  %160 = fcmp ogt double %158, %159
  br i1 %160, label %165, label %161

161:                                              ; preds = %157
  %162 = load double, ptr %18, align 8, !tbaa !14
  %163 = load double, ptr %39, align 8, !tbaa !14
  %164 = fcmp olt double %162, %163
  br i1 %164, label %165, label %232

165:                                              ; preds = %161, %157
  %166 = load double, ptr %18, align 8, !tbaa !14
  %167 = load double, ptr %36, align 8, !tbaa !14
  %168 = fsub double %166, %167
  %169 = load double, ptr %38, align 8, !tbaa !14
  %170 = fdiv double %168, %169
  %171 = fptosi double %170 to i32
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %44, align 4, !tbaa !9
  %173 = load i32, ptr %44, align 4, !tbaa !9
  %174 = icmp slt i32 1, %173
  br i1 %174, label %175, label %177

175:                                              ; preds = %165
  %176 = load i32, ptr %44, align 4, !tbaa !9
  br label %178

177:                                              ; preds = %165
  br label %178

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

184:                                              ; preds = %178
  %185 = load i32, ptr %43, align 4, !tbaa !9
  %186 = sub nsw i32 %185, 1
  br label %189

187:                                              ; preds = %178
  %188 = load i32, ptr %44, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %187, %184
  %190 = phi i32 [ %186, %184 ], [ %188, %187 ]
  store i32 %190, ptr %44, align 4, !tbaa !9
  %191 = load ptr, ptr %45, align 8, !tbaa !5
  %192 = load i32, ptr %44, align 4, !tbaa !9
  %193 = sub nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds double, ptr %191, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !14
  store double %196, ptr %14, align 8, !tbaa !14
  %197 = load ptr, ptr %46, align 8, !tbaa !5
  %198 = load i32, ptr %44, align 4, !tbaa !9
  %199 = sub nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds double, ptr %197, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !14
  store double %202, ptr %16, align 8, !tbaa !14
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  %204 = load i32, ptr %44, align 4, !tbaa !9
  %205 = sub nsw i32 %204, 1
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds double, ptr %203, i64 %206
  %208 = load double, ptr %207, align 8, !tbaa !14
  store double %208, ptr %23, align 8, !tbaa !14
  %209 = load ptr, ptr %21, align 8, !tbaa !5
  %210 = load i32, ptr %44, align 4, !tbaa !9
  %211 = sub nsw i32 %210, 1
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds double, ptr %209, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !14
  store double %214, ptr %25, align 8, !tbaa !14
  %215 = load double, ptr %25, align 8, !tbaa !14
  %216 = load double, ptr %25, align 8, !tbaa !14
  %217 = fmul double %215, %216
  store double %217, ptr %27, align 8, !tbaa !14
  %218 = load double, ptr %16, align 8, !tbaa !14
  %219 = fmul double -2.000000e+00, %218
  %220 = load double, ptr %23, align 8, !tbaa !14
  %221 = load double, ptr %14, align 8, !tbaa !14
  %222 = load double, ptr %32, align 8, !tbaa !14
  %223 = load double, ptr %27, align 8, !tbaa !14
  %224 = fdiv double %222, %223
  %225 = load double, ptr %34, align 8, !tbaa !14
  %226 = fsub double %224, %225
  %227 = load i32, ptr %31, align 4, !tbaa !9
  %228 = sitofp i32 %227 to double
  %229 = fadd double %226, %228
  %230 = fmul double %221, %229
  %231 = call double @llvm.fmuladd.f64(double %219, double %220, double %230)
  store double %231, ptr %29, align 8, !tbaa !14
  br label %240

232:                                              ; preds = %161
  %233 = load i32, ptr %44, align 4, !tbaa !9
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %44, align 4, !tbaa !9
  %235 = load double, ptr %15, align 8, !tbaa !14
  store double %235, ptr %14, align 8, !tbaa !14
  %236 = load double, ptr %17, align 8, !tbaa !14
  store double %236, ptr %16, align 8, !tbaa !14
  %237 = load double, ptr %30, align 8, !tbaa !14
  store double %237, ptr %29, align 8, !tbaa !14
  %238 = load double, ptr %26, align 8, !tbaa !14
  store double %238, ptr %25, align 8, !tbaa !14
  %239 = load double, ptr %24, align 8, !tbaa !14
  store double %239, ptr %23, align 8, !tbaa !14
  br label %240

240:                                              ; preds = %232, %189
  %241 = load ptr, ptr %35, align 8, !tbaa !5
  %242 = load i32, ptr %44, align 4, !tbaa !9
  %243 = sub nsw i32 %242, 1
  %244 = icmp slt i32 0, %243
  br i1 %244, label %245, label %248

245:                                              ; preds = %240
  %246 = load i32, ptr %44, align 4, !tbaa !9
  %247 = sub nsw i32 %246, 1
  br label %249

248:                                              ; preds = %240
  br label %249

249:                                              ; preds = %248, %245
  %250 = phi i32 [ %247, %245 ], [ 0, %248 ]
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds double, ptr %241, i64 %251
  %253 = load double, ptr %252, align 8, !tbaa !14
  store double %253, ptr %39, align 8, !tbaa !14
  %254 = load ptr, ptr %35, align 8, !tbaa !5
  %255 = load i32, ptr %44, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds double, ptr %254, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !14
  store double %258, ptr %40, align 8, !tbaa !14
  %259 = load ptr, ptr %35, align 8, !tbaa !5
  %260 = load i32, ptr %43, align 4, !tbaa !9
  %261 = sub nsw i32 %260, 1
  %262 = load i32, ptr %44, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  %264 = icmp slt i32 %261, %263
  br i1 %264, label %265, label %268

265:                                              ; preds = %249
  %266 = load i32, ptr %43, align 4, !tbaa !9
  %267 = sub nsw i32 %266, 1
  br label %271

268:                                              ; preds = %249
  %269 = load i32, ptr %44, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  br label %271

271:                                              ; preds = %268, %265
  %272 = phi i32 [ %267, %265 ], [ %270, %268 ]
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds double, ptr %259, i64 %273
  %275 = load double, ptr %274, align 8, !tbaa !14
  store double %275, ptr %41, align 8, !tbaa !14
  %276 = load ptr, ptr %45, align 8, !tbaa !5
  %277 = load i32, ptr %44, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds double, ptr %276, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !14
  store double %280, ptr %15, align 8, !tbaa !14
  %281 = load ptr, ptr %46, align 8, !tbaa !5
  %282 = load i32, ptr %44, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds double, ptr %281, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !14
  store double %285, ptr %17, align 8, !tbaa !14
  %286 = load ptr, ptr %22, align 8, !tbaa !5
  %287 = load i32, ptr %44, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds double, ptr %286, i64 %288
  %290 = load double, ptr %289, align 8, !tbaa !14
  store double %290, ptr %24, align 8, !tbaa !14
  %291 = load ptr, ptr %21, align 8, !tbaa !5
  %292 = load i32, ptr %44, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds double, ptr %291, i64 %293
  %295 = load double, ptr %294, align 8, !tbaa !14
  store double %295, ptr %26, align 8, !tbaa !14
  %296 = load double, ptr %26, align 8, !tbaa !14
  %297 = load double, ptr %26, align 8, !tbaa !14
  %298 = fmul double %296, %297
  store double %298, ptr %28, align 8, !tbaa !14
  %299 = load double, ptr %17, align 8, !tbaa !14
  %300 = fmul double -2.000000e+00, %299
  %301 = load double, ptr %24, align 8, !tbaa !14
  %302 = load double, ptr %15, align 8, !tbaa !14
  %303 = load double, ptr %32, align 8, !tbaa !14
  %304 = load double, ptr %28, align 8, !tbaa !14
  %305 = fdiv double %303, %304
  %306 = load double, ptr %34, align 8, !tbaa !14
  %307 = fsub double %305, %306
  %308 = load i32, ptr %31, align 4, !tbaa !9
  %309 = sitofp i32 %308 to double
  %310 = fadd double %307, %309
  %311 = fmul double %302, %310
  %312 = call double @llvm.fmuladd.f64(double %300, double %301, double %311)
  store double %312, ptr %30, align 8, !tbaa !14
  %313 = load double, ptr %29, align 8, !tbaa !14
  %314 = load double, ptr %38, align 8, !tbaa !14
  %315 = fmul double %313, %314
  %316 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
  store double %315, ptr %316, align 16, !tbaa !14
  %317 = load double, ptr %29, align 8, !tbaa !14
  %318 = fmul double -2.000000e+00, %317
  %319 = load double, ptr %38, align 8, !tbaa !14
  %320 = load double, ptr %30, align 8, !tbaa !14
  %321 = load double, ptr %38, align 8, !tbaa !14
  %322 = fmul double %320, %321
  %323 = fneg double %322
  %324 = call double @llvm.fmuladd.f64(double %318, double %319, double %323)
  %325 = load double, ptr %16, align 8, !tbaa !14
  %326 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %325, double %324)
  %327 = load double, ptr %17, align 8, !tbaa !14
  %328 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %327, double %326)
  %329 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 1
  store double %328, ptr %329, align 8, !tbaa !14
  %330 = load double, ptr %29, align 8, !tbaa !14
  %331 = load double, ptr %38, align 8, !tbaa !14
  %332 = load double, ptr %30, align 8, !tbaa !14
  %333 = load double, ptr %38, align 8, !tbaa !14
  %334 = fmul double %332, %333
  %335 = call double @llvm.fmuladd.f64(double %330, double %331, double %334)
  %336 = load double, ptr %16, align 8, !tbaa !14
  %337 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %336, double %335)
  %338 = load double, ptr %17, align 8, !tbaa !14
  %339 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %338, double %337)
  %340 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 2
  store double %339, ptr %340, align 16, !tbaa !14
  br label %341

341:                                              ; preds = %271, %153
  %342 = load double, ptr %18, align 8, !tbaa !14
  %343 = load double, ptr %39, align 8, !tbaa !14
  %344 = fsub double %342, %343
  %345 = load double, ptr %38, align 8, !tbaa !14
  %346 = fdiv double %344, %345
  %347 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  store double %346, ptr %347, align 16, !tbaa !14
  %348 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  %349 = load double, ptr %348, align 16, !tbaa !14
  %350 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  %351 = load double, ptr %350, align 16, !tbaa !14
  %352 = fmul double %349, %351
  %353 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 1
  store double %352, ptr %353, align 8, !tbaa !14
  %354 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 1
  %355 = load double, ptr %354, align 8, !tbaa !14
  %356 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  %357 = load double, ptr %356, align 16, !tbaa !14
  %358 = fmul double %355, %357
  %359 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 2
  store double %358, ptr %359, align 16, !tbaa !14
  %360 = load double, ptr %16, align 8, !tbaa !14
  %361 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
  %362 = load double, ptr %361, align 16, !tbaa !14
  %363 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  %364 = load double, ptr %363, align 16, !tbaa !14
  %365 = call double @llvm.fmuladd.f64(double %362, double %364, double %360)
  %366 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 1
  %367 = load double, ptr %366, align 8, !tbaa !14
  %368 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 1
  %369 = load double, ptr %368, align 8, !tbaa !14
  %370 = call double @llvm.fmuladd.f64(double %367, double %369, double %365)
  %371 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 2
  %372 = load double, ptr %371, align 16, !tbaa !14
  %373 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 2
  %374 = load double, ptr %373, align 16, !tbaa !14
  %375 = call double @llvm.fmuladd.f64(double %372, double %374, double %370)
  %376 = load i32, ptr %48, align 4, !tbaa !9
  %377 = sitofp i32 %376 to double
  %378 = fmul double %375, %377
  %379 = load ptr, ptr %11, align 8, !tbaa !5
  %380 = load i32, ptr %42, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds double, ptr %379, i64 %381
  store double %378, ptr %382, align 8, !tbaa !14
  br label %383

383:                                              ; preds = %341, %144
  %384 = load i32, ptr %42, align 4, !tbaa !9
  %385 = add nsw i32 %384, 1
  store i32 %385, ptr %42, align 4, !tbaa !9
  br label %114, !llvm.loop !24

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

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

49:                                               ; preds = %.lr.ph, %151
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %151 ]
  %.0122169 = phi i32 [ 0, %.lr.ph ], [ %.3, %151 ]
  %.0125168 = phi double [ 0.000000e+00, %.lr.ph ], [ %.3128, %151 ]
  %.0130166 = phi double [ %40, %.lr.ph ], [ %.2132, %151 ]
  %.0133165 = phi double [ %40, %.lr.ph ], [ %.2135, %151 ]
  %.0136164 = phi double [ %44, %.lr.ph ], [ %.2138, %151 ]
  %.0139163 = phi double [ 0.000000e+00, %.lr.ph ], [ %.2141, %151 ]
  %.sroa.0.0162 = phi double [ 0.000000e+00, %.lr.ph ], [ %.sroa.0.2, %151 ]
  %.0142159 = phi double [ 0.000000e+00, %.lr.ph ], [ %.2144, %151 ]
  %50 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %152, %151 ]
  %51 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %52 = load double, ptr %51, align 8, !tbaa !22
  store double %52, ptr %7, align 8, !tbaa !22
  %53 = load i32, ptr %0, align 8, !tbaa !15
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %60

55:                                               ; preds = %49
  %56 = load double, ptr %23, align 8, !tbaa !16
  %57 = fadd double %56, 2.000000e-01
  %58 = fptosi double %57 to i32
  %59 = call i32 @ClosedModY(i32 noundef %14, i32 noundef %58, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %.pre = load double, ptr %7, align 8, !tbaa !22
  br label %60

60:                                               ; preds = %55, %49
  %61 = phi double [ %.pre, %55 ], [ %52, %49 ]
  %62 = fcmp olt double %61, %40
  %63 = fcmp ogt double %61, %44
  %or.cond = select i1 %62, i1 true, i1 %63
  br i1 %or.cond, label %151, label %64

64:                                               ; preds = %60
  %65 = fcmp ogt double %61, %.0133165
  %66 = fcmp olt double %61, %.0136164
  %or.cond155 = select i1 %65, i1 true, i1 %66
  br i1 %or.cond155, label %67, label %137

67:                                               ; preds = %64
  %68 = fcmp ogt double %61, %.0130166
  %or.cond156 = select i1 %68, i1 true, i1 %66
  br i1 %or.cond156, label %69, label %93

69:                                               ; preds = %67
  %70 = fsub double %61, %40
  %71 = fdiv double %70, %29
  %72 = fptosi double %71 to i32
  %73 = call i32 @llvm.smax.i32(i32 %72, i32 0)
  %74 = add nuw nsw i32 %73, 1
  %75 = call i32 @llvm.smin.i32(i32 %41, i32 %74)
  %76 = add nsw i32 %75, -1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %36, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !22
  %80 = getelementptr inbounds double, ptr %39, i64 %77
  %81 = load double, ptr %80, align 8, !tbaa !22
  %82 = getelementptr inbounds double, ptr %18, i64 %77
  %83 = load double, ptr %82, align 8, !tbaa !22
  %84 = getelementptr inbounds double, ptr %16, i64 %77
  %85 = load double, ptr %84, align 8, !tbaa !22
  %86 = fmul double %85, %85
  %87 = fmul double %81, -2.000000e+00
  %88 = fdiv double %22, %86
  %89 = fsub double %88, %25
  %90 = fadd double %89, %46
  %91 = fmul double %79, %90
  %92 = call double @llvm.fmuladd.f64(double %87, double %83, double %91)
  br label %95

93:                                               ; preds = %67
  %94 = add nsw i32 %.0122169, 1
  br label %95

95:                                               ; preds = %93, %69
  %.0145 = phi double [ %92, %69 ], [ %.0142159, %93 ]
  %.1126 = phi double [ %81, %69 ], [ %.0139163, %93 ]
  %.1123 = phi i32 [ %75, %69 ], [ %94, %93 ]
  %96 = call i32 @llvm.smax.i32(i32 %.1123, i32 1)
  %97 = zext nneg i32 %96 to i64
  %gep = getelementptr double, ptr %invariant.gep, i64 %97
  %98 = load double, ptr %gep, align 8, !tbaa !22
  %99 = sext i32 %.1123 to i64
  %100 = getelementptr inbounds double, ptr %27, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !22
  %102 = add nsw i32 %.1123, 1
  %103 = call i32 @llvm.smin.i32(i32 %41, i32 %102)
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds double, ptr %27, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !22
  %107 = getelementptr inbounds double, ptr %36, i64 %99
  %108 = load double, ptr %107, align 8, !tbaa !22
  %109 = getelementptr inbounds double, ptr %39, i64 %99
  %110 = load double, ptr %109, align 8, !tbaa !22
  %111 = getelementptr inbounds double, ptr %18, i64 %99
  %112 = load double, ptr %111, align 8, !tbaa !22
  %113 = getelementptr inbounds double, ptr %16, i64 %99
  %114 = load double, ptr %113, align 8, !tbaa !22
  %115 = fmul double %114, %114
  %116 = fmul double %110, -2.000000e+00
  %117 = fdiv double %22, %115
  %118 = fsub double %117, %25
  %119 = fadd double %118, %46
  %120 = fmul double %108, %119
  %121 = call double @llvm.fmuladd.f64(double %116, double %112, double %120)
  %122 = fmul double %29, %.0145
  %123 = fmul double %.0145, -2.000000e+00
  %124 = fmul double %29, %121
  %125 = fneg double %124
  %126 = insertelement <2 x double> poison, double %.0145, i64 0
  %127 = insertelement <2 x double> %126, double %123, i64 1
  %128 = insertelement <2 x double> poison, double %124, i64 0
  %129 = insertelement <2 x double> %128, double %125, i64 1
  %130 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %127, <2 x double> %48, <2 x double> %129)
  %131 = insertelement <2 x double> poison, double %.1126, i64 0
  %132 = shufflevector <2 x double> %131, <2 x double> poison, <2 x i32> zeroinitializer
  %133 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %132, <2 x double> <double 2.000000e+00, double -3.000000e+00>, <2 x double> %130)
  %134 = insertelement <2 x double> poison, double %110, i64 0
  %135 = shufflevector <2 x double> %134, <2 x double> poison, <2 x i32> zeroinitializer
  %136 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %135, <2 x double> <double -2.000000e+00, double 3.000000e+00>, <2 x double> %133)
  br label %137

137:                                              ; preds = %64, %95
  %.1143 = phi double [ %121, %95 ], [ %.0142159, %64 ]
  %.sroa.0.1 = phi double [ %122, %95 ], [ %.sroa.0.0162, %64 ]
  %.1140 = phi double [ %110, %95 ], [ %.0139163, %64 ]
  %.1137 = phi double [ %98, %95 ], [ %.0136164, %64 ]
  %.1134 = phi double [ %101, %95 ], [ %.0133165, %64 ]
  %.1131 = phi double [ %106, %95 ], [ %.0130166, %64 ]
  %.2127 = phi double [ %.1126, %95 ], [ %.0125168, %64 ]
  %.2124 = phi i32 [ %.1123, %95 ], [ %.0122169, %64 ]
  %138 = phi <2 x double> [ %136, %95 ], [ %50, %64 ]
  %139 = fsub double %61, %.1137
  %140 = fdiv double %139, %29
  %141 = fmul double %140, %140
  %142 = fmul double %140, %141
  %143 = call double @llvm.fmuladd.f64(double %.sroa.0.1, double %140, double %.2127)
  %144 = extractelement <2 x double> %138, i64 1
  %145 = call double @llvm.fmuladd.f64(double %144, double %141, double %143)
  %146 = extractelement <2 x double> %138, i64 0
  %147 = call double @llvm.fmuladd.f64(double %146, double %142, double %145)
  %148 = load i32, ptr %9, align 4, !tbaa !12
  %149 = sitofp i32 %148 to double
  %150 = fmul double %147, %149
  br label %151

151:                                              ; preds = %60, %137
  %.sink = phi double [ %150, %137 ], [ 0.000000e+00, %60 ]
  %.2144 = phi double [ %.1143, %137 ], [ %.0142159, %60 ]
  %.sroa.0.2 = phi double [ %.sroa.0.1, %137 ], [ %.sroa.0.0162, %60 ]
  %.2141 = phi double [ %.1140, %137 ], [ %.0139163, %60 ]
  %.2138 = phi double [ %.1137, %137 ], [ %.0136164, %60 ]
  %.2135 = phi double [ %.1134, %137 ], [ %.0133165, %60 ]
  %.2132 = phi double [ %.1131, %137 ], [ %.0130166, %60 ]
  %.3128 = phi double [ %.2127, %137 ], [ %.0125168, %60 ]
  %.3 = phi i32 [ %.2124, %137 ], [ %.0122169, %60 ]
  %152 = phi <2 x double> [ %138, %137 ], [ %50, %60 ]
  %153 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double %.sink, ptr %153, 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 %49, !llvm.loop !23

._crit_edge:                                      ; preds = %151, %6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #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: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass