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

@.str.772 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.773 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.774 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.775 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.776 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.777 = external hidden unnamed_addr constant [31 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_impl21rbfsetpointsandscalesEPNS_8rbfmodelEPNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %13 = load i64, ptr %8, align 8, !tbaa !9
  %14 = icmp sgt i64 %13, 0
  %15 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef @.str.772, ptr noundef %15)
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = load i64, ptr %8, align 8, !tbaa !9
  %20 = icmp sge i64 %18, %19
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef @.str.773, ptr noundef %21)
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 1
  %24 = load i64, ptr %23, align 8, !tbaa !15
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !16
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %28, i32 0, i32 1
  %30 = load i64, ptr %29, align 8, !tbaa !25
  %31 = add nsw i64 %27, %30
  %32 = icmp sge i64 %24, %31
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.774, ptr noundef %33)
  %34 = load ptr, ptr %9, 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 !26
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !16
  %40 = icmp sge i64 %36, %39
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.775, ptr noundef %41)
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %43, i32 0, i32 15
  store i64 %42, ptr %44, align 8, !tbaa !27
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %45, i32 0, i32 18
  store i8 1, ptr %46, align 8, !tbaa !28
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %47, i32 0, i32 16
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %49, i32 0, i32 15
  %51 = load i64, ptr %50, align 8, !tbaa !27
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %52, i32 0, i32 0
  %54 = load i64, ptr %53, align 8, !tbaa !16
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %48, i64 noundef %51, i64 noundef %54, ptr noundef %55)
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %56, i32 0, i32 17
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %58, i32 0, i32 15
  %60 = load i64, ptr %59, align 8, !tbaa !27
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %61, i32 0, i32 1
  %63 = load i64, ptr %62, align 8, !tbaa !25
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %57, i64 noundef %60, i64 noundef %63, ptr noundef %64)
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %137, %5
  %66 = load i64, ptr %11, align 8, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %67, i32 0, i32 15
  %69 = load i64, ptr %68, align 8, !tbaa !27
  %70 = sub nsw i64 %69, 1
  %71 = icmp sle i64 %66, %70
  br i1 %71, label %72, label %140

72:                                               ; preds = %65
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %99, %72
  %74 = load i64, ptr %12, align 8, !tbaa !9
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %75, i32 0, i32 0
  %77 = load i64, ptr %76, align 8, !tbaa !16
  %78 = sub nsw i64 %77, 1
  %79 = icmp sle i64 %74, %78
  br i1 %79, label %80, label %102

80:                                               ; preds = %73
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %81, i32 0, i32 6
  %83 = load ptr, ptr %82, align 8, !tbaa !29
  %84 = load i64, ptr %11, align 8, !tbaa !9
  %85 = getelementptr inbounds ptr, ptr %83, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i64, ptr %12, align 8, !tbaa !9
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !30
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %90, i32 0, i32 16
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %91, i32 0, i32 6
  %93 = load ptr, ptr %92, align 8, !tbaa !29
  %94 = load i64, ptr %11, align 8, !tbaa !9
  %95 = getelementptr inbounds ptr, ptr %93, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load i64, ptr %12, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  store double %89, ptr %98, align 8, !tbaa !30
  br label %99

99:                                               ; preds = %80
  %100 = load i64, ptr %12, align 8, !tbaa !9
  %101 = add nsw i64 %100, 1
  store i64 %101, ptr %12, align 8, !tbaa !9
  br label %73, !llvm.loop !31

102:                                              ; preds = %73
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %133, %102
  %104 = load i64, ptr %12, align 8, !tbaa !9
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %105, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !25
  %108 = sub nsw i64 %107, 1
  %109 = icmp sle i64 %104, %108
  br i1 %109, label %110, label %136

110:                                              ; preds = %103
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %111, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !29
  %114 = load i64, ptr %11, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %113, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = load i64, ptr %12, align 8, !tbaa !9
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %118, i32 0, i32 0
  %120 = load i64, ptr %119, align 8, !tbaa !16
  %121 = add nsw i64 %117, %120
  %122 = getelementptr inbounds double, ptr %116, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !30
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %124, i32 0, i32 17
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %125, i32 0, i32 6
  %127 = load ptr, ptr %126, align 8, !tbaa !29
  %128 = load i64, ptr %11, align 8, !tbaa !9
  %129 = getelementptr inbounds ptr, ptr %127, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load i64, ptr %12, align 8, !tbaa !9
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  store double %123, ptr %132, align 8, !tbaa !30
  br label %133

133:                                              ; preds = %110
  %134 = load i64, ptr %12, align 8, !tbaa !9
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %12, align 8, !tbaa !9
  br label %103, !llvm.loop !33

136:                                              ; preds = %103
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %11, align 8, !tbaa !9
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %11, align 8, !tbaa !9
  br label %65, !llvm.loop !34

140:                                              ; preds = %65
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %141, i32 0, i32 19
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %143, i32 0, i32 0
  %145 = load i64, ptr %144, align 8, !tbaa !16
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %142, i64 noundef %145, ptr noundef %146)
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %147

147:                                              ; preds = %184, %140
  %148 = load i64, ptr %11, align 8, !tbaa !9
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %149, i32 0, i32 0
  %151 = load i64, ptr %150, align 8, !tbaa !16
  %152 = sub nsw i64 %151, 1
  %153 = icmp sle i64 %148, %152
  br i1 %153, label %154, label %187

154:                                              ; preds = %147
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !29
  %158 = load i64, ptr %11, align 8, !tbaa !9
  %159 = getelementptr inbounds double, ptr %157, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !30
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %160, ptr noundef %161)
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %162, ptr noundef @.str.776, ptr noundef %163)
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %164, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !29
  %167 = load i64, ptr %11, align 8, !tbaa !9
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !30
  %170 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %169, double noundef 0.000000e+00)
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %170, ptr noundef @.str.777, ptr noundef %171)
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %172, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !29
  %175 = load i64, ptr %11, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !30
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %178, i32 0, i32 19
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %179, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !29
  %182 = load i64, ptr %11, align 8, !tbaa !9
  %183 = getelementptr inbounds double, ptr %181, i64 %182
  store double %177, ptr %183, align 8, !tbaa !30
  br label %184

184:                                              ; preds = %154
  %185 = load i64, ptr %11, align 8, !tbaa !9
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %11, align 8, !tbaa !9
  br label %147, !llvm.loop !35

187:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

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

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

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


; 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.772 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.773 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.774 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.775 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.776 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.777 = external hidden unnamed_addr constant [31 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_impl21rbfsetpointsandscalesEPNS_8rbfmodelEPNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = icmp sgt i64 %2, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.772, ptr noundef %4)
  %7 = load i64, ptr %1, align 8, !tbaa !5
  %8 = icmp sge i64 %7, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.773, ptr noundef %4)
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = load i64, ptr %0, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !23
  %14 = add nsw i64 %13, %11
  %15 = icmp sge i64 %10, %14
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.774, ptr noundef %4)
  %16 = load i64, ptr %3, align 8, !tbaa !24
  %17 = load i64, ptr %0, align 8, !tbaa !14
  %18 = icmp sge i64 %16, %17
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.775, ptr noundef %4)
  %19 = getelementptr inbounds i8, ptr %0, i64 2576
  store i64 %2, ptr %19, align 8, !tbaa !25
  %20 = getelementptr inbounds i8, ptr %0, i64 2744
  store i8 1, ptr %20, align 8, !tbaa !26
  %21 = getelementptr inbounds i8, ptr %0, i64 2584
  %22 = load i64, ptr %0, align 8, !tbaa !14
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef %2, i64 noundef %22, ptr noundef %4)
  %23 = getelementptr inbounds i8, ptr %0, i64 2664
  %24 = load i64, ptr %19, align 8, !tbaa !25
  %25 = load i64, ptr %12, align 8, !tbaa !23
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef %24, i64 noundef %25, ptr noundef %4)
  %26 = load i64, ptr %19, align 8, !tbaa !25
  %.not.not72 = icmp sgt i64 %26, 0
  %.pre = load i64, ptr %0, align 8, !tbaa !14
  br i1 %.not.not72, label %.preheader66.lr.ph, label %._crit_edge74

.preheader66.lr.ph:                               ; preds = %5
  %.not.not6467 = icmp sgt i64 %.pre, 0
  %27 = getelementptr inbounds i8, ptr %1, i64 72
  %28 = getelementptr inbounds i8, ptr %0, i64 2656
  %29 = load i64, ptr %12, align 8, !tbaa !23
  %.not.not6569 = icmp sgt i64 %29, 0
  %30 = getelementptr inbounds i8, ptr %0, i64 2736
  br i1 %.not.not6467, label %.preheader66.lr.ph.split.us, label %.preheader66.lr.ph.split

.preheader66.lr.ph.split.us:                      ; preds = %.preheader66.lr.ph
  br i1 %.not.not6569, label %.preheader66.us.us.preheader, label %.preheader66.us.preheader

.preheader66.us.preheader:                        ; preds = %.preheader66.lr.ph.split.us
  %xtraiter100 = and i64 %.pre, 1
  %31 = icmp eq i64 %.pre, 1
  %unroll_iter102 = and i64 %.pre, 9223372036854775806
  %lcmp.mod101.not = icmp eq i64 %xtraiter100, 0
  br label %.preheader66.us

.preheader66.us.us.preheader:                     ; preds = %.preheader66.lr.ph.split.us
  %xtraiter105 = and i64 %.pre, 1
  %32 = icmp eq i64 %.pre, 1
  %unroll_iter107 = and i64 %.pre, 9223372036854775806
  %lcmp.mod106.not = icmp eq i64 %xtraiter105, 0
  %xtraiter109 = and i64 %29, 1
  %33 = icmp eq i64 %29, 1
  %unroll_iter111 = and i64 %29, 9223372036854775806
  %lcmp.mod110.not = icmp eq i64 %xtraiter109, 0
  br label %.preheader66.us.us

.preheader66.us.us:                               ; preds = %.preheader66.us.us.preheader, %._crit_edge.us.us
  %.06173.us.us = phi i64 [ %95, %._crit_edge.us.us ], [ 0, %.preheader66.us.us.preheader ]
  br i1 %32, label %..preheader_crit_edge.us.us.preheader.unr-lcssa, label %.preheader66.us.us.new

..preheader_crit_edge.us.us:                      ; preds = %..preheader_crit_edge.us.us.preheader, %..preheader_crit_edge.us.us
  %.170.us.us = phi i64 [ %55, %..preheader_crit_edge.us.us ], [ 0, %..preheader_crit_edge.us.us.preheader ]
  %niter112 = phi i64 [ %niter112.next.1, %..preheader_crit_edge.us.us ], [ 0, %..preheader_crit_edge.us.us.preheader ]
  %34 = load ptr, ptr %27, align 8, !tbaa !27
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.06173.us.us
  %36 = load ptr, ptr %35, align 8, !tbaa !28
  %37 = getelementptr double, ptr %36, i64 %.170.us.us
  %38 = getelementptr double, ptr %37, i64 %.pre
  %39 = load double, ptr %38, align 8, !tbaa !29
  %40 = load ptr, ptr %30, align 8, !tbaa !27
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.06173.us.us
  %42 = load ptr, ptr %41, align 8, !tbaa !28
  %43 = getelementptr inbounds double, ptr %42, i64 %.170.us.us
  store double %39, ptr %43, align 8, !tbaa !29
  %44 = or disjoint i64 %.170.us.us, 1
  %45 = load ptr, ptr %27, align 8, !tbaa !27
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.06173.us.us
  %47 = load ptr, ptr %46, align 8, !tbaa !28
  %48 = getelementptr double, ptr %47, i64 %44
  %49 = getelementptr double, ptr %48, i64 %.pre
  %50 = load double, ptr %49, align 8, !tbaa !29
  %51 = load ptr, ptr %30, align 8, !tbaa !27
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.06173.us.us
  %53 = load ptr, ptr %52, align 8, !tbaa !28
  %54 = getelementptr inbounds double, ptr %53, i64 %44
  store double %50, ptr %54, align 8, !tbaa !29
  %55 = add nuw nsw i64 %.170.us.us, 2
  %niter112.next.1 = add i64 %niter112, 2
  %niter112.ncmp.1 = icmp eq i64 %niter112.next.1, %unroll_iter111
  br i1 %niter112.ncmp.1, label %._crit_edge.us.us.unr-lcssa, label %..preheader_crit_edge.us.us, !llvm.loop !30

.preheader66.us.us.new:                           ; preds = %.preheader66.us.us, %.preheader66.us.us.new
  %.068.us.us = phi i64 [ %75, %.preheader66.us.us.new ], [ 0, %.preheader66.us.us ]
  %niter108 = phi i64 [ %niter108.next.1, %.preheader66.us.us.new ], [ 0, %.preheader66.us.us ]
  %56 = load ptr, ptr %27, align 8, !tbaa !27
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.06173.us.us
  %58 = load ptr, ptr %57, align 8, !tbaa !28
  %59 = getelementptr inbounds double, ptr %58, i64 %.068.us.us
  %60 = load double, ptr %59, align 8, !tbaa !29
  %61 = load ptr, ptr %28, align 8, !tbaa !27
  %62 = getelementptr inbounds ptr, ptr %61, i64 %.06173.us.us
  %63 = load ptr, ptr %62, align 8, !tbaa !28
  %64 = getelementptr inbounds double, ptr %63, i64 %.068.us.us
  store double %60, ptr %64, align 8, !tbaa !29
  %65 = or disjoint i64 %.068.us.us, 1
  %66 = load ptr, ptr %27, align 8, !tbaa !27
  %67 = getelementptr inbounds ptr, ptr %66, i64 %.06173.us.us
  %68 = load ptr, ptr %67, align 8, !tbaa !28
  %69 = getelementptr inbounds double, ptr %68, i64 %65
  %70 = load double, ptr %69, align 8, !tbaa !29
  %71 = load ptr, ptr %28, align 8, !tbaa !27
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.06173.us.us
  %73 = load ptr, ptr %72, align 8, !tbaa !28
  %74 = getelementptr inbounds double, ptr %73, i64 %65
  store double %70, ptr %74, align 8, !tbaa !29
  %75 = add nuw nsw i64 %.068.us.us, 2
  %niter108.next.1 = add i64 %niter108, 2
  %niter108.ncmp.1 = icmp eq i64 %niter108.next.1, %unroll_iter107
  br i1 %niter108.ncmp.1, label %..preheader_crit_edge.us.us.preheader.unr-lcssa, label %.preheader66.us.us.new, !llvm.loop !32

..preheader_crit_edge.us.us.preheader.unr-lcssa:  ; preds = %.preheader66.us.us.new, %.preheader66.us.us
  %.068.us.us.unr = phi i64 [ 0, %.preheader66.us.us ], [ %75, %.preheader66.us.us.new ]
  br i1 %lcmp.mod106.not, label %..preheader_crit_edge.us.us.preheader, label %..preheader_crit_edge.us.us.preheader.epilog-lcssa

..preheader_crit_edge.us.us.preheader.epilog-lcssa: ; preds = %..preheader_crit_edge.us.us.preheader.unr-lcssa
  %76 = load ptr, ptr %27, align 8, !tbaa !27
  %77 = getelementptr inbounds ptr, ptr %76, i64 %.06173.us.us
  %78 = load ptr, ptr %77, align 8, !tbaa !28
  %79 = getelementptr inbounds double, ptr %78, i64 %.068.us.us.unr
  %80 = load double, ptr %79, align 8, !tbaa !29
  %81 = load ptr, ptr %28, align 8, !tbaa !27
  %82 = getelementptr inbounds ptr, ptr %81, i64 %.06173.us.us
  %83 = load ptr, ptr %82, align 8, !tbaa !28
  %84 = getelementptr inbounds double, ptr %83, i64 %.068.us.us.unr
  store double %80, ptr %84, align 8, !tbaa !29
  br label %..preheader_crit_edge.us.us.preheader

..preheader_crit_edge.us.us.preheader:            ; preds = %..preheader_crit_edge.us.us.preheader.unr-lcssa, %..preheader_crit_edge.us.us.preheader.epilog-lcssa
  br i1 %33, label %._crit_edge.us.us.unr-lcssa, label %..preheader_crit_edge.us.us

._crit_edge.us.us.unr-lcssa:                      ; preds = %..preheader_crit_edge.us.us, %..preheader_crit_edge.us.us.preheader
  %.170.us.us.unr = phi i64 [ 0, %..preheader_crit_edge.us.us.preheader ], [ %55, %..preheader_crit_edge.us.us ]
  br i1 %lcmp.mod110.not, label %._crit_edge.us.us, label %..preheader_crit_edge.us.us.epil

..preheader_crit_edge.us.us.epil:                 ; preds = %._crit_edge.us.us.unr-lcssa
  %85 = load ptr, ptr %27, align 8, !tbaa !27
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.06173.us.us
  %87 = load ptr, ptr %86, align 8, !tbaa !28
  %88 = getelementptr double, ptr %87, i64 %.170.us.us.unr
  %89 = getelementptr double, ptr %88, i64 %.pre
  %90 = load double, ptr %89, align 8, !tbaa !29
  %91 = load ptr, ptr %30, align 8, !tbaa !27
  %92 = getelementptr inbounds ptr, ptr %91, i64 %.06173.us.us
  %93 = load ptr, ptr %92, align 8, !tbaa !28
  %94 = getelementptr inbounds double, ptr %93, i64 %.170.us.us.unr
  store double %90, ptr %94, align 8, !tbaa !29
  br label %._crit_edge.us.us

._crit_edge.us.us:                                ; preds = %._crit_edge.us.us.unr-lcssa, %..preheader_crit_edge.us.us.epil
  %95 = add nuw nsw i64 %.06173.us.us, 1
  %exitcond92.not = icmp eq i64 %95, %26
  br i1 %exitcond92.not, label %._crit_edge74, label %.preheader66.us.us, !llvm.loop !33

.preheader66.us:                                  ; preds = %.preheader66.us.preheader, %..preheader_crit_edge.us
  %.06173.us = phi i64 [ %125, %..preheader_crit_edge.us ], [ 0, %.preheader66.us.preheader ]
  br i1 %31, label %..preheader_crit_edge.us.unr-lcssa, label %.preheader66.us.new

.preheader66.us.new:                              ; preds = %.preheader66.us, %.preheader66.us.new
  %.068.us = phi i64 [ %115, %.preheader66.us.new ], [ 0, %.preheader66.us ]
  %niter103 = phi i64 [ %niter103.next.1, %.preheader66.us.new ], [ 0, %.preheader66.us ]
  %96 = load ptr, ptr %27, align 8, !tbaa !27
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.06173.us
  %98 = load ptr, ptr %97, align 8, !tbaa !28
  %99 = getelementptr inbounds double, ptr %98, i64 %.068.us
  %100 = load double, ptr %99, align 8, !tbaa !29
  %101 = load ptr, ptr %28, align 8, !tbaa !27
  %102 = getelementptr inbounds ptr, ptr %101, i64 %.06173.us
  %103 = load ptr, ptr %102, align 8, !tbaa !28
  %104 = getelementptr inbounds double, ptr %103, i64 %.068.us
  store double %100, ptr %104, align 8, !tbaa !29
  %105 = or disjoint i64 %.068.us, 1
  %106 = load ptr, ptr %27, align 8, !tbaa !27
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.06173.us
  %108 = load ptr, ptr %107, align 8, !tbaa !28
  %109 = getelementptr inbounds double, ptr %108, i64 %105
  %110 = load double, ptr %109, align 8, !tbaa !29
  %111 = load ptr, ptr %28, align 8, !tbaa !27
  %112 = getelementptr inbounds ptr, ptr %111, i64 %.06173.us
  %113 = load ptr, ptr %112, align 8, !tbaa !28
  %114 = getelementptr inbounds double, ptr %113, i64 %105
  store double %110, ptr %114, align 8, !tbaa !29
  %115 = add nuw nsw i64 %.068.us, 2
  %niter103.next.1 = add i64 %niter103, 2
  %niter103.ncmp.1 = icmp eq i64 %niter103.next.1, %unroll_iter102
  br i1 %niter103.ncmp.1, label %..preheader_crit_edge.us.unr-lcssa, label %.preheader66.us.new, !llvm.loop !32

..preheader_crit_edge.us.unr-lcssa:               ; preds = %.preheader66.us.new, %.preheader66.us
  %.068.us.unr = phi i64 [ 0, %.preheader66.us ], [ %115, %.preheader66.us.new ]
  br i1 %lcmp.mod101.not, label %..preheader_crit_edge.us, label %..preheader_crit_edge.us.epilog-lcssa

..preheader_crit_edge.us.epilog-lcssa:            ; preds = %..preheader_crit_edge.us.unr-lcssa
  %116 = load ptr, ptr %27, align 8, !tbaa !27
  %117 = getelementptr inbounds ptr, ptr %116, i64 %.06173.us
  %118 = load ptr, ptr %117, align 8, !tbaa !28
  %119 = getelementptr inbounds double, ptr %118, i64 %.068.us.unr
  %120 = load double, ptr %119, align 8, !tbaa !29
  %121 = load ptr, ptr %28, align 8, !tbaa !27
  %122 = getelementptr inbounds ptr, ptr %121, i64 %.06173.us
  %123 = load ptr, ptr %122, align 8, !tbaa !28
  %124 = getelementptr inbounds double, ptr %123, i64 %.068.us.unr
  store double %120, ptr %124, align 8, !tbaa !29
  br label %..preheader_crit_edge.us

..preheader_crit_edge.us:                         ; preds = %..preheader_crit_edge.us.unr-lcssa, %..preheader_crit_edge.us.epilog-lcssa
  %125 = add nuw nsw i64 %.06173.us, 1
  %exitcond89.not = icmp eq i64 %125, %26
  br i1 %exitcond89.not, label %._crit_edge74, label %.preheader66.us, !llvm.loop !33

.preheader66.lr.ph.split:                         ; preds = %.preheader66.lr.ph
  br i1 %.not.not6569, label %.preheader66.us75.preheader, label %._crit_edge74

.preheader66.us75.preheader:                      ; preds = %.preheader66.lr.ph.split
  %xtraiter = and i64 %29, 1
  %126 = icmp eq i64 %29, 1
  %unroll_iter = and i64 %29, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader66.us75

.preheader66.us75:                                ; preds = %.preheader66.us75.preheader, %._crit_edge.us81
  %.06173.us76 = phi i64 [ %159, %._crit_edge.us81 ], [ 0, %.preheader66.us75.preheader ]
  br i1 %126, label %._crit_edge.us81.unr-lcssa, label %.preheader66.us75.new

.preheader66.us75.new:                            ; preds = %.preheader66.us75, %.preheader66.us75.new
  %.170.us78 = phi i64 [ %148, %.preheader66.us75.new ], [ 0, %.preheader66.us75 ]
  %niter = phi i64 [ %niter.next.1, %.preheader66.us75.new ], [ 0, %.preheader66.us75 ]
  %127 = load ptr, ptr %27, align 8, !tbaa !27
  %128 = getelementptr inbounds ptr, ptr %127, i64 %.06173.us76
  %129 = load ptr, ptr %128, align 8, !tbaa !28
  %130 = getelementptr double, ptr %129, i64 %.170.us78
  %131 = getelementptr double, ptr %130, i64 %.pre
  %132 = load double, ptr %131, align 8, !tbaa !29
  %133 = load ptr, ptr %30, align 8, !tbaa !27
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.06173.us76
  %135 = load ptr, ptr %134, align 8, !tbaa !28
  %136 = getelementptr inbounds double, ptr %135, i64 %.170.us78
  store double %132, ptr %136, align 8, !tbaa !29
  %137 = or disjoint i64 %.170.us78, 1
  %138 = load ptr, ptr %27, align 8, !tbaa !27
  %139 = getelementptr inbounds ptr, ptr %138, i64 %.06173.us76
  %140 = load ptr, ptr %139, align 8, !tbaa !28
  %141 = getelementptr double, ptr %140, i64 %137
  %142 = getelementptr double, ptr %141, i64 %.pre
  %143 = load double, ptr %142, align 8, !tbaa !29
  %144 = load ptr, ptr %30, align 8, !tbaa !27
  %145 = getelementptr inbounds ptr, ptr %144, i64 %.06173.us76
  %146 = load ptr, ptr %145, align 8, !tbaa !28
  %147 = getelementptr inbounds double, ptr %146, i64 %137
  store double %143, ptr %147, align 8, !tbaa !29
  %148 = add nuw nsw i64 %.170.us78, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us81.unr-lcssa, label %.preheader66.us75.new, !llvm.loop !30

._crit_edge.us81.unr-lcssa:                       ; preds = %.preheader66.us75.new, %.preheader66.us75
  %.170.us78.unr = phi i64 [ 0, %.preheader66.us75 ], [ %148, %.preheader66.us75.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us81, label %._crit_edge.us81.epilog-lcssa

._crit_edge.us81.epilog-lcssa:                    ; preds = %._crit_edge.us81.unr-lcssa
  %149 = load ptr, ptr %27, align 8, !tbaa !27
  %150 = getelementptr inbounds ptr, ptr %149, i64 %.06173.us76
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  %152 = getelementptr double, ptr %151, i64 %.170.us78.unr
  %153 = getelementptr double, ptr %152, i64 %.pre
  %154 = load double, ptr %153, align 8, !tbaa !29
  %155 = load ptr, ptr %30, align 8, !tbaa !27
  %156 = getelementptr inbounds ptr, ptr %155, i64 %.06173.us76
  %157 = load ptr, ptr %156, align 8, !tbaa !28
  %158 = getelementptr inbounds double, ptr %157, i64 %.170.us78.unr
  store double %154, ptr %158, align 8, !tbaa !29
  br label %._crit_edge.us81

._crit_edge.us81:                                 ; preds = %._crit_edge.us81.unr-lcssa, %._crit_edge.us81.epilog-lcssa
  %159 = add nuw nsw i64 %.06173.us76, 1
  %exitcond87.not = icmp eq i64 %159, %26
  br i1 %exitcond87.not, label %._crit_edge74, label %.preheader66.us75, !llvm.loop !33

._crit_edge74:                                    ; preds = %._crit_edge.us81, %..preheader_crit_edge.us, %._crit_edge.us.us, %.preheader66.lr.ph.split, %5
  %160 = getelementptr inbounds i8, ptr %0, i64 2752
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %160, i64 noundef %.pre, ptr noundef %4)
  %161 = load i64, ptr %0, align 8, !tbaa !14
  %.not.not6382 = icmp sgt i64 %161, 0
  br i1 %.not.not6382, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %._crit_edge74
  %162 = getelementptr inbounds i8, ptr %3, i64 56
  %163 = getelementptr inbounds i8, ptr %0, i64 2808
  br label %164

164:                                              ; preds = %.lr.ph, %164
  %.16283 = phi i64 [ 0, %.lr.ph ], [ %178, %164 ]
  %165 = load ptr, ptr %162, align 8, !tbaa !27
  %166 = getelementptr inbounds double, ptr %165, i64 %.16283
  %167 = load double, ptr %166, align 8, !tbaa !29
  %168 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %167, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %168, ptr noundef nonnull @.str.776, ptr noundef %4)
  %169 = load ptr, ptr %162, align 8, !tbaa !27
  %170 = getelementptr inbounds double, ptr %169, i64 %.16283
  %171 = load double, ptr %170, align 8, !tbaa !29
  %172 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %171, double noundef 0.000000e+00)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %172, ptr noundef nonnull @.str.777, ptr noundef %4)
  %173 = load ptr, ptr %162, align 8, !tbaa !27
  %174 = getelementptr inbounds double, ptr %173, i64 %.16283
  %175 = load double, ptr %174, align 8, !tbaa !29
  %176 = load ptr, ptr %163, align 8, !tbaa !27
  %177 = getelementptr inbounds double, ptr %176, i64 %.16283
  store double %175, ptr %177, align 8, !tbaa !29
  %178 = add nuw nsw i64 %.16283, 1
  %179 = load i64, ptr %0, align 8, !tbaa !14
  %.not.not63 = icmp slt i64 %178, %179
  br i1 %.not.not63, label %164, label %._crit_edge, !llvm.loop !34

._crit_edge:                                      ; preds = %164, %._crit_edge74
  ret void
}

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

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

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

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

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


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