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

@.str.837 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.838 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.839 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.840 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.841 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.842 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.843 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.844 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.845 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.846 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.847 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.848 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.849 = external hidden unnamed_addr constant [52 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_impl19rbfgridcalc3vsubsetEPNS_8rbfmodelEPNS_9ae_vectorElS3_lS3_lS3_S3_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, ptr noundef %9) #2 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i64 %2, ptr %13, align 8, !tbaa !9
  store ptr %3, ptr %14, align 8, !tbaa !5
  store i64 %4, ptr %15, align 8, !tbaa !9
  store ptr %5, ptr %16, align 8, !tbaa !5
  store i64 %6, ptr %17, align 8, !tbaa !9
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %22 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %22)
  %23 = load i64, ptr %13, align 8, !tbaa !9
  %24 = icmp sgt i64 %23, 0
  %25 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.837, ptr noundef %25)
  %26 = load i64, ptr %15, align 8, !tbaa !9
  %27 = icmp sgt i64 %26, 0
  %28 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef @.str.838, ptr noundef %28)
  %29 = load i64, ptr %17, align 8, !tbaa !9
  %30 = icmp sgt i64 %29, 0
  %31 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef @.str.839, ptr noundef %31)
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = load i64, ptr %13, align 8, !tbaa !9
  %36 = icmp sge i64 %34, %35
  %37 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.840, ptr noundef %37)
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !11
  %41 = load i64, ptr %15, align 8, !tbaa !9
  %42 = icmp sge i64 %40, %41
  %43 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.841, ptr noundef %43)
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = load i64, ptr %17, align 8, !tbaa !9
  %48 = icmp sge i64 %46, %47
  %49 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.842, ptr noundef %49)
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !11
  %53 = load i64, ptr %13, align 8, !tbaa !9
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = mul nsw i64 %53, %54
  %56 = load i64, ptr %17, align 8, !tbaa !9
  %57 = mul nsw i64 %55, %56
  %58 = icmp sge i64 %52, %57
  %59 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef @.str.843, ptr noundef %59)
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load i64, ptr %13, align 8, !tbaa !9
  %62 = load ptr, ptr %20, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %60, i64 noundef %61, ptr noundef %62)
  %64 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef @.str.844, ptr noundef %64)
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i64, ptr %15, align 8, !tbaa !9
  %67 = load ptr, ptr %20, align 8, !tbaa !5
  %68 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %65, i64 noundef %66, ptr noundef %67)
  %69 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %68, ptr noundef @.str.845, ptr noundef %69)
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = load i64, ptr %17, align 8, !tbaa !9
  %72 = load ptr, ptr %20, align 8, !tbaa !5
  %73 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %70, i64 noundef %71, ptr noundef %72)
  %74 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %73, ptr noundef @.str.846, ptr noundef %74)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %96, %10
  %76 = load i64, ptr %21, align 8, !tbaa !9
  %77 = load i64, ptr %13, align 8, !tbaa !9
  %78 = sub nsw i64 %77, 2
  %79 = icmp sle i64 %76, %78
  br i1 %79, label %80, label %99

80:                                               ; preds = %75
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = load i64, ptr %21, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !16
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = load i64, ptr %21, align 8, !tbaa !9
  %91 = add nsw i64 %90, 1
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !16
  %94 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %86, double noundef %93)
  %95 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %94, ptr noundef @.str.847, ptr noundef %95)
  br label %96

96:                                               ; preds = %80
  %97 = load i64, ptr %21, align 8, !tbaa !9
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %21, align 8, !tbaa !9
  br label %75, !llvm.loop !18

99:                                               ; preds = %75
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %121, %99
  %101 = load i64, ptr %21, align 8, !tbaa !9
  %102 = load i64, ptr %15, align 8, !tbaa !9
  %103 = sub nsw i64 %102, 2
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %124

105:                                              ; preds = %100
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = load i64, ptr %21, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !16
  %112 = load ptr, ptr %14, 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 %21, align 8, !tbaa !9
  %116 = add nsw i64 %115, 1
  %117 = getelementptr inbounds double, ptr %114, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !16
  %119 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %111, double noundef %118)
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %119, ptr noundef @.str.848, ptr noundef %120)
  br label %121

121:                                              ; preds = %105
  %122 = load i64, ptr %21, align 8, !tbaa !9
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %21, align 8, !tbaa !9
  br label %100, !llvm.loop !20

124:                                              ; preds = %100
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %146, %124
  %126 = load i64, ptr %21, align 8, !tbaa !9
  %127 = load i64, ptr %17, align 8, !tbaa !9
  %128 = sub nsw i64 %127, 2
  %129 = icmp sle i64 %126, %128
  br i1 %129, label %130, label %149

130:                                              ; preds = %125
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  %134 = load i64, ptr %21, align 8, !tbaa !9
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !16
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %137, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !15
  %140 = load i64, ptr %21, align 8, !tbaa !9
  %141 = add nsw i64 %140, 1
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !16
  %144 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %136, double noundef %143)
  %145 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %144, ptr noundef @.str.849, ptr noundef %145)
  br label %146

146:                                              ; preds = %130
  %147 = load i64, ptr %21, align 8, !tbaa !9
  %148 = add nsw i64 %147, 1
  store i64 %148, ptr %21, align 8, !tbaa !9
  br label %125, !llvm.loop !21

149:                                              ; preds = %125
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load i64, ptr %13, align 8, !tbaa !9
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load i64, ptr %15, align 8, !tbaa !9
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = load i64, ptr %17, align 8, !tbaa !9
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfgridcalc3vxEPNS_8rbfmodelEPNS_9ae_vectorElS3_lS3_lS3_bS3_PNS_8ae_stateE(ptr noundef %150, ptr noundef %151, i64 noundef %152, ptr noundef %153, i64 noundef %154, ptr noundef %155, i64 noundef %156, ptr noundef %157, i1 noundef zeroext true, ptr noundef %158, ptr noundef %159)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #1

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

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

; 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) #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 = !{!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"

@.str.837 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.838 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.839 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.840 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.841 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.842 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.843 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.844 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.845 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.846 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.847 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.848 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.849 = external hidden unnamed_addr constant [52 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_impl19rbfgridcalc3vsubsetEPNS_8rbfmodelEPNS_9ae_vectorElS3_lS3_lS3_S3_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, ptr noundef %9) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %8)
  %11 = icmp sgt i64 %2, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.837, ptr noundef %9)
  %12 = icmp sgt i64 %4, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.838, ptr noundef %9)
  %13 = icmp sgt i64 %6, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.839, ptr noundef %9)
  %14 = load i64, ptr %1, align 8, !tbaa !5
  %15 = icmp sge i64 %14, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.840, ptr noundef %9)
  %16 = load i64, ptr %3, align 8, !tbaa !5
  %17 = icmp sge i64 %16, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.841, ptr noundef %9)
  %18 = load i64, ptr %5, align 8, !tbaa !5
  %19 = icmp sge i64 %18, %6
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.842, ptr noundef %9)
  %20 = load i64, ptr %7, align 8, !tbaa !5
  %21 = mul nsw i64 %4, %2
  %22 = mul nsw i64 %21, %6
  %23 = icmp sge i64 %20, %22
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.843, ptr noundef %9)
  %24 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %9)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.844, ptr noundef %9)
  %25 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %4, ptr noundef %9)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.845, ptr noundef %9)
  %26 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %6, ptr noundef %9)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.846, ptr noundef %9)
  %.not69 = icmp slt i64 %2, 2
  br i1 %.not69, label %.preheader68, label %.lr.ph

.lr.ph:                                           ; preds = %10
  %27 = getelementptr inbounds i8, ptr %1, i64 56
  %28 = add nsw i64 %2, -2
  br label %31

.preheader68:                                     ; preds = %31, %10
  %.not6671 = icmp slt i64 %4, 2
  br i1 %.not6671, label %.preheader, label %.lr.ph73

.lr.ph73:                                         ; preds = %.preheader68
  %29 = getelementptr inbounds i8, ptr %3, i64 56
  %30 = add nsw i64 %4, -2
  br label %41

31:                                               ; preds = %.lr.ph, %31
  %.070 = phi i64 [ 0, %.lr.ph ], [ %35, %31 ]
  %32 = load ptr, ptr %27, align 8, !tbaa !13
  %33 = getelementptr inbounds double, ptr %32, i64 %.070
  %34 = load double, ptr %33, align 8, !tbaa !14
  %35 = add nuw nsw i64 %.070, 1
  %36 = getelementptr inbounds double, ptr %32, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !14
  %38 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %34, double noundef %37)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef nonnull @.str.847, ptr noundef %9)
  %exitcond.not = icmp eq i64 %.070, %28
  br i1 %exitcond.not, label %.preheader68, label %31, !llvm.loop !16

.preheader:                                       ; preds = %41, %.preheader68
  %.not6774 = icmp slt i64 %6, 2
  br i1 %.not6774, label %._crit_edge, label %.lr.ph76

.lr.ph76:                                         ; preds = %.preheader
  %39 = getelementptr inbounds i8, ptr %5, i64 56
  %40 = add nsw i64 %6, -2
  br label %49

41:                                               ; preds = %.lr.ph73, %41
  %.172 = phi i64 [ 0, %.lr.ph73 ], [ %45, %41 ]
  %42 = load ptr, ptr %29, align 8, !tbaa !13
  %43 = getelementptr inbounds double, ptr %42, i64 %.172
  %44 = load double, ptr %43, align 8, !tbaa !14
  %45 = add nuw nsw i64 %.172, 1
  %46 = getelementptr inbounds double, ptr %42, i64 %45
  %47 = load double, ptr %46, align 8, !tbaa !14
  %48 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %44, double noundef %47)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef nonnull @.str.848, ptr noundef %9)
  %exitcond77.not = icmp eq i64 %.172, %30
  br i1 %exitcond77.not, label %.preheader, label %41, !llvm.loop !18

49:                                               ; preds = %.lr.ph76, %49
  %.275 = phi i64 [ 0, %.lr.ph76 ], [ %53, %49 ]
  %50 = load ptr, ptr %39, align 8, !tbaa !13
  %51 = getelementptr inbounds double, ptr %50, i64 %.275
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = add nuw nsw i64 %.275, 1
  %54 = getelementptr inbounds double, ptr %50, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !14
  %56 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %52, double noundef %55)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %56, ptr noundef nonnull @.str.849, ptr noundef %9)
  %exitcond78.not = icmp eq i64 %.275, %40
  br i1 %exitcond78.not, label %._crit_edge, label %49, !llvm.loop !19

._crit_edge:                                      ; preds = %49, %.preheader
  tail 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 %7, i1 noundef zeroext true, ptr noundef %8, ptr noundef %9)
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #0

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

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

; 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 #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 = !{!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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass