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

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

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

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

137:                                              ; preds = %129, %119
  %138 = load double, ptr %17, align 8, !tbaa !14
  %139 = load double, ptr %37, align 8, !tbaa !14
  %140 = fcmp olt double %138, %139
  br i1 %140, label %145, label %141

141:                                              ; preds = %137
  %142 = load double, ptr %17, align 8, !tbaa !14
  %143 = load double, ptr %38, align 8, !tbaa !14
  %144 = fcmp ogt double %142, %143
  br i1 %144, label %145, label %150

145:                                              ; preds = %141, %137
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = load i32, ptr %43, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %146, i64 %148
  store double 0.000000e+00, ptr %149, align 8, !tbaa !14
  br label %386

150:                                              ; preds = %141
  %151 = load double, ptr %17, align 8, !tbaa !14
  %152 = load double, ptr %41, align 8, !tbaa !14
  %153 = fcmp ogt double %151, %152
  br i1 %153, label %158, label %154

154:                                              ; preds = %150
  %155 = load double, ptr %17, align 8, !tbaa !14
  %156 = load double, ptr %40, align 8, !tbaa !14
  %157 = fcmp olt double %155, %156
  br i1 %157, label %158, label %355

158:                                              ; preds = %154, %150
  %159 = load double, ptr %17, align 8, !tbaa !14
  %160 = load double, ptr %42, align 8, !tbaa !14
  %161 = fcmp ogt double %159, %160
  br i1 %161, label %166, label %162

162:                                              ; preds = %158
  %163 = load double, ptr %17, align 8, !tbaa !14
  %164 = load double, ptr %40, align 8, !tbaa !14
  %165 = fcmp olt double %163, %164
  br i1 %165, label %166, label %233

166:                                              ; preds = %162, %158
  %167 = load double, ptr %17, align 8, !tbaa !14
  %168 = load double, ptr %37, align 8, !tbaa !14
  %169 = fsub double %167, %168
  %170 = load double, ptr %39, align 8, !tbaa !14
  %171 = fdiv double %169, %170
  %172 = fptosi double %171 to i32
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %45, align 4, !tbaa !9
  %174 = load i32, ptr %45, align 4, !tbaa !9
  %175 = icmp slt i32 1, %174
  br i1 %175, label %176, label %178

176:                                              ; preds = %166
  %177 = load i32, ptr %45, align 4, !tbaa !9
  br label %179

178:                                              ; preds = %166
  br label %179

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

185:                                              ; preds = %179
  %186 = load i32, ptr %44, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 1
  br label %190

188:                                              ; preds = %179
  %189 = load i32, ptr %45, align 4, !tbaa !9
  br label %190

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

233:                                              ; preds = %162
  %234 = load i32, ptr %45, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %45, align 4, !tbaa !9
  %236 = load double, ptr %15, align 8, !tbaa !14
  store double %236, ptr %14, align 8, !tbaa !14
  %237 = load double, ptr %16, align 8, !tbaa !14
  store double %237, ptr %25, align 8, !tbaa !14
  %238 = load double, ptr %26, align 8, !tbaa !14
  store double %238, ptr %20, align 8, !tbaa !14
  %239 = load double, ptr %28, align 8, !tbaa !14
  store double %239, ptr %23, align 8, !tbaa !14
  %240 = load double, ptr %27, align 8, !tbaa !14
  store double %240, ptr %22, align 8, !tbaa !14
  br label %241

241:                                              ; preds = %233, %190
  %242 = load ptr, ptr %36, align 8, !tbaa !5
  %243 = load i32, ptr %45, align 4, !tbaa !9
  %244 = sub nsw i32 %243, 1
  %245 = icmp slt i32 0, %244
  br i1 %245, label %246, label %249

246:                                              ; preds = %241
  %247 = load i32, ptr %45, align 4, !tbaa !9
  %248 = sub nsw i32 %247, 1
  br label %250

249:                                              ; preds = %241
  br label %250

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

266:                                              ; preds = %250
  %267 = load i32, ptr %44, align 4, !tbaa !9
  %268 = sub nsw i32 %267, 1
  br label %272

269:                                              ; preds = %250
  %270 = load i32, ptr %45, align 4, !tbaa !9
  %271 = add nsw i32 %270, 1
  br label %272

272:                                              ; preds = %269, %266
  %273 = phi i32 [ %268, %266 ], [ %271, %269 ]
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds double, ptr %260, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !14
  store double %276, ptr %42, align 8, !tbaa !14
  %277 = load ptr, ptr %46, align 8, !tbaa !5
  %278 = load i32, ptr %45, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds double, ptr %277, i64 %279
  %281 = load double, ptr %280, align 8, !tbaa !14
  store double %281, ptr %15, align 8, !tbaa !14
  %282 = load ptr, ptr %47, align 8, !tbaa !5
  %283 = load i32, ptr %45, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds double, ptr %282, i64 %284
  %286 = load double, ptr %285, align 8, !tbaa !14
  store double %286, ptr %16, align 8, !tbaa !14
  %287 = load ptr, ptr %31, align 8, !tbaa !5
  %288 = load i32, ptr %45, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds double, ptr %287, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !14
  store double %291, ptr %27, align 8, !tbaa !14
  %292 = load ptr, ptr %30, align 8, !tbaa !5
  %293 = load i32, ptr %45, align 4, !tbaa !9
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds double, ptr %292, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !14
  store double %296, ptr %28, align 8, !tbaa !14
  %297 = load double, ptr %28, align 8, !tbaa !14
  %298 = load double, ptr %28, align 8, !tbaa !14
  %299 = fmul double %297, %298
  store double %299, ptr %29, align 8, !tbaa !14
  %300 = load double, ptr %16, align 8, !tbaa !14
  %301 = fmul double -2.000000e+00, %300
  %302 = load double, ptr %27, align 8, !tbaa !14
  %303 = load double, ptr %15, align 8, !tbaa !14
  %304 = load double, ptr %33, align 8, !tbaa !14
  %305 = load double, ptr %29, align 8, !tbaa !14
  %306 = fdiv double %304, %305
  %307 = load double, ptr %35, align 8, !tbaa !14
  %308 = fsub double %306, %307
  %309 = load i32, ptr %32, align 4, !tbaa !9
  %310 = sitofp i32 %309 to double
  %311 = fadd double %308, %310
  %312 = fmul double %303, %311
  %313 = call double @llvm.fmuladd.f64(double %301, double %302, double %312)
  store double %313, ptr %26, align 8, !tbaa !14
  %314 = load double, ptr %27, align 8, !tbaa !14
  %315 = fmul double -2.000000e+00, %314
  %316 = load double, ptr %26, align 8, !tbaa !14
  %317 = load double, ptr %15, align 8, !tbaa !14
  %318 = fmul double 2.000000e+00, %317
  %319 = load double, ptr %33, align 8, !tbaa !14
  %320 = fmul double %318, %319
  %321 = load double, ptr %27, align 8, !tbaa !14
  %322 = fmul double %320, %321
  %323 = load double, ptr %29, align 8, !tbaa !14
  %324 = fdiv double %322, %323
  %325 = fneg double %324
  %326 = call double @llvm.fmuladd.f64(double %315, double %316, double %325)
  %327 = load double, ptr %16, align 8, !tbaa !14
  %328 = load i32, ptr %32, align 4, !tbaa !9
  %329 = sitofp i32 %328 to double
  %330 = load double, ptr %35, align 8, !tbaa !14
  %331 = fsub double %329, %330
  %332 = load double, ptr %33, align 8, !tbaa !14
  %333 = fadd double 2.000000e+00, %332
  %334 = load double, ptr %29, align 8, !tbaa !14
  %335 = fdiv double %333, %334
  %336 = fadd double %331, %335
  %337 = call double @llvm.fmuladd.f64(double %327, double %336, double %326)
  store double %337, ptr %21, align 8, !tbaa !14
  %338 = load double, ptr %21, align 8, !tbaa !14
  %339 = fneg double %338
  %340 = load double, ptr %39, align 8, !tbaa !14
  %341 = load double, ptr %20, align 8, !tbaa !14
  %342 = fmul double 2.000000e+00, %341
  %343 = fneg double %342
  %344 = call double @llvm.fmuladd.f64(double %339, double %340, double %343)
  %345 = load double, ptr %26, align 8, !tbaa !14
  %346 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %345, double %344)
  %347 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  store double %346, ptr %347, align 16, !tbaa !14
  %348 = load double, ptr %21, align 8, !tbaa !14
  %349 = load double, ptr %39, align 8, !tbaa !14
  %350 = load double, ptr %20, align 8, !tbaa !14
  %351 = call double @llvm.fmuladd.f64(double %348, double %349, double %350)
  %352 = load double, ptr %26, align 8, !tbaa !14
  %353 = fsub double %351, %352
  %354 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 1
  store double %353, ptr %354, align 8, !tbaa !14
  br label %355

355:                                              ; preds = %272, %154
  %356 = load double, ptr %17, align 8, !tbaa !14
  %357 = load double, ptr %40, align 8, !tbaa !14
  %358 = fsub double %356, %357
  %359 = load double, ptr %39, align 8, !tbaa !14
  %360 = fdiv double %358, %359
  %361 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  store double %360, ptr %361, align 16, !tbaa !14
  %362 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  %363 = load double, ptr %362, align 16, !tbaa !14
  %364 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  %365 = load double, ptr %364, align 16, !tbaa !14
  %366 = fmul double %363, %365
  %367 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  store double %366, ptr %367, align 8, !tbaa !14
  %368 = load double, ptr %20, align 8, !tbaa !14
  %369 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  %370 = load double, ptr %369, align 16, !tbaa !14
  %371 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  %372 = load double, ptr %371, align 16, !tbaa !14
  %373 = call double @llvm.fmuladd.f64(double %370, double %372, double %368)
  %374 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 1
  %375 = load double, ptr %374, align 8, !tbaa !14
  %376 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %377 = load double, ptr %376, align 8, !tbaa !14
  %378 = call double @llvm.fmuladd.f64(double %375, double %377, double %373)
  %379 = load i32, ptr %48, align 4, !tbaa !9
  %380 = sitofp i32 %379 to double
  %381 = fmul double %378, %380
  %382 = load ptr, ptr %11, align 8, !tbaa !5
  %383 = load i32, ptr %43, align 4, !tbaa !9
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds double, ptr %382, i64 %384
  store double %381, ptr %385, align 8, !tbaa !14
  br label %386

386:                                              ; preds = %355, %145
  %387 = load i32, ptr %43, align 4, !tbaa !9
  %388 = add nsw i32 %387, 1
  store i32 %388, ptr %43, align 4, !tbaa !9
  br label %115, !llvm.loop !24

389:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  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 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, 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_Hermite3_interpolation_vector_d2Phi(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
  %47 = fsub double %46, %25
  %48 = fadd double %22, 2.000000e+00
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %49

49:                                               ; preds = %.lr.ph, %145
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %145 ]
  %.0126171 = phi i32 [ 0, %.lr.ph ], [ %.3, %145 ]
  %.0133168 = phi double [ %40, %.lr.ph ], [ %.2135, %145 ]
  %.0136167 = phi double [ %40, %.lr.ph ], [ %.2138, %145 ]
  %.0139166 = phi double [ %44, %.lr.ph ], [ %.2141, %145 ]
  %.sroa.0.0165 = phi double [ 0.000000e+00, %.lr.ph ], [ %.sroa.0.2, %145 ]
  %.sroa.5.0164 = phi double [ 0.000000e+00, %.lr.ph ], [ %.sroa.5.2, %145 ]
  %.0142163 = phi double [ 0.000000e+00, %.lr.ph ], [ %.3145, %145 ]
  %.0146162 = phi double [ 0.000000e+00, %.lr.ph ], [ %.2148, %145 ]
  %50 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %51 = load double, ptr %50, align 8, !tbaa !22
  store double %51, ptr %7, align 8, !tbaa !22
  %52 = load i32, ptr %0, align 8, !tbaa !15
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %59

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

59:                                               ; preds = %54, %49
  %60 = phi double [ %.pre, %54 ], [ %51, %49 ]
  %61 = fcmp olt double %60, %40
  %62 = fcmp ogt double %60, %44
  %or.cond = select i1 %61, i1 true, i1 %62
  br i1 %or.cond, label %145, label %63

63:                                               ; preds = %59
  %64 = fcmp ogt double %60, %.0136167
  %65 = fcmp olt double %60, %.0139166
  %or.cond158 = select i1 %64, i1 true, i1 %65
  br i1 %or.cond158, label %66, label %136

66:                                               ; preds = %63
  %67 = fcmp ogt double %60, %.0133168
  %or.cond159 = select i1 %67, i1 true, i1 %65
  br i1 %or.cond159, label %68, label %92

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

92:                                               ; preds = %66
  %93 = add nsw i32 %.0126171, 1
  br label %94

94:                                               ; preds = %92, %68
  %.1143 = phi double [ %91, %68 ], [ %.0146162, %92 ]
  %.1127 = phi i32 [ %74, %68 ], [ %93, %92 ]
  %95 = call i32 @llvm.smax.i32(i32 %.1127, i32 1)
  %96 = zext nneg i32 %95 to i64
  %gep = getelementptr double, ptr %invariant.gep, i64 %96
  %97 = load double, ptr %gep, align 8, !tbaa !22
  %98 = sext i32 %.1127 to i64
  %99 = getelementptr inbounds double, ptr %27, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !22
  %101 = add nsw i32 %.1127, 1
  %102 = call i32 @llvm.smin.i32(i32 %41, i32 %101)
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %27, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !22
  %106 = getelementptr inbounds double, ptr %36, i64 %98
  %107 = load double, ptr %106, align 8, !tbaa !22
  %108 = getelementptr inbounds double, ptr %39, i64 %98
  %109 = load double, ptr %108, align 8, !tbaa !22
  %110 = getelementptr inbounds double, ptr %18, i64 %98
  %111 = load double, ptr %110, align 8, !tbaa !22
  %112 = getelementptr inbounds double, ptr %16, i64 %98
  %113 = load double, ptr %112, align 8, !tbaa !22
  %114 = fmul double %113, %113
  %115 = fmul double %109, -2.000000e+00
  %116 = fdiv double %22, %114
  %117 = fsub double %116, %25
  %118 = fadd double %117, %46
  %119 = fmul double %107, %118
  %120 = call double @llvm.fmuladd.f64(double %115, double %111, double %119)
  %121 = fmul double %111, -2.000000e+00
  %122 = fmul double %107, -2.000000e+00
  %123 = fmul double %22, %122
  %124 = fmul double %123, %111
  %125 = fdiv double %124, %114
  %126 = call double @llvm.fmuladd.f64(double %121, double %120, double %125)
  %127 = fdiv double %48, %114
  %128 = fadd double %47, %127
  %129 = call double @llvm.fmuladd.f64(double %109, double %128, double %126)
  %130 = fneg double %129
  %131 = fmul double %.1143, -2.000000e+00
  %132 = call double @llvm.fmuladd.f64(double %130, double %29, double %131)
  %133 = call double @llvm.fmuladd.f64(double %120, double 2.000000e+00, double %132)
  %134 = call double @llvm.fmuladd.f64(double %129, double %29, double %.1143)
  %135 = fsub double %134, %120
  br label %136

136:                                              ; preds = %63, %94
  %.1147 = phi double [ %120, %94 ], [ %.0146162, %63 ]
  %.2144 = phi double [ %.1143, %94 ], [ %.0142163, %63 ]
  %.sroa.5.1 = phi double [ %135, %94 ], [ %.sroa.5.0164, %63 ]
  %.sroa.0.1 = phi double [ %133, %94 ], [ %.sroa.0.0165, %63 ]
  %.1140 = phi double [ %97, %94 ], [ %.0139166, %63 ]
  %.1137 = phi double [ %100, %94 ], [ %.0136167, %63 ]
  %.1134 = phi double [ %105, %94 ], [ %.0133168, %63 ]
  %.2128 = phi i32 [ %.1127, %94 ], [ %.0126171, %63 ]
  %137 = fsub double %60, %.1140
  %138 = fdiv double %137, %29
  %139 = fmul double %138, %138
  %140 = call double @llvm.fmuladd.f64(double %.sroa.0.1, double %138, double %.2144)
  %141 = call double @llvm.fmuladd.f64(double %.sroa.5.1, double %139, double %140)
  %142 = load i32, ptr %8, align 4, !tbaa !12
  %143 = sitofp i32 %142 to double
  %144 = fmul double %141, %143
  br label %145

145:                                              ; preds = %59, %136
  %.sink = phi double [ %144, %136 ], [ 0.000000e+00, %59 ]
  %.2148 = phi double [ %.1147, %136 ], [ %.0146162, %59 ]
  %.3145 = phi double [ %.2144, %136 ], [ %.0142163, %59 ]
  %.sroa.5.2 = phi double [ %.sroa.5.1, %136 ], [ %.sroa.5.0164, %59 ]
  %.sroa.0.2 = phi double [ %.sroa.0.1, %136 ], [ %.sroa.0.0165, %59 ]
  %.2141 = phi double [ %.1140, %136 ], [ %.0139166, %59 ]
  %.2138 = phi double [ %.1137, %136 ], [ %.0136167, %59 ]
  %.2135 = phi double [ %.1134, %136 ], [ %.0133168, %59 ]
  %.3 = phi i32 [ %.2128, %136 ], [ %.0126171, %59 ]
  %146 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double %.sink, ptr %146, 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 = %145, %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

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,SROAPass,SimplifyCFGPass