; LLVM IR from Dimandragon/non-parametric-dsp :: 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { 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, i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.896 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.897 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.898 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.899 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.900 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.901 = external hidden unnamed_addr constant [55 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
define dso_local void @_ZN11alglib_impl20spline2dbuildbicubicEPKNS_9ae_vectorES2_PKNS_9ae_matrixEllPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %23 = alloca double, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i64 %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 80, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #4
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %28, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %16, ptr noundef %29, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_spline2dinterpolant_clearEPv(ptr noundef %31)
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load i64, ptr %12, align 8, !tbaa !9
  %37 = icmp sge i64 %36, 2
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.896, ptr noundef %38)
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = icmp sge i64 %39, 2
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.897, ptr noundef %41)
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = load i64, ptr %12, align 8, !tbaa !9
  %46 = icmp sge i64 %44, %45
  br i1 %46, label %47, label %53

47:                                               ; preds = %7
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = load i64, ptr %11, align 8, !tbaa !9
  %52 = icmp sge i64 %50, %51
  br label %53

53:                                               ; preds = %47, %7
  %54 = phi i1 [ false, %7 ], [ %52, %47 ]
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.898, ptr noundef %55)
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i64, ptr %12, align 8, !tbaa !9
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %56, i64 noundef %57, ptr noundef %58)
  br i1 %59, label %60, label %65

60:                                               ; preds = %53
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load i64, ptr %11, align 8, !tbaa !9
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %61, i64 noundef %62, ptr noundef %63)
  br label %65

65:                                               ; preds = %60, %53
  %66 = phi i1 [ false, %53 ], [ %64, %60 ]
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %66, ptr noundef @.str.899, ptr noundef %67)
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 0
  %69 = load i64, ptr %68, align 8, !tbaa !15
  %70 = load i64, ptr %11, align 8, !tbaa !9
  %71 = icmp sge i64 %69, %70
  br i1 %71, label %72, label %77

72:                                               ; preds = %65
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !17
  %75 = load i64, ptr %12, align 8, !tbaa !9
  %76 = icmp sge i64 %74, %75
  br label %77

77:                                               ; preds = %72, %65
  %78 = phi i1 [ false, %65 ], [ %76, %72 ]
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %78, ptr noundef @.str.900, ptr noundef %79)
  %80 = load i64, ptr %11, align 8, !tbaa !9
  %81 = load i64, ptr %12, align 8, !tbaa !9
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %80, i64 noundef %81, ptr noundef %82)
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %83, ptr noundef @.str.901, ptr noundef %84)
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %85, i32 0, i32 4
  store i64 1, ptr %86, align 8, !tbaa !18
  %87 = load i64, ptr %12, align 8, !tbaa !9
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %88, i32 0, i32 2
  store i64 %87, ptr %89, align 8, !tbaa !20
  %90 = load i64, ptr %11, align 8, !tbaa !9
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %91, i32 0, i32 3
  store i64 %90, ptr %92, align 8, !tbaa !21
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %93, i32 0, i32 0
  store i64 -3, ptr %94, align 8, !tbaa !22
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %95, i32 0, i32 1
  store i8 0, ptr %96, align 8, !tbaa !23
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %97, i32 0, i32 2
  %99 = load i64, ptr %98, align 8, !tbaa !20
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %100, i32 0, i32 3
  %102 = load i64, ptr %101, align 8, !tbaa !21
  %103 = mul nsw i64 %99, %102
  store i64 %103, ptr %17, align 8, !tbaa !9
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %104, i32 0, i32 2
  %106 = load i64, ptr %105, align 8, !tbaa !20
  %107 = mul nsw i64 2, %106
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %108, i32 0, i32 3
  %110 = load i64, ptr %109, align 8, !tbaa !21
  %111 = mul nsw i64 %107, %110
  store i64 %111, ptr %18, align 8, !tbaa !9
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %112, i32 0, i32 2
  %114 = load i64, ptr %113, align 8, !tbaa !20
  %115 = mul nsw i64 3, %114
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %116, i32 0, i32 3
  %118 = load i64, ptr %117, align 8, !tbaa !21
  %119 = mul nsw i64 %115, %118
  store i64 %119, ptr %19, align 8, !tbaa !9
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %120, i32 0, i32 5
  %122 = load ptr, ptr %13, 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 !20
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %121, i64 noundef %124, ptr noundef %125)
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %126, i32 0, i32 6
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %128, i32 0, i32 3
  %130 = load i64, ptr %129, align 8, !tbaa !21
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %127, i64 noundef %130, ptr noundef %131)
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %132, i32 0, i32 7
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %134, i32 0, i32 2
  %136 = load i64, ptr %135, align 8, !tbaa !20
  %137 = mul nsw i64 4, %136
  %138 = load ptr, ptr %13, 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 !21
  %141 = mul nsw i64 %137, %140
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %133, i64 noundef %141, ptr noundef %142)
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %163, %77
  %144 = load i64, ptr %24, align 8, !tbaa !9
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %145, i32 0, i32 2
  %147 = load i64, ptr %146, align 8, !tbaa !20
  %148 = sub nsw i64 %147, 1
  %149 = icmp sle i64 %144, %148
  br i1 %149, label %150, label %166

150:                                              ; preds = %143
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !24
  %154 = load i64, ptr %24, align 8, !tbaa !9
  %155 = getelementptr inbounds double, ptr %153, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !25
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %157, i32 0, i32 5
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !24
  %161 = load i64, ptr %24, align 8, !tbaa !9
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  store double %156, ptr %162, align 8, !tbaa !25
  br label %163

163:                                              ; preds = %150
  %164 = load i64, ptr %24, align 8, !tbaa !9
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %24, align 8, !tbaa !9
  br label %143, !llvm.loop !27

166:                                              ; preds = %143
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %187, %166
  %168 = load i64, ptr %24, align 8, !tbaa !9
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %169, i32 0, i32 3
  %171 = load i64, ptr %170, align 8, !tbaa !21
  %172 = sub nsw i64 %171, 1
  %173 = icmp sle i64 %168, %172
  br i1 %173, label %174, label %190

174:                                              ; preds = %167
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %175, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !24
  %178 = load i64, ptr %24, align 8, !tbaa !9
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !25
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %181, i32 0, i32 6
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %182, i32 0, i32 4
  %184 = load ptr, ptr %183, align 8, !tbaa !24
  %185 = load i64, ptr %24, align 8, !tbaa !9
  %186 = getelementptr inbounds double, ptr %184, i64 %185
  store double %180, ptr %186, align 8, !tbaa !25
  br label %187

187:                                              ; preds = %174
  %188 = load i64, ptr %24, align 8, !tbaa !9
  %189 = add nsw i64 %188, 1
  store i64 %189, ptr %24, align 8, !tbaa !9
  br label %167, !llvm.loop !29

190:                                              ; preds = %167
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %191

191:                                              ; preds = %307, %190
  %192 = load i64, ptr %25, align 8, !tbaa !9
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %193, i32 0, i32 2
  %195 = load i64, ptr %194, align 8, !tbaa !20
  %196 = sub nsw i64 %195, 1
  %197 = icmp sle i64 %192, %196
  br i1 %197, label %198, label %310

198:                                              ; preds = %191
  %199 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %199, ptr %26, align 8, !tbaa !9
  %200 = load i64, ptr %25, align 8, !tbaa !9
  %201 = add nsw i64 %200, 1
  store i64 %201, ptr %24, align 8, !tbaa !9
  br label %202

202:                                              ; preds = %228, %198
  %203 = load i64, ptr %24, align 8, !tbaa !9
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %204, i32 0, i32 2
  %206 = load i64, ptr %205, align 8, !tbaa !20
  %207 = sub nsw i64 %206, 1
  %208 = icmp sle i64 %203, %207
  br i1 %208, label %209, label %231

209:                                              ; preds = %202
  %210 = load ptr, ptr %13, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %210, i32 0, i32 5
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !24
  %214 = load i64, ptr %24, align 8, !tbaa !9
  %215 = getelementptr inbounds double, ptr %213, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !25
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %217, i32 0, i32 5
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !24
  %221 = load i64, ptr %26, align 8, !tbaa !9
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !25
  %224 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %216, double noundef %223)
  br i1 %224, label %225, label %227

225:                                              ; preds = %209
  %226 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %226, ptr %26, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %225, %209
  br label %228

228:                                              ; preds = %227
  %229 = load i64, ptr %24, align 8, !tbaa !9
  %230 = add nsw i64 %229, 1
  store i64 %230, ptr %24, align 8, !tbaa !9
  br label %202, !llvm.loop !30

231:                                              ; preds = %202
  %232 = load i64, ptr %26, align 8, !tbaa !9
  %233 = load i64, ptr %25, align 8, !tbaa !9
  %234 = icmp ne i64 %232, %233
  br i1 %234, label %235, label %306

235:                                              ; preds = %231
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %236

236:                                              ; preds = %275, %235
  %237 = load i64, ptr %24, align 8, !tbaa !9
  %238 = load ptr, ptr %13, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %238, i32 0, i32 3
  %240 = load i64, ptr %239, align 8, !tbaa !21
  %241 = sub nsw i64 %240, 1
  %242 = icmp sle i64 %237, %241
  br i1 %242, label %243, label %278

243:                                              ; preds = %236
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !24
  %246 = load i64, ptr %24, align 8, !tbaa !9
  %247 = getelementptr inbounds ptr, ptr %245, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load i64, ptr %25, align 8, !tbaa !9
  %250 = getelementptr inbounds double, ptr %248, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !25
  store double %251, ptr %23, align 8, !tbaa !25
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %253 = load ptr, ptr %252, align 8, !tbaa !24
  %254 = load i64, ptr %24, align 8, !tbaa !9
  %255 = getelementptr inbounds ptr, ptr %253, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  %257 = load i64, ptr %26, align 8, !tbaa !9
  %258 = getelementptr inbounds double, ptr %256, i64 %257
  %259 = load double, ptr %258, align 8, !tbaa !25
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %261 = load ptr, ptr %260, align 8, !tbaa !24
  %262 = load i64, ptr %24, align 8, !tbaa !9
  %263 = getelementptr inbounds ptr, ptr %261, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = load i64, ptr %25, align 8, !tbaa !9
  %266 = getelementptr inbounds double, ptr %264, i64 %265
  store double %259, ptr %266, align 8, !tbaa !25
  %267 = load double, ptr %23, align 8, !tbaa !25
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %269 = load ptr, ptr %268, align 8, !tbaa !24
  %270 = load i64, ptr %24, align 8, !tbaa !9
  %271 = getelementptr inbounds ptr, ptr %269, i64 %270
  %272 = load ptr, ptr %271, align 8, !tbaa !5
  %273 = load i64, ptr %26, align 8, !tbaa !9
  %274 = getelementptr inbounds double, ptr %272, i64 %273
  store double %267, ptr %274, align 8, !tbaa !25
  br label %275

275:                                              ; preds = %243
  %276 = load i64, ptr %24, align 8, !tbaa !9
  %277 = add nsw i64 %276, 1
  store i64 %277, ptr %24, align 8, !tbaa !9
  br label %236, !llvm.loop !31

278:                                              ; preds = %236
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %279, i32 0, i32 5
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %280, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !24
  %283 = load i64, ptr %25, align 8, !tbaa !9
  %284 = getelementptr inbounds double, ptr %282, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !25
  store double %285, ptr %23, align 8, !tbaa !25
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %286, i32 0, i32 5
  %288 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %287, i32 0, i32 4
  %289 = load ptr, ptr %288, align 8, !tbaa !24
  %290 = load i64, ptr %26, align 8, !tbaa !9
  %291 = getelementptr inbounds double, ptr %289, i64 %290
  %292 = load double, ptr %291, align 8, !tbaa !25
  %293 = load ptr, ptr %13, align 8, !tbaa !5
  %294 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %293, i32 0, i32 5
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %294, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !24
  %297 = load i64, ptr %25, align 8, !tbaa !9
  %298 = getelementptr inbounds double, ptr %296, i64 %297
  store double %292, ptr %298, align 8, !tbaa !25
  %299 = load double, ptr %23, align 8, !tbaa !25
  %300 = load ptr, ptr %13, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %300, i32 0, i32 5
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %301, i32 0, i32 4
  %303 = load ptr, ptr %302, align 8, !tbaa !24
  %304 = load i64, ptr %26, align 8, !tbaa !9
  %305 = getelementptr inbounds double, ptr %303, i64 %304
  store double %299, ptr %305, align 8, !tbaa !25
  br label %306

306:                                              ; preds = %278, %231
  br label %307

307:                                              ; preds = %306
  %308 = load i64, ptr %25, align 8, !tbaa !9
  %309 = add nsw i64 %308, 1
  store i64 %309, ptr %25, align 8, !tbaa !9
  br label %191, !llvm.loop !32

310:                                              ; preds = %191
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %311

311:                                              ; preds = %427, %310
  %312 = load i64, ptr %24, align 8, !tbaa !9
  %313 = load ptr, ptr %13, align 8, !tbaa !5
  %314 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %313, i32 0, i32 3
  %315 = load i64, ptr %314, align 8, !tbaa !21
  %316 = sub nsw i64 %315, 1
  %317 = icmp sle i64 %312, %316
  br i1 %317, label %318, label %430

318:                                              ; preds = %311
  %319 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %319, ptr %26, align 8, !tbaa !9
  %320 = load i64, ptr %24, align 8, !tbaa !9
  %321 = add nsw i64 %320, 1
  store i64 %321, ptr %25, align 8, !tbaa !9
  br label %322

322:                                              ; preds = %348, %318
  %323 = load i64, ptr %25, align 8, !tbaa !9
  %324 = load ptr, ptr %13, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %324, i32 0, i32 3
  %326 = load i64, ptr %325, align 8, !tbaa !21
  %327 = sub nsw i64 %326, 1
  %328 = icmp sle i64 %323, %327
  br i1 %328, label %329, label %351

329:                                              ; preds = %322
  %330 = load ptr, ptr %13, align 8, !tbaa !5
  %331 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %330, i32 0, i32 6
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %331, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !24
  %334 = load i64, ptr %25, align 8, !tbaa !9
  %335 = getelementptr inbounds double, ptr %333, i64 %334
  %336 = load double, ptr %335, align 8, !tbaa !25
  %337 = load ptr, ptr %13, align 8, !tbaa !5
  %338 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %337, i32 0, i32 6
  %339 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %338, i32 0, i32 4
  %340 = load ptr, ptr %339, align 8, !tbaa !24
  %341 = load i64, ptr %26, align 8, !tbaa !9
  %342 = getelementptr inbounds double, ptr %340, i64 %341
  %343 = load double, ptr %342, align 8, !tbaa !25
  %344 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %336, double noundef %343)
  br i1 %344, label %345, label %347

345:                                              ; preds = %329
  %346 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %346, ptr %26, align 8, !tbaa !9
  br label %347

347:                                              ; preds = %345, %329
  br label %348

348:                                              ; preds = %347
  %349 = load i64, ptr %25, align 8, !tbaa !9
  %350 = add nsw i64 %349, 1
  store i64 %350, ptr %25, align 8, !tbaa !9
  br label %322, !llvm.loop !33

351:                                              ; preds = %322
  %352 = load i64, ptr %26, align 8, !tbaa !9
  %353 = load i64, ptr %24, align 8, !tbaa !9
  %354 = icmp ne i64 %352, %353
  br i1 %354, label %355, label %426

355:                                              ; preds = %351
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %356

356:                                              ; preds = %395, %355
  %357 = load i64, ptr %25, align 8, !tbaa !9
  %358 = load ptr, ptr %13, align 8, !tbaa !5
  %359 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %358, i32 0, i32 2
  %360 = load i64, ptr %359, align 8, !tbaa !20
  %361 = sub nsw i64 %360, 1
  %362 = icmp sle i64 %357, %361
  br i1 %362, label %363, label %398

363:                                              ; preds = %356
  %364 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %365 = load ptr, ptr %364, align 8, !tbaa !24
  %366 = load i64, ptr %24, align 8, !tbaa !9
  %367 = getelementptr inbounds ptr, ptr %365, i64 %366
  %368 = load ptr, ptr %367, align 8, !tbaa !5
  %369 = load i64, ptr %25, align 8, !tbaa !9
  %370 = getelementptr inbounds double, ptr %368, i64 %369
  %371 = load double, ptr %370, align 8, !tbaa !25
  store double %371, ptr %23, align 8, !tbaa !25
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %373 = load ptr, ptr %372, align 8, !tbaa !24
  %374 = load i64, ptr %26, align 8, !tbaa !9
  %375 = getelementptr inbounds ptr, ptr %373, i64 %374
  %376 = load ptr, ptr %375, align 8, !tbaa !5
  %377 = load i64, ptr %25, align 8, !tbaa !9
  %378 = getelementptr inbounds double, ptr %376, i64 %377
  %379 = load double, ptr %378, align 8, !tbaa !25
  %380 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %381 = load ptr, ptr %380, align 8, !tbaa !24
  %382 = load i64, ptr %24, align 8, !tbaa !9
  %383 = getelementptr inbounds ptr, ptr %381, i64 %382
  %384 = load ptr, ptr %383, align 8, !tbaa !5
  %385 = load i64, ptr %25, align 8, !tbaa !9
  %386 = getelementptr inbounds double, ptr %384, i64 %385
  store double %379, ptr %386, align 8, !tbaa !25
  %387 = load double, ptr %23, align 8, !tbaa !25
  %388 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %389 = load ptr, ptr %388, align 8, !tbaa !24
  %390 = load i64, ptr %26, align 8, !tbaa !9
  %391 = getelementptr inbounds ptr, ptr %389, i64 %390
  %392 = load ptr, ptr %391, align 8, !tbaa !5
  %393 = load i64, ptr %25, align 8, !tbaa !9
  %394 = getelementptr inbounds double, ptr %392, i64 %393
  store double %387, ptr %394, align 8, !tbaa !25
  br label %395

395:                                              ; preds = %363
  %396 = load i64, ptr %25, align 8, !tbaa !9
  %397 = add nsw i64 %396, 1
  store i64 %397, ptr %25, align 8, !tbaa !9
  br label %356, !llvm.loop !34

398:                                              ; preds = %356
  %399 = load ptr, ptr %13, align 8, !tbaa !5
  %400 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %399, i32 0, i32 6
  %401 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %400, i32 0, i32 4
  %402 = load ptr, ptr %401, align 8, !tbaa !24
  %403 = load i64, ptr %24, align 8, !tbaa !9
  %404 = getelementptr inbounds double, ptr %402, i64 %403
  %405 = load double, ptr %404, align 8, !tbaa !25
  store double %405, ptr %23, align 8, !tbaa !25
  %406 = load ptr, ptr %13, align 8, !tbaa !5
  %407 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %406, i32 0, i32 6
  %408 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %407, i32 0, i32 4
  %409 = load ptr, ptr %408, align 8, !tbaa !24
  %410 = load i64, ptr %26, align 8, !tbaa !9
  %411 = getelementptr inbounds double, ptr %409, i64 %410
  %412 = load double, ptr %411, align 8, !tbaa !25
  %413 = load ptr, ptr %13, align 8, !tbaa !5
  %414 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %413, i32 0, i32 6
  %415 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %414, i32 0, i32 4
  %416 = load ptr, ptr %415, align 8, !tbaa !24
  %417 = load i64, ptr %24, align 8, !tbaa !9
  %418 = getelementptr inbounds double, ptr %416, i64 %417
  store double %412, ptr %418, align 8, !tbaa !25
  %419 = load double, ptr %23, align 8, !tbaa !25
  %420 = load ptr, ptr %13, align 8, !tbaa !5
  %421 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %420, i32 0, i32 6
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %421, i32 0, i32 4
  %423 = load ptr, ptr %422, align 8, !tbaa !24
  %424 = load i64, ptr %26, align 8, !tbaa !9
  %425 = getelementptr inbounds double, ptr %423, i64 %424
  store double %419, ptr %425, align 8, !tbaa !25
  br label %426

426:                                              ; preds = %398, %351
  br label %427

427:                                              ; preds = %426
  %428 = load i64, ptr %24, align 8, !tbaa !9
  %429 = add nsw i64 %428, 1
  store i64 %429, ptr %24, align 8, !tbaa !9
  br label %311, !llvm.loop !35

430:                                              ; preds = %311
  %431 = load ptr, ptr %13, align 8, !tbaa !5
  %432 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %431, i32 0, i32 5
  %433 = load ptr, ptr %13, align 8, !tbaa !5
  %434 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %433, i32 0, i32 6
  %435 = load ptr, ptr %13, align 8, !tbaa !5
  %436 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %435, i32 0, i32 3
  %437 = load i64, ptr %436, align 8, !tbaa !21
  %438 = load ptr, ptr %13, align 8, !tbaa !5
  %439 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %438, i32 0, i32 2
  %440 = load i64, ptr %439, align 8, !tbaa !20
  %441 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL31spline2d_bicubiccalcderivativesEPKNS_9ae_matrixEPKNS_9ae_vectorES5_llS5_lS5_lS5_lS5_lS5_PS0_S6_S6_PNS_8ae_stateE(ptr noundef %16, ptr noundef %432, ptr noundef %434, i64 noundef %437, i64 noundef %440, ptr noundef %27, i64 noundef 0, ptr noundef %27, i64 noundef 0, ptr noundef %27, i64 noundef 0, ptr noundef %27, i64 noundef 0, ptr noundef %27, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %441)
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %442

442:                                              ; preds = %531, %430
  %443 = load i64, ptr %24, align 8, !tbaa !9
  %444 = load ptr, ptr %13, align 8, !tbaa !5
  %445 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %444, i32 0, i32 3
  %446 = load i64, ptr %445, align 8, !tbaa !21
  %447 = sub nsw i64 %446, 1
  %448 = icmp sle i64 %443, %447
  br i1 %448, label %449, label %534

449:                                              ; preds = %442
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %450

450:                                              ; preds = %527, %449
  %451 = load i64, ptr %25, align 8, !tbaa !9
  %452 = load ptr, ptr %13, align 8, !tbaa !5
  %453 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %452, i32 0, i32 2
  %454 = load i64, ptr %453, align 8, !tbaa !20
  %455 = sub nsw i64 %454, 1
  %456 = icmp sle i64 %451, %455
  br i1 %456, label %457, label %530

457:                                              ; preds = %450
  %458 = load i64, ptr %24, align 8, !tbaa !9
  %459 = load ptr, ptr %13, align 8, !tbaa !5
  %460 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %459, i32 0, i32 2
  %461 = load i64, ptr %460, align 8, !tbaa !20
  %462 = mul nsw i64 %458, %461
  %463 = load i64, ptr %25, align 8, !tbaa !9
  %464 = add nsw i64 %462, %463
  store i64 %464, ptr %26, align 8, !tbaa !9
  %465 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %466 = load ptr, ptr %465, align 8, !tbaa !24
  %467 = load i64, ptr %24, align 8, !tbaa !9
  %468 = getelementptr inbounds ptr, ptr %466, i64 %467
  %469 = load ptr, ptr %468, align 8, !tbaa !5
  %470 = load i64, ptr %25, align 8, !tbaa !9
  %471 = getelementptr inbounds double, ptr %469, i64 %470
  %472 = load double, ptr %471, align 8, !tbaa !25
  %473 = load ptr, ptr %13, align 8, !tbaa !5
  %474 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %473, i32 0, i32 7
  %475 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %474, i32 0, i32 4
  %476 = load ptr, ptr %475, align 8, !tbaa !24
  %477 = load i64, ptr %26, align 8, !tbaa !9
  %478 = getelementptr inbounds double, ptr %476, i64 %477
  store double %472, ptr %478, align 8, !tbaa !25
  %479 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %480 = load ptr, ptr %479, align 8, !tbaa !24
  %481 = load i64, ptr %24, align 8, !tbaa !9
  %482 = getelementptr inbounds ptr, ptr %480, i64 %481
  %483 = load ptr, ptr %482, align 8, !tbaa !5
  %484 = load i64, ptr %25, align 8, !tbaa !9
  %485 = getelementptr inbounds double, ptr %483, i64 %484
  %486 = load double, ptr %485, align 8, !tbaa !25
  %487 = load ptr, ptr %13, align 8, !tbaa !5
  %488 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %487, i32 0, i32 7
  %489 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %488, i32 0, i32 4
  %490 = load ptr, ptr %489, align 8, !tbaa !24
  %491 = load i64, ptr %17, align 8, !tbaa !9
  %492 = load i64, ptr %26, align 8, !tbaa !9
  %493 = add nsw i64 %491, %492
  %494 = getelementptr inbounds double, ptr %490, i64 %493
  store double %486, ptr %494, align 8, !tbaa !25
  %495 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %496 = load ptr, ptr %495, align 8, !tbaa !24
  %497 = load i64, ptr %24, align 8, !tbaa !9
  %498 = getelementptr inbounds ptr, ptr %496, i64 %497
  %499 = load ptr, ptr %498, align 8, !tbaa !5
  %500 = load i64, ptr %25, align 8, !tbaa !9
  %501 = getelementptr inbounds double, ptr %499, i64 %500
  %502 = load double, ptr %501, align 8, !tbaa !25
  %503 = load ptr, ptr %13, align 8, !tbaa !5
  %504 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %503, i32 0, i32 7
  %505 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %504, i32 0, i32 4
  %506 = load ptr, ptr %505, align 8, !tbaa !24
  %507 = load i64, ptr %18, align 8, !tbaa !9
  %508 = load i64, ptr %26, align 8, !tbaa !9
  %509 = add nsw i64 %507, %508
  %510 = getelementptr inbounds double, ptr %506, i64 %509
  store double %502, ptr %510, align 8, !tbaa !25
  %511 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %512 = load ptr, ptr %511, align 8, !tbaa !24
  %513 = load i64, ptr %24, align 8, !tbaa !9
  %514 = getelementptr inbounds ptr, ptr %512, i64 %513
  %515 = load ptr, ptr %514, align 8, !tbaa !5
  %516 = load i64, ptr %25, align 8, !tbaa !9
  %517 = getelementptr inbounds double, ptr %515, i64 %516
  %518 = load double, ptr %517, align 8, !tbaa !25
  %519 = load ptr, ptr %13, align 8, !tbaa !5
  %520 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %519, i32 0, i32 7
  %521 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %520, i32 0, i32 4
  %522 = load ptr, ptr %521, align 8, !tbaa !24
  %523 = load i64, ptr %19, align 8, !tbaa !9
  %524 = load i64, ptr %26, align 8, !tbaa !9
  %525 = add nsw i64 %523, %524
  %526 = getelementptr inbounds double, ptr %522, i64 %525
  store double %518, ptr %526, align 8, !tbaa !25
  br label %527

527:                                              ; preds = %457
  %528 = load i64, ptr %25, align 8, !tbaa !9
  %529 = add nsw i64 %528, 1
  store i64 %529, ptr %25, align 8, !tbaa !9
  br label %450, !llvm.loop !36

530:                                              ; preds = %450
  br label %531

531:                                              ; preds = %530
  %532 = load i64, ptr %24, align 8, !tbaa !9
  %533 = add nsw i64 %532, 1
  store i64 %533, ptr %24, align 8, !tbaa !9
  br label %442, !llvm.loop !37

534:                                              ; preds = %442
  %535 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %535)
  call void @llvm.lifetime.end.p0(i64 64, 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 80, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  ret void
}

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

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr 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 void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!17 = !{!16, !10, i64 8}
!18 = !{!19, !10, i64 32}
!19 = !{!"_ZTSN11alglib_impl19spline2dinterpolantE", !10, i64 0, !13, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !12, i64 40, !12, i64 104, !12, i64 168, !12, i64 232, !12, i64 296}
!20 = !{!19, !10, i64 16}
!21 = !{!19, !10, i64 24}
!22 = !{!19, !10, i64 0}
!23 = !{!19, !13, i64 8}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !28}
!35 = distinct !{!35, !28}
!36 = distinct !{!36, !28}
!37 = distinct !{!37, !28}


; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { 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.896 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.897 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.898 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.899 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.900 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.901 = external hidden unnamed_addr constant [55 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
define dso_local void @_ZN11alglib_impl20spline2dbuildbicubicEPKNS_9ae_vectorES2_PKNS_9ae_matrixEllPNS_19spline2dinterpolantEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #3 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %2, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_spline2dinterpolant_clearEPv(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  %14 = icmp sgt i64 %4, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.896, ptr noundef %6)
  %15 = icmp sgt i64 %3, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.897, ptr noundef %6)
  %16 = load i64, ptr %0, align 8, !tbaa !5
  %.not = icmp slt i64 %16, %4
  br i1 %.not, label %20, label %17

17:                                               ; preds = %7
  %18 = load i64, ptr %1, align 8, !tbaa !5
  %19 = icmp sge i64 %18, %3
  br label %20

20:                                               ; preds = %17, %7
  %21 = phi i1 [ false, %7 ], [ %19, %17 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.898, ptr noundef %6)
  %22 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %4, ptr noundef %6)
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  %24 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %3, ptr noundef %6)
  br label %25

25:                                               ; preds = %23, %20
  %26 = phi i1 [ false, %20 ], [ %24, %23 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.899, ptr noundef %6)
  %27 = load i64, ptr %9, align 8, !tbaa !13
  %28 = icmp sge i64 %27, %3
  %29 = getelementptr inbounds i8, ptr %9, i64 8
  %30 = load i64, ptr %29, align 8
  %31 = icmp sge i64 %30, %4
  %32 = select i1 %28, i1 %31, i1 false
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.900, ptr noundef %6)
  %33 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %3, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef nonnull @.str.901, ptr noundef %6)
  %34 = getelementptr inbounds i8, ptr %5, i64 32
  store i64 1, ptr %34, align 8, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %5, i64 16
  store i64 %4, ptr %35, align 8, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %5, i64 24
  store i64 %3, ptr %36, align 8, !tbaa !18
  store i64 -3, ptr %5, align 8, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %5, i64 8
  store i8 0, ptr %37, align 8, !tbaa !20
  %38 = mul i64 %4, %3
  %39 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %39, i64 noundef %4, ptr noundef %6)
  %40 = getelementptr inbounds i8, ptr %5, i64 104
  %41 = load i64, ptr %36, align 8, !tbaa !18
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %40, i64 noundef %41, ptr noundef %6)
  %42 = getelementptr inbounds i8, ptr %5, i64 168
  %43 = load i64, ptr %35, align 8, !tbaa !17
  %44 = shl nsw i64 %43, 2
  %45 = load i64, ptr %36, align 8, !tbaa !18
  %46 = mul nsw i64 %44, %45
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %42, i64 noundef %46, ptr noundef %6)
  %47 = load i64, ptr %35, align 8, !tbaa !17
  %.not181.not199 = icmp sgt i64 %47, 0
  br i1 %.not181.not199, label %.lr.ph, label %.preheader198

.lr.ph:                                           ; preds = %25
  %48 = getelementptr inbounds i8, ptr %0, i64 56
  %49 = getelementptr inbounds i8, ptr %5, i64 96
  %xtraiter = and i64 %47, 3
  %50 = icmp ult i64 %47, 4
  br i1 %50, label %.preheader198.loopexit.unr-lcssa, label %.lr.ph.new

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

.preheader198.loopexit.unr-lcssa:                 ; preds = %61, %.lr.ph
  %.0177200.unr = phi i64 [ 0, %.lr.ph ], [ %85, %61 ]
  %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
  %.0177200.epil = phi i64 [ %56, %.epil.preheader ], [ %.0177200.unr, %.preheader198.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader198.loopexit.unr-lcssa ]
  %51 = load ptr, ptr %48, align 8, !tbaa !21
  %52 = getelementptr inbounds double, ptr %51, i64 %.0177200.epil
  %53 = load double, ptr %52, align 8, !tbaa !22
  %54 = load ptr, ptr %49, align 8, !tbaa !21
  %55 = getelementptr inbounds double, ptr %54, i64 %.0177200.epil
  store double %53, ptr %55, align 8, !tbaa !22
  %56 = add nuw nsw i64 %.0177200.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 !24

.preheader198:                                    ; preds = %.preheader198.loopexit.unr-lcssa, %.epil.preheader, %25
  %57 = load i64, ptr %36, align 8, !tbaa !18
  %.not182.not201 = icmp sgt i64 %57, 0
  br i1 %.not182.not201, label %.lr.ph203, label %.preheader197

.lr.ph203:                                        ; preds = %.preheader198
  %58 = getelementptr inbounds i8, ptr %1, i64 56
  %59 = getelementptr inbounds i8, ptr %5, i64 160
  %xtraiter264 = and i64 %57, 3
  %60 = icmp ult i64 %57, 4
  br i1 %60, label %.preheader197.loopexit.unr-lcssa, label %.lr.ph203.new

.lr.ph203.new:                                    ; preds = %.lr.ph203
  %unroll_iter267 = and i64 %57, 9223372036854775804
  br label %94

61:                                               ; preds = %61, %.lr.ph.new
  %.0177200 = phi i64 [ 0, %.lr.ph.new ], [ %85, %61 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %61 ]
  %62 = load ptr, ptr %48, align 8, !tbaa !21
  %63 = getelementptr inbounds double, ptr %62, i64 %.0177200
  %64 = load double, ptr %63, align 8, !tbaa !22
  %65 = load ptr, ptr %49, align 8, !tbaa !21
  %66 = getelementptr inbounds double, ptr %65, i64 %.0177200
  store double %64, ptr %66, align 8, !tbaa !22
  %67 = or disjoint i64 %.0177200, 1
  %68 = load ptr, ptr %48, align 8, !tbaa !21
  %69 = getelementptr inbounds double, ptr %68, i64 %67
  %70 = load double, ptr %69, align 8, !tbaa !22
  %71 = load ptr, ptr %49, align 8, !tbaa !21
  %72 = getelementptr inbounds double, ptr %71, i64 %67
  store double %70, ptr %72, align 8, !tbaa !22
  %73 = or disjoint i64 %.0177200, 2
  %74 = load ptr, ptr %48, align 8, !tbaa !21
  %75 = getelementptr inbounds double, ptr %74, i64 %73
  %76 = load double, ptr %75, align 8, !tbaa !22
  %77 = load ptr, ptr %49, align 8, !tbaa !21
  %78 = getelementptr inbounds double, ptr %77, i64 %73
  store double %76, ptr %78, align 8, !tbaa !22
  %79 = or disjoint i64 %.0177200, 3
  %80 = load ptr, ptr %48, align 8, !tbaa !21
  %81 = getelementptr inbounds double, ptr %80, i64 %79
  %82 = load double, ptr %81, align 8, !tbaa !22
  %83 = load ptr, ptr %49, align 8, !tbaa !21
  %84 = getelementptr inbounds double, ptr %83, i64 %79
  store double %82, ptr %84, align 8, !tbaa !22
  %85 = add nuw nsw i64 %.0177200, 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 %61, !llvm.loop !26

.preheader197.loopexit.unr-lcssa:                 ; preds = %94, %.lr.ph203
  %.1178202.unr = phi i64 [ 0, %.lr.ph203 ], [ %118, %94 ]
  %lcmp.mod266.not = icmp eq i64 %xtraiter264, 0
  br i1 %lcmp.mod266.not, label %.preheader197, label %.epil.preheader263

.epil.preheader263:                               ; preds = %.preheader197.loopexit.unr-lcssa, %.epil.preheader263
  %.1178202.epil = phi i64 [ %91, %.epil.preheader263 ], [ %.1178202.unr, %.preheader197.loopexit.unr-lcssa ]
  %epil.iter265 = phi i64 [ %epil.iter265.next, %.epil.preheader263 ], [ 0, %.preheader197.loopexit.unr-lcssa ]
  %86 = load ptr, ptr %58, align 8, !tbaa !21
  %87 = getelementptr inbounds double, ptr %86, i64 %.1178202.epil
  %88 = load double, ptr %87, align 8, !tbaa !22
  %89 = load ptr, ptr %59, align 8, !tbaa !21
  %90 = getelementptr inbounds double, ptr %89, i64 %.1178202.epil
  store double %88, ptr %90, align 8, !tbaa !22
  %91 = add nuw nsw i64 %.1178202.epil, 1
  %epil.iter265.next = add i64 %epil.iter265, 1
  %epil.iter265.cmp.not = icmp eq i64 %epil.iter265.next, %xtraiter264
  br i1 %epil.iter265.cmp.not, label %.preheader197, label %.epil.preheader263, !llvm.loop !28

.preheader197:                                    ; preds = %.preheader197.loopexit.unr-lcssa, %.epil.preheader263, %.preheader198
  br i1 %.not181.not199, label %.lr.ph214, label %.preheader195

.lr.ph214:                                        ; preds = %.preheader197
  %92 = getelementptr inbounds i8, ptr %5, i64 96
  %93 = getelementptr inbounds i8, ptr %9, i64 72
  br label %123

94:                                               ; preds = %94, %.lr.ph203.new
  %.1178202 = phi i64 [ 0, %.lr.ph203.new ], [ %118, %94 ]
  %niter268 = phi i64 [ 0, %.lr.ph203.new ], [ %niter268.next.3, %94 ]
  %95 = load ptr, ptr %58, align 8, !tbaa !21
  %96 = getelementptr inbounds double, ptr %95, i64 %.1178202
  %97 = load double, ptr %96, align 8, !tbaa !22
  %98 = load ptr, ptr %59, align 8, !tbaa !21
  %99 = getelementptr inbounds double, ptr %98, i64 %.1178202
  store double %97, ptr %99, align 8, !tbaa !22
  %100 = or disjoint i64 %.1178202, 1
  %101 = load ptr, ptr %58, align 8, !tbaa !21
  %102 = getelementptr inbounds double, ptr %101, i64 %100
  %103 = load double, ptr %102, align 8, !tbaa !22
  %104 = load ptr, ptr %59, align 8, !tbaa !21
  %105 = getelementptr inbounds double, ptr %104, i64 %100
  store double %103, ptr %105, align 8, !tbaa !22
  %106 = or disjoint i64 %.1178202, 2
  %107 = load ptr, ptr %58, align 8, !tbaa !21
  %108 = getelementptr inbounds double, ptr %107, i64 %106
  %109 = load double, ptr %108, align 8, !tbaa !22
  %110 = load ptr, ptr %59, align 8, !tbaa !21
  %111 = getelementptr inbounds double, ptr %110, i64 %106
  store double %109, ptr %111, align 8, !tbaa !22
  %112 = or disjoint i64 %.1178202, 3
  %113 = load ptr, ptr %58, align 8, !tbaa !21
  %114 = getelementptr inbounds double, ptr %113, i64 %112
  %115 = load double, ptr %114, align 8, !tbaa !22
  %116 = load ptr, ptr %59, align 8, !tbaa !21
  %117 = getelementptr inbounds double, ptr %116, i64 %112
  store double %115, ptr %117, align 8, !tbaa !22
  %118 = add nuw nsw i64 %.1178202, 4
  %niter268.next.3 = add i64 %niter268, 4
  %niter268.ncmp.3 = icmp eq i64 %niter268.next.3, %unroll_iter267
  br i1 %niter268.ncmp.3, label %.preheader197.loopexit.unr-lcssa, label %94, !llvm.loop !29

.preheader195.loopexit:                           ; preds = %._crit_edge.thread
  %.pre = load i64, ptr %36, align 8, !tbaa !18
  br label %.preheader195

.preheader195:                                    ; preds = %.preheader195.loopexit, %.preheader197
  %119 = phi i64 [ %178, %.preheader195.loopexit ], [ %47, %.preheader197 ]
  %120 = phi i64 [ %.pre, %.preheader195.loopexit ], [ %57, %.preheader197 ]
  %.not184.not226 = icmp sgt i64 %120, 0
  br i1 %.not184.not226, label %.lr.ph228, label %._crit_edge229

.lr.ph228:                                        ; preds = %.preheader195
  %121 = getelementptr inbounds i8, ptr %5, i64 160
  %122 = getelementptr inbounds i8, ptr %9, i64 72
  br label %179

123:                                              ; preds = %.lr.ph214, %._crit_edge.thread
  %124 = phi i64 [ %47, %.lr.ph214 ], [ %178, %._crit_edge.thread ]
  %.0173213 = phi i64 [ 0, %.lr.ph214 ], [ %125, %._crit_edge.thread ]
  %125 = add nuw nsw i64 %.0173213, 1
  %.not190.not204 = icmp slt i64 %125, %124
  br i1 %.not190.not204, label %.lr.ph207, label %._crit_edge.thread

.lr.ph207:                                        ; preds = %123, %.lr.ph207
  %.0206 = phi i64 [ %spec.select, %.lr.ph207 ], [ %.0173213, %123 ]
  %.2179205 = phi i64 [ %132, %.lr.ph207 ], [ %125, %123 ]
  %126 = load ptr, ptr %92, align 8, !tbaa !21
  %127 = getelementptr inbounds double, ptr %126, i64 %.2179205
  %128 = load double, ptr %127, align 8, !tbaa !22
  %129 = getelementptr inbounds double, ptr %126, i64 %.0206
  %130 = load double, ptr %129, align 8, !tbaa !22
  %131 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %128, double noundef %130)
  %spec.select = select i1 %131, i64 %.2179205, i64 %.0206
  %132 = add nuw nsw i64 %.2179205, 1
  %133 = load i64, ptr %35, align 8, !tbaa !17
  %.not190.not = icmp slt i64 %132, %133
  br i1 %.not190.not, label %.lr.ph207, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %.lr.ph207
  %.not191 = icmp eq i64 %spec.select, %.0173213
  br i1 %.not191, label %._crit_edge.thread, label %.preheader196

.preheader196:                                    ; preds = %._crit_edge
  %134 = load i64, ptr %36, align 8, !tbaa !18
  %.not192.not208 = icmp sgt i64 %134, 0
  br i1 %.not192.not208, label %.lr.ph210.preheader, label %._crit_edge211

.lr.ph210.preheader:                              ; preds = %.preheader196
  %xtraiter269 = and i64 %134, 1
  %135 = icmp eq i64 %134, 1
  br i1 %135, label %._crit_edge211.loopexit.unr-lcssa, label %.lr.ph210.preheader.new

.lr.ph210.preheader.new:                          ; preds = %.lr.ph210.preheader
  %unroll_iter272 = and i64 %134, 9223372036854775806
  br label %.lr.ph210

.lr.ph210:                                        ; preds = %.lr.ph210, %.lr.ph210.preheader.new
  %.3180209 = phi i64 [ 0, %.lr.ph210.preheader.new ], [ %159, %.lr.ph210 ]
  %niter273 = phi i64 [ 0, %.lr.ph210.preheader.new ], [ %niter273.next.1, %.lr.ph210 ]
  %136 = load ptr, ptr %93, align 8, !tbaa !21
  %137 = getelementptr inbounds ptr, ptr %136, i64 %.3180209
  %138 = load ptr, ptr %137, align 8, !tbaa !31
  %139 = getelementptr inbounds double, ptr %138, i64 %.0173213
  %140 = load double, ptr %139, align 8, !tbaa !22
  %141 = getelementptr inbounds double, ptr %138, i64 %spec.select
  %142 = load double, ptr %141, align 8, !tbaa !22
  store double %142, ptr %139, align 8, !tbaa !22
  %143 = load ptr, ptr %93, align 8, !tbaa !21
  %144 = getelementptr inbounds ptr, ptr %143, i64 %.3180209
  %145 = load ptr, ptr %144, align 8, !tbaa !31
  %146 = getelementptr inbounds double, ptr %145, i64 %spec.select
  store double %140, ptr %146, align 8, !tbaa !22
  %147 = or disjoint i64 %.3180209, 1
  %148 = load ptr, ptr %93, align 8, !tbaa !21
  %149 = getelementptr inbounds ptr, ptr %148, i64 %147
  %150 = load ptr, ptr %149, align 8, !tbaa !31
  %151 = getelementptr inbounds double, ptr %150, i64 %.0173213
  %152 = load double, ptr %151, align 8, !tbaa !22
  %153 = getelementptr inbounds double, ptr %150, i64 %spec.select
  %154 = load double, ptr %153, align 8, !tbaa !22
  store double %154, ptr %151, align 8, !tbaa !22
  %155 = load ptr, ptr %93, align 8, !tbaa !21
  %156 = getelementptr inbounds ptr, ptr %155, i64 %147
  %157 = load ptr, ptr %156, align 8, !tbaa !31
  %158 = getelementptr inbounds double, ptr %157, i64 %spec.select
  store double %152, ptr %158, align 8, !tbaa !22
  %159 = add nuw nsw i64 %.3180209, 2
  %niter273.next.1 = add i64 %niter273, 2
  %niter273.ncmp.1 = icmp eq i64 %niter273.next.1, %unroll_iter272
  br i1 %niter273.ncmp.1, label %._crit_edge211.loopexit.unr-lcssa, label %.lr.ph210, !llvm.loop !32

._crit_edge211.loopexit.unr-lcssa:                ; preds = %.lr.ph210, %.lr.ph210.preheader
  %.3180209.unr = phi i64 [ 0, %.lr.ph210.preheader ], [ %159, %.lr.ph210 ]
  %lcmp.mod271.not = icmp eq i64 %xtraiter269, 0
  br i1 %lcmp.mod271.not, label %._crit_edge211, label %.lr.ph210.epil

.lr.ph210.epil:                                   ; preds = %._crit_edge211.loopexit.unr-lcssa
  %160 = load ptr, ptr %93, align 8, !tbaa !21
  %161 = getelementptr inbounds ptr, ptr %160, i64 %.3180209.unr
  %162 = load ptr, ptr %161, align 8, !tbaa !31
  %163 = getelementptr inbounds double, ptr %162, i64 %.0173213
  %164 = load double, ptr %163, align 8, !tbaa !22
  %165 = getelementptr inbounds double, ptr %162, i64 %spec.select
  %166 = load double, ptr %165, align 8, !tbaa !22
  store double %166, ptr %163, align 8, !tbaa !22
  %167 = load ptr, ptr %93, align 8, !tbaa !21
  %168 = getelementptr inbounds ptr, ptr %167, i64 %.3180209.unr
  %169 = load ptr, ptr %168, align 8, !tbaa !31
  %170 = getelementptr inbounds double, ptr %169, i64 %spec.select
  store double %164, ptr %170, align 8, !tbaa !22
  br label %._crit_edge211

._crit_edge211:                                   ; preds = %.lr.ph210.epil, %._crit_edge211.loopexit.unr-lcssa, %.preheader196
  %171 = load ptr, ptr %92, align 8, !tbaa !21
  %172 = getelementptr inbounds double, ptr %171, i64 %.0173213
  %173 = load double, ptr %172, align 8, !tbaa !22
  %174 = getelementptr inbounds double, ptr %171, i64 %spec.select
  %175 = load double, ptr %174, align 8, !tbaa !22
  store double %175, ptr %172, align 8, !tbaa !22
  %176 = load ptr, ptr %92, align 8, !tbaa !21
  %177 = getelementptr inbounds double, ptr %176, i64 %spec.select
  store double %173, ptr %177, align 8, !tbaa !22
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %123, %._crit_edge, %._crit_edge211
  %178 = phi i64 [ %133, %._crit_edge ], [ %133, %._crit_edge211 ], [ %124, %123 ]
  %.not183.not = icmp slt i64 %125, %178
  br i1 %.not183.not, label %123, label %.preheader195.loopexit, !llvm.loop !33

179:                                              ; preds = %.lr.ph228, %._crit_edge220.thread
  %180 = phi i64 [ %120, %.lr.ph228 ], [ %240, %._crit_edge220.thread ]
  %.4227 = phi i64 [ 0, %.lr.ph228 ], [ %181, %._crit_edge220.thread ]
  %181 = add nuw nsw i64 %.4227, 1
  %.not187.not215 = icmp slt i64 %181, %180
  br i1 %.not187.not215, label %.lr.ph219, label %._crit_edge220.thread

.lr.ph219:                                        ; preds = %179, %.lr.ph219
  %.2217 = phi i64 [ %spec.select193, %.lr.ph219 ], [ %.4227, %179 ]
  %.1174216 = phi i64 [ %188, %.lr.ph219 ], [ %181, %179 ]
  %182 = load ptr, ptr %121, align 8, !tbaa !21
  %183 = getelementptr inbounds double, ptr %182, i64 %.1174216
  %184 = load double, ptr %183, align 8, !tbaa !22
  %185 = getelementptr inbounds double, ptr %182, i64 %.2217
  %186 = load double, ptr %185, align 8, !tbaa !22
  %187 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %184, double noundef %186)
  %spec.select193 = select i1 %187, i64 %.1174216, i64 %.2217
  %188 = add nuw nsw i64 %.1174216, 1
  %189 = load i64, ptr %36, align 8, !tbaa !18
  %.not187.not = icmp slt i64 %188, %189
  br i1 %.not187.not, label %.lr.ph219, label %._crit_edge220, !llvm.loop !34

._crit_edge220:                                   ; preds = %.lr.ph219
  %.not188 = icmp eq i64 %spec.select193, %.4227
  br i1 %.not188, label %._crit_edge220.thread, label %.preheader194

.preheader194:                                    ; preds = %._crit_edge220
  %190 = load i64, ptr %35, align 8, !tbaa !17
  %.not189.not222 = icmp sgt i64 %190, 0
  br i1 %.not189.not222, label %.lr.ph224.preheader, label %._crit_edge225

.lr.ph224.preheader:                              ; preds = %.preheader194
  %xtraiter274 = and i64 %190, 1
  %191 = icmp eq i64 %190, 1
  br i1 %191, label %._crit_edge225.loopexit.unr-lcssa, label %.lr.ph224.preheader.new

.lr.ph224.preheader.new:                          ; preds = %.lr.ph224.preheader
  %unroll_iter277 = and i64 %190, 9223372036854775806
  br label %.lr.ph224

.lr.ph224:                                        ; preds = %.lr.ph224, %.lr.ph224.preheader.new
  %.2175223 = phi i64 [ 0, %.lr.ph224.preheader.new ], [ %219, %.lr.ph224 ]
  %niter278 = phi i64 [ 0, %.lr.ph224.preheader.new ], [ %niter278.next.1, %.lr.ph224 ]
  %192 = load ptr, ptr %122, align 8, !tbaa !21
  %193 = getelementptr inbounds ptr, ptr %192, i64 %.4227
  %194 = load ptr, ptr %193, align 8, !tbaa !31
  %195 = getelementptr inbounds double, ptr %194, i64 %.2175223
  %196 = load double, ptr %195, align 8, !tbaa !22
  %197 = getelementptr inbounds ptr, ptr %192, i64 %spec.select193
  %198 = load ptr, ptr %197, align 8, !tbaa !31
  %199 = getelementptr inbounds double, ptr %198, i64 %.2175223
  %200 = load double, ptr %199, align 8, !tbaa !22
  store double %200, ptr %195, align 8, !tbaa !22
  %201 = load ptr, ptr %122, align 8, !tbaa !21
  %202 = getelementptr inbounds ptr, ptr %201, i64 %spec.select193
  %203 = load ptr, ptr %202, align 8, !tbaa !31
  %204 = getelementptr inbounds double, ptr %203, i64 %.2175223
  store double %196, ptr %204, align 8, !tbaa !22
  %205 = or disjoint i64 %.2175223, 1
  %206 = load ptr, ptr %122, align 8, !tbaa !21
  %207 = getelementptr inbounds ptr, ptr %206, i64 %.4227
  %208 = load ptr, ptr %207, align 8, !tbaa !31
  %209 = getelementptr inbounds double, ptr %208, i64 %205
  %210 = load double, ptr %209, align 8, !tbaa !22
  %211 = getelementptr inbounds ptr, ptr %206, i64 %spec.select193
  %212 = load ptr, ptr %211, align 8, !tbaa !31
  %213 = getelementptr inbounds double, ptr %212, i64 %205
  %214 = load double, ptr %213, align 8, !tbaa !22
  store double %214, ptr %209, align 8, !tbaa !22
  %215 = load ptr, ptr %122, align 8, !tbaa !21
  %216 = getelementptr inbounds ptr, ptr %215, i64 %spec.select193
  %217 = load ptr, ptr %216, align 8, !tbaa !31
  %218 = getelementptr inbounds double, ptr %217, i64 %205
  store double %210, ptr %218, align 8, !tbaa !22
  %219 = add nuw nsw i64 %.2175223, 2
  %niter278.next.1 = add i64 %niter278, 2
  %niter278.ncmp.1 = icmp eq i64 %niter278.next.1, %unroll_iter277
  br i1 %niter278.ncmp.1, label %._crit_edge225.loopexit.unr-lcssa, label %.lr.ph224, !llvm.loop !35

._crit_edge225.loopexit.unr-lcssa:                ; preds = %.lr.ph224, %.lr.ph224.preheader
  %.2175223.unr = phi i64 [ 0, %.lr.ph224.preheader ], [ %219, %.lr.ph224 ]
  %lcmp.mod276.not = icmp eq i64 %xtraiter274, 0
  br i1 %lcmp.mod276.not, label %._crit_edge225, label %.lr.ph224.epil

.lr.ph224.epil:                                   ; preds = %._crit_edge225.loopexit.unr-lcssa
  %220 = load ptr, ptr %122, align 8, !tbaa !21
  %221 = getelementptr inbounds ptr, ptr %220, i64 %.4227
  %222 = load ptr, ptr %221, align 8, !tbaa !31
  %223 = getelementptr inbounds double, ptr %222, i64 %.2175223.unr
  %224 = load double, ptr %223, align 8, !tbaa !22
  %225 = getelementptr inbounds ptr, ptr %220, i64 %spec.select193
  %226 = load ptr, ptr %225, align 8, !tbaa !31
  %227 = getelementptr inbounds double, ptr %226, i64 %.2175223.unr
  %228 = load double, ptr %227, align 8, !tbaa !22
  store double %228, ptr %223, align 8, !tbaa !22
  %229 = load ptr, ptr %122, align 8, !tbaa !21
  %230 = getelementptr inbounds ptr, ptr %229, i64 %spec.select193
  %231 = load ptr, ptr %230, align 8, !tbaa !31
  %232 = getelementptr inbounds double, ptr %231, i64 %.2175223.unr
  store double %224, ptr %232, align 8, !tbaa !22
  br label %._crit_edge225

._crit_edge225:                                   ; preds = %.lr.ph224.epil, %._crit_edge225.loopexit.unr-lcssa, %.preheader194
  %233 = load ptr, ptr %121, align 8, !tbaa !21
  %234 = getelementptr inbounds double, ptr %233, i64 %.4227
  %235 = load double, ptr %234, align 8, !tbaa !22
  %236 = getelementptr inbounds double, ptr %233, i64 %spec.select193
  %237 = load double, ptr %236, align 8, !tbaa !22
  store double %237, ptr %234, align 8, !tbaa !22
  %238 = load ptr, ptr %121, align 8, !tbaa !21
  %239 = getelementptr inbounds double, ptr %238, i64 %spec.select193
  store double %235, ptr %239, align 8, !tbaa !22
  br label %._crit_edge220.thread

._crit_edge220.thread:                            ; preds = %179, %._crit_edge220, %._crit_edge225
  %240 = phi i64 [ %189, %._crit_edge220 ], [ %189, %._crit_edge225 ], [ %180, %179 ]
  %.not184.not = icmp slt i64 %181, %240
  br i1 %.not184.not, label %179, label %._crit_edge229.loopexit, !llvm.loop !36

._crit_edge229.loopexit:                          ; preds = %._crit_edge220.thread
  %.pre246 = load i64, ptr %35, align 8, !tbaa !17
  br label %._crit_edge229

._crit_edge229:                                   ; preds = %._crit_edge229.loopexit, %.preheader195
  %241 = phi i64 [ %119, %.preheader195 ], [ %.pre246, %._crit_edge229.loopexit ]
  %.lcssa = phi i64 [ %120, %.preheader195 ], [ %240, %._crit_edge229.loopexit ]
  call void @_ZN11alglib_implL31spline2d_bicubiccalcderivativesEPKNS_9ae_matrixEPKNS_9ae_vectorES5_llS5_lS5_lS5_lS5_lS5_PS0_S6_S6_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %39, ptr noundef nonnull %40, i64 noundef %.lcssa, i64 noundef %241, ptr noundef nonnull %13, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, ptr noundef nonnull %13, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %6)
  %242 = load i64, ptr %36, align 8, !tbaa !18
  %.not185.not235 = icmp sgt i64 %242, 0
  br i1 %.not185.not235, label %.preheader.lr.ph, label %._crit_edge237

.preheader.lr.ph:                                 ; preds = %._crit_edge229
  %243 = load i64, ptr %35, align 8, !tbaa !17
  %.not186.not231 = icmp sgt i64 %243, 0
  %244 = getelementptr inbounds i8, ptr %9, i64 72
  %245 = getelementptr inbounds i8, ptr %5, i64 224
  %246 = getelementptr inbounds i8, ptr %10, i64 72
  %247 = getelementptr inbounds i8, ptr %11, i64 72
  %248 = getelementptr inbounds i8, ptr %12, i64 72
  br i1 %.not186.not231, label %.preheader.us.preheader, label %._crit_edge237

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %.idx = shl i64 %38, 4
  %.idx238 = mul i64 %38, 24
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge234.us
  %.5236.us = phi i64 [ %284, %._crit_edge234.us ], [ 0, %.preheader.us.preheader ]
  %249 = mul nuw nsw i64 %243, %.5236.us
  br label %250

250:                                              ; preds = %.preheader.us, %250
  %.3176232.us = phi i64 [ 0, %.preheader.us ], [ %283, %250 ]
  %251 = add nuw nsw i64 %249, %.3176232.us
  %252 = load ptr, ptr %244, align 8, !tbaa !21
  %253 = getelementptr inbounds ptr, ptr %252, i64 %.5236.us
  %254 = load ptr, ptr %253, align 8, !tbaa !31
  %255 = getelementptr inbounds double, ptr %254, i64 %.3176232.us
  %256 = load double, ptr %255, align 8, !tbaa !22
  %257 = load ptr, ptr %245, align 8, !tbaa !21
  %258 = getelementptr inbounds double, ptr %257, i64 %251
  store double %256, ptr %258, align 8, !tbaa !22
  %259 = load ptr, ptr %246, align 8, !tbaa !21
  %260 = getelementptr inbounds ptr, ptr %259, i64 %.5236.us
  %261 = load ptr, ptr %260, align 8, !tbaa !31
  %262 = getelementptr inbounds double, ptr %261, i64 %.3176232.us
  %263 = load double, ptr %262, align 8, !tbaa !22
  %264 = load ptr, ptr %245, align 8, !tbaa !21
  %265 = getelementptr double, ptr %264, i64 %38
  %266 = getelementptr double, ptr %265, i64 %251
  store double %263, ptr %266, align 8, !tbaa !22
  %267 = load ptr, ptr %247, align 8, !tbaa !21
  %268 = getelementptr inbounds ptr, ptr %267, i64 %.5236.us
  %269 = load ptr, ptr %268, align 8, !tbaa !31
  %270 = getelementptr inbounds double, ptr %269, i64 %.3176232.us
  %271 = load double, ptr %270, align 8, !tbaa !22
  %272 = load ptr, ptr %245, align 8, !tbaa !21
  %273 = getelementptr i8, ptr %272, i64 %.idx
  %274 = getelementptr double, ptr %273, i64 %251
  store double %271, ptr %274, align 8, !tbaa !22
  %275 = load ptr, ptr %248, align 8, !tbaa !21
  %276 = getelementptr inbounds ptr, ptr %275, i64 %.5236.us
  %277 = load ptr, ptr %276, align 8, !tbaa !31
  %278 = getelementptr inbounds double, ptr %277, i64 %.3176232.us
  %279 = load double, ptr %278, align 8, !tbaa !22
  %280 = load ptr, ptr %245, align 8, !tbaa !21
  %281 = getelementptr i8, ptr %280, i64 %.idx238
  %282 = getelementptr double, ptr %281, i64 %251
  store double %279, ptr %282, align 8, !tbaa !22
  %283 = add nuw nsw i64 %.3176232.us, 1
  %exitcond244.not = icmp eq i64 %283, %243
  br i1 %exitcond244.not, label %._crit_edge234.us, label %250, !llvm.loop !37

._crit_edge234.us:                                ; preds = %250
  %284 = add nuw nsw i64 %.5236.us, 1
  %exitcond245.not = icmp eq i64 %284, %242
  br i1 %exitcond245.not, label %._crit_edge237, label %.preheader.us, !llvm.loop !38

._crit_edge237:                                   ; preds = %._crit_edge234.us, %.preheader.lr.ph, %._crit_edge229
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double 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 void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr 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 void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!15 = !{!16, !7, i64 32}
!16 = !{!"_ZTSN11alglib_impl19spline2dinterpolantE", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !6, i64 40, !6, i64 104, !6, i64 168, !6, i64 232, !6, i64 296}
!17 = !{!16, !7, i64 16}
!18 = !{!16, !7, i64 24}
!19 = !{!16, !7, i64 0}
!20 = !{!16, !10, i64 8}
!21 = !{!8, !8, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !8, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}
!31 = !{!12, !12, i64 0}
!32 = distinct !{!32, !27}
!33 = distinct !{!33, !27}
!34 = distinct !{!34, !27}
!35 = distinct !{!35, !27}
!36 = distinct !{!36, !27}
!37 = distinct !{!37, !27}
!38 = distinct !{!38, !27}


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