; 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::rbfmodel" = type { i64, i64, i64, %"struct.alglib_impl::rbfv1model", %"struct.alglib_impl::rbfv2model", double, double, double, i64, i64, i64, double, double, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_vector", 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::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::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::rbfcalcbuffer" = type { i64, %"struct.alglib_impl::rbfv1calcbuffer", %"struct.alglib_impl::rbfv2calcbuffer" }
%"struct.alglib_impl::rbfv1calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::kdtreerequestbuffer" }

@.str.680 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.681 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.805 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.806 = 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 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12rbftscalcbufEPNS_8rbfmodelEPNS_13rbfcalcbufferEPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %13 = load ptr, ptr %8, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 0
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %16, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %19 = icmp sge i64 %15, %18
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.680, ptr noundef %20)
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %22, i32 0, i32 0
  %24 = load i64, ptr %23, align 8, !tbaa !14
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %24, ptr noundef %25)
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef @.str.681, ptr noundef %27)
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %28, i32 0, i32 2
  %30 = load i64, ptr %29, align 8, !tbaa !23
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::rbfcalcbuffer", ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !24
  %34 = icmp eq i64 %30, %33
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.805, ptr noundef %35)
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %39, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !27
  %42 = icmp slt i64 %38, %41
  br i1 %42, label %43, label %49

43:                                               ; preds = %5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %45, i32 0, i32 1
  %47 = load i64, ptr %46, align 8, !tbaa !27
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %44, i64 noundef %47, ptr noundef %48)
  br label %49

49:                                               ; preds = %43, %5
  store i64 0, ptr %11, align 8, !tbaa !28
  br label %50

50:                                               ; preds = %63, %49
  %51 = load i64, ptr %11, align 8, !tbaa !28
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !27
  %55 = sub nsw i64 %54, 1
  %56 = icmp sle i64 %51, %55
  br i1 %56, label %57, label %66

57:                                               ; preds = %50
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !29
  %61 = load i64, ptr %11, align 8, !tbaa !28
  %62 = getelementptr inbounds double, ptr %60, i64 %61
  store double 0.000000e+00, ptr %62, align 8, !tbaa !30
  br label %63

63:                                               ; preds = %57
  %64 = load i64, ptr %11, align 8, !tbaa !28
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr %11, align 8, !tbaa !28
  br label %50, !llvm.loop !31

66:                                               ; preds = %50
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %67, i32 0, i32 2
  %69 = load i64, ptr %68, align 8, !tbaa !23
  %70 = icmp eq i64 %69, 1
  br i1 %70, label %71, label %79

71:                                               ; preds = %66
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %72, i32 0, i32 3
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::rbfcalcbuffer", ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv1tscalcbufEPNS_10rbfv1modelEPNS_15rbfv1calcbufferEPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef %73, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78)
  store i32 1, ptr %12, align 4
  br label %94

79:                                               ; preds = %66
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %80, i32 0, i32 2
  %82 = load i64, ptr %81, align 8, !tbaa !23
  %83 = icmp eq i64 %82, 2
  br i1 %83, label %84, label %92

84:                                               ; preds = %79
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::rbfcalcbuffer", ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv2tscalcbufEPNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef %86, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91)
  store i32 1, ptr %12, align 4
  br label %94

92:                                               ; preds = %79
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.806, ptr noundef %93)
  store i32 0, ptr %12, align 4
  br label %94

94:                                               ; preds = %92, %84, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %95 = load i32, ptr %12, align 4
  switch i32 %95, label %97 [
    i32 0, label %96
    i32 1, label %96
  ]

96:                                               ; preds = %94, %94
  ret void

97:                                               ; preds = %94
  unreachable
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 #3 = { 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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!15, !11, i64 0}
!15 = !{!"_ZTSN11alglib_impl8rbfmodelE", !11, i64 0, !11, i64 8, !11, i64 16, !16, i64 24, !21, i64 1512, !20, i64 2496, !20, i64 2504, !20, i64 2512, !11, i64 2520, !11, i64 2528, !11, i64 2536, !20, i64 2544, !20, i64 2552, !11, i64 2560, !11, i64 2568, !11, i64 2576, !18, i64 2584, !18, i64 2664, !12, i64 2744, !10, i64 2752, !11, i64 2816, !12, i64 2824}
!16 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !17, i64 32, !18, i64 1032, !18, i64 1112, !20, i64 1192, !18, i64 1200, !10, i64 1280, !18, i64 1344, !10, i64 1424}
!17 = !{!"_ZTSN11alglib_impl6kdtreeE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !18, i64 32, !10, i64 112, !10, i64 176, !10, i64 240, !10, i64 304, !10, i64 368, !19, i64 432, !11, i64 992}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!19 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !10, i64 0, !10, i64 64, !10, i64 128, !11, i64 192, !20, i64 200, !12, i64 208, !20, i64 216, !11, i64 224, !10, i64 232, !10, i64 296, !10, i64 360, !10, i64 424, !10, i64 488, !20, i64 552}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !10, i64 32, !10, i64 96, !10, i64 160, !10, i64 224, !10, i64 288, !10, i64 352, !10, i64 416, !10, i64 480, !18, i64 544, !20, i64 624, !11, i64 632, !20, i64 640, !11, i64 648, !22, i64 656}
!22 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !10, i64 0, !10, i64 64, !10, i64 128, !20, i64 192, !10, i64 200, !10, i64 264}
!23 = !{!15, !11, i64 16}
!24 = !{!25, !11, i64 0}
!25 = !{!"_ZTSN11alglib_impl13rbfcalcbufferE", !11, i64 0, !26, i64 8, !22, i64 776}
!26 = !{!"_ZTSN11alglib_impl15rbfv1calcbufferE", !10, i64 0, !18, i64 64, !10, i64 144, !19, i64 208}
!27 = !{!15, !11, i64 8}
!28 = !{!11, !11, i64 0}
!29 = !{!7, !7, i64 0}
!30 = !{!20, !20, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; 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.680 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.681 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.805 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.806 = external hidden unnamed_addr constant [37 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_impl12rbftscalcbufEPNS_8rbfmodelEPNS_13rbfcalcbufferEPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = load i64, ptr %2, align 8, !tbaa !5
  %7 = load i64, ptr %0, align 8, !tbaa !13
  %8 = icmp sge i64 %6, %7
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.680, ptr noundef %4)
  %9 = load i64, ptr %0, align 8, !tbaa !13
  %10 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %9, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.681, ptr noundef %4)
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load i64, ptr %11, align 8, !tbaa !22
  %13 = load i64, ptr %1, align 8, !tbaa !23
  %14 = icmp eq i64 %12, %13
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.805, ptr noundef %4)
  %15 = load i64, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !26
  %18 = icmp slt i64 %15, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %17, ptr noundef %4)
  %.pre = load i64, ptr %16, align 8, !tbaa !26
  br label %20

20:                                               ; preds = %19, %5
  %21 = phi i64 [ %.pre, %19 ], [ %17, %5 ]
  %.not.not34 = icmp sgt i64 %21, 0
  br i1 %.not.not34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %20
  %22 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %21, 3
  %23 = icmp ult i64 %21, 4
  br i1 %23, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

24:                                               ; preds = %24, %.lr.ph.new
  %.035 = phi i64 [ 0, %.lr.ph.new ], [ %36, %24 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %24 ]
  %25 = load ptr, ptr %22, align 8, !tbaa !27
  %26 = getelementptr inbounds double, ptr %25, i64 %.035
  store double 0.000000e+00, ptr %26, align 8, !tbaa !28
  %27 = or disjoint i64 %.035, 1
  %28 = load ptr, ptr %22, align 8, !tbaa !27
  %29 = getelementptr inbounds double, ptr %28, i64 %27
  store double 0.000000e+00, ptr %29, align 8, !tbaa !28
  %30 = or disjoint i64 %.035, 2
  %31 = load ptr, ptr %22, align 8, !tbaa !27
  %32 = getelementptr inbounds double, ptr %31, i64 %30
  store double 0.000000e+00, ptr %32, align 8, !tbaa !28
  %33 = or disjoint i64 %.035, 3
  %34 = load ptr, ptr %22, align 8, !tbaa !27
  %35 = getelementptr inbounds double, ptr %34, i64 %33
  store double 0.000000e+00, ptr %35, align 8, !tbaa !28
  %36 = add nuw nsw i64 %.035, 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 %._crit_edge.loopexit.unr-lcssa, label %24, !llvm.loop !29

._crit_edge.loopexit.unr-lcssa:                   ; preds = %24, %.lr.ph
  %.035.unr = phi i64 [ 0, %.lr.ph ], [ %36, %24 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.035.epil = phi i64 [ %39, %.epil.preheader ], [ %.035.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %37 = load ptr, ptr %22, align 8, !tbaa !27
  %38 = getelementptr inbounds double, ptr %37, i64 %.035.epil
  store double 0.000000e+00, ptr %38, align 8, !tbaa !28
  %39 = add nuw nsw i64 %.035.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 %._crit_edge, label %.epil.preheader, !llvm.loop !31

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %20
  %40 = load i64, ptr %11, align 8, !tbaa !22
  switch i64 %40, label %47 [
    i64 1, label %41
    i64 2, label %44
  ]

41:                                               ; preds = %._crit_edge
  %42 = getelementptr inbounds i8, ptr %0, i64 24
  %43 = getelementptr inbounds i8, ptr %1, i64 8
  tail call void @_ZN11alglib_impl14rbfv1tscalcbufEPNS_10rbfv1modelEPNS_15rbfv1calcbufferEPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef nonnull %42, ptr noundef nonnull %43, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4)
  br label %48

44:                                               ; preds = %._crit_edge
  %45 = getelementptr inbounds i8, ptr %0, i64 1512
  %46 = getelementptr inbounds i8, ptr %1, i64 776
  tail call void @_ZN11alglib_impl14rbfv2tscalcbufEPNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4)
  br label %48

47:                                               ; preds = %._crit_edge
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.806, ptr noundef %4)
  br label %48

48:                                               ; preds = %47, %44, %41
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14rbfv1tscalcbufEPNS_10rbfv1modelEPNS_15rbfv1calcbufferEPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr 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" }

!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_impl8rbfmodelE", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !20, i64 1512, !19, i64 2496, !19, i64 2504, !19, i64 2512, !7, i64 2520, !7, i64 2528, !7, i64 2536, !19, i64 2544, !19, i64 2552, !7, i64 2560, !7, i64 2568, !7, i64 2576, !17, i64 2584, !17, i64 2664, !10, i64 2744, !6, i64 2752, !7, i64 2816, !10, i64 2824}
!15 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !16, i64 32, !17, i64 1032, !17, i64 1112, !19, i64 1192, !17, i64 1200, !6, i64 1280, !17, i64 1344, !6, i64 1424}
!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 992}
!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}
!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 = !{!14, !7, i64 16}
!23 = !{!24, !7, i64 0}
!24 = !{!"_ZTSN11alglib_impl13rbfcalcbufferE", !7, i64 0, !25, i64 8, !21, i64 776}
!25 = !{!"_ZTSN11alglib_impl15rbfv1calcbufferE", !6, i64 0, !17, i64 64, !6, i64 144, !18, i64 208}
!26 = !{!14, !7, i64 8}
!27 = !{!8, !8, i64 0}
!28 = !{!19, !19, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.unroll.disable"}


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