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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; 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_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare void @_ZN11alglib_impl16ae_swap_matricesEPNS_9ae_matrixES1_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13imatrixresizeEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  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 32, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %15, ptr noundef %9)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 80, i1 false)
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 0, i64 noundef 2, ptr noundef %16, i1 noundef zeroext true)
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 0
  %19 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %19, ptr %13, align 8, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 1
  %22 = load i64, ptr %21, align 8, !tbaa !15
  store i64 %22, ptr %14, align 8, !tbaa !9
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl16ae_swap_matricesEPNS_9ae_matrixES1_(ptr noundef %23, ptr noundef %10)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = load i64, ptr %7, align 8, !tbaa !9
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %24, i64 noundef %25, i64 noundef %26, ptr noundef %27)
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %78, %4
  %29 = load i64, ptr %11, align 8, !tbaa !9
  %30 = load i64, ptr %6, align 8, !tbaa !9
  %31 = sub nsw i64 %30, 1
  %32 = icmp sle i64 %29, %31
  br i1 %32, label %33, label %81

33:                                               ; preds = %28
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %74, %33
  %35 = load i64, ptr %12, align 8, !tbaa !9
  %36 = load i64, ptr %7, align 8, !tbaa !9
  %37 = sub nsw i64 %36, 1
  %38 = icmp sle i64 %35, %37
  br i1 %38, label %39, label %77

39:                                               ; preds = %34
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = load i64, ptr %13, align 8, !tbaa !9
  %42 = icmp slt i64 %40, %41
  br i1 %42, label %43, label %64

43:                                               ; preds = %39
  %44 = load i64, ptr %12, align 8, !tbaa !9
  %45 = load i64, ptr %14, align 8, !tbaa !9
  %46 = icmp slt i64 %44, %45
  br i1 %46, label %47, label %64

47:                                               ; preds = %43
  %48 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %49, i64 %50
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = load i64, ptr %12, align 8, !tbaa !9
  %54 = getelementptr inbounds i64, ptr %52, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %56, i32 0, i32 6
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = load i64, ptr %11, align 8, !tbaa !9
  %60 = getelementptr inbounds ptr, ptr %58, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load i64, ptr %12, align 8, !tbaa !9
  %63 = getelementptr inbounds i64, ptr %61, i64 %62
  store i64 %55, ptr %63, align 8, !tbaa !9
  br label %73

64:                                               ; preds = %43, %39
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %65, i32 0, i32 6
  %67 = load ptr, ptr %66, align 8, !tbaa !16
  %68 = load i64, ptr %11, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %67, i64 %68
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = load i64, ptr %12, align 8, !tbaa !9
  %72 = getelementptr inbounds i64, ptr %70, i64 %71
  store i64 0, ptr %72, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %64, %47
  br label %74

74:                                               ; preds = %73
  %75 = load i64, ptr %12, align 8, !tbaa !9
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr %12, align 8, !tbaa !9
  br label %34, !llvm.loop !17

77:                                               ; preds = %34
  br label %78

78:                                               ; preds = %77
  %79 = load i64, ptr %11, align 8, !tbaa !9
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr %11, align 8, !tbaa !9
  br label %28, !llvm.loop !19

81:                                               ; preds = %28
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %82)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_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 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl16ae_swap_matricesEPNS_9ae_matrixES1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13imatrixresizeEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %3, ptr noundef nonnull %5)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, i64 noundef 2, ptr noundef %3, i1 noundef zeroext true)
  %7 = load i64, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i64, ptr %8, align 8, !tbaa !13
  call void @_ZN11alglib_impl16ae_swap_matricesEPNS_9ae_matrixES1_(ptr noundef nonnull %0, ptr noundef nonnull %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %2, ptr noundef %3)
  %.not.not31 = icmp sgt i64 %1, 0
  br i1 %.not.not31, label %.preheader.lr.ph, label %._crit_edge34

.preheader.lr.ph:                                 ; preds = %4
  %.not.not2829 = icmp sgt i64 %2, 0
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = getelementptr inbounds i8, ptr %6, i64 72
  br i1 %.not.not2829, label %.preheader.us.preheader, label %._crit_edge34

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %2, 3
  %12 = icmp ult i64 %2, 4
  %unroll_iter = and i64 %2, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter50 = and i64 %2, 1
  %13 = icmp eq i64 %2, 1
  %unroll_iter53 = and i64 %2, 9223372036854775806
  %lcmp.mod52.not = icmp eq i64 %xtraiter50, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.032.us = phi i64 [ %56, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %14 = icmp slt i64 %.032.us, %7
  %.fr.us = freeze i1 %14
  br i1 %.fr.us, label %.lr.ph.split.us38.preheader, label %.lr.ph.split.us.us.preheader

.lr.ph.split.us.us.preheader:                     ; preds = %.preheader.us
  br i1 %12, label %._crit_edge.us.loopexit49.unr-lcssa, label %.lr.ph.split.us.us

.lr.ph.split.us38.preheader:                      ; preds = %.preheader.us
  br i1 %13, label %._crit_edge.us.loopexit.unr-lcssa, label %.lr.ph.split.us38

.lr.ph.split.us38:                                ; preds = %.lr.ph.split.us38.preheader, %34
  %.02730.us35 = phi i64 [ %39, %34 ], [ 0, %.lr.ph.split.us38.preheader ]
  %niter54 = phi i64 [ %niter54.next.1, %34 ], [ 0, %.lr.ph.split.us38.preheader ]
  %15 = icmp slt i64 %.02730.us35, %9
  br i1 %15, label %16, label %.lr.ph.split.us38.1

16:                                               ; preds = %.lr.ph.split.us38
  %17 = load ptr, ptr %11, align 8, !tbaa !14
  %18 = getelementptr inbounds ptr, ptr %17, i64 %.032.us
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds i64, ptr %19, i64 %.02730.us35
  %21 = load i64, ptr %20, align 8, !tbaa !16
  br label %.lr.ph.split.us38.1

.lr.ph.split.us38.1:                              ; preds = %.lr.ph.split.us38, %16
  %.sink = phi i64 [ %21, %16 ], [ 0, %.lr.ph.split.us38 ]
  %22 = load ptr, ptr %10, align 8, !tbaa !14
  %23 = getelementptr inbounds ptr, ptr %22, i64 %.032.us
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = getelementptr inbounds i64, ptr %24, i64 %.02730.us35
  store i64 %.sink, ptr %25, align 8, !tbaa !16
  %26 = or disjoint i64 %.02730.us35, 1
  %27 = icmp slt i64 %26, %9
  br i1 %27, label %28, label %34

28:                                               ; preds = %.lr.ph.split.us38.1
  %29 = load ptr, ptr %11, align 8, !tbaa !14
  %30 = getelementptr inbounds ptr, ptr %29, i64 %.032.us
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = getelementptr inbounds i64, ptr %31, i64 %26
  %33 = load i64, ptr %32, align 8, !tbaa !16
  br label %34

34:                                               ; preds = %28, %.lr.ph.split.us38.1
  %.sink.1 = phi i64 [ %33, %28 ], [ 0, %.lr.ph.split.us38.1 ]
  %35 = load ptr, ptr %10, align 8, !tbaa !14
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.032.us
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds i64, ptr %37, i64 %26
  store i64 %.sink.1, ptr %38, align 8, !tbaa !16
  %39 = add nuw nsw i64 %.02730.us35, 2
  %niter54.next.1 = add i64 %niter54, 2
  %niter54.ncmp.1 = icmp eq i64 %niter54.next.1, %unroll_iter53
  br i1 %niter54.ncmp.1, label %._crit_edge.us.loopexit.unr-lcssa, label %.lr.ph.split.us38, !llvm.loop !17

._crit_edge.us.loopexit.unr-lcssa:                ; preds = %34, %.lr.ph.split.us38.preheader
  %.02730.us35.unr = phi i64 [ 0, %.lr.ph.split.us38.preheader ], [ %39, %34 ]
  br i1 %lcmp.mod52.not, label %._crit_edge.us, label %.lr.ph.split.us38.epil

.lr.ph.split.us38.epil:                           ; preds = %._crit_edge.us.loopexit.unr-lcssa
  %40 = icmp slt i64 %.02730.us35.unr, %9
  br i1 %40, label %41, label %._crit_edge.us.loopexit.epilog-lcssa

41:                                               ; preds = %.lr.ph.split.us38.epil
  %42 = load ptr, ptr %11, align 8, !tbaa !14
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.032.us
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = getelementptr inbounds i64, ptr %44, i64 %.02730.us35.unr
  %46 = load i64, ptr %45, align 8, !tbaa !16
  br label %._crit_edge.us.loopexit.epilog-lcssa

._crit_edge.us.loopexit.epilog-lcssa:             ; preds = %41, %.lr.ph.split.us38.epil
  %.sink.epil = phi i64 [ %46, %41 ], [ 0, %.lr.ph.split.us38.epil ]
  %47 = load ptr, ptr %10, align 8, !tbaa !14
  %48 = getelementptr inbounds ptr, ptr %47, i64 %.032.us
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = getelementptr inbounds i64, ptr %49, i64 %.02730.us35.unr
  store i64 %.sink.epil, ptr %50, align 8, !tbaa !16
  br label %._crit_edge.us

._crit_edge.us.loopexit49.unr-lcssa:              ; preds = %.lr.ph.split.us.us, %.lr.ph.split.us.us.preheader
  %.02730.us.us.unr = phi i64 [ 0, %.lr.ph.split.us.us.preheader ], [ %76, %.lr.ph.split.us.us ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.lr.ph.split.us.us.epil

.lr.ph.split.us.us.epil:                          ; preds = %._crit_edge.us.loopexit49.unr-lcssa, %.lr.ph.split.us.us.epil
  %.02730.us.us.epil = phi i64 [ %55, %.lr.ph.split.us.us.epil ], [ %.02730.us.us.unr, %._crit_edge.us.loopexit49.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.split.us.us.epil ], [ 0, %._crit_edge.us.loopexit49.unr-lcssa ]
  %51 = load ptr, ptr %10, align 8, !tbaa !14
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.032.us
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  %54 = getelementptr inbounds i64, ptr %53, i64 %.02730.us.us.epil
  store i64 0, ptr %54, align 8, !tbaa !16
  %55 = add nuw nsw i64 %.02730.us.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.lr.ph.split.us.us.epil, !llvm.loop !19

._crit_edge.us:                                   ; preds = %._crit_edge.us.loopexit49.unr-lcssa, %.lr.ph.split.us.us.epil, %._crit_edge.us.loopexit.epilog-lcssa, %._crit_edge.us.loopexit.unr-lcssa
  %56 = add nuw nsw i64 %.032.us, 1
  %exitcond42.not = icmp eq i64 %56, %1
  br i1 %exitcond42.not, label %._crit_edge34, label %.preheader.us, !llvm.loop !21

.lr.ph.split.us.us:                               ; preds = %.lr.ph.split.us.us.preheader, %.lr.ph.split.us.us
  %.02730.us.us = phi i64 [ %76, %.lr.ph.split.us.us ], [ 0, %.lr.ph.split.us.us.preheader ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph.split.us.us ], [ 0, %.lr.ph.split.us.us.preheader ]
  %57 = load ptr, ptr %10, align 8, !tbaa !14
  %58 = getelementptr inbounds ptr, ptr %57, i64 %.032.us
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = getelementptr inbounds i64, ptr %59, i64 %.02730.us.us
  store i64 0, ptr %60, align 8, !tbaa !16
  %61 = or disjoint i64 %.02730.us.us, 1
  %62 = load ptr, ptr %10, align 8, !tbaa !14
  %63 = getelementptr inbounds ptr, ptr %62, i64 %.032.us
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = getelementptr inbounds i64, ptr %64, i64 %61
  store i64 0, ptr %65, align 8, !tbaa !16
  %66 = or disjoint i64 %.02730.us.us, 2
  %67 = load ptr, ptr %10, align 8, !tbaa !14
  %68 = getelementptr inbounds ptr, ptr %67, i64 %.032.us
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds i64, ptr %69, i64 %66
  store i64 0, ptr %70, align 8, !tbaa !16
  %71 = or disjoint i64 %.02730.us.us, 3
  %72 = load ptr, ptr %10, align 8, !tbaa !14
  %73 = getelementptr inbounds ptr, ptr %72, i64 %.032.us
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %75 = getelementptr inbounds i64, ptr %74, i64 %71
  store i64 0, ptr %75, align 8, !tbaa !16
  %76 = add nuw nsw i64 %.02730.us.us, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.loopexit49.unr-lcssa, label %.lr.ph.split.us.us, !llvm.loop !17

._crit_edge34:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %4
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_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 = !{!8, !8, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !18}


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