; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (interpolation)

; 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.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::spline2dinterpolant" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.706 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.707 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.708 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.709 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.710 = external hidden unnamed_addr constant [42 x i8], align 1

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16spline2dcalcvbufEPNS_19spline2dinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18spline2dlintransxyEPNS_19spline2dinterpolantEddddPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %21, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 3, ptr noundef %22, i1 noundef zeroext true)
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 3, ptr noundef %23, i1 noundef zeroext true)
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %24, i1 noundef zeroext true)
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = icmp eq i64 %28, -3
  br i1 %29, label %35, label %30

30:                                               ; preds = %6
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = icmp eq i64 %33, -1
  br label %35

35:                                               ; preds = %30, %6
  %36 = phi i1 [ true, %6 ], [ %34, %30 ]
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.706, ptr noundef %37)
  %38 = load double, ptr %8, align 8, !tbaa !9
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %38, ptr noundef %39)
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.707, ptr noundef %41)
  %42 = load double, ptr %9, align 8, !tbaa !9
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %42, ptr noundef %43)
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.708, ptr noundef %45)
  %46 = load double, ptr %10, align 8, !tbaa !9
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %46, ptr noundef %47)
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.709, ptr noundef %49)
  %50 = load double, ptr %11, align 8, !tbaa !9
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %50, ptr noundef %51)
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.710, ptr noundef %53)
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !17
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %56, ptr noundef %57)
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %58, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !18
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %60, ptr noundef %61)
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %62, i32 0, i32 2
  %64 = load i64, ptr %63, align 8, !tbaa !18
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %65, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !17
  %68 = mul nsw i64 %64, %67
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %69, i32 0, i32 3
  %71 = load i64, ptr %70, align 8, !tbaa !19
  %72 = mul nsw i64 %68, %71
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %72, ptr noundef %73)
  store i64 0, ptr %19, align 8, !tbaa !20
  br label %74

74:                                               ; preds = %93, %35
  %75 = load i64, ptr %19, align 8, !tbaa !20
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !17
  %79 = sub nsw i64 %78, 1
  %80 = icmp sle i64 %75, %79
  br i1 %80, label %81, label %96

81:                                               ; preds = %74
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %82, i32 0, i32 4
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !21
  %86 = load i64, ptr %19, align 8, !tbaa !20
  %87 = getelementptr inbounds double, ptr %85, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !21
  %91 = load i64, ptr %19, align 8, !tbaa !20
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  store double %88, ptr %92, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %81
  %94 = load i64, ptr %19, align 8, !tbaa !20
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %19, align 8, !tbaa !20
  br label %74, !llvm.loop !22

96:                                               ; preds = %74
  store i64 0, ptr %18, align 8, !tbaa !20
  br label %97

97:                                               ; preds = %116, %96
  %98 = load i64, ptr %18, align 8, !tbaa !20
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %99, i32 0, i32 2
  %101 = load i64, ptr %100, align 8, !tbaa !18
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %98, %102
  br i1 %103, label %104, label %119

104:                                              ; preds = %97
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %105, i32 0, i32 5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !21
  %109 = load i64, ptr %18, align 8, !tbaa !20
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !21
  %114 = load i64, ptr %18, align 8, !tbaa !20
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  store double %111, ptr %115, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %104
  %117 = load i64, ptr %18, align 8, !tbaa !20
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %18, align 8, !tbaa !20
  br label %97, !llvm.loop !24

119:                                              ; preds = %97
  store i64 0, ptr %18, align 8, !tbaa !20
  br label %120

120:                                              ; preds = %187, %119
  %121 = load i64, ptr %18, align 8, !tbaa !20
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %122, i32 0, i32 2
  %124 = load i64, ptr %123, align 8, !tbaa !18
  %125 = sub nsw i64 %124, 1
  %126 = icmp sle i64 %121, %125
  br i1 %126, label %127, label %190

127:                                              ; preds = %120
  store i64 0, ptr %19, align 8, !tbaa !20
  br label %128

128:                                              ; preds = %183, %127
  %129 = load i64, ptr %19, align 8, !tbaa !20
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %130, i32 0, i32 1
  %132 = load i64, ptr %131, align 8, !tbaa !17
  %133 = sub nsw i64 %132, 1
  %134 = icmp sle i64 %129, %133
  br i1 %134, label %135, label %186

135:                                              ; preds = %128
  store i64 0, ptr %20, align 8, !tbaa !20
  br label %136

136:                                              ; preds = %179, %135
  %137 = load i64, ptr %20, align 8, !tbaa !20
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %138, i32 0, i32 3
  %140 = load i64, ptr %139, align 8, !tbaa !19
  %141 = sub nsw i64 %140, 1
  %142 = icmp sle i64 %137, %141
  br i1 %142, label %143, label %182

143:                                              ; preds = %136
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %144, i32 0, i32 6
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !21
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %148, i32 0, i32 3
  %150 = load i64, ptr %149, align 8, !tbaa !19
  %151 = load i64, ptr %18, align 8, !tbaa !20
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %152, i32 0, i32 1
  %154 = load i64, ptr %153, align 8, !tbaa !17
  %155 = mul nsw i64 %151, %154
  %156 = load i64, ptr %19, align 8, !tbaa !20
  %157 = add nsw i64 %155, %156
  %158 = mul nsw i64 %150, %157
  %159 = load i64, ptr %20, align 8, !tbaa !20
  %160 = add nsw i64 %158, %159
  %161 = getelementptr inbounds double, ptr %147, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !21
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %165, i32 0, i32 3
  %167 = load i64, ptr %166, align 8, !tbaa !19
  %168 = load i64, ptr %18, align 8, !tbaa !20
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %169, i32 0, i32 1
  %171 = load i64, ptr %170, align 8, !tbaa !17
  %172 = mul nsw i64 %168, %171
  %173 = load i64, ptr %19, align 8, !tbaa !20
  %174 = add nsw i64 %172, %173
  %175 = mul nsw i64 %167, %174
  %176 = load i64, ptr %20, align 8, !tbaa !20
  %177 = add nsw i64 %175, %176
  %178 = getelementptr inbounds double, ptr %164, i64 %177
  store double %162, ptr %178, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %143
  %180 = load i64, ptr %20, align 8, !tbaa !20
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %20, align 8, !tbaa !20
  br label %136, !llvm.loop !25

182:                                              ; preds = %136
  br label %183

183:                                              ; preds = %182
  %184 = load i64, ptr %19, align 8, !tbaa !20
  %185 = add nsw i64 %184, 1
  store i64 %185, ptr %19, align 8, !tbaa !20
  br label %128, !llvm.loop !26

186:                                              ; preds = %128
  br label %187

187:                                              ; preds = %186
  %188 = load i64, ptr %18, align 8, !tbaa !20
  %189 = add nsw i64 %188, 1
  store i64 %189, ptr %18, align 8, !tbaa !20
  br label %120, !llvm.loop !27

190:                                              ; preds = %120
  %191 = load double, ptr %8, align 8, !tbaa !9
  %192 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %191, double noundef 0.000000e+00)
  br i1 %192, label %193, label %275

193:                                              ; preds = %190
  %194 = load double, ptr %10, align 8, !tbaa !9
  %195 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %194, double noundef 0.000000e+00)
  br i1 %195, label %196, label %275

196:                                              ; preds = %193
  store i64 0, ptr %18, align 8, !tbaa !20
  br label %197

197:                                              ; preds = %271, %196
  %198 = load i64, ptr %18, align 8, !tbaa !20
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %199, i32 0, i32 2
  %201 = load i64, ptr %200, align 8, !tbaa !18
  %202 = sub nsw i64 %201, 1
  %203 = icmp sle i64 %198, %202
  br i1 %203, label %204, label %274

204:                                              ; preds = %197
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = load double, ptr %9, align 8, !tbaa !9
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !21
  %209 = load i64, ptr %18, align 8, !tbaa !20
  %210 = getelementptr inbounds double, ptr %208, i64 %209
  %211 = load double, ptr %210, align 8, !tbaa !9
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spline2dcalcvbufEPNS_19spline2dinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %205, double noundef %206, double noundef %211, ptr noundef %17, ptr noundef %212)
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !21
  %215 = load i64, ptr %18, align 8, !tbaa !20
  %216 = getelementptr inbounds double, ptr %214, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !9
  %218 = load double, ptr %11, align 8, !tbaa !9
  %219 = fsub double %217, %218
  %220 = load double, ptr %10, align 8, !tbaa !9
  %221 = fdiv double %219, %220
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !21
  %224 = load i64, ptr %18, align 8, !tbaa !20
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  store double %221, ptr %225, align 8, !tbaa !9
  store i64 0, ptr %19, align 8, !tbaa !20
  br label %226

226:                                              ; preds = %267, %204
  %227 = load i64, ptr %19, align 8, !tbaa !20
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %228, i32 0, i32 1
  %230 = load i64, ptr %229, align 8, !tbaa !17
  %231 = sub nsw i64 %230, 1
  %232 = icmp sle i64 %227, %231
  br i1 %232, label %233, label %270

233:                                              ; preds = %226
  store i64 0, ptr %20, align 8, !tbaa !20
  br label %234

234:                                              ; preds = %263, %233
  %235 = load i64, ptr %20, align 8, !tbaa !20
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %236, i32 0, i32 3
  %238 = load i64, ptr %237, align 8, !tbaa !19
  %239 = sub nsw i64 %238, 1
  %240 = icmp sle i64 %235, %239
  br i1 %240, label %241, label %266

241:                                              ; preds = %234
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !21
  %244 = load i64, ptr %20, align 8, !tbaa !20
  %245 = getelementptr inbounds double, ptr %243, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !9
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %248 = load ptr, ptr %247, align 8, !tbaa !21
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %249, i32 0, i32 3
  %251 = load i64, ptr %250, align 8, !tbaa !19
  %252 = load i64, ptr %18, align 8, !tbaa !20
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %253, i32 0, i32 1
  %255 = load i64, ptr %254, align 8, !tbaa !17
  %256 = mul nsw i64 %252, %255
  %257 = load i64, ptr %19, align 8, !tbaa !20
  %258 = add nsw i64 %256, %257
  %259 = mul nsw i64 %251, %258
  %260 = load i64, ptr %20, align 8, !tbaa !20
  %261 = add nsw i64 %259, %260
  %262 = getelementptr inbounds double, ptr %248, i64 %261
  store double %246, ptr %262, align 8, !tbaa !9
  br label %263

263:                                              ; preds = %241
  %264 = load i64, ptr %20, align 8, !tbaa !20
  %265 = add nsw i64 %264, 1
  store i64 %265, ptr %20, align 8, !tbaa !20
  br label %234, !llvm.loop !28

266:                                              ; preds = %234
  br label %267

267:                                              ; preds = %266
  %268 = load i64, ptr %19, align 8, !tbaa !20
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %19, align 8, !tbaa !20
  br label %226, !llvm.loop !29

270:                                              ; preds = %226
  br label %271

271:                                              ; preds = %270
  %272 = load i64, ptr %18, align 8, !tbaa !20
  %273 = add nsw i64 %272, 1
  store i64 %273, ptr %18, align 8, !tbaa !20
  br label %197, !llvm.loop !30

274:                                              ; preds = %197
  br label %275

275:                                              ; preds = %274, %193, %190
  %276 = load double, ptr %8, align 8, !tbaa !9
  %277 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %276, double noundef 0.000000e+00)
  br i1 %277, label %278, label %360

278:                                              ; preds = %275
  %279 = load double, ptr %10, align 8, !tbaa !9
  %280 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %279, double noundef 0.000000e+00)
  br i1 %280, label %281, label %360

281:                                              ; preds = %278
  store i64 0, ptr %19, align 8, !tbaa !20
  br label %282

282:                                              ; preds = %356, %281
  %283 = load i64, ptr %19, align 8, !tbaa !20
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %284, i32 0, i32 1
  %286 = load i64, ptr %285, align 8, !tbaa !17
  %287 = sub nsw i64 %286, 1
  %288 = icmp sle i64 %283, %287
  br i1 %288, label %289, label %359

289:                                              ; preds = %282
  %290 = load ptr, ptr %7, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %292 = load ptr, ptr %291, align 8, !tbaa !21
  %293 = load i64, ptr %19, align 8, !tbaa !20
  %294 = getelementptr inbounds double, ptr %292, i64 %293
  %295 = load double, ptr %294, align 8, !tbaa !9
  %296 = load double, ptr %11, align 8, !tbaa !9
  %297 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spline2dcalcvbufEPNS_19spline2dinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %290, double noundef %295, double noundef %296, ptr noundef %17, ptr noundef %297)
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !21
  %300 = load i64, ptr %19, align 8, !tbaa !20
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !9
  %303 = load double, ptr %9, align 8, !tbaa !9
  %304 = fsub double %302, %303
  %305 = load double, ptr %8, align 8, !tbaa !9
  %306 = fdiv double %304, %305
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !21
  %309 = load i64, ptr %19, align 8, !tbaa !20
  %310 = getelementptr inbounds double, ptr %308, i64 %309
  store double %306, ptr %310, align 8, !tbaa !9
  store i64 0, ptr %18, align 8, !tbaa !20
  br label %311

311:                                              ; preds = %352, %289
  %312 = load i64, ptr %18, align 8, !tbaa !20
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  %314 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %313, i32 0, i32 2
  %315 = load i64, ptr %314, align 8, !tbaa !18
  %316 = sub nsw i64 %315, 1
  %317 = icmp sle i64 %312, %316
  br i1 %317, label %318, label %355

318:                                              ; preds = %311
  store i64 0, ptr %20, align 8, !tbaa !20
  br label %319

319:                                              ; preds = %348, %318
  %320 = load i64, ptr %20, align 8, !tbaa !20
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  %322 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %321, i32 0, i32 3
  %323 = load i64, ptr %322, align 8, !tbaa !19
  %324 = sub nsw i64 %323, 1
  %325 = icmp sle i64 %320, %324
  br i1 %325, label %326, label %351

326:                                              ; preds = %319
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %328 = load ptr, ptr %327, align 8, !tbaa !21
  %329 = load i64, ptr %20, align 8, !tbaa !20
  %330 = getelementptr inbounds double, ptr %328, i64 %329
  %331 = load double, ptr %330, align 8, !tbaa !9
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !21
  %334 = load ptr, ptr %7, align 8, !tbaa !5
  %335 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %334, i32 0, i32 3
  %336 = load i64, ptr %335, align 8, !tbaa !19
  %337 = load i64, ptr %18, align 8, !tbaa !20
  %338 = load ptr, ptr %7, align 8, !tbaa !5
  %339 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %338, i32 0, i32 1
  %340 = load i64, ptr %339, align 8, !tbaa !17
  %341 = mul nsw i64 %337, %340
  %342 = load i64, ptr %19, align 8, !tbaa !20
  %343 = add nsw i64 %341, %342
  %344 = mul nsw i64 %336, %343
  %345 = load i64, ptr %20, align 8, !tbaa !20
  %346 = add nsw i64 %344, %345
  %347 = getelementptr inbounds double, ptr %333, i64 %346
  store double %331, ptr %347, align 8, !tbaa !9
  br label %348

348:                                              ; preds = %326
  %349 = load i64, ptr %20, align 8, !tbaa !20
  %350 = add nsw i64 %349, 1
  store i64 %350, ptr %20, align 8, !tbaa !20
  br label %319, !llvm.loop !31

351:                                              ; preds = %319
  br label %352

352:                                              ; preds = %351
  %353 = load i64, ptr %18, align 8, !tbaa !20
  %354 = add nsw i64 %353, 1
  store i64 %354, ptr %18, align 8, !tbaa !20
  br label %311, !llvm.loop !32

355:                                              ; preds = %311
  br label %356

356:                                              ; preds = %355
  %357 = load i64, ptr %19, align 8, !tbaa !20
  %358 = add nsw i64 %357, 1
  store i64 %358, ptr %19, align 8, !tbaa !20
  br label %282, !llvm.loop !33

359:                                              ; preds = %282
  br label %360

360:                                              ; preds = %359, %278, %275
  %361 = load double, ptr %8, align 8, !tbaa !9
  %362 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %361, double noundef 0.000000e+00)
  br i1 %362, label %363, label %417

363:                                              ; preds = %360
  %364 = load double, ptr %10, align 8, !tbaa !9
  %365 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %364, double noundef 0.000000e+00)
  br i1 %365, label %366, label %417

366:                                              ; preds = %363
  store i64 0, ptr %19, align 8, !tbaa !20
  br label %367

367:                                              ; preds = %388, %366
  %368 = load i64, ptr %19, align 8, !tbaa !20
  %369 = load ptr, ptr %7, align 8, !tbaa !5
  %370 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %369, i32 0, i32 1
  %371 = load i64, ptr %370, align 8, !tbaa !17
  %372 = sub nsw i64 %371, 1
  %373 = icmp sle i64 %368, %372
  br i1 %373, label %374, label %391

374:                                              ; preds = %367
  %375 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %376 = load ptr, ptr %375, align 8, !tbaa !21
  %377 = load i64, ptr %19, align 8, !tbaa !20
  %378 = getelementptr inbounds double, ptr %376, i64 %377
  %379 = load double, ptr %378, align 8, !tbaa !9
  %380 = load double, ptr %9, align 8, !tbaa !9
  %381 = fsub double %379, %380
  %382 = load double, ptr %8, align 8, !tbaa !9
  %383 = fdiv double %381, %382
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !21
  %386 = load i64, ptr %19, align 8, !tbaa !20
  %387 = getelementptr inbounds double, ptr %385, i64 %386
  store double %383, ptr %387, align 8, !tbaa !9
  br label %388

388:                                              ; preds = %374
  %389 = load i64, ptr %19, align 8, !tbaa !20
  %390 = add nsw i64 %389, 1
  store i64 %390, ptr %19, align 8, !tbaa !20
  br label %367, !llvm.loop !34

391:                                              ; preds = %367
  store i64 0, ptr %18, align 8, !tbaa !20
  br label %392

392:                                              ; preds = %413, %391
  %393 = load i64, ptr %18, align 8, !tbaa !20
  %394 = load ptr, ptr %7, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %394, i32 0, i32 2
  %396 = load i64, ptr %395, align 8, !tbaa !18
  %397 = sub nsw i64 %396, 1
  %398 = icmp sle i64 %393, %397
  br i1 %398, label %399, label %416

399:                                              ; preds = %392
  %400 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %401 = load ptr, ptr %400, align 8, !tbaa !21
  %402 = load i64, ptr %18, align 8, !tbaa !20
  %403 = getelementptr inbounds double, ptr %401, i64 %402
  %404 = load double, ptr %403, align 8, !tbaa !9
  %405 = load double, ptr %11, align 8, !tbaa !9
  %406 = fsub double %404, %405
  %407 = load double, ptr %10, align 8, !tbaa !9
  %408 = fdiv double %406, %407
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %410 = load ptr, ptr %409, align 8, !tbaa !21
  %411 = load i64, ptr %18, align 8, !tbaa !20
  %412 = getelementptr inbounds double, ptr %410, i64 %411
  store double %408, ptr %412, align 8, !tbaa !9
  br label %413

413:                                              ; preds = %399
  %414 = load i64, ptr %18, align 8, !tbaa !20
  %415 = add nsw i64 %414, 1
  store i64 %415, ptr %18, align 8, !tbaa !20
  br label %392, !llvm.loop !35

416:                                              ; preds = %392
  br label %417

417:                                              ; preds = %416, %363, %360
  %418 = load double, ptr %8, align 8, !tbaa !9
  %419 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %418, double noundef 0.000000e+00)
  br i1 %419, label %420, label %485

420:                                              ; preds = %417
  %421 = load double, ptr %10, align 8, !tbaa !9
  %422 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %421, double noundef 0.000000e+00)
  br i1 %422, label %423, label %485

423:                                              ; preds = %420
  %424 = load ptr, ptr %7, align 8, !tbaa !5
  %425 = load double, ptr %9, align 8, !tbaa !9
  %426 = load double, ptr %11, align 8, !tbaa !9
  %427 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spline2dcalcvbufEPNS_19spline2dinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %424, double noundef %425, double noundef %426, ptr noundef %17, ptr noundef %427)
  store i64 0, ptr %18, align 8, !tbaa !20
  br label %428

428:                                              ; preds = %481, %423
  %429 = load i64, ptr %18, align 8, !tbaa !20
  %430 = load ptr, ptr %7, align 8, !tbaa !5
  %431 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %430, i32 0, i32 2
  %432 = load i64, ptr %431, align 8, !tbaa !18
  %433 = sub nsw i64 %432, 1
  %434 = icmp sle i64 %429, %433
  br i1 %434, label %435, label %484

435:                                              ; preds = %428
  store i64 0, ptr %19, align 8, !tbaa !20
  br label %436

436:                                              ; preds = %477, %435
  %437 = load i64, ptr %19, align 8, !tbaa !20
  %438 = load ptr, ptr %7, align 8, !tbaa !5
  %439 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %438, i32 0, i32 1
  %440 = load i64, ptr %439, align 8, !tbaa !17
  %441 = sub nsw i64 %440, 1
  %442 = icmp sle i64 %437, %441
  br i1 %442, label %443, label %480

443:                                              ; preds = %436
  store i64 0, ptr %20, align 8, !tbaa !20
  br label %444

444:                                              ; preds = %473, %443
  %445 = load i64, ptr %20, align 8, !tbaa !20
  %446 = load ptr, ptr %7, align 8, !tbaa !5
  %447 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %446, i32 0, i32 3
  %448 = load i64, ptr %447, align 8, !tbaa !19
  %449 = sub nsw i64 %448, 1
  %450 = icmp sle i64 %445, %449
  br i1 %450, label %451, label %476

451:                                              ; preds = %444
  %452 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %453 = load ptr, ptr %452, align 8, !tbaa !21
  %454 = load i64, ptr %20, align 8, !tbaa !20
  %455 = getelementptr inbounds double, ptr %453, i64 %454
  %456 = load double, ptr %455, align 8, !tbaa !9
  %457 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %458 = load ptr, ptr %457, align 8, !tbaa !21
  %459 = load ptr, ptr %7, align 8, !tbaa !5
  %460 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %459, i32 0, i32 3
  %461 = load i64, ptr %460, align 8, !tbaa !19
  %462 = load i64, ptr %18, align 8, !tbaa !20
  %463 = load ptr, ptr %7, align 8, !tbaa !5
  %464 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %463, i32 0, i32 1
  %465 = load i64, ptr %464, align 8, !tbaa !17
  %466 = mul nsw i64 %462, %465
  %467 = load i64, ptr %19, align 8, !tbaa !20
  %468 = add nsw i64 %466, %467
  %469 = mul nsw i64 %461, %468
  %470 = load i64, ptr %20, align 8, !tbaa !20
  %471 = add nsw i64 %469, %470
  %472 = getelementptr inbounds double, ptr %458, i64 %471
  store double %456, ptr %472, align 8, !tbaa !9
  br label %473

473:                                              ; preds = %451
  %474 = load i64, ptr %20, align 8, !tbaa !20
  %475 = add nsw i64 %474, 1
  store i64 %475, ptr %20, align 8, !tbaa !20
  br label %444, !llvm.loop !36

476:                                              ; preds = %444
  br label %477

477:                                              ; preds = %476
  %478 = load i64, ptr %19, align 8, !tbaa !20
  %479 = add nsw i64 %478, 1
  store i64 %479, ptr %19, align 8, !tbaa !20
  br label %436, !llvm.loop !37

480:                                              ; preds = %436
  br label %481

481:                                              ; preds = %480
  %482 = load i64, ptr %18, align 8, !tbaa !20
  %483 = add nsw i64 %482, 1
  store i64 %483, ptr %18, align 8, !tbaa !20
  br label %428, !llvm.loop !38

484:                                              ; preds = %428
  br label %485

485:                                              ; preds = %484, %420, %417
  %486 = load ptr, ptr %7, align 8, !tbaa !5
  %487 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %486, i32 0, i32 0
  %488 = load i64, ptr %487, align 8, !tbaa !11
  %489 = icmp eq i64 %488, -3
  br i1 %489, label %490, label %502

490:                                              ; preds = %485
  %491 = load ptr, ptr %7, align 8, !tbaa !5
  %492 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %491, i32 0, i32 1
  %493 = load i64, ptr %492, align 8, !tbaa !17
  %494 = load ptr, ptr %7, align 8, !tbaa !5
  %495 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %494, i32 0, i32 2
  %496 = load i64, ptr %495, align 8, !tbaa !18
  %497 = load ptr, ptr %7, align 8, !tbaa !5
  %498 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %497, i32 0, i32 3
  %499 = load i64, ptr %498, align 8, !tbaa !19
  %500 = load ptr, ptr %7, align 8, !tbaa !5
  %501 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl21spline2dbuildbicubicvEPNS_9ae_vectorElS1_lS1_lPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef %14, i64 noundef %493, ptr noundef %15, i64 noundef %496, ptr noundef %16, i64 noundef %499, ptr noundef %500, ptr noundef %501)
  br label %502

502:                                              ; preds = %490, %485
  %503 = load ptr, ptr %7, align 8, !tbaa !5
  %504 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %503, i32 0, i32 0
  %505 = load i64, ptr %504, align 8, !tbaa !11
  %506 = icmp eq i64 %505, -1
  br i1 %506, label %507, label %519

507:                                              ; preds = %502
  %508 = load ptr, ptr %7, align 8, !tbaa !5
  %509 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %508, i32 0, i32 1
  %510 = load i64, ptr %509, align 8, !tbaa !17
  %511 = load ptr, ptr %7, align 8, !tbaa !5
  %512 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %511, i32 0, i32 2
  %513 = load i64, ptr %512, align 8, !tbaa !18
  %514 = load ptr, ptr %7, align 8, !tbaa !5
  %515 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %514, i32 0, i32 3
  %516 = load i64, ptr %515, align 8, !tbaa !19
  %517 = load ptr, ptr %7, align 8, !tbaa !5
  %518 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl22spline2dbuildbilinearvEPNS_9ae_vectorElS1_lS1_lPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef %14, i64 noundef %510, ptr noundef %15, i64 noundef %513, ptr noundef %16, i64 noundef %516, ptr noundef %517, ptr noundef %518)
  br label %519

519:                                              ; preds = %507, %502
  %520 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %520)
  call void @llvm.lifetime.end.p0(i64 8, 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 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl22spline2dbuildbilinearvEPNS_9ae_vectorElS1_lS1_lPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl21spline2dbuildbicubicvEPNS_9ae_vectorElS1_lS1_lPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl19spline2dinterpolantE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !14, i64 96, !14, i64 160}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !13, i64 16}
!19 = !{!12, !13, i64 24}
!20 = !{!13, !13, i64 0}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}
!32 = distinct !{!32, !23}
!33 = distinct !{!33, !23}
!34 = distinct !{!34, !23}
!35 = distinct !{!35, !23}
!36 = distinct !{!36, !23}
!37 = distinct !{!37, !23}
!38 = distinct !{!38, !23}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.706 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.707 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.708 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.709 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.710 = external hidden unnamed_addr constant [42 x i8], align 1

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16spline2dcalcvbufEPNS_19spline2dinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18spline2dlintransxyEPNS_19spline2dinterpolantEddddPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  %12 = load i64, ptr %0, align 8, !tbaa !5
  %13 = and i64 %12, -3
  %spec.select = icmp eq i64 %13, -3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.706, ptr noundef %5)
  %14 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %1, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.707, ptr noundef %5)
  %15 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %2, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.708, ptr noundef %5)
  %16 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.709, ptr noundef %5)
  %17 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.710, ptr noundef %5)
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i64, ptr %18, align 8, !tbaa !14
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %19, ptr noundef %5)
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load i64, ptr %20, align 8, !tbaa !15
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %21, ptr noundef %5)
  %22 = load i64, ptr %20, align 8, !tbaa !15
  %23 = load i64, ptr %18, align 8, !tbaa !14
  %24 = mul nsw i64 %23, %22
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load i64, ptr %25, align 8, !tbaa !16
  %27 = mul nsw i64 %24, %26
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %27, ptr noundef %5)
  %28 = load i64, ptr %18, align 8, !tbaa !14
  %.not.not200 = icmp sgt i64 %28, 0
  br i1 %.not.not200, label %.lr.ph, label %.preheader198

.lr.ph:                                           ; preds = %6
  %29 = getelementptr inbounds i8, ptr %0, i64 88
  %30 = getelementptr inbounds i8, ptr %8, i64 56
  %xtraiter = and i64 %28, 3
  %31 = icmp ult i64 %28, 4
  br i1 %31, label %.preheader198.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %28, 9223372036854775804
  br label %42

.preheader198.loopexit.unr-lcssa:                 ; preds = %42, %.lr.ph
  %.0159201.unr = phi i64 [ 0, %.lr.ph ], [ %66, %42 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader198, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader198.loopexit.unr-lcssa, %.epil.preheader
  %.0159201.epil = phi i64 [ %37, %.epil.preheader ], [ %.0159201.unr, %.preheader198.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader198.loopexit.unr-lcssa ]
  %32 = load ptr, ptr %29, align 8, !tbaa !17
  %33 = getelementptr inbounds double, ptr %32, i64 %.0159201.epil
  %34 = load double, ptr %33, align 8, !tbaa !18
  %35 = load ptr, ptr %30, align 8, !tbaa !17
  %36 = getelementptr inbounds double, ptr %35, i64 %.0159201.epil
  store double %34, ptr %36, align 8, !tbaa !18
  %37 = add nuw nsw i64 %.0159201.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader198, label %.epil.preheader, !llvm.loop !20

.preheader198:                                    ; preds = %.preheader198.loopexit.unr-lcssa, %.epil.preheader, %6
  %38 = load i64, ptr %20, align 8, !tbaa !15
  %.not.not170202 = icmp sgt i64 %38, 0
  br i1 %.not.not170202, label %.lr.ph204, label %._crit_edge

.lr.ph204:                                        ; preds = %.preheader198
  %39 = getelementptr inbounds i8, ptr %0, i64 152
  %40 = getelementptr inbounds i8, ptr %9, i64 56
  %xtraiter280 = and i64 %38, 3
  %41 = icmp ult i64 %38, 4
  br i1 %41, label %.preheader197.unr-lcssa, label %.lr.ph204.new

.lr.ph204.new:                                    ; preds = %.lr.ph204
  %unroll_iter283 = and i64 %38, 9223372036854775804
  br label %102

42:                                               ; preds = %42, %.lr.ph.new
  %.0159201 = phi i64 [ 0, %.lr.ph.new ], [ %66, %42 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %42 ]
  %43 = load ptr, ptr %29, align 8, !tbaa !17
  %44 = getelementptr inbounds double, ptr %43, i64 %.0159201
  %45 = load double, ptr %44, align 8, !tbaa !18
  %46 = load ptr, ptr %30, align 8, !tbaa !17
  %47 = getelementptr inbounds double, ptr %46, i64 %.0159201
  store double %45, ptr %47, align 8, !tbaa !18
  %48 = or disjoint i64 %.0159201, 1
  %49 = load ptr, ptr %29, align 8, !tbaa !17
  %50 = getelementptr inbounds double, ptr %49, i64 %48
  %51 = load double, ptr %50, align 8, !tbaa !18
  %52 = load ptr, ptr %30, align 8, !tbaa !17
  %53 = getelementptr inbounds double, ptr %52, i64 %48
  store double %51, ptr %53, align 8, !tbaa !18
  %54 = or disjoint i64 %.0159201, 2
  %55 = load ptr, ptr %29, align 8, !tbaa !17
  %56 = getelementptr inbounds double, ptr %55, i64 %54
  %57 = load double, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %30, align 8, !tbaa !17
  %59 = getelementptr inbounds double, ptr %58, i64 %54
  store double %57, ptr %59, align 8, !tbaa !18
  %60 = or disjoint i64 %.0159201, 3
  %61 = load ptr, ptr %29, align 8, !tbaa !17
  %62 = getelementptr inbounds double, ptr %61, i64 %60
  %63 = load double, ptr %62, align 8, !tbaa !18
  %64 = load ptr, ptr %30, align 8, !tbaa !17
  %65 = getelementptr inbounds double, ptr %64, i64 %60
  store double %63, ptr %65, align 8, !tbaa !18
  %66 = add nuw nsw i64 %.0159201, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader198.loopexit.unr-lcssa, label %42, !llvm.loop !22

.preheader197.unr-lcssa:                          ; preds = %102, %.lr.ph204
  %.0163203.unr = phi i64 [ 0, %.lr.ph204 ], [ %126, %102 ]
  %lcmp.mod282.not = icmp eq i64 %xtraiter280, 0
  br i1 %lcmp.mod282.not, label %.preheader197, label %.epil.preheader279

.epil.preheader279:                               ; preds = %.preheader197.unr-lcssa, %.epil.preheader279
  %.0163203.epil = phi i64 [ %72, %.epil.preheader279 ], [ %.0163203.unr, %.preheader197.unr-lcssa ]
  %epil.iter281 = phi i64 [ %epil.iter281.next, %.epil.preheader279 ], [ 0, %.preheader197.unr-lcssa ]
  %67 = load ptr, ptr %39, align 8, !tbaa !17
  %68 = getelementptr inbounds double, ptr %67, i64 %.0163203.epil
  %69 = load double, ptr %68, align 8, !tbaa !18
  %70 = load ptr, ptr %40, align 8, !tbaa !17
  %71 = getelementptr inbounds double, ptr %70, i64 %.0163203.epil
  store double %69, ptr %71, align 8, !tbaa !18
  %72 = add nuw nsw i64 %.0163203.epil, 1
  %epil.iter281.next = add i64 %epil.iter281, 1
  %epil.iter281.cmp.not = icmp eq i64 %epil.iter281.next, %xtraiter280
  br i1 %epil.iter281.cmp.not, label %.preheader197, label %.epil.preheader279, !llvm.loop !24

.preheader197:                                    ; preds = %.epil.preheader279, %.preheader197.unr-lcssa
  br i1 %.not.not170202, label %.preheader196.lr.ph, label %._crit_edge

.preheader196.lr.ph:                              ; preds = %.preheader197
  %73 = getelementptr inbounds i8, ptr %0, i64 216
  %74 = getelementptr inbounds i8, ptr %10, i64 56
  br i1 %.not.not200, label %.preheader196.lr.ph.split.us, label %._crit_edge

.preheader196.lr.ph.split.us:                     ; preds = %.preheader196.lr.ph
  %75 = load i64, ptr %25, align 8, !tbaa !16
  %.not.not184206.us = icmp sgt i64 %75, 0
  br i1 %.not.not184206.us, label %.preheader196.us.us.preheader, label %._crit_edge

.preheader196.us.us.preheader:                    ; preds = %.preheader196.lr.ph.split.us
  %xtraiter286 = and i64 %75, 1
  %76 = icmp eq i64 %75, 1
  %unroll_iter289 = and i64 %75, 9223372036854775806
  %lcmp.mod288.not = icmp eq i64 %xtraiter286, 0
  br label %.preheader196.us.us

.preheader196.us.us:                              ; preds = %.preheader196.us.us.preheader, %._crit_edge211.split.us.us.us
  %.1164213.us.us = phi i64 [ %101, %._crit_edge211.split.us.us.us ], [ 0, %.preheader196.us.us.preheader ]
  %77 = mul nuw nsw i64 %.1164213.us.us, %28
  br label %.preheader195.us.us.us

.preheader195.us.us.us:                           ; preds = %._crit_edge.us.us.us, %.preheader196.us.us
  %.1160210.us.us.us = phi i64 [ 0, %.preheader196.us.us ], [ %100, %._crit_edge.us.us.us ]
  %78 = add nuw nsw i64 %.1160210.us.us.us, %77
  %79 = mul nuw nsw i64 %75, %78
  br i1 %76, label %._crit_edge.us.us.us.unr-lcssa, label %.preheader195.us.us.us.new

.preheader195.us.us.us.new:                       ; preds = %.preheader195.us.us.us, %.preheader195.us.us.us.new
  %.0207.us.us.us = phi i64 [ %93, %.preheader195.us.us.us.new ], [ 0, %.preheader195.us.us.us ]
  %niter290 = phi i64 [ %niter290.next.1, %.preheader195.us.us.us.new ], [ 0, %.preheader195.us.us.us ]
  %80 = load ptr, ptr %73, align 8, !tbaa !17
  %81 = add nuw nsw i64 %79, %.0207.us.us.us
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !18
  %84 = load ptr, ptr %74, align 8, !tbaa !17
  %85 = getelementptr inbounds double, ptr %84, i64 %81
  store double %83, ptr %85, align 8, !tbaa !18
  %86 = or disjoint i64 %.0207.us.us.us, 1
  %87 = load ptr, ptr %73, align 8, !tbaa !17
  %88 = add nuw nsw i64 %79, %86
  %89 = getelementptr inbounds double, ptr %87, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !18
  %91 = load ptr, ptr %74, align 8, !tbaa !17
  %92 = getelementptr inbounds double, ptr %91, i64 %88
  store double %90, ptr %92, align 8, !tbaa !18
  %93 = add nuw nsw i64 %.0207.us.us.us, 2
  %niter290.next.1 = add i64 %niter290, 2
  %niter290.ncmp.1 = icmp eq i64 %niter290.next.1, %unroll_iter289
  br i1 %niter290.ncmp.1, label %._crit_edge.us.us.us.unr-lcssa, label %.preheader195.us.us.us.new, !llvm.loop !25

._crit_edge.us.us.us.unr-lcssa:                   ; preds = %.preheader195.us.us.us.new, %.preheader195.us.us.us
  %.0207.us.us.us.unr = phi i64 [ 0, %.preheader195.us.us.us ], [ %93, %.preheader195.us.us.us.new ]
  br i1 %lcmp.mod288.not, label %._crit_edge.us.us.us, label %._crit_edge.us.us.us.epilog-lcssa

._crit_edge.us.us.us.epilog-lcssa:                ; preds = %._crit_edge.us.us.us.unr-lcssa
  %94 = load ptr, ptr %73, align 8, !tbaa !17
  %95 = add nuw nsw i64 %79, %.0207.us.us.us.unr
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !18
  %98 = load ptr, ptr %74, align 8, !tbaa !17
  %99 = getelementptr inbounds double, ptr %98, i64 %95
  store double %97, ptr %99, align 8, !tbaa !18
  br label %._crit_edge.us.us.us

._crit_edge.us.us.us:                             ; preds = %._crit_edge.us.us.us.unr-lcssa, %._crit_edge.us.us.us.epilog-lcssa
  %100 = add nuw nsw i64 %.1160210.us.us.us, 1
  %exitcond268.not = icmp eq i64 %100, %28
  br i1 %exitcond268.not, label %._crit_edge211.split.us.us.us, label %.preheader195.us.us.us, !llvm.loop !26

._crit_edge211.split.us.us.us:                    ; preds = %._crit_edge.us.us.us
  %101 = add nuw nsw i64 %.1164213.us.us, 1
  %exitcond269.not = icmp eq i64 %101, %38
  br i1 %exitcond269.not, label %._crit_edge, label %.preheader196.us.us, !llvm.loop !27

102:                                              ; preds = %102, %.lr.ph204.new
  %.0163203 = phi i64 [ 0, %.lr.ph204.new ], [ %126, %102 ]
  %niter284 = phi i64 [ 0, %.lr.ph204.new ], [ %niter284.next.3, %102 ]
  %103 = load ptr, ptr %39, align 8, !tbaa !17
  %104 = getelementptr inbounds double, ptr %103, i64 %.0163203
  %105 = load double, ptr %104, align 8, !tbaa !18
  %106 = load ptr, ptr %40, align 8, !tbaa !17
  %107 = getelementptr inbounds double, ptr %106, i64 %.0163203
  store double %105, ptr %107, align 8, !tbaa !18
  %108 = or disjoint i64 %.0163203, 1
  %109 = load ptr, ptr %39, align 8, !tbaa !17
  %110 = getelementptr inbounds double, ptr %109, i64 %108
  %111 = load double, ptr %110, align 8, !tbaa !18
  %112 = load ptr, ptr %40, align 8, !tbaa !17
  %113 = getelementptr inbounds double, ptr %112, i64 %108
  store double %111, ptr %113, align 8, !tbaa !18
  %114 = or disjoint i64 %.0163203, 2
  %115 = load ptr, ptr %39, align 8, !tbaa !17
  %116 = getelementptr inbounds double, ptr %115, i64 %114
  %117 = load double, ptr %116, align 8, !tbaa !18
  %118 = load ptr, ptr %40, align 8, !tbaa !17
  %119 = getelementptr inbounds double, ptr %118, i64 %114
  store double %117, ptr %119, align 8, !tbaa !18
  %120 = or disjoint i64 %.0163203, 3
  %121 = load ptr, ptr %39, align 8, !tbaa !17
  %122 = getelementptr inbounds double, ptr %121, i64 %120
  %123 = load double, ptr %122, align 8, !tbaa !18
  %124 = load ptr, ptr %40, align 8, !tbaa !17
  %125 = getelementptr inbounds double, ptr %124, i64 %120
  store double %123, ptr %125, align 8, !tbaa !18
  %126 = add nuw nsw i64 %.0163203, 4
  %niter284.next.3 = add i64 %niter284, 4
  %niter284.ncmp.3 = icmp eq i64 %niter284.next.3, %unroll_iter283
  br i1 %niter284.ncmp.3, label %.preheader197.unr-lcssa, label %102, !llvm.loop !28

._crit_edge:                                      ; preds = %._crit_edge211.split.us.us.us, %.preheader198, %.preheader196.lr.ph.split.us, %.preheader196.lr.ph, %.preheader197
  %127 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %1, double noundef 0.000000e+00)
  br i1 %127, label %128, label %.loopexit194

128:                                              ; preds = %._crit_edge
  %129 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %3, double noundef 0.000000e+00)
  br i1 %129, label %.preheader193, label %.loopexit194

.preheader193:                                    ; preds = %128
  %130 = load i64, ptr %20, align 8, !tbaa !15
  %.not.not172226 = icmp sgt i64 %130, 0
  br i1 %.not.not172226, label %.lr.ph228, label %.loopexit194

.lr.ph228:                                        ; preds = %.preheader193
  %131 = getelementptr inbounds i8, ptr %9, i64 56
  %132 = getelementptr inbounds i8, ptr %11, i64 56
  %133 = getelementptr inbounds i8, ptr %10, i64 56
  br label %134

134:                                              ; preds = %.lr.ph228, %._crit_edge225
  %.2165227 = phi i64 [ 0, %.lr.ph228 ], [ %185, %._crit_edge225 ]
  %135 = load ptr, ptr %131, align 8, !tbaa !17
  %136 = getelementptr inbounds double, ptr %135, i64 %.2165227
  %137 = load double, ptr %136, align 8, !tbaa !18
  call void @_ZN11alglib_impl16spline2dcalcvbufEPNS_19spline2dinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, double noundef %2, double noundef %137, ptr noundef nonnull %11, ptr noundef %5)
  %138 = load ptr, ptr %131, align 8, !tbaa !17
  %139 = getelementptr inbounds double, ptr %138, i64 %.2165227
  %140 = load double, ptr %139, align 8, !tbaa !18
  %141 = fsub double %140, %4
  %142 = fdiv double %141, %3
  store double %142, ptr %139, align 8, !tbaa !18
  %143 = load i64, ptr %18, align 8, !tbaa !14
  %.not.not181223 = icmp sgt i64 %143, 0
  br i1 %.not.not181223, label %.preheader192.lr.ph, label %._crit_edge225

.preheader192.lr.ph:                              ; preds = %134
  %144 = load i64, ptr %25, align 8, !tbaa !16
  %.not.not182219 = icmp sgt i64 %144, 0
  %145 = mul nuw nsw i64 %143, %.2165227
  br i1 %.not.not182219, label %.preheader192.us.preheader, label %._crit_edge225

.preheader192.us.preheader:                       ; preds = %.preheader192.lr.ph
  %xtraiter292 = and i64 %144, 3
  %146 = icmp ult i64 %144, 4
  %unroll_iter295 = and i64 %144, 9223372036854775804
  %lcmp.mod294.not = icmp eq i64 %xtraiter292, 0
  br label %.preheader192.us

.preheader192.us:                                 ; preds = %.preheader192.us.preheader, %._crit_edge222.us
  %.2161224.us = phi i64 [ %184, %._crit_edge222.us ], [ 0, %.preheader192.us.preheader ]
  %147 = add nuw nsw i64 %145, %.2161224.us
  %148 = mul nuw nsw i64 %144, %147
  br i1 %146, label %._crit_edge222.us.unr-lcssa, label %.preheader192.us.new

.preheader192.us.new:                             ; preds = %.preheader192.us, %.preheader192.us.new
  %.1220.us = phi i64 [ %176, %.preheader192.us.new ], [ 0, %.preheader192.us ]
  %niter296 = phi i64 [ %niter296.next.3, %.preheader192.us.new ], [ 0, %.preheader192.us ]
  %149 = load ptr, ptr %132, align 8, !tbaa !17
  %150 = getelementptr inbounds double, ptr %149, i64 %.1220.us
  %151 = load double, ptr %150, align 8, !tbaa !18
  %152 = load ptr, ptr %133, align 8, !tbaa !17
  %153 = getelementptr double, ptr %152, i64 %148
  %154 = getelementptr double, ptr %153, i64 %.1220.us
  store double %151, ptr %154, align 8, !tbaa !18
  %155 = or disjoint i64 %.1220.us, 1
  %156 = load ptr, ptr %132, align 8, !tbaa !17
  %157 = getelementptr inbounds double, ptr %156, i64 %155
  %158 = load double, ptr %157, align 8, !tbaa !18
  %159 = load ptr, ptr %133, align 8, !tbaa !17
  %160 = getelementptr double, ptr %159, i64 %148
  %161 = getelementptr double, ptr %160, i64 %155
  store double %158, ptr %161, align 8, !tbaa !18
  %162 = or disjoint i64 %.1220.us, 2
  %163 = load ptr, ptr %132, align 8, !tbaa !17
  %164 = getelementptr inbounds double, ptr %163, i64 %162
  %165 = load double, ptr %164, align 8, !tbaa !18
  %166 = load ptr, ptr %133, align 8, !tbaa !17
  %167 = getelementptr double, ptr %166, i64 %148
  %168 = getelementptr double, ptr %167, i64 %162
  store double %165, ptr %168, align 8, !tbaa !18
  %169 = or disjoint i64 %.1220.us, 3
  %170 = load ptr, ptr %132, align 8, !tbaa !17
  %171 = getelementptr inbounds double, ptr %170, i64 %169
  %172 = load double, ptr %171, align 8, !tbaa !18
  %173 = load ptr, ptr %133, align 8, !tbaa !17
  %174 = getelementptr double, ptr %173, i64 %148
  %175 = getelementptr double, ptr %174, i64 %169
  store double %172, ptr %175, align 8, !tbaa !18
  %176 = add nuw nsw i64 %.1220.us, 4
  %niter296.next.3 = add i64 %niter296, 4
  %niter296.ncmp.3 = icmp eq i64 %niter296.next.3, %unroll_iter295
  br i1 %niter296.ncmp.3, label %._crit_edge222.us.unr-lcssa, label %.preheader192.us.new, !llvm.loop !29

._crit_edge222.us.unr-lcssa:                      ; preds = %.preheader192.us.new, %.preheader192.us
  %.1220.us.unr = phi i64 [ 0, %.preheader192.us ], [ %176, %.preheader192.us.new ]
  br i1 %lcmp.mod294.not, label %._crit_edge222.us, label %.epil.preheader291

.epil.preheader291:                               ; preds = %._crit_edge222.us.unr-lcssa, %.epil.preheader291
  %.1220.us.epil = phi i64 [ %183, %.epil.preheader291 ], [ %.1220.us.unr, %._crit_edge222.us.unr-lcssa ]
  %epil.iter293 = phi i64 [ %epil.iter293.next, %.epil.preheader291 ], [ 0, %._crit_edge222.us.unr-lcssa ]
  %177 = load ptr, ptr %132, align 8, !tbaa !17
  %178 = getelementptr inbounds double, ptr %177, i64 %.1220.us.epil
  %179 = load double, ptr %178, align 8, !tbaa !18
  %180 = load ptr, ptr %133, align 8, !tbaa !17
  %181 = getelementptr double, ptr %180, i64 %148
  %182 = getelementptr double, ptr %181, i64 %.1220.us.epil
  store double %179, ptr %182, align 8, !tbaa !18
  %183 = add nuw nsw i64 %.1220.us.epil, 1
  %epil.iter293.next = add i64 %epil.iter293, 1
  %epil.iter293.cmp.not = icmp eq i64 %epil.iter293.next, %xtraiter292
  br i1 %epil.iter293.cmp.not, label %._crit_edge222.us, label %.epil.preheader291, !llvm.loop !30

._crit_edge222.us:                                ; preds = %.epil.preheader291, %._crit_edge222.us.unr-lcssa
  %184 = add nuw nsw i64 %.2161224.us, 1
  %exitcond271.not = icmp eq i64 %184, %143
  br i1 %exitcond271.not, label %._crit_edge225, label %.preheader192.us, !llvm.loop !31

._crit_edge225:                                   ; preds = %._crit_edge222.us, %.preheader192.lr.ph, %134
  %185 = add nuw nsw i64 %.2165227, 1
  %186 = load i64, ptr %20, align 8, !tbaa !15
  %.not.not172 = icmp slt i64 %185, %186
  br i1 %.not.not172, label %134, label %.loopexit194, !llvm.loop !32

.loopexit194:                                     ; preds = %._crit_edge225, %.preheader193, %128, %._crit_edge
  %187 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %1, double noundef 0.000000e+00)
  br i1 %187, label %188, label %.loopexit191

188:                                              ; preds = %.loopexit194
  %189 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %3, double noundef 0.000000e+00)
  br i1 %189, label %.preheader190, label %.loopexit191

.preheader190:                                    ; preds = %188
  %190 = load i64, ptr %18, align 8, !tbaa !14
  %.not.not173236 = icmp sgt i64 %190, 0
  br i1 %.not.not173236, label %.lr.ph239, label %.loopexit191

.lr.ph239:                                        ; preds = %.preheader190
  %191 = getelementptr inbounds i8, ptr %8, i64 56
  %192 = getelementptr inbounds i8, ptr %11, i64 56
  %193 = getelementptr inbounds i8, ptr %10, i64 56
  br label %194

194:                                              ; preds = %.lr.ph239, %._crit_edge235
  %.3162237 = phi i64 [ 0, %.lr.ph239 ], [ %246, %._crit_edge235 ]
  %195 = load ptr, ptr %191, align 8, !tbaa !17
  %196 = getelementptr inbounds double, ptr %195, i64 %.3162237
  %197 = load double, ptr %196, align 8, !tbaa !18
  call void @_ZN11alglib_impl16spline2dcalcvbufEPNS_19spline2dinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, double noundef %197, double noundef %4, ptr noundef nonnull %11, ptr noundef %5)
  %198 = load ptr, ptr %191, align 8, !tbaa !17
  %199 = getelementptr inbounds double, ptr %198, i64 %.3162237
  %200 = load double, ptr %199, align 8, !tbaa !18
  %201 = fsub double %200, %2
  %202 = fdiv double %201, %1
  store double %202, ptr %199, align 8, !tbaa !18
  %203 = load i64, ptr %20, align 8, !tbaa !15
  %.not.not179233 = icmp sgt i64 %203, 0
  br i1 %.not.not179233, label %.preheader189.lr.ph, label %._crit_edge235

.preheader189.lr.ph:                              ; preds = %194
  %204 = load i64, ptr %25, align 8, !tbaa !16
  %.not.not180229 = icmp sgt i64 %204, 0
  br i1 %.not.not180229, label %.preheader189.lr.ph.split.us, label %._crit_edge235

.preheader189.lr.ph.split.us:                     ; preds = %.preheader189.lr.ph
  %205 = load i64, ptr %18, align 8, !tbaa !14
  %xtraiter298 = and i64 %204, 3
  %206 = icmp ult i64 %204, 4
  %unroll_iter301 = and i64 %204, 9223372036854775804
  %lcmp.mod300.not = icmp eq i64 %xtraiter298, 0
  br label %.preheader189.us

.preheader189.us:                                 ; preds = %._crit_edge232.us, %.preheader189.lr.ph.split.us
  %.3166234.us = phi i64 [ 0, %.preheader189.lr.ph.split.us ], [ %245, %._crit_edge232.us ]
  %207 = mul nsw i64 %205, %.3166234.us
  %208 = add nsw i64 %207, %.3162237
  %209 = mul nsw i64 %208, %204
  br i1 %206, label %._crit_edge232.us.unr-lcssa, label %.preheader189.us.new

.preheader189.us.new:                             ; preds = %.preheader189.us, %.preheader189.us.new
  %.2230.us = phi i64 [ %237, %.preheader189.us.new ], [ 0, %.preheader189.us ]
  %niter302 = phi i64 [ %niter302.next.3, %.preheader189.us.new ], [ 0, %.preheader189.us ]
  %210 = load ptr, ptr %192, align 8, !tbaa !17
  %211 = getelementptr inbounds double, ptr %210, i64 %.2230.us
  %212 = load double, ptr %211, align 8, !tbaa !18
  %213 = load ptr, ptr %193, align 8, !tbaa !17
  %214 = getelementptr double, ptr %213, i64 %209
  %215 = getelementptr double, ptr %214, i64 %.2230.us
  store double %212, ptr %215, align 8, !tbaa !18
  %216 = or disjoint i64 %.2230.us, 1
  %217 = load ptr, ptr %192, align 8, !tbaa !17
  %218 = getelementptr inbounds double, ptr %217, i64 %216
  %219 = load double, ptr %218, align 8, !tbaa !18
  %220 = load ptr, ptr %193, align 8, !tbaa !17
  %221 = getelementptr double, ptr %220, i64 %209
  %222 = getelementptr double, ptr %221, i64 %216
  store double %219, ptr %222, align 8, !tbaa !18
  %223 = or disjoint i64 %.2230.us, 2
  %224 = load ptr, ptr %192, align 8, !tbaa !17
  %225 = getelementptr inbounds double, ptr %224, i64 %223
  %226 = load double, ptr %225, align 8, !tbaa !18
  %227 = load ptr, ptr %193, align 8, !tbaa !17
  %228 = getelementptr double, ptr %227, i64 %209
  %229 = getelementptr double, ptr %228, i64 %223
  store double %226, ptr %229, align 8, !tbaa !18
  %230 = or disjoint i64 %.2230.us, 3
  %231 = load ptr, ptr %192, align 8, !tbaa !17
  %232 = getelementptr inbounds double, ptr %231, i64 %230
  %233 = load double, ptr %232, align 8, !tbaa !18
  %234 = load ptr, ptr %193, align 8, !tbaa !17
  %235 = getelementptr double, ptr %234, i64 %209
  %236 = getelementptr double, ptr %235, i64 %230
  store double %233, ptr %236, align 8, !tbaa !18
  %237 = add nuw nsw i64 %.2230.us, 4
  %niter302.next.3 = add i64 %niter302, 4
  %niter302.ncmp.3 = icmp eq i64 %niter302.next.3, %unroll_iter301
  br i1 %niter302.ncmp.3, label %._crit_edge232.us.unr-lcssa, label %.preheader189.us.new, !llvm.loop !33

._crit_edge232.us.unr-lcssa:                      ; preds = %.preheader189.us.new, %.preheader189.us
  %.2230.us.unr = phi i64 [ 0, %.preheader189.us ], [ %237, %.preheader189.us.new ]
  br i1 %lcmp.mod300.not, label %._crit_edge232.us, label %.epil.preheader297

.epil.preheader297:                               ; preds = %._crit_edge232.us.unr-lcssa, %.epil.preheader297
  %.2230.us.epil = phi i64 [ %244, %.epil.preheader297 ], [ %.2230.us.unr, %._crit_edge232.us.unr-lcssa ]
  %epil.iter299 = phi i64 [ %epil.iter299.next, %.epil.preheader297 ], [ 0, %._crit_edge232.us.unr-lcssa ]
  %238 = load ptr, ptr %192, align 8, !tbaa !17
  %239 = getelementptr inbounds double, ptr %238, i64 %.2230.us.epil
  %240 = load double, ptr %239, align 8, !tbaa !18
  %241 = load ptr, ptr %193, align 8, !tbaa !17
  %242 = getelementptr double, ptr %241, i64 %209
  %243 = getelementptr double, ptr %242, i64 %.2230.us.epil
  store double %240, ptr %243, align 8, !tbaa !18
  %244 = add nuw nsw i64 %.2230.us.epil, 1
  %epil.iter299.next = add i64 %epil.iter299, 1
  %epil.iter299.cmp.not = icmp eq i64 %epil.iter299.next, %xtraiter298
  br i1 %epil.iter299.cmp.not, label %._crit_edge232.us, label %.epil.preheader297, !llvm.loop !34

._crit_edge232.us:                                ; preds = %.epil.preheader297, %._crit_edge232.us.unr-lcssa
  %245 = add nuw nsw i64 %.3166234.us, 1
  %exitcond273.not = icmp eq i64 %245, %203
  br i1 %exitcond273.not, label %._crit_edge235, label %.preheader189.us, !llvm.loop !35

._crit_edge235:                                   ; preds = %._crit_edge232.us, %.preheader189.lr.ph, %194
  %246 = add nuw nsw i64 %.3162237, 1
  %247 = load i64, ptr %18, align 8, !tbaa !14
  %.not.not173 = icmp slt i64 %246, %247
  br i1 %.not.not173, label %194, label %.loopexit191, !llvm.loop !36

.loopexit191:                                     ; preds = %._crit_edge235, %.preheader190, %188, %.loopexit194
  %248 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %1, double noundef 0.000000e+00)
  br i1 %248, label %249, label %.loopexit187

249:                                              ; preds = %.loopexit191
  %250 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %3, double noundef 0.000000e+00)
  br i1 %250, label %.preheader188, label %.loopexit187

.preheader188:                                    ; preds = %249
  %251 = load i64, ptr %18, align 8, !tbaa !14
  %.not.not174240 = icmp sgt i64 %251, 0
  br i1 %.not.not174240, label %.lr.ph242, label %.preheader186

.lr.ph242:                                        ; preds = %.preheader188
  %252 = getelementptr inbounds i8, ptr %8, i64 56
  %xtraiter304 = and i64 %251, 1
  %253 = icmp eq i64 %251, 1
  br i1 %253, label %.preheader186.loopexit.unr-lcssa, label %.lr.ph242.new

.lr.ph242.new:                                    ; preds = %.lr.ph242
  %unroll_iter307 = and i64 %251, 9223372036854775806
  br label %262

.preheader186.loopexit.unr-lcssa:                 ; preds = %262, %.lr.ph242
  %.4241.unr = phi i64 [ 0, %.lr.ph242 ], [ %274, %262 ]
  %lcmp.mod306.not = icmp eq i64 %xtraiter304, 0
  br i1 %lcmp.mod306.not, label %.preheader186, label %.preheader186.loopexit.epilog-lcssa

.preheader186.loopexit.epilog-lcssa:              ; preds = %.preheader186.loopexit.unr-lcssa
  %254 = load ptr, ptr %252, align 8, !tbaa !17
  %255 = getelementptr inbounds double, ptr %254, i64 %.4241.unr
  %256 = load double, ptr %255, align 8, !tbaa !18
  %257 = fsub double %256, %2
  %258 = fdiv double %257, %1
  store double %258, ptr %255, align 8, !tbaa !18
  br label %.preheader186

.preheader186:                                    ; preds = %.preheader186.loopexit.epilog-lcssa, %.preheader186.loopexit.unr-lcssa, %.preheader188
  %259 = load i64, ptr %20, align 8, !tbaa !15
  %.not.not175243 = icmp sgt i64 %259, 0
  br i1 %.not.not175243, label %.lr.ph245, label %.loopexit187

.lr.ph245:                                        ; preds = %.preheader186
  %260 = getelementptr inbounds i8, ptr %9, i64 56
  %xtraiter310 = and i64 %259, 1
  %261 = icmp eq i64 %259, 1
  br i1 %261, label %.loopexit187.loopexit.unr-lcssa, label %.lr.ph245.new

.lr.ph245.new:                                    ; preds = %.lr.ph245
  %unroll_iter313 = and i64 %259, 9223372036854775806
  br label %275

262:                                              ; preds = %262, %.lr.ph242.new
  %.4241 = phi i64 [ 0, %.lr.ph242.new ], [ %274, %262 ]
  %niter308 = phi i64 [ 0, %.lr.ph242.new ], [ %niter308.next.1, %262 ]
  %263 = load ptr, ptr %252, align 8, !tbaa !17
  %264 = getelementptr inbounds double, ptr %263, i64 %.4241
  %265 = load double, ptr %264, align 8, !tbaa !18
  %266 = fsub double %265, %2
  %267 = fdiv double %266, %1
  store double %267, ptr %264, align 8, !tbaa !18
  %268 = or disjoint i64 %.4241, 1
  %269 = load ptr, ptr %252, align 8, !tbaa !17
  %270 = getelementptr inbounds double, ptr %269, i64 %268
  %271 = load double, ptr %270, align 8, !tbaa !18
  %272 = fsub double %271, %2
  %273 = fdiv double %272, %1
  store double %273, ptr %270, align 8, !tbaa !18
  %274 = add nuw nsw i64 %.4241, 2
  %niter308.next.1 = add i64 %niter308, 2
  %niter308.ncmp.1 = icmp eq i64 %niter308.next.1, %unroll_iter307
  br i1 %niter308.ncmp.1, label %.preheader186.loopexit.unr-lcssa, label %262, !llvm.loop !37

275:                                              ; preds = %275, %.lr.ph245.new
  %.4167244 = phi i64 [ 0, %.lr.ph245.new ], [ %287, %275 ]
  %niter314 = phi i64 [ 0, %.lr.ph245.new ], [ %niter314.next.1, %275 ]
  %276 = load ptr, ptr %260, align 8, !tbaa !17
  %277 = getelementptr inbounds double, ptr %276, i64 %.4167244
  %278 = load double, ptr %277, align 8, !tbaa !18
  %279 = fsub double %278, %4
  %280 = fdiv double %279, %3
  store double %280, ptr %277, align 8, !tbaa !18
  %281 = or disjoint i64 %.4167244, 1
  %282 = load ptr, ptr %260, align 8, !tbaa !17
  %283 = getelementptr inbounds double, ptr %282, i64 %281
  %284 = load double, ptr %283, align 8, !tbaa !18
  %285 = fsub double %284, %4
  %286 = fdiv double %285, %3
  store double %286, ptr %283, align 8, !tbaa !18
  %287 = add nuw nsw i64 %.4167244, 2
  %niter314.next.1 = add i64 %niter314, 2
  %niter314.ncmp.1 = icmp eq i64 %niter314.next.1, %unroll_iter313
  br i1 %niter314.ncmp.1, label %.loopexit187.loopexit.unr-lcssa, label %275, !llvm.loop !38

.loopexit187.loopexit.unr-lcssa:                  ; preds = %275, %.lr.ph245
  %.4167244.unr = phi i64 [ 0, %.lr.ph245 ], [ %287, %275 ]
  %lcmp.mod312.not = icmp eq i64 %xtraiter310, 0
  br i1 %lcmp.mod312.not, label %.loopexit187, label %.loopexit187.loopexit.epilog-lcssa

.loopexit187.loopexit.epilog-lcssa:               ; preds = %.loopexit187.loopexit.unr-lcssa
  %288 = load ptr, ptr %260, align 8, !tbaa !17
  %289 = getelementptr inbounds double, ptr %288, i64 %.4167244.unr
  %290 = load double, ptr %289, align 8, !tbaa !18
  %291 = fsub double %290, %4
  %292 = fdiv double %291, %3
  store double %292, ptr %289, align 8, !tbaa !18
  br label %.loopexit187

.loopexit187:                                     ; preds = %.loopexit187.loopexit.epilog-lcssa, %.loopexit187.loopexit.unr-lcssa, %.preheader186, %249, %.loopexit191
  %293 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %1, double noundef 0.000000e+00)
  br i1 %293, label %294, label %.loopexit

294:                                              ; preds = %.loopexit187
  %295 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %3, double noundef 0.000000e+00)
  br i1 %295, label %296, label %.loopexit

296:                                              ; preds = %294
  call void @_ZN11alglib_impl16spline2dcalcvbufEPNS_19spline2dinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, double noundef %2, double noundef %4, ptr noundef nonnull %11, ptr noundef %5)
  %297 = load i64, ptr %20, align 8, !tbaa !15
  %.not.not176253 = icmp sgt i64 %297, 0
  br i1 %.not.not176253, label %.preheader185.lr.ph, label %.loopexit

.preheader185.lr.ph:                              ; preds = %296
  %298 = load i64, ptr %18, align 8, !tbaa !14
  %.not.not177250 = icmp sgt i64 %298, 0
  %299 = getelementptr inbounds i8, ptr %11, i64 56
  %300 = getelementptr inbounds i8, ptr %10, i64 56
  br i1 %.not.not177250, label %.preheader185.lr.ph.split.us, label %.loopexit

.preheader185.lr.ph.split.us:                     ; preds = %.preheader185.lr.ph
  %301 = load i64, ptr %25, align 8, !tbaa !16
  %.not.not178246.us = icmp sgt i64 %301, 0
  br i1 %.not.not178246.us, label %.preheader185.us.us.preheader, label %.loopexit

.preheader185.us.us.preheader:                    ; preds = %.preheader185.lr.ph.split.us
  %xtraiter316 = and i64 %301, 3
  %302 = icmp ult i64 %301, 4
  %unroll_iter319 = and i64 %301, 9223372036854775804
  %lcmp.mod318.not = icmp eq i64 %xtraiter316, 0
  br label %.preheader185.us.us

.preheader185.us.us:                              ; preds = %.preheader185.us.us.preheader, %._crit_edge252.split.us.us.us
  %.5168254.us.us = phi i64 [ %342, %._crit_edge252.split.us.us.us ], [ 0, %.preheader185.us.us.preheader ]
  %303 = mul nuw nsw i64 %298, %.5168254.us.us
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge249.us.us.us, %.preheader185.us.us
  %.5251.us.us.us = phi i64 [ 0, %.preheader185.us.us ], [ %341, %._crit_edge249.us.us.us ]
  %304 = add nuw nsw i64 %303, %.5251.us.us.us
  %305 = mul nuw nsw i64 %301, %304
  br i1 %302, label %._crit_edge249.us.us.us.unr-lcssa, label %.preheader.us.us.us.new

.preheader.us.us.us.new:                          ; preds = %.preheader.us.us.us, %.preheader.us.us.us.new
  %.3247.us.us.us = phi i64 [ %333, %.preheader.us.us.us.new ], [ 0, %.preheader.us.us.us ]
  %niter320 = phi i64 [ %niter320.next.3, %.preheader.us.us.us.new ], [ 0, %.preheader.us.us.us ]
  %306 = load ptr, ptr %299, align 8, !tbaa !17
  %307 = getelementptr inbounds double, ptr %306, i64 %.3247.us.us.us
  %308 = load double, ptr %307, align 8, !tbaa !18
  %309 = load ptr, ptr %300, align 8, !tbaa !17
  %310 = getelementptr double, ptr %309, i64 %305
  %311 = getelementptr double, ptr %310, i64 %.3247.us.us.us
  store double %308, ptr %311, align 8, !tbaa !18
  %312 = or disjoint i64 %.3247.us.us.us, 1
  %313 = load ptr, ptr %299, align 8, !tbaa !17
  %314 = getelementptr inbounds double, ptr %313, i64 %312
  %315 = load double, ptr %314, align 8, !tbaa !18
  %316 = load ptr, ptr %300, align 8, !tbaa !17
  %317 = getelementptr double, ptr %316, i64 %305
  %318 = getelementptr double, ptr %317, i64 %312
  store double %315, ptr %318, align 8, !tbaa !18
  %319 = or disjoint i64 %.3247.us.us.us, 2
  %320 = load ptr, ptr %299, align 8, !tbaa !17
  %321 = getelementptr inbounds double, ptr %320, i64 %319
  %322 = load double, ptr %321, align 8, !tbaa !18
  %323 = load ptr, ptr %300, align 8, !tbaa !17
  %324 = getelementptr double, ptr %323, i64 %305
  %325 = getelementptr double, ptr %324, i64 %319
  store double %322, ptr %325, align 8, !tbaa !18
  %326 = or disjoint i64 %.3247.us.us.us, 3
  %327 = load ptr, ptr %299, align 8, !tbaa !17
  %328 = getelementptr inbounds double, ptr %327, i64 %326
  %329 = load double, ptr %328, align 8, !tbaa !18
  %330 = load ptr, ptr %300, align 8, !tbaa !17
  %331 = getelementptr double, ptr %330, i64 %305
  %332 = getelementptr double, ptr %331, i64 %326
  store double %329, ptr %332, align 8, !tbaa !18
  %333 = add nuw nsw i64 %.3247.us.us.us, 4
  %niter320.next.3 = add i64 %niter320, 4
  %niter320.ncmp.3 = icmp eq i64 %niter320.next.3, %unroll_iter319
  br i1 %niter320.ncmp.3, label %._crit_edge249.us.us.us.unr-lcssa, label %.preheader.us.us.us.new, !llvm.loop !39

._crit_edge249.us.us.us.unr-lcssa:                ; preds = %.preheader.us.us.us.new, %.preheader.us.us.us
  %.3247.us.us.us.unr = phi i64 [ 0, %.preheader.us.us.us ], [ %333, %.preheader.us.us.us.new ]
  br i1 %lcmp.mod318.not, label %._crit_edge249.us.us.us, label %.epil.preheader315

.epil.preheader315:                               ; preds = %._crit_edge249.us.us.us.unr-lcssa, %.epil.preheader315
  %.3247.us.us.us.epil = phi i64 [ %340, %.epil.preheader315 ], [ %.3247.us.us.us.unr, %._crit_edge249.us.us.us.unr-lcssa ]
  %epil.iter317 = phi i64 [ %epil.iter317.next, %.epil.preheader315 ], [ 0, %._crit_edge249.us.us.us.unr-lcssa ]
  %334 = load ptr, ptr %299, align 8, !tbaa !17
  %335 = getelementptr inbounds double, ptr %334, i64 %.3247.us.us.us.epil
  %336 = load double, ptr %335, align 8, !tbaa !18
  %337 = load ptr, ptr %300, align 8, !tbaa !17
  %338 = getelementptr double, ptr %337, i64 %305
  %339 = getelementptr double, ptr %338, i64 %.3247.us.us.us.epil
  store double %336, ptr %339, align 8, !tbaa !18
  %340 = add nuw nsw i64 %.3247.us.us.us.epil, 1
  %epil.iter317.next = add i64 %epil.iter317, 1
  %epil.iter317.cmp.not = icmp eq i64 %epil.iter317.next, %xtraiter316
  br i1 %epil.iter317.cmp.not, label %._crit_edge249.us.us.us, label %.epil.preheader315, !llvm.loop !40

._crit_edge249.us.us.us:                          ; preds = %.epil.preheader315, %._crit_edge249.us.us.us.unr-lcssa
  %341 = add nuw nsw i64 %.5251.us.us.us, 1
  %exitcond277.not = icmp eq i64 %341, %298
  br i1 %exitcond277.not, label %._crit_edge252.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !41

._crit_edge252.split.us.us.us:                    ; preds = %._crit_edge249.us.us.us
  %342 = add nuw nsw i64 %.5168254.us.us, 1
  %exitcond278.not = icmp eq i64 %342, %297
  br i1 %exitcond278.not, label %.loopexit, label %.preheader185.us.us, !llvm.loop !42

.loopexit:                                        ; preds = %._crit_edge252.split.us.us.us, %.preheader185.lr.ph.split.us, %.preheader185.lr.ph, %296, %294, %.loopexit187
  %343 = load i64, ptr %0, align 8, !tbaa !5
  %344 = icmp eq i64 %343, -3
  br i1 %344, label %345, label %349

345:                                              ; preds = %.loopexit
  %346 = load i64, ptr %18, align 8, !tbaa !14
  %347 = load i64, ptr %20, align 8, !tbaa !15
  %348 = load i64, ptr %25, align 8, !tbaa !16
  call void @_ZN11alglib_impl21spline2dbuildbicubicvEPNS_9ae_vectorElS1_lS1_lPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %346, ptr noundef nonnull %9, i64 noundef %347, ptr noundef nonnull %10, i64 noundef %348, ptr noundef nonnull %0, ptr noundef %5)
  %.pr = load i64, ptr %0, align 8, !tbaa !5
  br label %349

349:                                              ; preds = %345, %.loopexit
  %350 = phi i64 [ %.pr, %345 ], [ %343, %.loopexit ]
  %351 = icmp eq i64 %350, -1
  br i1 %351, label %352, label %356

352:                                              ; preds = %349
  %353 = load i64, ptr %18, align 8, !tbaa !14
  %354 = load i64, ptr %20, align 8, !tbaa !15
  %355 = load i64, ptr %25, align 8, !tbaa !16
  call void @_ZN11alglib_impl22spline2dbuildbilinearvEPNS_9ae_vectorElS1_lS1_lPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %353, ptr noundef nonnull %9, i64 noundef %354, ptr noundef nonnull %10, i64 noundef %355, ptr noundef nonnull %0, ptr noundef %5)
  br label %356

356:                                              ; preds = %352, %349
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl22spline2dbuildbilinearvEPNS_9ae_vectorElS1_lS1_lPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl21spline2dbuildbicubicvEPNS_9ae_vectorElS1_lS1_lPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl19spline2dinterpolantE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 96, !10, i64 160}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !7, i64 16}
!16 = !{!6, !7, i64 24}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !23}
!32 = distinct !{!32, !23}
!33 = distinct !{!33, !23}
!34 = distinct !{!34, !21}
!35 = distinct !{!35, !23}
!36 = distinct !{!36, !23}
!37 = distinct !{!37, !23}
!38 = distinct !{!38, !23}
!39 = distinct !{!39, !23}
!40 = distinct !{!40, !21}
!41 = distinct !{!41, !23}
!42 = distinct !{!42, !23}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass