; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (alglibmisc)

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

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

76:                                               ; preds = %123, %5
  %77 = load i64, ptr %12, align 8, !tbaa !9
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = sub nsw i64 %79, 1
  %81 = icmp sle i64 %77, %80
  br i1 %81, label %82, label %126

82:                                               ; preds = %76
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %119, %82
  %84 = load i64, ptr %13, align 8, !tbaa !9
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::kdtree", ptr %85, i32 0, i32 1
  %87 = load i64, ptr %86, align 8, !tbaa !21
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::kdtree", ptr %88, i32 0, i32 2
  %90 = load i64, ptr %89, align 8, !tbaa !22
  %91 = add nsw i64 %87, %90
  %92 = sub nsw i64 %91, 1
  %93 = icmp sle i64 %84, %92
  br i1 %93, label %94, label %122

94:                                               ; preds = %83
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::kdtree", ptr %95, i32 0, i32 4
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %96, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !19
  %99 = load i64, ptr %11, align 8, !tbaa !9
  %100 = load i64, ptr %12, align 8, !tbaa !9
  %101 = add nsw i64 %99, %100
  %102 = getelementptr inbounds ptr, ptr %98, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::kdtree", ptr %104, i32 0, i32 1
  %106 = load i64, ptr %105, align 8, !tbaa !21
  %107 = load i64, ptr %13, align 8, !tbaa !9
  %108 = add nsw i64 %106, %107
  %109 = getelementptr inbounds double, ptr %103, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !23
  %111 = load ptr, ptr %8, 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 !19
  %114 = load i64, ptr %12, 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 %13, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  store double %110, ptr %118, align 8, !tbaa !23
  br label %119

119:                                              ; preds = %94
  %120 = load i64, ptr %13, align 8, !tbaa !9
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %13, align 8, !tbaa !9
  br label %83, !llvm.loop !24

122:                                              ; preds = %83
  br label %123

123:                                              ; preds = %122
  %124 = load i64, ptr %12, align 8, !tbaa !9
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %12, align 8, !tbaa !9
  br label %76, !llvm.loop !26

126:                                              ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  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 void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_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 304}
!12 = !{!"_ZTSN11alglib_impl6kdtreeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !16, i64 112, !16, i64 176, !16, i64 240, !16, i64 304, !16, i64 368, !17, i64 432, !10, i64 992}
!13 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !16, i64 0, !16, i64 64, !16, i64 128, !10, i64 192, !18, i64 200, !14, i64 208, !18, i64 216, !10, i64 224, !16, i64 232, !16, i64 296, !16, i64 360, !16, i64 424, !16, i64 488, !18, i64 552}
!18 = !{!"double", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !10, i64 32}
!21 = !{!12, !10, i64 8}
!22 = !{!12, !10, i64 16}
!23 = !{!18, !18, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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.56 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [35 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_impl17kdtreeexploreleafEPNS_6kdtreeElPNS_9ae_matrixEPlPNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  store i64 0, ptr %3, align 8, !tbaa !5
  %6 = icmp sgt i64 %1, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.56, ptr noundef %4)
  %7 = add nsw i64 %1, 1
  %8 = getelementptr inbounds i8, ptr %0, i64 304
  %9 = load i64, ptr %8, align 8, !tbaa !9
  %10 = icmp slt i64 %7, %9
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.56, ptr noundef %4)
  %11 = getelementptr inbounds i8, ptr %0, i64 360
  %12 = load ptr, ptr %11, align 8, !tbaa !18
  %13 = getelementptr inbounds i64, ptr %12, i64 %1
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = icmp sgt i64 %14, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.56, ptr noundef %4)
  %16 = load ptr, ptr %11, align 8, !tbaa !18
  %17 = getelementptr inbounds i64, ptr %16, i64 %1
  %18 = load i64, ptr %17, align 8, !tbaa !5
  store i64 %18, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %11, align 8, !tbaa !18
  %20 = getelementptr inbounds i64, ptr %19, i64 %7
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = icmp sgt i64 %21, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.57, ptr noundef %4)
  %23 = load i64, ptr %3, align 8, !tbaa !5
  %24 = add nsw i64 %23, %21
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = load i64, ptr %25, align 8, !tbaa !19
  %27 = icmp sle i64 %24, %26
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.57, ptr noundef %4)
  %28 = load i64, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !20
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load i64, ptr %31, align 8, !tbaa !21
  %33 = add nsw i64 %32, %30
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %2, i64 noundef %28, i64 noundef %33, ptr noundef %4)
  %34 = load i64, ptr %3, align 8, !tbaa !5
  %.not.not43 = icmp sgt i64 %34, 0
  br i1 %.not.not43, label %.preheader.lr.ph, label %._crit_edge45

.preheader.lr.ph:                                 ; preds = %5
  %35 = load i64, ptr %29, align 8, !tbaa !20
  %36 = load i64, ptr %31, align 8, !tbaa !21
  %37 = add nsw i64 %36, %35
  %.not.not4041 = icmp sgt i64 %37, 0
  %38 = getelementptr inbounds i8, ptr %0, i64 104
  %39 = getelementptr inbounds i8, ptr %2, i64 72
  br i1 %.not.not4041, label %.preheader.us.preheader, label %._crit_edge45

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %40 = add i64 %35, %36
  %xtraiter = and i64 %37, 1
  %41 = icmp eq i64 %40, 1
  %unroll_iter = and i64 %37, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.03944.us = phi i64 [ %77, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  br i1 %41, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.042.us = phi i64 [ %65, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %42 = load ptr, ptr %38, align 8, !tbaa !18
  %43 = getelementptr ptr, ptr %42, i64 %21
  %44 = getelementptr ptr, ptr %43, i64 %.03944.us
  %45 = load ptr, ptr %44, align 8, !tbaa !22
  %46 = getelementptr double, ptr %45, i64 %35
  %47 = getelementptr double, ptr %46, i64 %.042.us
  %48 = load double, ptr %47, align 8, !tbaa !23
  %49 = load ptr, ptr %39, align 8, !tbaa !18
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.03944.us
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %52 = getelementptr inbounds double, ptr %51, i64 %.042.us
  store double %48, ptr %52, align 8, !tbaa !23
  %53 = or disjoint i64 %.042.us, 1
  %54 = load ptr, ptr %38, align 8, !tbaa !18
  %55 = getelementptr ptr, ptr %54, i64 %21
  %56 = getelementptr ptr, ptr %55, i64 %.03944.us
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = getelementptr double, ptr %57, i64 %35
  %59 = getelementptr double, ptr %58, i64 %53
  %60 = load double, ptr %59, align 8, !tbaa !23
  %61 = load ptr, ptr %39, align 8, !tbaa !18
  %62 = getelementptr inbounds ptr, ptr %61, i64 %.03944.us
  %63 = load ptr, ptr %62, align 8, !tbaa !22
  %64 = getelementptr inbounds double, ptr %63, i64 %53
  store double %60, ptr %64, align 8, !tbaa !23
  %65 = add nuw nsw i64 %.042.us, 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.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !24

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.042.us.unr = phi i64 [ 0, %.preheader.us ], [ %65, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %66 = load ptr, ptr %38, align 8, !tbaa !18
  %67 = getelementptr ptr, ptr %66, i64 %21
  %68 = getelementptr ptr, ptr %67, i64 %.03944.us
  %69 = load ptr, ptr %68, align 8, !tbaa !22
  %70 = getelementptr double, ptr %69, i64 %35
  %71 = getelementptr double, ptr %70, i64 %.042.us.unr
  %72 = load double, ptr %71, align 8, !tbaa !23
  %73 = load ptr, ptr %39, align 8, !tbaa !18
  %74 = getelementptr inbounds ptr, ptr %73, i64 %.03944.us
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = getelementptr inbounds double, ptr %75, i64 %.042.us.unr
  store double %72, ptr %76, align 8, !tbaa !23
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %77 = add nuw nsw i64 %.03944.us, 1
  %exitcond47.not = icmp eq i64 %77, %34
  br i1 %exitcond47.not, label %._crit_edge45, label %.preheader.us, !llvm.loop !26

._crit_edge45:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %5
  ret void
}

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 304}
!10 = !{!"_ZTSN11alglib_impl6kdtreeE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !15, i64 112, !15, i64 176, !15, i64 240, !15, i64 304, !15, i64 368, !16, i64 432, !6, i64 992}
!11 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!16 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !15, i64 0, !15, i64 64, !15, i64 128, !6, i64 192, !17, i64 200, !12, i64 208, !17, i64 216, !6, i64 224, !15, i64 232, !15, i64 296, !15, i64 360, !15, i64 424, !15, i64 488, !17, i64 552}
!17 = !{!"double", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!10, !6, i64 32}
!20 = !{!10, !6, i64 8}
!21 = !{!10, !6, i64 16}
!22 = !{!14, !14, i64 0}
!23 = !{!17, !17, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


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