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

@.str.506 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.507 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.508 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.509 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.510 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.511 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.512 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.513 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.514 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.515 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.516 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.517 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.518 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.519 = external hidden unnamed_addr constant [47 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_impl20spline1dfithermitewcEPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #2 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store i64 %3, ptr %16, align 8, !tbaa !9
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store i64 %7, ptr %20, align 8, !tbaa !9
  store i64 %8, ptr %21, align 8, !tbaa !9
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %26 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %26)
  %27 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_spline1dfitreport_clearEPv(ptr noundef %27)
  %28 = load i64, ptr %16, align 8, !tbaa !9
  %29 = icmp sge i64 %28, 1
  %30 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.506, ptr noundef %30)
  %31 = load i64, ptr %21, align 8, !tbaa !9
  %32 = icmp sge i64 %31, 4
  %33 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.507, ptr noundef %33)
  %34 = load i64, ptr %21, align 8, !tbaa !9
  %35 = srem i64 %34, 2
  %36 = icmp eq i64 %35, 0
  %37 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.508, ptr noundef %37)
  %38 = load i64, ptr %20, align 8, !tbaa !9
  %39 = icmp sge i64 %38, 0
  %40 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.509, ptr noundef %40)
  %41 = load i64, ptr %20, align 8, !tbaa !9
  %42 = load i64, ptr %21, align 8, !tbaa !9
  %43 = icmp slt i64 %41, %42
  %44 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.510, ptr noundef %44)
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = load i64, ptr %16, align 8, !tbaa !9
  %49 = icmp sge i64 %47, %48
  %50 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.511, ptr noundef %50)
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %51, i32 0, i32 0
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = load i64, ptr %16, align 8, !tbaa !9
  %55 = icmp sge i64 %53, %54
  %56 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.512, ptr noundef %56)
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %60 = load i64, ptr %16, align 8, !tbaa !9
  %61 = icmp sge i64 %59, %60
  %62 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef @.str.513, ptr noundef %62)
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %63, i32 0, i32 0
  %65 = load i64, ptr %64, align 8, !tbaa !11
  %66 = load i64, ptr %20, align 8, !tbaa !9
  %67 = icmp sge i64 %65, %66
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.514, ptr noundef %68)
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = load i64, ptr %20, align 8, !tbaa !9
  %73 = icmp sge i64 %71, %72
  %74 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %73, ptr noundef @.str.515, ptr noundef %74)
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %75, i32 0, i32 0
  %77 = load i64, ptr %76, align 8, !tbaa !11
  %78 = load i64, ptr %20, align 8, !tbaa !9
  %79 = icmp sge i64 %77, %78
  %80 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %79, ptr noundef @.str.516, ptr noundef %80)
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = load i64, ptr %16, align 8, !tbaa !9
  %83 = load ptr, ptr %24, align 8, !tbaa !5
  %84 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %81, i64 noundef %82, ptr noundef %83)
  %85 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %84, ptr noundef @.str.517, ptr noundef %85)
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load i64, ptr %16, align 8, !tbaa !9
  %88 = load ptr, ptr %24, align 8, !tbaa !5
  %89 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %86, i64 noundef %87, ptr noundef %88)
  %90 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %89, ptr noundef @.str.518, ptr noundef %90)
  %91 = load ptr, ptr %15, align 8, !tbaa !5
  %92 = load i64, ptr %16, align 8, !tbaa !9
  %93 = load ptr, ptr %24, align 8, !tbaa !5
  %94 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %91, i64 noundef %92, ptr noundef %93)
  %95 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %94, ptr noundef @.str.518, ptr noundef %95)
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = load i64, ptr %20, align 8, !tbaa !9
  %98 = load ptr, ptr %24, align 8, !tbaa !5
  %99 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %96, i64 noundef %97, ptr noundef %98)
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %99, ptr noundef @.str.517, ptr noundef %100)
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = load i64, ptr %20, align 8, !tbaa !9
  %103 = load ptr, ptr %24, align 8, !tbaa !5
  %104 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %101, i64 noundef %102, ptr noundef %103)
  %105 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %104, ptr noundef @.str.518, ptr noundef %105)
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %106

106:                                              ; preds = %130, %12
  %107 = load i64, ptr %25, align 8, !tbaa !9
  %108 = load i64, ptr %20, align 8, !tbaa !9
  %109 = sub nsw i64 %108, 1
  %110 = icmp sle i64 %107, %109
  br i1 %110, label %111, label %133

111:                                              ; preds = %106
  %112 = load ptr, ptr %19, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %112, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = load i64, ptr %25, align 8, !tbaa !9
  %116 = getelementptr inbounds i64, ptr %114, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %127, label %119

119:                                              ; preds = %111
  %120 = load ptr, ptr %19, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %120, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !15
  %123 = load i64, ptr %25, align 8, !tbaa !9
  %124 = getelementptr inbounds i64, ptr %122, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !9
  %126 = icmp eq i64 %125, 1
  br label %127

127:                                              ; preds = %119, %111
  %128 = phi i1 [ true, %111 ], [ %126, %119 ]
  %129 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %128, ptr noundef @.str.519, ptr noundef %129)
  br label %130

130:                                              ; preds = %127
  %131 = load i64, ptr %25, align 8, !tbaa !9
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %25, align 8, !tbaa !9
  br label %106, !llvm.loop !16

133:                                              ; preds = %106
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  %137 = load i64, ptr %16, align 8, !tbaa !9
  %138 = load ptr, ptr %17, align 8, !tbaa !5
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = load ptr, ptr %19, align 8, !tbaa !5
  %141 = load i64, ptr %20, align 8, !tbaa !9
  %142 = load i64, ptr %21, align 8, !tbaa !9
  %143 = load ptr, ptr %22, align 8, !tbaa !5
  %144 = load ptr, ptr %23, align 8, !tbaa !5
  %145 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_spline1dfitinternalElPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(i64 noundef 1, ptr noundef %134, ptr noundef %135, ptr noundef %136, i64 noundef %137, ptr noundef %138, ptr noundef %139, ptr noundef %140, i64 noundef %141, i64 noundef %142, ptr noundef %143, ptr noundef %144, ptr noundef %145)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL25lsfit_spline1dfitinternalElPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 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, !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 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"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.506 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.507 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.508 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.509 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.510 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.511 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.512 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.513 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.514 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.515 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.516 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.517 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.518 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.519 = external hidden unnamed_addr constant [47 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_impl20spline1dfithermitewcEPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %9)
  tail call void @_ZN11alglib_impl24_spline1dfitreport_clearEPv(ptr noundef %10)
  %13 = icmp sgt i64 %3, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.506, ptr noundef %11)
  %14 = icmp sgt i64 %8, 3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.507, ptr noundef %11)
  %15 = and i64 %8, 1
  %16 = icmp eq i64 %15, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.508, ptr noundef %11)
  %17 = icmp sgt i64 %7, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.509, ptr noundef %11)
  %18 = icmp slt i64 %7, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.510, ptr noundef %11)
  %19 = load i64, ptr %0, align 8, !tbaa !5
  %20 = icmp sge i64 %19, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.511, ptr noundef %11)
  %21 = load i64, ptr %1, align 8, !tbaa !5
  %22 = icmp sge i64 %21, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.512, ptr noundef %11)
  %23 = load i64, ptr %2, align 8, !tbaa !5
  %24 = icmp sge i64 %23, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.513, ptr noundef %11)
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %26 = icmp sge i64 %25, %7
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.514, ptr noundef %11)
  %27 = load i64, ptr %5, align 8, !tbaa !5
  %28 = icmp sge i64 %27, %7
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef nonnull @.str.515, ptr noundef %11)
  %29 = load i64, ptr %6, align 8, !tbaa !5
  %30 = icmp sge i64 %29, %7
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.516, ptr noundef %11)
  %31 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %3, ptr noundef %11)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef nonnull @.str.517, ptr noundef %11)
  %32 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %3, ptr noundef %11)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.518, ptr noundef %11)
  %33 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %3, ptr noundef %11)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef nonnull @.str.518, ptr noundef %11)
  %34 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %7, ptr noundef %11)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.517, ptr noundef %11)
  %35 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %7, ptr noundef %11)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef nonnull @.str.518, ptr noundef %11)
  %.not.not71 = icmp sgt i64 %7, 0
  br i1 %.not.not71, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %12
  %36 = getelementptr inbounds i8, ptr %6, i64 56
  br label %37

37:                                               ; preds = %.lr.ph, %37
  %.072 = phi i64 [ 0, %.lr.ph ], [ %41, %37 ]
  %38 = load ptr, ptr %36, align 8, !tbaa !13
  %39 = getelementptr inbounds i64, ptr %38, i64 %.072
  %40 = load i64, ptr %39, align 8, !tbaa !14
  %spec.select = icmp ult i64 %40, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.519, ptr noundef %11)
  %41 = add nuw nsw i64 %.072, 1
  %exitcond.not = icmp eq i64 %41, %7
  br i1 %exitcond.not, label %._crit_edge, label %37, !llvm.loop !15

._crit_edge:                                      ; preds = %37, %12
  tail call void @_ZN11alglib_implL25lsfit_spline1dfitinternalElPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(i64 noundef 1, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i64 noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL25lsfit_spline1dfitinternalElPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 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 = !{!8, !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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