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

@.str.101 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [57 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_impl19idwbuildersetpointsEPNS_10idwbuilderEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %12 = load i64, ptr %7, align 8, !tbaa !9
  %13 = icmp sge i64 %12, 0
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef @.str.101, ptr noundef %14)
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 0
  %17 = load i64, ptr %16, align 8, !tbaa !11
  %18 = load i64, ptr %7, align 8, !tbaa !9
  %19 = icmp sge i64 %17, %18
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.102, ptr noundef %20)
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %35, label %23

23:                                               ; preds = %4
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 1
  %26 = load i64, ptr %25, align 8, !tbaa !15
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %27, i32 0, i32 12
  %29 = load i64, ptr %28, align 8, !tbaa !16
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %30, i32 0, i32 13
  %32 = load i64, ptr %31, align 8, !tbaa !22
  %33 = add nsw i64 %29, %32
  %34 = icmp sge i64 %26, %33
  br label %35

35:                                               ; preds = %23, %4
  %36 = phi i1 [ true, %4 ], [ %34, %23 ]
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.103, ptr noundef %37)
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i64, ptr %7, align 8, !tbaa !9
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %40, i32 0, i32 12
  %42 = load i64, ptr %41, align 8, !tbaa !16
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %43, i32 0, i32 13
  %45 = load i64, ptr %44, align 8, !tbaa !22
  %46 = add nsw i64 %42, %45
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %38, i64 noundef %39, i64 noundef %46, ptr noundef %47)
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.104, ptr noundef %49)
  %50 = load i64, ptr %7, align 8, !tbaa !9
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %51, i32 0, i32 11
  store i64 %50, ptr %52, align 8, !tbaa !23
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %53, i32 0, i32 12
  %55 = load i64, ptr %54, align 8, !tbaa !16
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %56, i32 0, i32 13
  %58 = load i64, ptr %57, align 8, !tbaa !22
  %59 = add nsw i64 %55, %58
  store i64 %59, ptr %11, align 8, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %60, i32 0, i32 10
  %62 = load i64, ptr %7, align 8, !tbaa !9
  %63 = load i64, ptr %11, align 8, !tbaa !9
  %64 = mul nsw i64 %62, %63
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %61, i64 noundef %64, ptr noundef %65)
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %101, %35
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = load i64, ptr %7, align 8, !tbaa !9
  %69 = sub nsw i64 %68, 1
  %70 = icmp sle i64 %67, %69
  br i1 %70, label %71, label %104

71:                                               ; preds = %66
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %97, %71
  %73 = load i64, ptr %10, align 8, !tbaa !9
  %74 = load i64, ptr %11, align 8, !tbaa !9
  %75 = sub nsw i64 %74, 1
  %76 = icmp sle i64 %73, %75
  br i1 %76, label %77, label %100

77:                                               ; preds = %72
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %78, i32 0, i32 6
  %80 = load ptr, ptr %79, align 8, !tbaa !24
  %81 = load i64, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %80, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i64, ptr %10, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !25
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::idwbuilder", ptr %87, i32 0, i32 10
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !24
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = load i64, ptr %11, align 8, !tbaa !9
  %93 = mul nsw i64 %91, %92
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = add nsw i64 %93, %94
  %96 = getelementptr inbounds double, ptr %90, i64 %95
  store double %86, ptr %96, align 8, !tbaa !25
  br label %97

97:                                               ; preds = %77
  %98 = load i64, ptr %10, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %10, align 8, !tbaa !9
  br label %72, !llvm.loop !26

100:                                              ; preds = %72
  br label %101

101:                                              ; preds = %100
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = add nsw i64 %102, 1
  store i64 %103, ptr %9, align 8, !tbaa !9
  br label %66, !llvm.loop !28

104:                                              ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_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 208}
!17 = !{!"_ZTSN11alglib_impl10idwbuilderE", !10, i64 0, !18, i64 8, !10, i64 72, !10, i64 80, !19, i64 88, !19, i64 96, !19, i64 104, !19, i64 112, !19, i64 120, !19, i64 128, !18, i64 136, !10, i64 200, !10, i64 208, !10, i64 216, !12, i64 224, !12, i64 304, !18, i64 384, !18, i64 448, !18, i64 512, !18, i64 576, !18, i64 640, !20, i64 704, !18, i64 1704}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!19 = !{!"double", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl6kdtreeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !18, i64 112, !18, i64 176, !18, i64 240, !18, i64 304, !18, i64 368, !21, i64 432, !10, i64 992}
!21 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !18, i64 0, !18, i64 64, !18, i64 128, !10, i64 192, !19, i64 200, !13, i64 208, !19, i64 216, !10, i64 224, !18, i64 232, !18, i64 296, !18, i64 360, !18, i64 424, !18, i64 488, !19, i64 552}
!22 = !{!17, !10, i64 216}
!23 = !{!17, !10, i64 200}
!24 = !{!7, !7, i64 0}
!25 = !{!19, !19, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


; 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.101 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [57 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_impl19idwbuildersetpointsEPNS_10idwbuilderEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = icmp sgt i64 %2, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %5, ptr noundef nonnull @.str.101, ptr noundef %3)
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = icmp sge i64 %6, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.102, ptr noundef %3)
  %8 = icmp eq i64 %2, 0
  br i1 %8, label %18, label %9

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %0, i64 208
  %13 = load i64, ptr %12, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %0, i64 216
  %15 = load i64, ptr %14, align 8, !tbaa !20
  %16 = add nsw i64 %15, %13
  %17 = icmp sge i64 %11, %16
  br label %18

18:                                               ; preds = %9, %4
  %19 = phi i1 [ true, %4 ], [ %17, %9 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.103, ptr noundef %3)
  %20 = getelementptr inbounds i8, ptr %0, i64 208
  %21 = load i64, ptr %20, align 8, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %0, i64 216
  %23 = load i64, ptr %22, align 8, !tbaa !20
  %24 = add nsw i64 %23, %21
  %25 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, i64 noundef %24, ptr noundef %3)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.104, ptr noundef %3)
  %26 = getelementptr inbounds i8, ptr %0, i64 200
  store i64 %2, ptr %26, align 8, !tbaa !21
  %27 = load i64, ptr %20, align 8, !tbaa !14
  %28 = load i64, ptr %22, align 8, !tbaa !20
  %29 = add nsw i64 %28, %27
  %30 = getelementptr inbounds i8, ptr %0, i64 136
  %31 = mul nsw i64 %29, %2
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %31, ptr noundef %3)
  %.not.not40 = icmp sgt i64 %2, 0
  br i1 %.not.not40, label %.preheader.lr.ph, label %._crit_edge42

.preheader.lr.ph:                                 ; preds = %18
  %.not.not3738 = icmp sgt i64 %29, 0
  %32 = getelementptr inbounds i8, ptr %1, i64 72
  %33 = getelementptr inbounds i8, ptr %0, i64 192
  br i1 %.not.not3738, label %.preheader.us.preheader, label %._crit_edge42

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %34 = add i64 %27, %28
  %xtraiter = and i64 %29, 1
  %35 = icmp eq i64 %34, 1
  %unroll_iter = and i64 %29, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.041.us = phi i64 [ %63, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %36 = mul nuw nsw i64 %.041.us, %29
  br i1 %35, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.03639.us = phi i64 [ %54, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %37 = load ptr, ptr %32, align 8, !tbaa !22
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.041.us
  %39 = load ptr, ptr %38, align 8, !tbaa !23
  %40 = getelementptr inbounds double, ptr %39, i64 %.03639.us
  %41 = load double, ptr %40, align 8, !tbaa !24
  %42 = load ptr, ptr %33, align 8, !tbaa !22
  %43 = getelementptr double, ptr %42, i64 %36
  %44 = getelementptr double, ptr %43, i64 %.03639.us
  store double %41, ptr %44, align 8, !tbaa !24
  %45 = or disjoint i64 %.03639.us, 1
  %46 = load ptr, ptr %32, align 8, !tbaa !22
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.041.us
  %48 = load ptr, ptr %47, align 8, !tbaa !23
  %49 = getelementptr inbounds double, ptr %48, i64 %45
  %50 = load double, ptr %49, align 8, !tbaa !24
  %51 = load ptr, ptr %33, align 8, !tbaa !22
  %52 = getelementptr double, ptr %51, i64 %36
  %53 = getelementptr double, ptr %52, i64 %45
  store double %50, ptr %53, align 8, !tbaa !24
  %54 = add nuw nsw i64 %.03639.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 !25

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.03639.us.unr = phi i64 [ 0, %.preheader.us ], [ %54, %.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
  %55 = load ptr, ptr %32, align 8, !tbaa !22
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.041.us
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  %58 = getelementptr inbounds double, ptr %57, i64 %.03639.us.unr
  %59 = load double, ptr %58, align 8, !tbaa !24
  %60 = load ptr, ptr %33, align 8, !tbaa !22
  %61 = getelementptr double, ptr %60, i64 %36
  %62 = getelementptr double, ptr %61, i64 %.03639.us.unr
  store double %59, ptr %62, align 8, !tbaa !24
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %63 = add nuw nsw i64 %.041.us, 1
  %exitcond44.not = icmp eq i64 %63, %2
  br i1 %exitcond44.not, label %._crit_edge42, label %.preheader.us, !llvm.loop !27

._crit_edge42:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %18
  ret void
}

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_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 208}
!15 = !{!"_ZTSN11alglib_impl10idwbuilderE", !7, i64 0, !16, i64 8, !7, i64 72, !7, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !16, i64 136, !7, i64 200, !7, i64 208, !7, i64 216, !6, i64 224, !6, i64 304, !16, i64 384, !16, i64 448, !16, i64 512, !16, i64 576, !16, i64 640, !18, i64 704, !16, i64 1704}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!17 = !{!"double", !8, i64 0}
!18 = !{!"_ZTSN11alglib_impl6kdtreeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !16, i64 112, !16, i64 176, !16, i64 240, !16, i64 304, !16, i64 368, !19, i64 432, !7, i64 992}
!19 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !16, i64 0, !16, i64 64, !16, i64 128, !7, i64 192, !17, i64 200, !10, i64 208, !17, i64 216, !7, i64 224, !16, i64 232, !16, i64 296, !16, i64 360, !16, i64 424, !16, i64 488, !17, i64 552}
!20 = !{!15, !7, i64 216}
!21 = !{!15, !7, i64 200}
!22 = !{!8, !8, i64 0}
!23 = !{!12, !12, i64 0}
!24 = !{!17, !17, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


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