; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src/interpolation.ll (ZN11alglib_impl9rbfcreateEllPNS_8rbfmodelEPNS_8ae_stateE)

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

@.str.698 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.721 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9rbfcreateEllPNS_8rbfmodelEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !9
  %9 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_ZN11alglib_impl15_rbfmodel_clearEPv(ptr noundef %9)
  %10 = load i64, ptr %5, align 8, !tbaa !5
  %11 = icmp sge i64 %10, 1
  %12 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef @.str.721, ptr noundef %12)
  %13 = load i64, ptr %6, align 8, !tbaa !5
  %14 = icmp sge i64 %13, 1
  %15 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef @.str.698, ptr noundef %15)
  %16 = load i64, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %7, align 8, !tbaa !9
  %18 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %17, i32 0, i32 0
  store i64 %16, ptr %18, align 8, !tbaa !11
  %19 = load i64, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %20, i32 0, i32 1
  store i64 %19, ptr %21, align 8, !tbaa !34
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_implL35rbf_rbfpreparenonserializablefieldsEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef %22, ptr noundef %23)
  %24 = load i64, ptr %5, align 8, !tbaa !5
  %25 = load i64, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !9
  %27 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %26, i32 0, i32 3
  %28 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_implL16rbf_initializev1EllPNS_10rbfv1modelEPNS_8ae_stateE(i64 noundef %24, i64 noundef %25, ptr noundef %27, ptr noundef %28)
  %29 = load i64, ptr %5, align 8, !tbaa !5
  %30 = load i64, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_implL16rbf_initializev2EllPNS_10rbfv2modelEPNS_8ae_stateE(i64 noundef %29, i64 noundef %30, ptr noundef %32, ptr noundef %33)
  %34 = load i64, ptr %5, align 8, !tbaa !5
  %35 = load i64, ptr %6, align 8, !tbaa !5
  %36 = load ptr, ptr %7, align 8, !tbaa !9
  %37 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %36, i32 0, i32 5
  %38 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_implL16rbf_initializev3EllPNS_10rbfv3modelEPNS_8ae_stateE(i64 noundef %34, i64 noundef %35, ptr noundef %37, ptr noundef %38)
  %39 = load i64, ptr %5, align 8, !tbaa !5
  %40 = icmp eq i64 %39, 2
  br i1 %40, label %44, label %41

41:                                               ; preds = %4
  %42 = load i64, ptr %5, align 8, !tbaa !5
  %43 = icmp eq i64 %42, 3
  br i1 %43, label %44, label %47

44:                                               ; preds = %41, %4
  %45 = load ptr, ptr %7, align 8, !tbaa !9
  %46 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %45, i32 0, i32 2
  store i64 1, ptr %46, align 8, !tbaa !35
  br label %50

47:                                               ; preds = %41
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %48, i32 0, i32 2
  store i64 2, ptr %49, align 8, !tbaa !35
  br label %50

50:                                               ; preds = %47, %44
  %51 = load ptr, ptr %7, align 8, !tbaa !9
  %52 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %51, i32 0, i32 27
  store i64 0, ptr %52, align 8, !tbaa !36
  %53 = load ptr, ptr %7, align 8, !tbaa !9
  %54 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %53, i32 0, i32 28
  store i8 0, ptr %54, align 8, !tbaa !37
  %55 = load ptr, ptr %7, align 8, !tbaa !9
  %56 = load ptr, ptr %7, align 8, !tbaa !9
  %57 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %56, i32 0, i32 6
  %58 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl19rbfcreatecalcbufferEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPNS_8ae_stateE(ptr noundef %55, ptr noundef %57, ptr noundef %58)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19rbfcreatecalcbufferEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_rbfmodel_clearEPv(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL35rbf_rbfpreparenonserializablefieldsEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

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

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

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

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

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


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

@.str.698 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.721 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9rbfcreateEllPNS_8rbfmodelEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15_rbfmodel_clearEPv(ptr noundef %2)
  %5 = icmp sgt i64 %0, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %5, ptr noundef nonnull @.str.721, ptr noundef %3)
  %6 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.698, ptr noundef %3)
  store i64 %0, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %1, ptr %7, align 8, !tbaa !32
  tail call void @_ZN11alglib_implL35rbf_rbfpreparenonserializablefieldsEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef %3)
  %8 = getelementptr inbounds i8, ptr %2, i64 24
  tail call void @_ZN11alglib_implL16rbf_initializev1EllPNS_10rbfv1modelEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef nonnull %8, ptr noundef %3)
  %9 = getelementptr inbounds i8, ptr %2, i64 1576
  tail call void @_ZN11alglib_implL16rbf_initializev2EllPNS_10rbfv2modelEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef nonnull %9, ptr noundef %3)
  %10 = getelementptr inbounds i8, ptr %2, i64 2560
  tail call void @_ZN11alglib_implL16rbf_initializev3EllPNS_10rbfv3modelEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef nonnull %10, ptr noundef %3)
  %11 = and i64 %0, -2
  %or.cond = icmp eq i64 %11, 2
  %spec.select = select i1 %or.cond, i64 1, i64 2
  %12 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 %spec.select, ptr %12, align 8
  %13 = getelementptr inbounds i8, ptr %2, i64 9216
  store i64 0, ptr %13, align 8, !tbaa !33
  %14 = getelementptr inbounds i8, ptr %2, i64 9224
  store i8 0, ptr %14, align 8, !tbaa !34
  %15 = getelementptr inbounds i8, ptr %2, i64 6296
  tail call void @_ZN11alglib_impl19rbfcreatecalcbufferEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %15, ptr noundef %3)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19rbfcreatecalcbufferEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL35rbf_rbfpreparenonserializablefieldsEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass