; 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::rbfmodel" = type { i64, i64, i64, %"struct.alglib_impl::rbfv1model", %"struct.alglib_impl::rbfv2model", %"struct.alglib_impl::rbfv3model", %"struct.alglib_impl::rbfcalcbuffer", double, double, double, i64, i64, i64, i64, i64, double, double, double, i64, double, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_vector", double, i64, i8 }
%"struct.alglib_impl::rbfv1model" = type { i64, i64, i64, i64, %"struct.alglib_impl::kdtree", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::kdtree" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"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", %"struct.alglib_impl::kdtreerequestbuffer", i64 }
%"struct.alglib_impl::kdtreerequestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i8, double, 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", double, %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv2model" = type { i64, 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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", double, i64, double, i64, %"struct.alglib_impl::rbfv2calcbuffer" }
%"struct.alglib_impl::rbfv2calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv3model" = type { i64, i64, i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::rbf3evaluator", %"struct.alglib_impl::rbf3fastevaluator", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rbfv3calcbuffer", i8, double }
%"struct.alglib_impl::rbf3evaluator" = type { i64, i64, %"struct.alglib_impl::ae_matrix", i64, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::rbf3fastevaluator" = type { i64, i64, i64, i64, i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_obj_array", %"struct.alglib_impl::biharmonicevaluator", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", i8, i64, i64, i64 }
%"struct.alglib_impl::ae_obj_array" = type { i64, i64, i8, ptr, ptr, ptr, ptr, %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::biharmonicevaluator" = type { 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", %"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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv3calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rbf3evaluatorbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbf3evaluatorbuffer" = type { %"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", %"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", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::rbfcalcbuffer" = type { i64, %"struct.alglib_impl::rbfv1calcbuffer", %"struct.alglib_impl::rbfv2calcbuffer", %"struct.alglib_impl::rbfv3calcbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv1calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::kdtreerequestbuffer" }
%"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.710 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.711 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.712 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.713 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.714 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.715 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.1039 = external hidden unnamed_addr constant [37 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_impl12rbfgridcalc2EPNS_8rbfmodelEPKNS_9ae_vectorElS4_lPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, 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 i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  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 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  %20 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %20, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %21)
  %22 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %22, i1 noundef zeroext true)
  %23 = load i64, ptr %10, align 8, !tbaa !9
  %24 = icmp sgt i64 %23, 0
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.710, ptr noundef %25)
  %26 = load i64, ptr %12, align 8, !tbaa !9
  %27 = icmp sgt i64 %26, 0
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef @.str.711, ptr noundef %28)
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 0
  %31 = load i64, ptr %30, align 8, !tbaa !11
  %32 = load i64, ptr %10, align 8, !tbaa !9
  %33 = icmp sge i64 %31, %32
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef @.str.712, ptr noundef %34)
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = load i64, ptr %12, align 8, !tbaa !9
  %39 = icmp sge i64 %37, %38
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.713, ptr noundef %40)
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load i64, ptr %10, align 8, !tbaa !9
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %41, i64 noundef %42, ptr noundef %43)
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.714, ptr noundef %45)
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load i64, ptr %12, align 8, !tbaa !9
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %46, i64 noundef %47, ptr noundef %48)
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.715, ptr noundef %50)
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %51, i32 0, i32 2
  %53 = load i64, ptr %52, align 8, !tbaa !15
  %54 = icmp eq i64 %53, 1
  br i1 %54, label %55, label %65

55:                                               ; preds = %7
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %56, i32 0, i32 3
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i64, ptr %12, align 8, !tbaa !9
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv1gridcalc2EPNS_10rbfv1modelEPKNS_9ae_vectorElS4_lPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %57, ptr noundef %58, i64 noundef %59, ptr noundef %60, i64 noundef %61, ptr noundef %62, ptr noundef %63)
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %64)
  store i32 1, ptr %19, align 4
  br label %153

65:                                               ; preds = %7
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %66, i32 0, i32 2
  %68 = load i64, ptr %67, align 8, !tbaa !15
  %69 = icmp eq i64 %68, 2
  br i1 %69, label %70, label %80

70:                                               ; preds = %65
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load i64, ptr %10, align 8, !tbaa !9
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load i64, ptr %12, align 8, !tbaa !9
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv2gridcalc2EPNS_10rbfv2modelEPKNS_9ae_vectorElS4_lPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %72, ptr noundef %73, i64 noundef %74, ptr noundef %75, i64 noundef %76, ptr noundef %77, ptr noundef %78)
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %79)
  store i32 1, ptr %19, align 4
  br label %153

80:                                               ; preds = %65
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %81, i32 0, i32 2
  %83 = load i64, ptr %82, align 8, !tbaa !15
  %84 = icmp eq i64 %83, 3
  br i1 %84, label %85, label %150

85:                                               ; preds = %80
  %86 = load i64, ptr %10, align 8, !tbaa !9
  %87 = load i64, ptr %12, align 8, !tbaa !9
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %86, i64 noundef %87, ptr noundef %88, ptr noundef %89)
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %90, i32 0, i32 0
  %92 = load i64, ptr %91, align 8, !tbaa !35
  %93 = icmp ne i64 %92, 2
  br i1 %93, label %99, label %94

94:                                               ; preds = %85
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %95, i32 0, i32 1
  %97 = load i64, ptr %96, align 8, !tbaa !36
  %98 = icmp ne i64 %97, 1
  br i1 %98, label %99, label %105

99:                                               ; preds = %94, %85
  %100 = load i64, ptr %10, align 8, !tbaa !9
  %101 = load i64, ptr %12, align 8, !tbaa !9
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %100, i64 noundef %101, double noundef 0.000000e+00, ptr noundef %102, ptr noundef %103)
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %104)
  store i32 1, ptr %19, align 4
  br label %153

105:                                              ; preds = %94
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = load i64, ptr %10, align 8, !tbaa !9
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i64, ptr %12, align 8, !tbaa !9
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rbfgridcalc2vEPKNS_8rbfmodelEPKNS_9ae_vectorElS5_lPS3_PNS_8ae_stateE(ptr noundef %106, ptr noundef %107, i64 noundef %108, ptr noundef %109, i64 noundef %110, ptr noundef %18, ptr noundef %111)
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %145, %105
  %113 = load i64, ptr %16, align 8, !tbaa !9
  %114 = load i64, ptr %10, align 8, !tbaa !9
  %115 = sub nsw i64 %114, 1
  %116 = icmp sle i64 %113, %115
  br i1 %116, label %117, label %148

117:                                              ; preds = %112
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %118

118:                                              ; preds = %141, %117
  %119 = load i64, ptr %17, align 8, !tbaa !9
  %120 = load i64, ptr %12, align 8, !tbaa !9
  %121 = sub nsw i64 %120, 1
  %122 = icmp sle i64 %119, %121
  br i1 %122, label %123, label %144

123:                                              ; preds = %118
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !37
  %126 = load i64, ptr %16, align 8, !tbaa !9
  %127 = load i64, ptr %17, align 8, !tbaa !9
  %128 = load i64, ptr %10, align 8, !tbaa !9
  %129 = mul nsw i64 %127, %128
  %130 = add nsw i64 %126, %129
  %131 = getelementptr inbounds double, ptr %125, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !38
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !37
  %136 = load i64, ptr %16, align 8, !tbaa !9
  %137 = getelementptr inbounds ptr, ptr %135, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = load i64, ptr %17, align 8, !tbaa !9
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  store double %132, ptr %140, align 8, !tbaa !38
  br label %141

141:                                              ; preds = %123
  %142 = load i64, ptr %17, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %17, align 8, !tbaa !9
  br label %118, !llvm.loop !39

144:                                              ; preds = %118
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %16, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %16, align 8, !tbaa !9
  br label %112, !llvm.loop !41

148:                                              ; preds = %112
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %149)
  store i32 1, ptr %19, align 4
  br label %153

150:                                              ; preds = %80
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.1039, ptr noundef %151)
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %152)
  store i32 0, ptr %19, align 4
  br label %153

153:                                              ; preds = %150, %148, %99, %70, %55
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  %154 = load i32, ptr %19, align 4
  switch i32 %154, label %156 [
    i32 0, label %155
    i32 1, label %155
  ]

155:                                              ; preds = %153, %153
  ret void

156:                                              ; preds = %153
  unreachable
}

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

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_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

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

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

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

declare void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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 16}
!16 = !{!"_ZTSN11alglib_impl8rbfmodelE", !10, i64 0, !10, i64 8, !10, i64 16, !17, i64 24, !22, i64 1576, !24, i64 2560, !33, i64 6296, !21, i64 8856, !21, i64 8864, !21, i64 8872, !10, i64 8880, !10, i64 8888, !10, i64 8896, !10, i64 8904, !10, i64 8912, !21, i64 8920, !21, i64 8928, !21, i64 8936, !10, i64 8944, !21, i64 8952, !10, i64 8960, !10, i64 8968, !19, i64 8976, !19, i64 9056, !13, i64 9136, !12, i64 9144, !21, i64 9208, !10, i64 9216, !13, i64 9224}
!17 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !18, i64 32, !19, i64 1096, !19, i64 1176, !21, i64 1256, !19, i64 1264, !12, i64 1344, !19, i64 1408, !12, i64 1488}
!18 = !{!"_ZTSN11alglib_impl6kdtreeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !19, i64 32, !12, i64 112, !12, i64 176, !12, i64 240, !12, i64 304, !12, i64 368, !20, i64 432, !10, i64 1056}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!20 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !12, i64 0, !12, i64 64, !12, i64 128, !10, i64 192, !21, i64 200, !13, i64 208, !21, i64 216, !10, i64 224, !12, i64 232, !12, i64 296, !12, i64 360, !12, i64 424, !12, i64 488, !21, i64 552, !12, i64 560}
!21 = !{!"double", !7, i64 0}
!22 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !12, i64 96, !12, i64 160, !12, i64 224, !12, i64 288, !12, i64 352, !12, i64 416, !12, i64 480, !19, i64 544, !21, i64 624, !10, i64 632, !21, i64 640, !10, i64 648, !23, i64 656}
!23 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !12, i64 0, !12, i64 64, !12, i64 128, !21, i64 192, !12, i64 200, !12, i64 264}
!24 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !10, i64 0, !10, i64 8, !10, i64 16, !21, i64 24, !12, i64 32, !19, i64 96, !12, i64 176, !12, i64 240, !10, i64 304, !25, i64 312, !28, i64 864, !19, i64 2440, !31, i64 2520, !13, i64 3720, !21, i64 3728}
!25 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !10, i64 0, !10, i64 8, !19, i64 16, !10, i64 96, !10, i64 104, !21, i64 112, !10, i64 120, !12, i64 128, !19, i64 192, !19, i64 272, !26, i64 352, !12, i64 488}
!26 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !27, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !14, i64 104}
!27 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !14, i64 8, !13, i64 40}
!28 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !21, i64 40, !19, i64 48, !12, i64 128, !19, i64 192, !13, i64 272, !29, i64 280, !30, i64 416, !26, i64 1328, !19, i64 1464, !13, i64 1544, !10, i64 1552, !10, i64 1560, !10, i64 1568}
!29 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !10, i64 0, !10, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !27, i64 56, !14, i64 104}
!30 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !12, i64 272, !12, i64 336, !12, i64 400, !12, i64 464, !12, i64 528, !12, i64 592, !12, i64 656, !12, i64 720, !12, i64 784, !12, i64 848}
!31 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !12, i64 0, !32, i64 64, !12, i64 784, !12, i64 848, !19, i64 912, !19, i64 992, !12, i64 1072, !12, i64 1136}
!32 = !{!"_ZTSN11alglib_impl19rbf3evaluatorbufferE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !12, i64 320, !12, i64 384, !12, i64 448, !12, i64 512, !12, i64 576, !19, i64 640}
!33 = !{!"_ZTSN11alglib_impl13rbfcalcbufferE", !10, i64 0, !34, i64 8, !23, i64 840, !31, i64 1168, !12, i64 2368, !12, i64 2432, !12, i64 2496}
!34 = !{!"_ZTSN11alglib_impl15rbfv1calcbufferE", !12, i64 0, !19, i64 64, !12, i64 144, !20, i64 208}
!35 = !{!16, !10, i64 0}
!36 = !{!16, !10, i64 8}
!37 = !{!7, !7, i64 0}
!38 = !{!21, !21, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str.710 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.711 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.712 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.713 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.714 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.715 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.1039 = external hidden unnamed_addr constant [37 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_impl12rbfgridcalc2EPNS_8rbfmodelEPKNS_9ae_vectorElS4_lPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr 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_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #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(64) %9, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  %10 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.710, ptr noundef %6)
  %11 = icmp sgt i64 %4, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.711, ptr noundef %6)
  %12 = load i64, ptr %1, align 8, !tbaa !5
  %13 = icmp sge i64 %12, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.712, ptr noundef %6)
  %14 = load i64, ptr %3, align 8, !tbaa !5
  %15 = icmp sge i64 %14, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.713, ptr noundef %6)
  %16 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.714, ptr noundef %6)
  %17 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.715, ptr noundef %6)
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load i64, ptr %18, align 8, !tbaa !13
  switch i64 %19, label %64 [
    i64 1, label %20
    i64 2, label %22
    i64 3, label %24
  ]

20:                                               ; preds = %7
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN11alglib_impl14rbfv1gridcalc2EPNS_10rbfv1modelEPKNS_9ae_vectorElS4_lPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %21, ptr noundef nonnull %1, i64 noundef %2, ptr noundef nonnull %3, i64 noundef %4, ptr noundef %5, ptr noundef %6)
  br label %._crit_edge80

22:                                               ; preds = %7
  %23 = getelementptr inbounds i8, ptr %0, i64 1576
  call void @_ZN11alglib_impl14rbfv2gridcalc2EPNS_10rbfv2modelEPKNS_9ae_vectorElS4_lPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %23, ptr noundef nonnull %1, i64 noundef %2, ptr noundef nonnull %3, i64 noundef %4, ptr noundef %5, ptr noundef %6)
  br label %._crit_edge80

24:                                               ; preds = %7
  call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %2, i64 noundef %4, ptr noundef %5, ptr noundef %6)
  %25 = load i64, ptr %0, align 8, !tbaa !33
  %.not = icmp eq i64 %25, 2
  br i1 %.not, label %26, label %29

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !34
  %.not73 = icmp eq i64 %28, 1
  br i1 %.not73, label %30, label %29

29:                                               ; preds = %26, %24
  call void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %2, i64 noundef %4, double noundef 0.000000e+00, ptr noundef %5, ptr noundef %6)
  br label %._crit_edge80

30:                                               ; preds = %26
  call void @_ZN11alglib_impl13rbfgridcalc2vEPKNS_8rbfmodelEPKNS_9ae_vectorElS5_lPS3_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %1, i64 noundef %2, ptr noundef nonnull %3, i64 noundef %4, ptr noundef nonnull %9, ptr noundef %6)
  br i1 %10, label %.preheader.lr.ph, label %._crit_edge80

.preheader.lr.ph:                                 ; preds = %30
  %31 = getelementptr inbounds i8, ptr %9, i64 56
  %32 = getelementptr inbounds i8, ptr %5, i64 72
  br i1 %11, label %.preheader.us.preheader, label %._crit_edge80

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %4, 1
  %33 = icmp eq i64 %4, 1
  %unroll_iter = and i64 %4, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.07179.us = phi i64 [ %63, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  br i1 %33, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.077.us = phi i64 [ %53, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %34 = load ptr, ptr %31, align 8, !tbaa !35
  %35 = mul nuw nsw i64 %.077.us, %2
  %36 = getelementptr double, ptr %34, i64 %.07179.us
  %37 = getelementptr double, ptr %36, i64 %35
  %38 = load double, ptr %37, align 8, !tbaa !36
  %39 = load ptr, ptr %32, align 8, !tbaa !35
  %40 = getelementptr inbounds ptr, ptr %39, i64 %.07179.us
  %41 = load ptr, ptr %40, align 8, !tbaa !37
  %42 = getelementptr inbounds double, ptr %41, i64 %.077.us
  store double %38, ptr %42, align 8, !tbaa !36
  %43 = or disjoint i64 %.077.us, 1
  %44 = load ptr, ptr %31, align 8, !tbaa !35
  %45 = mul nuw nsw i64 %43, %2
  %46 = getelementptr double, ptr %44, i64 %.07179.us
  %47 = getelementptr double, ptr %46, i64 %45
  %48 = load double, ptr %47, align 8, !tbaa !36
  %49 = load ptr, ptr %32, align 8, !tbaa !35
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.07179.us
  %51 = load ptr, ptr %50, align 8, !tbaa !37
  %52 = getelementptr inbounds double, ptr %51, i64 %43
  store double %48, ptr %52, align 8, !tbaa !36
  %53 = add nuw nsw i64 %.077.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !38

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.077.us.unr = phi i64 [ 0, %.preheader.us ], [ %53, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %54 = load ptr, ptr %31, align 8, !tbaa !35
  %55 = mul nuw nsw i64 %.077.us.unr, %2
  %56 = getelementptr double, ptr %54, i64 %.07179.us
  %57 = getelementptr double, ptr %56, i64 %55
  %58 = load double, ptr %57, align 8, !tbaa !36
  %59 = load ptr, ptr %32, align 8, !tbaa !35
  %60 = getelementptr inbounds ptr, ptr %59, i64 %.07179.us
  %61 = load ptr, ptr %60, align 8, !tbaa !37
  %62 = getelementptr inbounds double, ptr %61, i64 %.077.us.unr
  store double %58, ptr %62, align 8, !tbaa !36
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %63 = add nuw nsw i64 %.07179.us, 1
  %exitcond82.not = icmp eq i64 %63, %2
  br i1 %exitcond82.not, label %._crit_edge80, label %.preheader.us, !llvm.loop !40

64:                                               ; preds = %7
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.1039, ptr noundef %6)
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge.us, %30, %.preheader.lr.ph, %64, %29, %22, %20
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

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

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_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_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 16}
!14 = !{!"_ZTSN11alglib_impl8rbfmodelE", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !20, i64 1576, !22, i64 2560, !31, i64 6296, !19, i64 8856, !19, i64 8864, !19, i64 8872, !7, i64 8880, !7, i64 8888, !7, i64 8896, !7, i64 8904, !7, i64 8912, !19, i64 8920, !19, i64 8928, !19, i64 8936, !7, i64 8944, !19, i64 8952, !7, i64 8960, !7, i64 8968, !17, i64 8976, !17, i64 9056, !10, i64 9136, !6, i64 9144, !19, i64 9208, !7, i64 9216, !10, i64 9224}
!15 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !16, i64 32, !17, i64 1096, !17, i64 1176, !19, i64 1256, !17, i64 1264, !6, i64 1344, !17, i64 1408, !6, i64 1488}
!16 = !{!"_ZTSN11alglib_impl6kdtreeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !17, i64 32, !6, i64 112, !6, i64 176, !6, i64 240, !6, i64 304, !6, i64 368, !18, i64 432, !7, i64 1056}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!18 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !7, i64 192, !19, i64 200, !10, i64 208, !19, i64 216, !7, i64 224, !6, i64 232, !6, i64 296, !6, i64 360, !6, i64 424, !6, i64 488, !19, i64 552, !6, i64 560}
!19 = !{!"double", !8, i64 0}
!20 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !6, i64 96, !6, i64 160, !6, i64 224, !6, i64 288, !6, i64 352, !6, i64 416, !6, i64 480, !17, i64 544, !19, i64 624, !7, i64 632, !19, i64 640, !7, i64 648, !21, i64 656}
!21 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !19, i64 192, !6, i64 200, !6, i64 264}
!22 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !7, i64 0, !7, i64 8, !7, i64 16, !19, i64 24, !6, i64 32, !17, i64 96, !6, i64 176, !6, i64 240, !7, i64 304, !23, i64 312, !26, i64 864, !17, i64 2440, !29, i64 2520, !10, i64 3720, !19, i64 3728}
!23 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !7, i64 0, !7, i64 8, !17, i64 16, !7, i64 96, !7, i64 104, !19, i64 112, !7, i64 120, !6, i64 128, !17, i64 192, !17, i64 272, !24, i64 352, !6, i64 488}
!24 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !25, i64 0, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !12, i64 88, !12, i64 96, !11, i64 104}
!25 = !{!"_ZTSN11alglib_impl7ae_lockE", !12, i64 0, !11, i64 8, !10, i64 40}
!26 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !19, i64 40, !17, i64 48, !6, i64 128, !17, i64 192, !10, i64 272, !27, i64 280, !28, i64 416, !24, i64 1328, !17, i64 1464, !10, i64 1544, !7, i64 1552, !7, i64 1560, !7, i64 1568}
!27 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !25, i64 56, !11, i64 104}
!28 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !6, i64 208, !6, i64 272, !6, i64 336, !6, i64 400, !6, i64 464, !6, i64 528, !6, i64 592, !6, i64 656, !6, i64 720, !6, i64 784, !6, i64 848}
!29 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !6, i64 0, !30, i64 64, !6, i64 784, !6, i64 848, !17, i64 912, !17, i64 992, !6, i64 1072, !6, i64 1136}
!30 = !{!"_ZTSN11alglib_impl19rbf3evaluatorbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !6, i64 320, !6, i64 384, !6, i64 448, !6, i64 512, !6, i64 576, !17, i64 640}
!31 = !{!"_ZTSN11alglib_impl13rbfcalcbufferE", !7, i64 0, !32, i64 8, !21, i64 840, !29, i64 1168, !6, i64 2368, !6, i64 2432, !6, i64 2496}
!32 = !{!"_ZTSN11alglib_impl15rbfv1calcbufferE", !6, i64 0, !17, i64 64, !6, i64 144, !18, i64 208}
!33 = !{!14, !7, i64 0}
!34 = !{!14, !7, i64 8}
!35 = !{!8, !8, i64 0}
!36 = !{!19, !19, i64 0}
!37 = !{!12, !12, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}


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