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

@.str.825 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.826 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.827 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.828 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.829 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.830 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.831 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.832 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.833 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.834 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.835 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.836 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13rbfgridcalc3vEPNS_8rbfmodelEPNS_9ae_vectorElS3_lS3_lS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca i64, align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i64 %2, ptr %12, align 8, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i64 %4, ptr %14, align 8, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store i64 %6, ptr %16, align 8, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #4
  %22 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %22, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  %23 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %23)
  %24 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 1, ptr noundef %24, i1 noundef zeroext true)
  %25 = load i64, ptr %12, align 8, !tbaa !9
  %26 = icmp sgt i64 %25, 0
  %27 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef @.str.825, ptr noundef %27)
  %28 = load i64, ptr %14, align 8, !tbaa !9
  %29 = icmp sgt i64 %28, 0
  %30 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.826, ptr noundef %30)
  %31 = load i64, ptr %16, align 8, !tbaa !9
  %32 = icmp sgt i64 %31, 0
  %33 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.827, ptr noundef %33)
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 0
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = load i64, ptr %12, align 8, !tbaa !9
  %38 = icmp sge i64 %36, %37
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.828, ptr noundef %39)
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = load i64, ptr %14, align 8, !tbaa !9
  %44 = icmp sge i64 %42, %43
  %45 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.829, ptr noundef %45)
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = load i64, ptr %16, align 8, !tbaa !9
  %50 = icmp sge i64 %48, %49
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %50, ptr noundef @.str.830, ptr noundef %51)
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load i64, ptr %12, align 8, !tbaa !9
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %52, i64 noundef %53, ptr noundef %54)
  %56 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.831, ptr noundef %56)
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load i64, ptr %14, align 8, !tbaa !9
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %57, i64 noundef %58, ptr noundef %59)
  %61 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.832, ptr noundef %61)
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = load i64, ptr %16, align 8, !tbaa !9
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  %65 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %62, i64 noundef %63, ptr noundef %64)
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %65, ptr noundef @.str.833, ptr noundef %66)
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %88, %9
  %68 = load i64, ptr %20, align 8, !tbaa !9
  %69 = load i64, ptr %12, align 8, !tbaa !9
  %70 = sub nsw i64 %69, 2
  %71 = icmp sle i64 %68, %70
  br i1 %71, label %72, label %91

72:                                               ; preds = %67
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = load i64, ptr %20, align 8, !tbaa !9
  %77 = getelementptr inbounds double, ptr %75, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !16
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !15
  %82 = load i64, ptr %20, align 8, !tbaa !9
  %83 = add nsw i64 %82, 1
  %84 = getelementptr inbounds double, ptr %81, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !16
  %86 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %78, double noundef %85)
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %86, ptr noundef @.str.834, ptr noundef %87)
  br label %88

88:                                               ; preds = %72
  %89 = load i64, ptr %20, align 8, !tbaa !9
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %20, align 8, !tbaa !9
  br label %67, !llvm.loop !18

91:                                               ; preds = %67
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %113, %91
  %93 = load i64, ptr %20, align 8, !tbaa !9
  %94 = load i64, ptr %14, align 8, !tbaa !9
  %95 = sub nsw i64 %94, 2
  %96 = icmp sle i64 %93, %95
  br i1 %96, label %97, label %116

97:                                               ; preds = %92
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = load i64, ptr %20, align 8, !tbaa !9
  %102 = getelementptr inbounds double, ptr %100, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !16
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !15
  %107 = load i64, ptr %20, align 8, !tbaa !9
  %108 = add nsw i64 %107, 1
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !16
  %111 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %103, double noundef %110)
  %112 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %111, ptr noundef @.str.835, ptr noundef %112)
  br label %113

113:                                              ; preds = %97
  %114 = load i64, ptr %20, align 8, !tbaa !9
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %20, align 8, !tbaa !9
  br label %92, !llvm.loop !20

116:                                              ; preds = %92
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %138, %116
  %118 = load i64, ptr %20, align 8, !tbaa !9
  %119 = load i64, ptr %16, align 8, !tbaa !9
  %120 = sub nsw i64 %119, 2
  %121 = icmp sle i64 %118, %120
  br i1 %121, label %122, label %141

122:                                              ; preds = %117
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = load i64, ptr %20, align 8, !tbaa !9
  %127 = getelementptr inbounds double, ptr %125, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !16
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = load i64, ptr %20, align 8, !tbaa !9
  %133 = add nsw i64 %132, 1
  %134 = getelementptr inbounds double, ptr %131, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !16
  %136 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %128, double noundef %135)
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %136, ptr noundef @.str.836, ptr noundef %137)
  br label %138

138:                                              ; preds = %122
  %139 = load i64, ptr %20, align 8, !tbaa !9
  %140 = add nsw i64 %139, 1
  store i64 %140, ptr %20, align 8, !tbaa !9
  br label %117, !llvm.loop !21

141:                                              ; preds = %117
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = load i64, ptr %12, align 8, !tbaa !9
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = load i64, ptr %14, align 8, !tbaa !9
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = load i64, ptr %16, align 8, !tbaa !9
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfgridcalc3vxEPNS_8rbfmodelEPNS_9ae_vectorElS3_lS3_lS3_bS3_PNS_8ae_stateE(ptr noundef %142, ptr noundef %143, i64 noundef %144, ptr noundef %145, i64 noundef %146, ptr noundef %147, i64 noundef %148, ptr noundef %21, i1 noundef zeroext false, ptr noundef %149, ptr noundef %150)
  %151 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %151)
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

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

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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

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

@.str.825 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.826 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.827 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.828 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.829 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.830 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.831 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.832 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.833 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.834 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.835 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.836 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13rbfgridcalc3vEPNS_8rbfmodelEPNS_9ae_vectorElS3_lS3_lS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %7)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 1, ptr noundef %8, i1 noundef zeroext true)
  %12 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.825, ptr noundef %8)
  %13 = icmp sgt i64 %4, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.826, ptr noundef %8)
  %14 = icmp sgt i64 %6, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.827, ptr noundef %8)
  %15 = load i64, ptr %1, align 8, !tbaa !5
  %16 = icmp sge i64 %15, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.828, ptr noundef %8)
  %17 = load i64, ptr %3, align 8, !tbaa !5
  %18 = icmp sge i64 %17, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.829, ptr noundef %8)
  %19 = load i64, ptr %5, align 8, !tbaa !5
  %20 = icmp sge i64 %19, %6
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.830, ptr noundef %8)
  %21 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.831, ptr noundef %8)
  %22 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %4, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.832, ptr noundef %8)
  %23 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %6, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.833, ptr noundef %8)
  %.not66 = icmp slt i64 %2, 2
  br i1 %.not66, label %.preheader65, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %24 = getelementptr inbounds i8, ptr %1, i64 56
  %25 = add nsw i64 %2, -2
  br label %28

.preheader65:                                     ; preds = %28, %9
  %.not6368 = icmp slt i64 %4, 2
  br i1 %.not6368, label %.preheader, label %.lr.ph70

.lr.ph70:                                         ; preds = %.preheader65
  %26 = getelementptr inbounds i8, ptr %3, i64 56
  %27 = add nsw i64 %4, -2
  br label %38

28:                                               ; preds = %.lr.ph, %28
  %.067 = phi i64 [ 0, %.lr.ph ], [ %32, %28 ]
  %29 = load ptr, ptr %24, align 8, !tbaa !13
  %30 = getelementptr inbounds double, ptr %29, i64 %.067
  %31 = load double, ptr %30, align 8, !tbaa !14
  %32 = add nuw nsw i64 %.067, 1
  %33 = getelementptr inbounds double, ptr %29, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !14
  %35 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %31, double noundef %34)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef nonnull @.str.834, ptr noundef %8)
  %exitcond.not = icmp eq i64 %.067, %25
  br i1 %exitcond.not, label %.preheader65, label %28, !llvm.loop !16

.preheader:                                       ; preds = %38, %.preheader65
  %.not6471 = icmp slt i64 %6, 2
  br i1 %.not6471, label %._crit_edge, label %.lr.ph73

.lr.ph73:                                         ; preds = %.preheader
  %36 = getelementptr inbounds i8, ptr %5, i64 56
  %37 = add nsw i64 %6, -2
  br label %46

38:                                               ; preds = %.lr.ph70, %38
  %.169 = phi i64 [ 0, %.lr.ph70 ], [ %42, %38 ]
  %39 = load ptr, ptr %26, align 8, !tbaa !13
  %40 = getelementptr inbounds double, ptr %39, i64 %.169
  %41 = load double, ptr %40, align 8, !tbaa !14
  %42 = add nuw nsw i64 %.169, 1
  %43 = getelementptr inbounds double, ptr %39, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !14
  %45 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %41, double noundef %44)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef nonnull @.str.835, ptr noundef %8)
  %exitcond74.not = icmp eq i64 %.169, %27
  br i1 %exitcond74.not, label %.preheader, label %38, !llvm.loop !18

46:                                               ; preds = %.lr.ph73, %46
  %.272 = phi i64 [ 0, %.lr.ph73 ], [ %50, %46 ]
  %47 = load ptr, ptr %36, align 8, !tbaa !13
  %48 = getelementptr inbounds double, ptr %47, i64 %.272
  %49 = load double, ptr %48, align 8, !tbaa !14
  %50 = add nuw nsw i64 %.272, 1
  %51 = getelementptr inbounds double, ptr %47, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %49, double noundef %52)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef nonnull @.str.836, ptr noundef %8)
  %exitcond75.not = icmp eq i64 %.272, %37
  br i1 %exitcond75.not, label %._crit_edge, label %46, !llvm.loop !19

._crit_edge:                                      ; preds = %46, %.preheader
  call void @_ZN11alglib_impl14rbfgridcalc3vxEPNS_8rbfmodelEPNS_9ae_vectorElS3_lS3_lS3_bS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %1, i64 noundef %2, ptr noundef nonnull %3, i64 noundef %4, ptr noundef nonnull %5, i64 noundef %6, ptr noundef nonnull %11, i1 noundef zeroext false, ptr noundef %7, ptr noundef %8)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) local_unnamed_addr #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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