; 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::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.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_complex" = type { double, double }

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17xdebugc2transposeEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #5
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %9, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 80, i1 false)
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %8, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %10, i1 noundef zeroext true)
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 1
  %16 = load i64, ptr %15, align 8, !tbaa !14
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %13, i64 noundef %16, ptr noundef %17)
  store i64 0, ptr %6, align 8, !tbaa !15
  br label %18

18:                                               ; preds = %51, %2
  %19 = load i64, ptr %6, align 8, !tbaa !15
  %20 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %22 = sub nsw i64 %21, 1
  %23 = icmp sle i64 %19, %22
  br i1 %23, label %24, label %54

24:                                               ; preds = %18
  store i64 0, ptr %7, align 8, !tbaa !15
  br label %25

25:                                               ; preds = %47, %24
  %26 = load i64, ptr %7, align 8, !tbaa !15
  %27 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !14
  %29 = sub nsw i64 %28, 1
  %30 = icmp sle i64 %26, %29
  br i1 %30, label %31, label %50

31:                                               ; preds = %25
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = load i64, ptr %6, align 8, !tbaa !15
  %36 = getelementptr inbounds ptr, ptr %34, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = load i64, ptr %7, align 8, !tbaa !15
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %37, i64 %38
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  %42 = load i64, ptr %6, align 8, !tbaa !15
  %43 = getelementptr inbounds ptr, ptr %41, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = load i64, ptr %7, align 8, !tbaa !15
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %44, i64 %45
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 8 %39, i64 16, i1 false), !tbaa.struct !17
  br label %47

47:                                               ; preds = %31
  %48 = load i64, ptr %7, align 8, !tbaa !15
  %49 = add nsw i64 %48, 1
  store i64 %49, ptr %7, align 8, !tbaa !15
  br label %25, !llvm.loop !20

50:                                               ; preds = %25
  br label %51

51:                                               ; preds = %50
  %52 = load i64, ptr %6, align 8, !tbaa !15
  %53 = add nsw i64 %52, 1
  store i64 %53, ptr %6, align 8, !tbaa !15
  br label %18, !llvm.loop !22

54:                                               ; preds = %18
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 1
  %57 = load i64, ptr %56, align 8, !tbaa !14
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %55, i64 noundef %57, i64 noundef %59, ptr noundef %60)
  store i64 0, ptr %6, align 8, !tbaa !15
  br label %61

61:                                               ; preds = %94, %54
  %62 = load i64, ptr %6, align 8, !tbaa !15
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 0
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = sub nsw i64 %64, 1
  %66 = icmp sle i64 %62, %65
  br i1 %66, label %67, label %97

67:                                               ; preds = %61
  store i64 0, ptr %7, align 8, !tbaa !15
  br label %68

68:                                               ; preds = %90, %67
  %69 = load i64, ptr %7, align 8, !tbaa !15
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !14
  %72 = sub nsw i64 %71, 1
  %73 = icmp sle i64 %69, %72
  br i1 %73, label %74, label %93

74:                                               ; preds = %68
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = load i64, ptr %6, align 8, !tbaa !15
  %78 = getelementptr inbounds ptr, ptr %76, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = load i64, ptr %7, align 8, !tbaa !15
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %79, i64 %80
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %82, i32 0, i32 6
  %84 = load ptr, ptr %83, align 8, !tbaa !16
  %85 = load i64, ptr %7, align 8, !tbaa !15
  %86 = getelementptr inbounds ptr, ptr %84, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = load i64, ptr %6, align 8, !tbaa !15
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %87, i64 %88
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %89, ptr align 8 %81, i64 16, i1 false), !tbaa.struct !17
  br label %90

90:                                               ; preds = %74
  %91 = load i64, ptr %7, align 8, !tbaa !15
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %7, align 8, !tbaa !15
  br label %68, !llvm.loop !23

93:                                               ; preds = %68
  br label %94

94:                                               ; preds = %93
  %95 = load i64, ptr %6, align 8, !tbaa !15
  %96 = add nsw i64 %95, 1
  store i64 %96, ptr %6, align 8, !tbaa !15
  br label %61, !llvm.loop !24

97:                                               ; preds = %61
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %98)
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret void
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!10, !11, i64 8}
!15 = !{!11, !11, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{i64 0, i64 8, !18, i64 8, i64 8, !18}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


; 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.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_complex" = type { double, double }

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

.._crit_edge35_crit_edge:                         ; preds = %2
  %.pre46 = load i64, ptr %9, align 8, !tbaa !13
  br label %._crit_edge35

.preheader30.lr.ph:                               ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = getelementptr inbounds i8, ptr %4, i64 72
  %12 = load i64, ptr %9, align 8, !tbaa !13
  %13 = icmp sgt i64 %12, 0
  br i1 %13, label %.preheader30, label %._crit_edge35

.preheader30:                                     ; preds = %.preheader30.lr.ph, %._crit_edge
  %14 = phi i64 [ %26, %._crit_edge ], [ %8, %.preheader30.lr.ph ]
  %15 = phi i64 [ %27, %._crit_edge ], [ %12, %.preheader30.lr.ph ]
  %.02534 = phi i64 [ %28, %._crit_edge ], [ 0, %.preheader30.lr.ph ]
  %.not.not2931 = icmp sgt i64 %15, 0
  br i1 %.not.not2931, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader30, %.lr.ph
  %.032 = phi i64 [ %24, %.lr.ph ], [ 0, %.preheader30 ]
  %16 = load ptr, ptr %10, align 8, !tbaa !14
  %17 = getelementptr inbounds ptr, ptr %16, i64 %.02534
  %18 = load ptr, ptr %17, align 8, !tbaa !15
  %19 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %18, i64 %.032
  %20 = load ptr, ptr %11, align 8, !tbaa !14
  %21 = getelementptr inbounds ptr, ptr %20, i64 %.02534
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %22, i64 %.032
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %19, i64 16, i1 false), !tbaa.struct !16
  %24 = add nuw nsw i64 %.032, 1
  %25 = load i64, ptr %9, align 8, !tbaa !13
  %.not.not29 = icmp slt i64 %24, %25
  br i1 %.not.not29, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !19

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i64, ptr %4, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader30
  %26 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %14, %.preheader30 ]
  %27 = phi i64 [ %25, %._crit_edge.loopexit ], [ %15, %.preheader30 ]
  %28 = add nuw nsw i64 %.02534, 1
  %.not.not = icmp slt i64 %28, %26
  br i1 %.not.not, label %.preheader30, label %._crit_edge35, !llvm.loop !21

._crit_edge35:                                    ; preds = %._crit_edge, %.preheader30.lr.ph, %.._crit_edge35_crit_edge
  %29 = phi i64 [ %.pre46, %.._crit_edge35_crit_edge ], [ %12, %.preheader30.lr.ph ], [ %27, %._crit_edge ]
  %.lcssa = phi i64 [ %8, %.._crit_edge35_crit_edge ], [ %8, %.preheader30.lr.ph ], [ %26, %._crit_edge ]
  %30 = getelementptr inbounds i8, ptr %4, i64 8
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %29, i64 noundef %.lcssa, ptr noundef %1)
  %31 = load i64, ptr %4, align 8, !tbaa !5
  %.not.not2740 = icmp sgt i64 %31, 0
  br i1 %.not.not2740, label %.preheader.lr.ph, label %._crit_edge42

.preheader.lr.ph:                                 ; preds = %._crit_edge35
  %32 = getelementptr inbounds i8, ptr %4, i64 72
  %33 = getelementptr inbounds i8, ptr %0, i64 72
  %34 = load i64, ptr %30, align 8, !tbaa !13
  %35 = icmp sgt i64 %34, 0
  br i1 %35, label %.preheader, label %._crit_edge42

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge39
  %36 = phi i64 [ %48, %._crit_edge39 ], [ %31, %.preheader.lr.ph ]
  %37 = phi i64 [ %49, %._crit_edge39 ], [ %34, %.preheader.lr.ph ]
  %.12641 = phi i64 [ %50, %._crit_edge39 ], [ 0, %.preheader.lr.ph ]
  %.not.not2836 = icmp sgt i64 %37, 0
  br i1 %.not.not2836, label %.lr.ph38, label %._crit_edge39

.lr.ph38:                                         ; preds = %.preheader, %.lr.ph38
  %.137 = phi i64 [ %46, %.lr.ph38 ], [ 0, %.preheader ]
  %38 = load ptr, ptr %32, align 8, !tbaa !14
  %39 = getelementptr inbounds ptr, ptr %38, i64 %.12641
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %40, i64 %.137
  %42 = load ptr, ptr %33, align 8, !tbaa !14
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.137
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %44, i64 %.12641
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %41, i64 16, i1 false), !tbaa.struct !16
  %46 = add nuw nsw i64 %.137, 1
  %47 = load i64, ptr %30, align 8, !tbaa !13
  %.not.not28 = icmp slt i64 %46, %47
  br i1 %.not.not28, label %.lr.ph38, label %._crit_edge39.loopexit, !llvm.loop !23

._crit_edge39.loopexit:                           ; preds = %.lr.ph38
  %.pre47 = load i64, ptr %4, align 8, !tbaa !5
  br label %._crit_edge39

._crit_edge39:                                    ; preds = %._crit_edge39.loopexit, %.preheader
  %48 = phi i64 [ %.pre47, %._crit_edge39.loopexit ], [ %36, %.preheader ]
  %49 = phi i64 [ %47, %._crit_edge39.loopexit ], [ %37, %.preheader ]
  %50 = add nuw nsw i64 %.12641, 1
  %.not.not27 = icmp slt i64 %50, %48
  br i1 %.not.not27, label %.preheader, label %._crit_edge42, !llvm.loop !24

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

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 #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{i64 0, i64 8, !17, i64 8, i64 8, !17}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20, !22}
!22 = !{!"llvm.loop.unswitch.partial.disable"}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20, !22}


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