; 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.493 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.494 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.495 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.496 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.497 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.498 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.499 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.500 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.501 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.502 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.503 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.504 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.505 = external hidden unnamed_addr constant [45 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_impl18spline1dfitcubicwcEPKNS_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.493, 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.494, ptr noundef %33)
  %34 = load i64, ptr %20, align 8, !tbaa !9
  %35 = icmp sge i64 %34, 0
  %36 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.495, ptr noundef %36)
  %37 = load i64, ptr %20, align 8, !tbaa !9
  %38 = load i64, ptr %21, align 8, !tbaa !9
  %39 = icmp slt i64 %37, %38
  %40 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.496, ptr noundef %40)
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 0
  %43 = load i64, ptr %42, align 8, !tbaa !11
  %44 = load i64, ptr %16, align 8, !tbaa !9
  %45 = icmp sge i64 %43, %44
  %46 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef @.str.497, ptr noundef %46)
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 0
  %49 = load i64, ptr %48, align 8, !tbaa !11
  %50 = load i64, ptr %16, align 8, !tbaa !9
  %51 = icmp sge i64 %49, %50
  %52 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef @.str.498, ptr noundef %52)
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !11
  %56 = load i64, ptr %16, align 8, !tbaa !9
  %57 = icmp sge i64 %55, %56
  %58 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %57, ptr noundef @.str.499, ptr noundef %58)
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %59, i32 0, i32 0
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = load i64, ptr %20, align 8, !tbaa !9
  %63 = icmp sge i64 %61, %62
  %64 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef @.str.500, ptr noundef %64)
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = load i64, ptr %20, align 8, !tbaa !9
  %69 = icmp sge i64 %67, %68
  %70 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.501, ptr noundef %70)
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %71, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !11
  %74 = load i64, ptr %20, align 8, !tbaa !9
  %75 = icmp sge i64 %73, %74
  %76 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %75, ptr noundef @.str.502, ptr noundef %76)
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = load i64, ptr %16, align 8, !tbaa !9
  %79 = load ptr, ptr %24, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %77, i64 noundef %78, ptr noundef %79)
  %81 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %80, ptr noundef @.str.503, ptr noundef %81)
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = load i64, ptr %16, align 8, !tbaa !9
  %84 = load ptr, ptr %24, align 8, !tbaa !5
  %85 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %82, i64 noundef %83, ptr noundef %84)
  %86 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %85, ptr noundef @.str.504, ptr noundef %86)
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = load i64, ptr %16, align 8, !tbaa !9
  %89 = load ptr, ptr %24, align 8, !tbaa !5
  %90 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %87, i64 noundef %88, ptr noundef %89)
  %91 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %90, ptr noundef @.str.504, ptr noundef %91)
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = load i64, ptr %20, align 8, !tbaa !9
  %94 = load ptr, ptr %24, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %92, i64 noundef %93, ptr noundef %94)
  %96 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %95, ptr noundef @.str.503, ptr noundef %96)
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = load i64, ptr %20, align 8, !tbaa !9
  %99 = load ptr, ptr %24, align 8, !tbaa !5
  %100 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %97, i64 noundef %98, ptr noundef %99)
  %101 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %100, ptr noundef @.str.504, ptr noundef %101)
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %126, %12
  %103 = load i64, ptr %25, align 8, !tbaa !9
  %104 = load i64, ptr %20, align 8, !tbaa !9
  %105 = sub nsw i64 %104, 1
  %106 = icmp sle i64 %103, %105
  br i1 %106, label %107, label %129

107:                                              ; preds = %102
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = load i64, ptr %25, align 8, !tbaa !9
  %112 = getelementptr inbounds i64, ptr %110, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = icmp eq i64 %113, 0
  br i1 %114, label %123, label %115

115:                                              ; preds = %107
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = load i64, ptr %25, align 8, !tbaa !9
  %120 = getelementptr inbounds i64, ptr %118, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = icmp eq i64 %121, 1
  br label %123

123:                                              ; preds = %115, %107
  %124 = phi i1 [ true, %107 ], [ %122, %115 ]
  %125 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %124, ptr noundef @.str.505, ptr noundef %125)
  br label %126

126:                                              ; preds = %123
  %127 = load i64, ptr %25, align 8, !tbaa !9
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %25, align 8, !tbaa !9
  br label %102, !llvm.loop !16

129:                                              ; preds = %102
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  %133 = load i64, ptr %16, align 8, !tbaa !9
  %134 = load ptr, ptr %17, align 8, !tbaa !5
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = load i64, ptr %20, align 8, !tbaa !9
  %138 = load i64, ptr %21, align 8, !tbaa !9
  %139 = load ptr, ptr %22, align 8, !tbaa !5
  %140 = load ptr, ptr %23, align 8, !tbaa !5
  %141 = 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 0, ptr noundef %130, ptr noundef %131, ptr noundef %132, i64 noundef %133, ptr noundef %134, ptr noundef %135, ptr noundef %136, i64 noundef %137, i64 noundef %138, ptr noundef %139, ptr noundef %140, ptr noundef %141)
  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.493 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.494 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.495 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.496 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.497 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.498 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.499 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.500 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.501 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.502 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.503 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.504 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.505 = external hidden unnamed_addr constant [45 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_impl18spline1dfitcubicwcEPKNS_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.493, 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.494, ptr noundef %11)
  %15 = icmp sgt i64 %7, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.495, ptr noundef %11)
  %16 = icmp slt i64 %7, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.496, ptr noundef %11)
  %17 = load i64, ptr %0, align 8, !tbaa !5
  %18 = icmp sge i64 %17, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.497, ptr noundef %11)
  %19 = load i64, ptr %1, 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.498, ptr noundef %11)
  %21 = load i64, ptr %2, 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.499, ptr noundef %11)
  %23 = load i64, ptr %4, align 8, !tbaa !5
  %24 = icmp sge i64 %23, %7
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.500, ptr noundef %11)
  %25 = load i64, ptr %5, 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.501, ptr noundef %11)
  %27 = load i64, ptr %6, 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.502, ptr noundef %11)
  %29 = 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 %29, ptr noundef nonnull @.str.503, ptr noundef %11)
  %30 = 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 %30, ptr noundef nonnull @.str.504, ptr noundef %11)
  %31 = 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 %31, ptr noundef nonnull @.str.504, ptr noundef %11)
  %32 = 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 %32, ptr noundef nonnull @.str.503, ptr noundef %11)
  %33 = 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 %33, ptr noundef nonnull @.str.504, ptr noundef %11)
  %.not.not69 = icmp sgt i64 %7, 0
  br i1 %.not.not69, label %.lr.ph, label %._crit_edge

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

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

._crit_edge:                                      ; preds = %35, %12
  tail call void @_ZN11alglib_implL25lsfit_spline1dfitinternalElPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(i64 noundef 0, 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