; 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_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, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.737 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.738 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.739 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.740 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.741 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.742 = 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_impl20spline2dbuildbicubicEPNS_9ae_vectorES1_PNS_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
  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
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %27, 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)
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef %16, ptr noundef %28, ptr noundef %29, i1 noundef zeroext true)
  store ptr %16, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_spline2dinterpolant_clearEPv(ptr noundef %30)
  %31 = 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 %31, i1 noundef zeroext true)
  %32 = 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 %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 %22, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  %34 = load i64, ptr %12, align 8, !tbaa !9
  %35 = icmp sge i64 %34, 2
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.737, ptr noundef %36)
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = icmp sge i64 %37, 2
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.738, ptr noundef %39)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = load i64, ptr %12, align 8, !tbaa !9
  %44 = icmp sge i64 %42, %43
  br i1 %44, label %45, label %51

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

51:                                               ; preds = %45, %7
  %52 = phi i1 [ false, %7 ], [ %50, %45 ]
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.739, ptr noundef %53)
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %54, i64 noundef %55, ptr noundef %56)
  br i1 %57, label %58, label %63

58:                                               ; preds = %51
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load i64, ptr %11, align 8, !tbaa !9
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %59, i64 noundef %60, ptr noundef %61)
  br label %63

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

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

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

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

162:                                              ; preds = %149
  %163 = load i64, ptr %24, align 8, !tbaa !9
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %24, align 8, !tbaa !9
  br label %142, !llvm.loop !26

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

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

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

186:                                              ; preds = %173
  %187 = load i64, ptr %24, align 8, !tbaa !9
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %24, align 8, !tbaa !9
  br label %166, !llvm.loop !28

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

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

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

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

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

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

226:                                              ; preds = %224, %208
  br label %227

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

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

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

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

242:                                              ; preds = %235
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !23
  %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 !24
  store double %251, ptr %23, align 8, !tbaa !24
  %252 = load ptr, ptr %10, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %252, i32 0, i32 6
  %254 = load ptr, ptr %253, align 8, !tbaa !23
  %255 = load i64, ptr %24, align 8, !tbaa !9
  %256 = getelementptr inbounds ptr, ptr %254, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = load i64, ptr %26, align 8, !tbaa !9
  %259 = getelementptr inbounds double, ptr %257, i64 %258
  %260 = load double, ptr %259, align 8, !tbaa !24
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %261, i32 0, i32 6
  %263 = load ptr, ptr %262, align 8, !tbaa !23
  %264 = load i64, ptr %24, align 8, !tbaa !9
  %265 = getelementptr inbounds ptr, ptr %263, i64 %264
  %266 = load ptr, ptr %265, align 8, !tbaa !5
  %267 = load i64, ptr %25, align 8, !tbaa !9
  %268 = getelementptr inbounds double, ptr %266, i64 %267
  store double %260, ptr %268, align 8, !tbaa !24
  %269 = load double, ptr %23, align 8, !tbaa !24
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %270, i32 0, i32 6
  %272 = load ptr, ptr %271, align 8, !tbaa !23
  %273 = load i64, ptr %24, align 8, !tbaa !9
  %274 = getelementptr inbounds ptr, ptr %272, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !5
  %276 = load i64, ptr %26, align 8, !tbaa !9
  %277 = getelementptr inbounds double, ptr %275, i64 %276
  store double %269, ptr %277, align 8, !tbaa !24
  br label %278

278:                                              ; preds = %242
  %279 = load i64, ptr %24, align 8, !tbaa !9
  %280 = add nsw i64 %279, 1
  store i64 %280, ptr %24, align 8, !tbaa !9
  br label %235, !llvm.loop !30

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

309:                                              ; preds = %281, %230
  br label %310

310:                                              ; preds = %309
  %311 = load i64, ptr %25, align 8, !tbaa !9
  %312 = add nsw i64 %311, 1
  store i64 %312, ptr %25, align 8, !tbaa !9
  br label %190, !llvm.loop !31

313:                                              ; preds = %190
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %314

314:                                              ; preds = %434, %313
  %315 = load i64, ptr %24, align 8, !tbaa !9
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %316, i32 0, i32 2
  %318 = load i64, ptr %317, align 8, !tbaa !21
  %319 = sub nsw i64 %318, 1
  %320 = icmp sle i64 %315, %319
  br i1 %320, label %321, label %437

321:                                              ; preds = %314
  %322 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %322, ptr %26, align 8, !tbaa !9
  %323 = load i64, ptr %24, align 8, !tbaa !9
  %324 = add nsw i64 %323, 1
  store i64 %324, ptr %25, align 8, !tbaa !9
  br label %325

325:                                              ; preds = %351, %321
  %326 = load i64, ptr %25, align 8, !tbaa !9
  %327 = load ptr, ptr %13, align 8, !tbaa !5
  %328 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %327, i32 0, i32 2
  %329 = load i64, ptr %328, align 8, !tbaa !21
  %330 = sub nsw i64 %329, 1
  %331 = icmp sle i64 %326, %330
  br i1 %331, label %332, label %354

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

348:                                              ; preds = %332
  %349 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %349, ptr %26, align 8, !tbaa !9
  br label %350

350:                                              ; preds = %348, %332
  br label %351

351:                                              ; preds = %350
  %352 = load i64, ptr %25, align 8, !tbaa !9
  %353 = add nsw i64 %352, 1
  store i64 %353, ptr %25, align 8, !tbaa !9
  br label %325, !llvm.loop !32

354:                                              ; preds = %325
  %355 = load i64, ptr %26, align 8, !tbaa !9
  %356 = load i64, ptr %24, align 8, !tbaa !9
  %357 = icmp ne i64 %355, %356
  br i1 %357, label %358, label %433

358:                                              ; preds = %354
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %359

359:                                              ; preds = %402, %358
  %360 = load i64, ptr %25, align 8, !tbaa !9
  %361 = load ptr, ptr %13, align 8, !tbaa !5
  %362 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %361, i32 0, i32 1
  %363 = load i64, ptr %362, align 8, !tbaa !20
  %364 = sub nsw i64 %363, 1
  %365 = icmp sle i64 %360, %364
  br i1 %365, label %366, label %405

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

402:                                              ; preds = %366
  %403 = load i64, ptr %25, align 8, !tbaa !9
  %404 = add nsw i64 %403, 1
  store i64 %404, ptr %25, align 8, !tbaa !9
  br label %359, !llvm.loop !33

405:                                              ; preds = %359
  %406 = load ptr, ptr %13, align 8, !tbaa !5
  %407 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %406, i32 0, i32 5
  %408 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %407, i32 0, i32 4
  %409 = load ptr, ptr %408, align 8, !tbaa !23
  %410 = load i64, ptr %24, align 8, !tbaa !9
  %411 = getelementptr inbounds double, ptr %409, i64 %410
  %412 = load double, ptr %411, align 8, !tbaa !24
  store double %412, ptr %23, align 8, !tbaa !24
  %413 = load ptr, ptr %13, align 8, !tbaa !5
  %414 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %413, i32 0, i32 5
  %415 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %414, i32 0, i32 4
  %416 = load ptr, ptr %415, align 8, !tbaa !23
  %417 = load i64, ptr %26, align 8, !tbaa !9
  %418 = getelementptr inbounds double, ptr %416, i64 %417
  %419 = load double, ptr %418, align 8, !tbaa !24
  %420 = load ptr, ptr %13, align 8, !tbaa !5
  %421 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %420, i32 0, i32 5
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %421, i32 0, i32 4
  %423 = load ptr, ptr %422, align 8, !tbaa !23
  %424 = load i64, ptr %24, align 8, !tbaa !9
  %425 = getelementptr inbounds double, ptr %423, i64 %424
  store double %419, ptr %425, align 8, !tbaa !24
  %426 = load double, ptr %23, align 8, !tbaa !24
  %427 = load ptr, ptr %13, align 8, !tbaa !5
  %428 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %427, i32 0, i32 5
  %429 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %428, i32 0, i32 4
  %430 = load ptr, ptr %429, align 8, !tbaa !23
  %431 = load i64, ptr %26, align 8, !tbaa !9
  %432 = getelementptr inbounds double, ptr %430, i64 %431
  store double %426, ptr %432, align 8, !tbaa !24
  br label %433

433:                                              ; preds = %405, %354
  br label %434

434:                                              ; preds = %433
  %435 = load i64, ptr %24, align 8, !tbaa !9
  %436 = add nsw i64 %435, 1
  store i64 %436, ptr %24, align 8, !tbaa !9
  br label %314, !llvm.loop !34

437:                                              ; preds = %314
  %438 = load ptr, ptr %10, align 8, !tbaa !5
  %439 = load ptr, ptr %13, align 8, !tbaa !5
  %440 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %439, i32 0, i32 4
  %441 = load ptr, ptr %13, align 8, !tbaa !5
  %442 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %441, i32 0, i32 5
  %443 = load ptr, ptr %13, align 8, !tbaa !5
  %444 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %443, i32 0, i32 2
  %445 = load i64, ptr %444, align 8, !tbaa !21
  %446 = load ptr, ptr %13, align 8, !tbaa !5
  %447 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %446, i32 0, i32 1
  %448 = load i64, ptr %447, align 8, !tbaa !20
  %449 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL31spline2d_bicubiccalcderivativesEPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S1_S1_PNS_8ae_stateE(ptr noundef %438, ptr noundef %440, ptr noundef %442, i64 noundef %445, i64 noundef %448, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %449)
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %450

450:                                              ; preds = %540, %437
  %451 = load i64, ptr %24, 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 !21
  %455 = sub nsw i64 %454, 1
  %456 = icmp sle i64 %451, %455
  br i1 %456, label %457, label %543

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

458:                                              ; preds = %536, %457
  %459 = load i64, ptr %25, align 8, !tbaa !9
  %460 = load ptr, ptr %13, align 8, !tbaa !5
  %461 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %460, i32 0, i32 1
  %462 = load i64, ptr %461, align 8, !tbaa !20
  %463 = sub nsw i64 %462, 1
  %464 = icmp sle i64 %459, %463
  br i1 %464, label %465, label %539

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

536:                                              ; preds = %465
  %537 = load i64, ptr %25, align 8, !tbaa !9
  %538 = add nsw i64 %537, 1
  store i64 %538, ptr %25, align 8, !tbaa !9
  br label %458, !llvm.loop !35

539:                                              ; preds = %458
  br label %540

540:                                              ; preds = %539
  %541 = load i64, ptr %24, align 8, !tbaa !9
  %542 = add nsw i64 %541, 1
  store i64 %542, ptr %24, align 8, !tbaa !9
  br label %450, !llvm.loop !36

543:                                              ; preds = %450
  %544 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %544)
  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_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_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_matrixES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL31spline2d_bicubiccalcderivativesEPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S1_S1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 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 24}
!19 = !{!"_ZTSN11alglib_impl19spline2dinterpolantE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !12, i64 96, !12, i64 160}
!20 = !{!19, !10, i64 8}
!21 = !{!19, !10, i64 16}
!22 = !{!19, !10, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}
!32 = distinct !{!32, !27}
!33 = distinct !{!33, !27}
!34 = distinct !{!34, !27}
!35 = distinct !{!35, !27}
!36 = distinct !{!36, !27}


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

@.str.737 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.738 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.739 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.740 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.741 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.742 = 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_impl20spline2dbuildbicubicEPNS_9ae_vectorES1_PNS_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
  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 @_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 @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_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)
  %13 = icmp sgt i64 %4, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.737, ptr noundef %6)
  %14 = icmp sgt i64 %3, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.738, ptr noundef %6)
  %15 = load i64, ptr %0, align 8, !tbaa !5
  %.not = icmp slt i64 %15, %4
  br i1 %.not, label %19, label %16

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

19:                                               ; preds = %16, %7
  %20 = phi i1 [ false, %7 ], [ %18, %16 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.739, ptr noundef %6)
  %21 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %4, ptr noundef %6)
  br i1 %21, label %22, label %24

22:                                               ; preds = %19
  %23 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %3, ptr noundef %6)
  br label %24

24:                                               ; preds = %22, %19
  %25 = phi i1 [ false, %19 ], [ %23, %22 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.740, ptr noundef %6)
  %26 = load i64, ptr %9, align 8, !tbaa !13
  %.not192 = icmp sge i64 %26, %3
  %27 = getelementptr inbounds i8, ptr %9, i64 8
  %28 = load i64, ptr %27, align 8
  %29 = icmp sge i64 %28, %4
  %30 = select i1 %.not192, i1 %29, i1 false
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.741, ptr noundef %6)
  %31 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_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 %31, ptr noundef nonnull @.str.742, ptr noundef %6)
  %32 = getelementptr inbounds i8, ptr %5, i64 24
  store i64 1, ptr %32, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %5, i64 8
  store i64 %4, ptr %33, align 8, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %5, i64 16
  store i64 %3, ptr %34, align 8, !tbaa !18
  store i64 -3, ptr %5, align 8, !tbaa !19
  %35 = mul i64 %4, %3
  %36 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %36, i64 noundef %4, ptr noundef %6)
  %37 = getelementptr inbounds i8, ptr %5, i64 96
  %38 = load i64, ptr %34, align 8, !tbaa !18
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %37, i64 noundef %38, ptr noundef %6)
  %39 = getelementptr inbounds i8, ptr %5, i64 160
  %40 = load i64, ptr %33, align 8, !tbaa !17
  %41 = shl nsw i64 %40, 2
  %42 = load i64, ptr %34, align 8, !tbaa !18
  %43 = mul nsw i64 %41, %42
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %39, i64 noundef %43, ptr noundef %6)
  %44 = load i64, ptr %33, align 8, !tbaa !17
  %.not193.not211 = icmp sgt i64 %44, 0
  br i1 %.not193.not211, label %.lr.ph, label %.preheader210

.lr.ph:                                           ; preds = %24
  %45 = getelementptr inbounds i8, ptr %0, i64 56
  %46 = getelementptr inbounds i8, ptr %5, i64 88
  %xtraiter = and i64 %44, 3
  %47 = icmp ult i64 %44, 4
  br i1 %47, label %.preheader210.loopexit.unr-lcssa, label %.lr.ph.new

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

.preheader210.loopexit.unr-lcssa:                 ; preds = %58, %.lr.ph
  %.0188212.unr = phi i64 [ 0, %.lr.ph ], [ %82, %58 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader210, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader210.loopexit.unr-lcssa, %.epil.preheader
  %.0188212.epil = phi i64 [ %53, %.epil.preheader ], [ %.0188212.unr, %.preheader210.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader210.loopexit.unr-lcssa ]
  %48 = load ptr, ptr %45, align 8, !tbaa !20
  %49 = getelementptr inbounds double, ptr %48, i64 %.0188212.epil
  %50 = load double, ptr %49, align 8, !tbaa !21
  %51 = load ptr, ptr %46, align 8, !tbaa !20
  %52 = getelementptr inbounds double, ptr %51, i64 %.0188212.epil
  store double %50, ptr %52, align 8, !tbaa !21
  %53 = add nuw nsw i64 %.0188212.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 %.preheader210, label %.epil.preheader, !llvm.loop !23

.preheader210:                                    ; preds = %.preheader210.loopexit.unr-lcssa, %.epil.preheader, %24
  %54 = load i64, ptr %34, align 8, !tbaa !18
  %.not194.not213 = icmp sgt i64 %54, 0
  br i1 %.not194.not213, label %.lr.ph215, label %.preheader209

.lr.ph215:                                        ; preds = %.preheader210
  %55 = getelementptr inbounds i8, ptr %1, i64 56
  %56 = getelementptr inbounds i8, ptr %5, i64 152
  %xtraiter276 = and i64 %54, 3
  %57 = icmp ult i64 %54, 4
  br i1 %57, label %.preheader209.loopexit.unr-lcssa, label %.lr.ph215.new

.lr.ph215.new:                                    ; preds = %.lr.ph215
  %unroll_iter279 = and i64 %54, 9223372036854775804
  br label %91

58:                                               ; preds = %58, %.lr.ph.new
  %.0188212 = phi i64 [ 0, %.lr.ph.new ], [ %82, %58 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %58 ]
  %59 = load ptr, ptr %45, align 8, !tbaa !20
  %60 = getelementptr inbounds double, ptr %59, i64 %.0188212
  %61 = load double, ptr %60, align 8, !tbaa !21
  %62 = load ptr, ptr %46, align 8, !tbaa !20
  %63 = getelementptr inbounds double, ptr %62, i64 %.0188212
  store double %61, ptr %63, align 8, !tbaa !21
  %64 = or disjoint i64 %.0188212, 1
  %65 = load ptr, ptr %45, align 8, !tbaa !20
  %66 = getelementptr inbounds double, ptr %65, i64 %64
  %67 = load double, ptr %66, align 8, !tbaa !21
  %68 = load ptr, ptr %46, align 8, !tbaa !20
  %69 = getelementptr inbounds double, ptr %68, i64 %64
  store double %67, ptr %69, align 8, !tbaa !21
  %70 = or disjoint i64 %.0188212, 2
  %71 = load ptr, ptr %45, align 8, !tbaa !20
  %72 = getelementptr inbounds double, ptr %71, i64 %70
  %73 = load double, ptr %72, align 8, !tbaa !21
  %74 = load ptr, ptr %46, align 8, !tbaa !20
  %75 = getelementptr inbounds double, ptr %74, i64 %70
  store double %73, ptr %75, align 8, !tbaa !21
  %76 = or disjoint i64 %.0188212, 3
  %77 = load ptr, ptr %45, align 8, !tbaa !20
  %78 = getelementptr inbounds double, ptr %77, i64 %76
  %79 = load double, ptr %78, align 8, !tbaa !21
  %80 = load ptr, ptr %46, align 8, !tbaa !20
  %81 = getelementptr inbounds double, ptr %80, i64 %76
  store double %79, ptr %81, align 8, !tbaa !21
  %82 = add nuw nsw i64 %.0188212, 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 %.preheader210.loopexit.unr-lcssa, label %58, !llvm.loop !25

.preheader209.loopexit.unr-lcssa:                 ; preds = %91, %.lr.ph215
  %.1189214.unr = phi i64 [ 0, %.lr.ph215 ], [ %115, %91 ]
  %lcmp.mod278.not = icmp eq i64 %xtraiter276, 0
  br i1 %lcmp.mod278.not, label %.preheader209, label %.epil.preheader275

.epil.preheader275:                               ; preds = %.preheader209.loopexit.unr-lcssa, %.epil.preheader275
  %.1189214.epil = phi i64 [ %88, %.epil.preheader275 ], [ %.1189214.unr, %.preheader209.loopexit.unr-lcssa ]
  %epil.iter277 = phi i64 [ %epil.iter277.next, %.epil.preheader275 ], [ 0, %.preheader209.loopexit.unr-lcssa ]
  %83 = load ptr, ptr %55, align 8, !tbaa !20
  %84 = getelementptr inbounds double, ptr %83, i64 %.1189214.epil
  %85 = load double, ptr %84, align 8, !tbaa !21
  %86 = load ptr, ptr %56, align 8, !tbaa !20
  %87 = getelementptr inbounds double, ptr %86, i64 %.1189214.epil
  store double %85, ptr %87, align 8, !tbaa !21
  %88 = add nuw nsw i64 %.1189214.epil, 1
  %epil.iter277.next = add i64 %epil.iter277, 1
  %epil.iter277.cmp.not = icmp eq i64 %epil.iter277.next, %xtraiter276
  br i1 %epil.iter277.cmp.not, label %.preheader209, label %.epil.preheader275, !llvm.loop !27

.preheader209:                                    ; preds = %.preheader209.loopexit.unr-lcssa, %.epil.preheader275, %.preheader210
  br i1 %.not193.not211, label %.lr.ph226, label %.preheader207

.lr.ph226:                                        ; preds = %.preheader209
  %89 = getelementptr inbounds i8, ptr %5, i64 88
  %90 = getelementptr inbounds i8, ptr %9, i64 72
  br label %120

91:                                               ; preds = %91, %.lr.ph215.new
  %.1189214 = phi i64 [ 0, %.lr.ph215.new ], [ %115, %91 ]
  %niter280 = phi i64 [ 0, %.lr.ph215.new ], [ %niter280.next.3, %91 ]
  %92 = load ptr, ptr %55, align 8, !tbaa !20
  %93 = getelementptr inbounds double, ptr %92, i64 %.1189214
  %94 = load double, ptr %93, align 8, !tbaa !21
  %95 = load ptr, ptr %56, align 8, !tbaa !20
  %96 = getelementptr inbounds double, ptr %95, i64 %.1189214
  store double %94, ptr %96, align 8, !tbaa !21
  %97 = or disjoint i64 %.1189214, 1
  %98 = load ptr, ptr %55, align 8, !tbaa !20
  %99 = getelementptr inbounds double, ptr %98, i64 %97
  %100 = load double, ptr %99, align 8, !tbaa !21
  %101 = load ptr, ptr %56, align 8, !tbaa !20
  %102 = getelementptr inbounds double, ptr %101, i64 %97
  store double %100, ptr %102, align 8, !tbaa !21
  %103 = or disjoint i64 %.1189214, 2
  %104 = load ptr, ptr %55, align 8, !tbaa !20
  %105 = getelementptr inbounds double, ptr %104, i64 %103
  %106 = load double, ptr %105, align 8, !tbaa !21
  %107 = load ptr, ptr %56, align 8, !tbaa !20
  %108 = getelementptr inbounds double, ptr %107, i64 %103
  store double %106, ptr %108, align 8, !tbaa !21
  %109 = or disjoint i64 %.1189214, 3
  %110 = load ptr, ptr %55, align 8, !tbaa !20
  %111 = getelementptr inbounds double, ptr %110, i64 %109
  %112 = load double, ptr %111, align 8, !tbaa !21
  %113 = load ptr, ptr %56, align 8, !tbaa !20
  %114 = getelementptr inbounds double, ptr %113, i64 %109
  store double %112, ptr %114, align 8, !tbaa !21
  %115 = add nuw nsw i64 %.1189214, 4
  %niter280.next.3 = add i64 %niter280, 4
  %niter280.ncmp.3 = icmp eq i64 %niter280.next.3, %unroll_iter279
  br i1 %niter280.ncmp.3, label %.preheader209.loopexit.unr-lcssa, label %91, !llvm.loop !28

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

.preheader207:                                    ; preds = %.preheader207.loopexit, %.preheader209
  %116 = phi i64 [ %175, %.preheader207.loopexit ], [ %44, %.preheader209 ]
  %117 = phi i64 [ %.pre, %.preheader207.loopexit ], [ %54, %.preheader209 ]
  %.not196.not238 = icmp sgt i64 %117, 0
  br i1 %.not196.not238, label %.lr.ph240, label %._crit_edge241

.lr.ph240:                                        ; preds = %.preheader207
  %118 = getelementptr inbounds i8, ptr %5, i64 152
  %119 = getelementptr inbounds i8, ptr %9, i64 72
  br label %176

120:                                              ; preds = %.lr.ph226, %._crit_edge.thread
  %121 = phi i64 [ %44, %.lr.ph226 ], [ %175, %._crit_edge.thread ]
  %.0184225 = phi i64 [ 0, %.lr.ph226 ], [ %122, %._crit_edge.thread ]
  %122 = add nuw nsw i64 %.0184225, 1
  %.not202.not216 = icmp slt i64 %122, %121
  br i1 %.not202.not216, label %.lr.ph219, label %._crit_edge.thread

.lr.ph219:                                        ; preds = %120, %.lr.ph219
  %.0218 = phi i64 [ %spec.select, %.lr.ph219 ], [ %.0184225, %120 ]
  %.2190217 = phi i64 [ %129, %.lr.ph219 ], [ %122, %120 ]
  %123 = load ptr, ptr %89, align 8, !tbaa !20
  %124 = getelementptr inbounds double, ptr %123, i64 %.2190217
  %125 = load double, ptr %124, align 8, !tbaa !21
  %126 = getelementptr inbounds double, ptr %123, i64 %.0218
  %127 = load double, ptr %126, align 8, !tbaa !21
  %128 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %125, double noundef %127)
  %spec.select = select i1 %128, i64 %.2190217, i64 %.0218
  %129 = add nuw nsw i64 %.2190217, 1
  %130 = load i64, ptr %33, align 8, !tbaa !17
  %.not202.not = icmp slt i64 %129, %130
  br i1 %.not202.not, label %.lr.ph219, label %._crit_edge, !llvm.loop !29

._crit_edge:                                      ; preds = %.lr.ph219
  %.not203 = icmp eq i64 %spec.select, %.0184225
  br i1 %.not203, label %._crit_edge.thread, label %.preheader208

.preheader208:                                    ; preds = %._crit_edge
  %131 = load i64, ptr %34, align 8, !tbaa !18
  %.not204.not220 = icmp sgt i64 %131, 0
  br i1 %.not204.not220, label %.lr.ph222.preheader, label %._crit_edge223

.lr.ph222.preheader:                              ; preds = %.preheader208
  %xtraiter281 = and i64 %131, 1
  %132 = icmp eq i64 %131, 1
  br i1 %132, label %._crit_edge223.loopexit.unr-lcssa, label %.lr.ph222.preheader.new

.lr.ph222.preheader.new:                          ; preds = %.lr.ph222.preheader
  %unroll_iter284 = and i64 %131, 9223372036854775806
  br label %.lr.ph222

.lr.ph222:                                        ; preds = %.lr.ph222, %.lr.ph222.preheader.new
  %.3191221 = phi i64 [ 0, %.lr.ph222.preheader.new ], [ %156, %.lr.ph222 ]
  %niter285 = phi i64 [ 0, %.lr.ph222.preheader.new ], [ %niter285.next.1, %.lr.ph222 ]
  %133 = load ptr, ptr %90, align 8, !tbaa !20
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.3191221
  %135 = load ptr, ptr %134, align 8, !tbaa !30
  %136 = getelementptr inbounds double, ptr %135, i64 %.0184225
  %137 = load double, ptr %136, align 8, !tbaa !21
  %138 = getelementptr inbounds double, ptr %135, i64 %spec.select
  %139 = load double, ptr %138, align 8, !tbaa !21
  store double %139, ptr %136, align 8, !tbaa !21
  %140 = load ptr, ptr %90, align 8, !tbaa !20
  %141 = getelementptr inbounds ptr, ptr %140, i64 %.3191221
  %142 = load ptr, ptr %141, align 8, !tbaa !30
  %143 = getelementptr inbounds double, ptr %142, i64 %spec.select
  store double %137, ptr %143, align 8, !tbaa !21
  %144 = or disjoint i64 %.3191221, 1
  %145 = load ptr, ptr %90, align 8, !tbaa !20
  %146 = getelementptr inbounds ptr, ptr %145, i64 %144
  %147 = load ptr, ptr %146, align 8, !tbaa !30
  %148 = getelementptr inbounds double, ptr %147, i64 %.0184225
  %149 = load double, ptr %148, align 8, !tbaa !21
  %150 = getelementptr inbounds double, ptr %147, i64 %spec.select
  %151 = load double, ptr %150, align 8, !tbaa !21
  store double %151, ptr %148, align 8, !tbaa !21
  %152 = load ptr, ptr %90, align 8, !tbaa !20
  %153 = getelementptr inbounds ptr, ptr %152, i64 %144
  %154 = load ptr, ptr %153, align 8, !tbaa !30
  %155 = getelementptr inbounds double, ptr %154, i64 %spec.select
  store double %149, ptr %155, align 8, !tbaa !21
  %156 = add nuw nsw i64 %.3191221, 2
  %niter285.next.1 = add i64 %niter285, 2
  %niter285.ncmp.1 = icmp eq i64 %niter285.next.1, %unroll_iter284
  br i1 %niter285.ncmp.1, label %._crit_edge223.loopexit.unr-lcssa, label %.lr.ph222, !llvm.loop !31

._crit_edge223.loopexit.unr-lcssa:                ; preds = %.lr.ph222, %.lr.ph222.preheader
  %.3191221.unr = phi i64 [ 0, %.lr.ph222.preheader ], [ %156, %.lr.ph222 ]
  %lcmp.mod283.not = icmp eq i64 %xtraiter281, 0
  br i1 %lcmp.mod283.not, label %._crit_edge223, label %.lr.ph222.epil

.lr.ph222.epil:                                   ; preds = %._crit_edge223.loopexit.unr-lcssa
  %157 = load ptr, ptr %90, align 8, !tbaa !20
  %158 = getelementptr inbounds ptr, ptr %157, i64 %.3191221.unr
  %159 = load ptr, ptr %158, align 8, !tbaa !30
  %160 = getelementptr inbounds double, ptr %159, i64 %.0184225
  %161 = load double, ptr %160, align 8, !tbaa !21
  %162 = getelementptr inbounds double, ptr %159, i64 %spec.select
  %163 = load double, ptr %162, align 8, !tbaa !21
  store double %163, ptr %160, align 8, !tbaa !21
  %164 = load ptr, ptr %90, align 8, !tbaa !20
  %165 = getelementptr inbounds ptr, ptr %164, i64 %.3191221.unr
  %166 = load ptr, ptr %165, align 8, !tbaa !30
  %167 = getelementptr inbounds double, ptr %166, i64 %spec.select
  store double %161, ptr %167, align 8, !tbaa !21
  br label %._crit_edge223

._crit_edge223:                                   ; preds = %.lr.ph222.epil, %._crit_edge223.loopexit.unr-lcssa, %.preheader208
  %168 = load ptr, ptr %89, align 8, !tbaa !20
  %169 = getelementptr inbounds double, ptr %168, i64 %.0184225
  %170 = load double, ptr %169, align 8, !tbaa !21
  %171 = getelementptr inbounds double, ptr %168, i64 %spec.select
  %172 = load double, ptr %171, align 8, !tbaa !21
  store double %172, ptr %169, align 8, !tbaa !21
  %173 = load ptr, ptr %89, align 8, !tbaa !20
  %174 = getelementptr inbounds double, ptr %173, i64 %spec.select
  store double %170, ptr %174, align 8, !tbaa !21
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %120, %._crit_edge, %._crit_edge223
  %175 = phi i64 [ %130, %._crit_edge ], [ %130, %._crit_edge223 ], [ %121, %120 ]
  %.not195.not = icmp slt i64 %122, %175
  br i1 %.not195.not, label %120, label %.preheader207.loopexit, !llvm.loop !32

176:                                              ; preds = %.lr.ph240, %._crit_edge232.thread
  %177 = phi i64 [ %117, %.lr.ph240 ], [ %237, %._crit_edge232.thread ]
  %.4239 = phi i64 [ 0, %.lr.ph240 ], [ %178, %._crit_edge232.thread ]
  %178 = add nuw nsw i64 %.4239, 1
  %.not199.not227 = icmp slt i64 %178, %177
  br i1 %.not199.not227, label %.lr.ph231, label %._crit_edge232.thread

.lr.ph231:                                        ; preds = %176, %.lr.ph231
  %.2229 = phi i64 [ %spec.select205, %.lr.ph231 ], [ %.4239, %176 ]
  %.1185228 = phi i64 [ %185, %.lr.ph231 ], [ %178, %176 ]
  %179 = load ptr, ptr %118, align 8, !tbaa !20
  %180 = getelementptr inbounds double, ptr %179, i64 %.1185228
  %181 = load double, ptr %180, align 8, !tbaa !21
  %182 = getelementptr inbounds double, ptr %179, i64 %.2229
  %183 = load double, ptr %182, align 8, !tbaa !21
  %184 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %181, double noundef %183)
  %spec.select205 = select i1 %184, i64 %.1185228, i64 %.2229
  %185 = add nuw nsw i64 %.1185228, 1
  %186 = load i64, ptr %34, align 8, !tbaa !18
  %.not199.not = icmp slt i64 %185, %186
  br i1 %.not199.not, label %.lr.ph231, label %._crit_edge232, !llvm.loop !33

._crit_edge232:                                   ; preds = %.lr.ph231
  %.not200 = icmp eq i64 %spec.select205, %.4239
  br i1 %.not200, label %._crit_edge232.thread, label %.preheader206

.preheader206:                                    ; preds = %._crit_edge232
  %187 = load i64, ptr %33, align 8, !tbaa !17
  %.not201.not234 = icmp sgt i64 %187, 0
  br i1 %.not201.not234, label %.lr.ph236.preheader, label %._crit_edge237

.lr.ph236.preheader:                              ; preds = %.preheader206
  %xtraiter286 = and i64 %187, 1
  %188 = icmp eq i64 %187, 1
  br i1 %188, label %._crit_edge237.loopexit.unr-lcssa, label %.lr.ph236.preheader.new

.lr.ph236.preheader.new:                          ; preds = %.lr.ph236.preheader
  %unroll_iter289 = and i64 %187, 9223372036854775806
  br label %.lr.ph236

.lr.ph236:                                        ; preds = %.lr.ph236, %.lr.ph236.preheader.new
  %.2186235 = phi i64 [ 0, %.lr.ph236.preheader.new ], [ %216, %.lr.ph236 ]
  %niter290 = phi i64 [ 0, %.lr.ph236.preheader.new ], [ %niter290.next.1, %.lr.ph236 ]
  %189 = load ptr, ptr %119, align 8, !tbaa !20
  %190 = getelementptr inbounds ptr, ptr %189, i64 %.4239
  %191 = load ptr, ptr %190, align 8, !tbaa !30
  %192 = getelementptr inbounds double, ptr %191, i64 %.2186235
  %193 = load double, ptr %192, align 8, !tbaa !21
  %194 = getelementptr inbounds ptr, ptr %189, i64 %spec.select205
  %195 = load ptr, ptr %194, align 8, !tbaa !30
  %196 = getelementptr inbounds double, ptr %195, i64 %.2186235
  %197 = load double, ptr %196, align 8, !tbaa !21
  store double %197, ptr %192, align 8, !tbaa !21
  %198 = load ptr, ptr %119, align 8, !tbaa !20
  %199 = getelementptr inbounds ptr, ptr %198, i64 %spec.select205
  %200 = load ptr, ptr %199, align 8, !tbaa !30
  %201 = getelementptr inbounds double, ptr %200, i64 %.2186235
  store double %193, ptr %201, align 8, !tbaa !21
  %202 = or disjoint i64 %.2186235, 1
  %203 = load ptr, ptr %119, align 8, !tbaa !20
  %204 = getelementptr inbounds ptr, ptr %203, i64 %.4239
  %205 = load ptr, ptr %204, align 8, !tbaa !30
  %206 = getelementptr inbounds double, ptr %205, i64 %202
  %207 = load double, ptr %206, align 8, !tbaa !21
  %208 = getelementptr inbounds ptr, ptr %203, i64 %spec.select205
  %209 = load ptr, ptr %208, align 8, !tbaa !30
  %210 = getelementptr inbounds double, ptr %209, i64 %202
  %211 = load double, ptr %210, align 8, !tbaa !21
  store double %211, ptr %206, align 8, !tbaa !21
  %212 = load ptr, ptr %119, align 8, !tbaa !20
  %213 = getelementptr inbounds ptr, ptr %212, i64 %spec.select205
  %214 = load ptr, ptr %213, align 8, !tbaa !30
  %215 = getelementptr inbounds double, ptr %214, i64 %202
  store double %207, ptr %215, align 8, !tbaa !21
  %216 = add nuw nsw i64 %.2186235, 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_edge237.loopexit.unr-lcssa, label %.lr.ph236, !llvm.loop !34

._crit_edge237.loopexit.unr-lcssa:                ; preds = %.lr.ph236, %.lr.ph236.preheader
  %.2186235.unr = phi i64 [ 0, %.lr.ph236.preheader ], [ %216, %.lr.ph236 ]
  %lcmp.mod288.not = icmp eq i64 %xtraiter286, 0
  br i1 %lcmp.mod288.not, label %._crit_edge237, label %.lr.ph236.epil

.lr.ph236.epil:                                   ; preds = %._crit_edge237.loopexit.unr-lcssa
  %217 = load ptr, ptr %119, align 8, !tbaa !20
  %218 = getelementptr inbounds ptr, ptr %217, i64 %.4239
  %219 = load ptr, ptr %218, align 8, !tbaa !30
  %220 = getelementptr inbounds double, ptr %219, i64 %.2186235.unr
  %221 = load double, ptr %220, align 8, !tbaa !21
  %222 = getelementptr inbounds ptr, ptr %217, i64 %spec.select205
  %223 = load ptr, ptr %222, align 8, !tbaa !30
  %224 = getelementptr inbounds double, ptr %223, i64 %.2186235.unr
  %225 = load double, ptr %224, align 8, !tbaa !21
  store double %225, ptr %220, align 8, !tbaa !21
  %226 = load ptr, ptr %119, align 8, !tbaa !20
  %227 = getelementptr inbounds ptr, ptr %226, i64 %spec.select205
  %228 = load ptr, ptr %227, align 8, !tbaa !30
  %229 = getelementptr inbounds double, ptr %228, i64 %.2186235.unr
  store double %221, ptr %229, align 8, !tbaa !21
  br label %._crit_edge237

._crit_edge237:                                   ; preds = %.lr.ph236.epil, %._crit_edge237.loopexit.unr-lcssa, %.preheader206
  %230 = load ptr, ptr %118, align 8, !tbaa !20
  %231 = getelementptr inbounds double, ptr %230, i64 %.4239
  %232 = load double, ptr %231, align 8, !tbaa !21
  %233 = getelementptr inbounds double, ptr %230, i64 %spec.select205
  %234 = load double, ptr %233, align 8, !tbaa !21
  store double %234, ptr %231, align 8, !tbaa !21
  %235 = load ptr, ptr %118, align 8, !tbaa !20
  %236 = getelementptr inbounds double, ptr %235, i64 %spec.select205
  store double %232, ptr %236, align 8, !tbaa !21
  br label %._crit_edge232.thread

._crit_edge232.thread:                            ; preds = %176, %._crit_edge232, %._crit_edge237
  %237 = phi i64 [ %186, %._crit_edge232 ], [ %186, %._crit_edge237 ], [ %177, %176 ]
  %.not196.not = icmp slt i64 %178, %237
  br i1 %.not196.not, label %176, label %._crit_edge241.loopexit, !llvm.loop !35

._crit_edge241.loopexit:                          ; preds = %._crit_edge232.thread
  %.pre258 = load i64, ptr %33, align 8, !tbaa !17
  br label %._crit_edge241

._crit_edge241:                                   ; preds = %._crit_edge241.loopexit, %.preheader207
  %238 = phi i64 [ %116, %.preheader207 ], [ %.pre258, %._crit_edge241.loopexit ]
  %.lcssa = phi i64 [ %117, %.preheader207 ], [ %237, %._crit_edge241.loopexit ]
  call void @_ZN11alglib_implL31spline2d_bicubiccalcderivativesEPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S1_S1_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %36, ptr noundef nonnull %37, i64 noundef %.lcssa, i64 noundef %238, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %6)
  %239 = load i64, ptr %34, align 8, !tbaa !18
  %.not197.not247 = icmp sgt i64 %239, 0
  br i1 %.not197.not247, label %.preheader.lr.ph, label %._crit_edge249

.preheader.lr.ph:                                 ; preds = %._crit_edge241
  %240 = load i64, ptr %33, align 8, !tbaa !17
  %.not198.not243 = icmp sgt i64 %240, 0
  %241 = getelementptr inbounds i8, ptr %9, i64 72
  %242 = getelementptr inbounds i8, ptr %5, i64 216
  %243 = getelementptr inbounds i8, ptr %10, i64 72
  %244 = getelementptr inbounds i8, ptr %11, i64 72
  %245 = getelementptr inbounds i8, ptr %12, i64 72
  br i1 %.not198.not243, label %.preheader.us.preheader, label %._crit_edge249

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

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge246.us
  %.5248.us = phi i64 [ %281, %._crit_edge246.us ], [ 0, %.preheader.us.preheader ]
  %246 = mul nuw nsw i64 %240, %.5248.us
  br label %247

247:                                              ; preds = %.preheader.us, %247
  %.3187244.us = phi i64 [ 0, %.preheader.us ], [ %280, %247 ]
  %248 = add nuw nsw i64 %246, %.3187244.us
  %249 = load ptr, ptr %241, align 8, !tbaa !20
  %250 = getelementptr inbounds ptr, ptr %249, i64 %.5248.us
  %251 = load ptr, ptr %250, align 8, !tbaa !30
  %252 = getelementptr inbounds double, ptr %251, i64 %.3187244.us
  %253 = load double, ptr %252, align 8, !tbaa !21
  %254 = load ptr, ptr %242, align 8, !tbaa !20
  %255 = getelementptr inbounds double, ptr %254, i64 %248
  store double %253, ptr %255, align 8, !tbaa !21
  %256 = load ptr, ptr %243, align 8, !tbaa !20
  %257 = getelementptr inbounds ptr, ptr %256, i64 %.5248.us
  %258 = load ptr, ptr %257, align 8, !tbaa !30
  %259 = getelementptr inbounds double, ptr %258, i64 %.3187244.us
  %260 = load double, ptr %259, align 8, !tbaa !21
  %261 = load ptr, ptr %242, align 8, !tbaa !20
  %262 = getelementptr double, ptr %261, i64 %35
  %263 = getelementptr double, ptr %262, i64 %248
  store double %260, ptr %263, align 8, !tbaa !21
  %264 = load ptr, ptr %244, align 8, !tbaa !20
  %265 = getelementptr inbounds ptr, ptr %264, i64 %.5248.us
  %266 = load ptr, ptr %265, align 8, !tbaa !30
  %267 = getelementptr inbounds double, ptr %266, i64 %.3187244.us
  %268 = load double, ptr %267, align 8, !tbaa !21
  %269 = load ptr, ptr %242, align 8, !tbaa !20
  %270 = getelementptr i8, ptr %269, i64 %.idx
  %271 = getelementptr double, ptr %270, i64 %248
  store double %268, ptr %271, align 8, !tbaa !21
  %272 = load ptr, ptr %245, align 8, !tbaa !20
  %273 = getelementptr inbounds ptr, ptr %272, i64 %.5248.us
  %274 = load ptr, ptr %273, align 8, !tbaa !30
  %275 = getelementptr inbounds double, ptr %274, i64 %.3187244.us
  %276 = load double, ptr %275, align 8, !tbaa !21
  %277 = load ptr, ptr %242, align 8, !tbaa !20
  %278 = getelementptr i8, ptr %277, i64 %.idx250
  %279 = getelementptr double, ptr %278, i64 %248
  store double %276, ptr %279, align 8, !tbaa !21
  %280 = add nuw nsw i64 %.3187244.us, 1
  %exitcond256.not = icmp eq i64 %280, %240
  br i1 %exitcond256.not, label %._crit_edge246.us, label %247, !llvm.loop !36

._crit_edge246.us:                                ; preds = %247
  %281 = add nuw nsw i64 %.5248.us, 1
  %exitcond257.not = icmp eq i64 %281, %239
  br i1 %exitcond257.not, label %._crit_edge249, label %.preheader.us, !llvm.loop !37

._crit_edge249:                                   ; preds = %._crit_edge246.us, %.preheader.lr.ph, %._crit_edge241
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  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_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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 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_matrixES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(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

; 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_bicubiccalcderivativesEPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S1_S1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 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 24}
!16 = !{!"_ZTSN11alglib_impl19spline2dinterpolantE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !6, i64 96, !6, i64 160}
!17 = !{!16, !7, i64 8}
!18 = !{!16, !7, i64 16}
!19 = !{!16, !7, i64 0}
!20 = !{!8, !8, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !8, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = !{!12, !12, i64 0}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}
!34 = distinct !{!34, !26}
!35 = distinct !{!35, !26}
!36 = distinct !{!36, !26}
!37 = distinct !{!37, !26}


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