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

; 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.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ssamodel" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", i64, i64, i8, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::eigsubspacestate", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::hqrndstate", i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::eigsubspacereport", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"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_matrix", %"struct.alglib_impl::ae_matrix", i64, i64, i64 }
%"struct.alglib_impl::eigsubspacestate" = type { i64, i64, i64, i64, double, i64, i64, i8, i8, %"struct.alglib_impl::hqrndstate", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"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::apbuffers", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, i64, i64, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::apbuffers" = type { %"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_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::eigsubspacereport" = type { i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.237 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.239 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.240 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [38 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_impl21ssasetalgoprecomputedEPNS_8ssamodelEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, 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 i64 %3, ptr %9, align 8, !tbaa !9
  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 sge i64 %13, 1
  %15 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef @.str.237, ptr noundef %15)
  %16 = load i64, ptr %9, align 8, !tbaa !9
  %17 = icmp sge i64 %16, 1
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef @.str.238, ptr noundef %18)
  %19 = load i64, ptr %9, align 8, !tbaa !9
  %20 = load i64, ptr %8, align 8, !tbaa !9
  %21 = icmp sle i64 %19, %20
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef @.str.239, ptr noundef %22)
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 0
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = load i64, ptr %8, align 8, !tbaa !9
  %27 = icmp sge i64 %25, %26
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef @.str.240, ptr noundef %28)
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !15
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = icmp sge i64 %31, %32
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef @.str.241, ptr noundef %34)
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i64, ptr %8, align 8, !tbaa !9
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %35, i64 noundef %36, i64 noundef %37, ptr noundef %38)
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.241, ptr noundef %40)
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %41, i32 0, i32 3
  store i64 1, ptr %42, align 8, !tbaa !16
  %43 = load i64, ptr %8, align 8, !tbaa !9
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %44, i32 0, i32 7
  store i64 %43, ptr %45, align 8, !tbaa !26
  %46 = load i64, ptr %9, align 8, !tbaa !9
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %47, i32 0, i32 8
  store i64 %46, ptr %48, align 8, !tbaa !27
  %49 = load i64, ptr %8, align 8, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %50, i32 0, i32 4
  store i64 %49, ptr %51, align 8, !tbaa !28
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %52, i32 0, i32 9
  %54 = load i64, ptr %8, align 8, !tbaa !9
  %55 = load i64, ptr %9, align 8, !tbaa !9
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %53, i64 noundef %54, i64 noundef %55, ptr noundef %56)
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %91, %5
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = load i64, ptr %8, align 8, !tbaa !9
  %60 = sub nsw i64 %59, 1
  %61 = icmp sle i64 %58, %60
  br i1 %61, label %62, label %94

62:                                               ; preds = %57
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %87, %62
  %64 = load i64, ptr %12, align 8, !tbaa !9
  %65 = load i64, ptr %9, align 8, !tbaa !9
  %66 = sub nsw i64 %65, 1
  %67 = icmp sle i64 %64, %66
  br i1 %67, label %68, label %90

68:                                               ; preds = %63
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %69, i32 0, i32 6
  %71 = load ptr, ptr %70, align 8, !tbaa !29
  %72 = load i64, ptr %11, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %71, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = load i64, ptr %12, align 8, !tbaa !9
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !30
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %78, i32 0, i32 9
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %79, i32 0, i32 6
  %81 = load ptr, ptr %80, align 8, !tbaa !29
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %81, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load i64, ptr %12, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  store double %77, ptr %86, align 8, !tbaa !30
  br label %87

87:                                               ; preds = %68
  %88 = load i64, ptr %12, align 8, !tbaa !9
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %12, align 8, !tbaa !9
  br label %63, !llvm.loop !31

90:                                               ; preds = %63
  br label %91

91:                                               ; preds = %90
  %92 = load i64, ptr %11, align 8, !tbaa !9
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr %11, align 8, !tbaa !9
  br label %57, !llvm.loop !33

94:                                               ; preds = %57
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %95, i32 0, i32 12
  store i8 0, ptr %96, align 8, !tbaa !34
  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

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 136}
!17 = !{!"_ZTSN11alglib_impl8ssamodelE", !10, i64 0, !18, i64 8, !18, i64 72, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !12, i64 184, !10, i64 264, !10, i64 272, !13, i64 280, !12, i64 288, !12, i64 368, !18, i64 448, !18, i64 512, !10, i64 576, !19, i64 584, !12, i64 2968, !21, i64 3048, !10, i64 3072, !18, i64 3080, !10, i64 3144, !10, i64 3152, !10, i64 3160, !18, i64 3168, !18, i64 3232, !25, i64 3296, !18, i64 3304, !18, i64 3368, !12, i64 3432, !12, i64 3512, !18, i64 3592, !18, i64 3656, !18, i64 3720, !12, i64 3784, !12, i64 3864, !10, i64 3944, !10, i64 3952, !10, i64 3960}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!19 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !20, i64 32, !10, i64 40, !10, i64 48, !13, i64 56, !13, i64 57, !21, i64 64, !13, i64 88, !18, i64 96, !12, i64 160, !12, i64 240, !12, i64 320, !12, i64 400, !12, i64 480, !12, i64 560, !12, i64 640, !12, i64 720, !12, i64 800, !18, i64 880, !18, i64 944, !18, i64 1008, !18, i64 1072, !18, i64 1136, !22, i64 1200, !12, i64 1936, !12, i64 2016, !10, i64 2096, !10, i64 2104, !10, i64 2112, !23, i64 2120}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!22 = !{!"_ZTSN11alglib_impl9apbuffersE", !18, i64 0, !18, i64 64, !18, i64 128, !18, i64 192, !18, i64 256, !18, i64 320, !18, i64 384, !18, i64 448, !18, i64 512, !12, i64 576, !12, i64 656}
!23 = !{!"_ZTSN11alglib_impl10rcommstateE", !24, i64 0, !18, i64 8, !18, i64 72, !18, i64 136, !18, i64 200}
!24 = !{!"int", !7, i64 0}
!25 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !10, i64 0}
!26 = !{!17, !10, i64 168}
!27 = !{!17, !10, i64 176}
!28 = !{!17, !10, i64 144}
!29 = !{!7, !7, i64 0}
!30 = !{!20, !20, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!17, !13, i64 280}


; 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.237 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.239 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.240 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [38 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_impl21ssasetalgoprecomputedEPNS_8ssamodelEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %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.237, ptr noundef %4)
  %7 = icmp sgt i64 %3, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.238, ptr noundef %4)
  %8 = icmp sle i64 %3, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.239, ptr noundef %4)
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = icmp sge i64 %9, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.240, ptr noundef %4)
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !13
  %13 = icmp sge i64 %12, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.241, ptr noundef %4)
  %14 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, i64 noundef %3, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.241, ptr noundef %4)
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  store i64 1, ptr %15, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %0, i64 168
  store i64 %2, ptr %16, align 8, !tbaa !24
  %17 = getelementptr inbounds i8, ptr %0, i64 176
  store i64 %3, ptr %17, align 8, !tbaa !25
  %18 = getelementptr inbounds i8, ptr %0, i64 144
  store i64 %2, ptr %18, align 8, !tbaa !26
  %19 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %2, i64 noundef %3, ptr noundef %4)
  br i1 %6, label %.preheader.lr.ph, label %._crit_edge47

.preheader.lr.ph:                                 ; preds = %5
  %20 = getelementptr inbounds i8, ptr %1, i64 72
  %21 = getelementptr inbounds i8, ptr %0, i64 256
  br i1 %7, label %.preheader.us.preheader, label %._crit_edge47

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %3, 1
  %22 = icmp eq i64 %3, 1
  %unroll_iter = and i64 %3, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.04146.us = phi i64 [ %52, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  br i1 %22, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.044.us = phi i64 [ %42, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %23 = load ptr, ptr %20, align 8, !tbaa !27
  %24 = getelementptr inbounds ptr, ptr %23, i64 %.04146.us
  %25 = load ptr, ptr %24, align 8, !tbaa !28
  %26 = getelementptr inbounds double, ptr %25, i64 %.044.us
  %27 = load double, ptr %26, align 8, !tbaa !29
  %28 = load ptr, ptr %21, align 8, !tbaa !27
  %29 = getelementptr inbounds ptr, ptr %28, i64 %.04146.us
  %30 = load ptr, ptr %29, align 8, !tbaa !28
  %31 = getelementptr inbounds double, ptr %30, i64 %.044.us
  store double %27, ptr %31, align 8, !tbaa !29
  %32 = or disjoint i64 %.044.us, 1
  %33 = load ptr, ptr %20, align 8, !tbaa !27
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.04146.us
  %35 = load ptr, ptr %34, align 8, !tbaa !28
  %36 = getelementptr inbounds double, ptr %35, i64 %32
  %37 = load double, ptr %36, align 8, !tbaa !29
  %38 = load ptr, ptr %21, align 8, !tbaa !27
  %39 = getelementptr inbounds ptr, ptr %38, i64 %.04146.us
  %40 = load ptr, ptr %39, align 8, !tbaa !28
  %41 = getelementptr inbounds double, ptr %40, i64 %32
  store double %37, ptr %41, align 8, !tbaa !29
  %42 = add nuw nsw i64 %.044.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 !30

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.044.us.unr = phi i64 [ 0, %.preheader.us ], [ %42, %.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
  %43 = load ptr, ptr %20, align 8, !tbaa !27
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.04146.us
  %45 = load ptr, ptr %44, align 8, !tbaa !28
  %46 = getelementptr inbounds double, ptr %45, i64 %.044.us.unr
  %47 = load double, ptr %46, align 8, !tbaa !29
  %48 = load ptr, ptr %21, align 8, !tbaa !27
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.04146.us
  %50 = load ptr, ptr %49, align 8, !tbaa !28
  %51 = getelementptr inbounds double, ptr %50, i64 %.044.us.unr
  store double %47, ptr %51, align 8, !tbaa !29
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %52 = add nuw nsw i64 %.04146.us, 1
  %exitcond49.not = icmp eq i64 %52, %2
  br i1 %exitcond49.not, label %._crit_edge47, label %.preheader.us, !llvm.loop !32

._crit_edge47:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %5
  %53 = getelementptr inbounds i8, ptr %0, i64 280
  store i8 0, ptr %53, align 8, !tbaa !33
  ret void
}

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 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 136}
!15 = !{!"_ZTSN11alglib_impl8ssamodelE", !7, i64 0, !16, i64 8, !16, i64 72, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !6, i64 184, !7, i64 264, !7, i64 272, !10, i64 280, !6, i64 288, !6, i64 368, !16, i64 448, !16, i64 512, !7, i64 576, !17, i64 584, !6, i64 2968, !19, i64 3048, !7, i64 3072, !16, i64 3080, !7, i64 3144, !7, i64 3152, !7, i64 3160, !16, i64 3168, !16, i64 3232, !23, i64 3296, !16, i64 3304, !16, i64 3368, !6, i64 3432, !6, i64 3512, !16, i64 3592, !16, i64 3656, !16, i64 3720, !6, i64 3784, !6, i64 3864, !7, i64 3944, !7, i64 3952, !7, i64 3960}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!17 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !18, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !10, i64 57, !19, i64 64, !10, i64 88, !16, i64 96, !6, i64 160, !6, i64 240, !6, i64 320, !6, i64 400, !6, i64 480, !6, i64 560, !6, i64 640, !6, i64 720, !6, i64 800, !16, i64 880, !16, i64 944, !16, i64 1008, !16, i64 1072, !16, i64 1136, !20, i64 1200, !6, i64 1936, !6, i64 2016, !7, i64 2096, !7, i64 2104, !7, i64 2112, !21, i64 2120}
!18 = !{!"double", !8, i64 0}
!19 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"_ZTSN11alglib_impl9apbuffersE", !16, i64 0, !16, i64 64, !16, i64 128, !16, i64 192, !16, i64 256, !16, i64 320, !16, i64 384, !16, i64 448, !16, i64 512, !6, i64 576, !6, i64 656}
!21 = !{!"_ZTSN11alglib_impl10rcommstateE", !22, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !16, i64 200}
!22 = !{!"int", !8, i64 0}
!23 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !7, i64 0}
!24 = !{!15, !7, i64 168}
!25 = !{!15, !7, i64 176}
!26 = !{!15, !7, i64 144}
!27 = !{!8, !8, i64 0}
!28 = !{!12, !12, i64 0}
!29 = !{!18, !18, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = !{!15, !10, i64 280}


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