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

@.str.244 = external hidden unnamed_addr constant [36 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_impl11ssagetbasisEPNS_8ssamodelEPNS_9ae_matrixEPNS_9ae_vectorEPlS6_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %15)
  %16 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %16)
  %17 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %17, align 8, !tbaa !9
  %18 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %18, align 8, !tbaa !9
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  %21 = call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %19, ptr noundef %20)
  br i1 %21, label %56, label %22

22:                                               ; preds = %6
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %23, i32 0, i32 4
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 %25, ptr %26, align 8, !tbaa !9
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 1, ptr %27, align 8, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = load i64, ptr %29, align 8, !tbaa !9
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %28, i64 noundef %30, i64 noundef 1, ptr noundef %31)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %46, %22
  %33 = load i64, ptr %13, align 8, !tbaa !9
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = load i64, ptr %34, align 8, !tbaa !9
  %36 = sub nsw i64 %35, 1
  %37 = icmp sle i64 %33, %36
  br i1 %37, label %38, label %49

38:                                               ; preds = %32
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %39, i32 0, i32 6
  %41 = load ptr, ptr %40, align 8, !tbaa !24
  %42 = load i64, ptr %13, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %41, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 0
  store double 0.000000e+00, ptr %45, align 8, !tbaa !25
  br label %46

46:                                               ; preds = %38
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = add nsw i64 %47, 1
  store i64 %48, ptr %13, align 8, !tbaa !9
  br label %32, !llvm.loop !26

49:                                               ; preds = %32
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %50, i64 noundef 1, ptr noundef %51)
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  %55 = getelementptr inbounds double, ptr %54, i64 0
  store double 0.000000e+00, ptr %55, align 8, !tbaa !25
  store i32 1, ptr %14, align 4
  br label %118

56:                                               ; preds = %6
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %57, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %58)
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %59, i32 0, i32 17
  %61 = load i64, ptr %60, align 8, !tbaa !28
  %62 = icmp sgt i64 %61, 0
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %62, ptr noundef @.str.244, ptr noundef %63)
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %64, i32 0, i32 4
  %66 = load i64, ptr %65, align 8, !tbaa !11
  %67 = icmp sgt i64 %66, 0
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.244, ptr noundef %68)
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %69, i32 0, i32 17
  %71 = load i64, ptr %70, align 8, !tbaa !28
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %71, ptr %72, align 8, !tbaa !9
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %73, i32 0, i32 4
  %75 = load i64, ptr %74, align 8, !tbaa !11
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 %75, ptr %76, align 8, !tbaa !9
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %77, i64 noundef %79, i64 noundef %81, ptr noundef %82)
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %87, i32 0, i32 13
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %84, i64 noundef %86, ptr noundef %88, i64 noundef 0, i64 noundef 0, ptr noundef %89, i64 noundef 0, i64 noundef 0, ptr noundef %90)
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %91, i64 noundef %93, ptr noundef %94)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %114, %56
  %96 = load i64, ptr %13, align 8, !tbaa !9
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = sub nsw i64 %98, 1
  %100 = icmp sle i64 %96, %99
  br i1 %100, label %101, label %117

101:                                              ; preds = %95
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %102, i32 0, i32 15
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = load i64, ptr %13, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %105, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !25
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  %112 = load i64, ptr %13, align 8, !tbaa !9
  %113 = getelementptr inbounds double, ptr %111, i64 %112
  store double %108, ptr %113, align 8, !tbaa !25
  br label %114

114:                                              ; preds = %101
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %13, align 8, !tbaa !9
  br label %95, !llvm.loop !29

117:                                              ; preds = %95
  store i32 0, ptr %14, align 4
  br label %118

118:                                              ; preds = %117, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %119 = load i32, ptr %14, align 4
  switch i32 %119, label %121 [
    i32 0, label %120
    i32 1, label %120
  ]

120:                                              ; preds = %118, %118
  ret void

121:                                              ; preds = %118
  unreachable
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #1

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl11rmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, 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 = { mustprogress nounwind 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 144}
!12 = !{!"_ZTSN11alglib_impl8ssamodelE", !10, i64 0, !13, i64 8, !13, i64 72, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !16, i64 184, !10, i64 264, !10, i64 272, !14, i64 280, !16, i64 288, !16, i64 368, !13, i64 448, !13, i64 512, !10, i64 576, !17, i64 584, !16, i64 2968, !19, i64 3048, !10, i64 3072, !13, i64 3080, !10, i64 3144, !10, i64 3152, !10, i64 3160, !13, i64 3168, !13, i64 3232, !23, i64 3296, !13, i64 3304, !13, i64 3368, !16, i64 3432, !16, i64 3512, !13, i64 3592, !13, i64 3656, !13, i64 3720, !16, i64 3784, !16, i64 3864, !10, i64 3944, !10, i64 3952, !10, i64 3960}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!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_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!17 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !18, i64 32, !10, i64 40, !10, i64 48, !14, i64 56, !14, i64 57, !19, i64 64, !14, i64 88, !13, i64 96, !16, i64 160, !16, i64 240, !16, i64 320, !16, i64 400, !16, i64 480, !16, i64 560, !16, i64 640, !16, i64 720, !16, i64 800, !13, i64 880, !13, i64 944, !13, i64 1008, !13, i64 1072, !13, i64 1136, !20, i64 1200, !16, i64 1936, !16, i64 2016, !10, i64 2096, !10, i64 2104, !10, i64 2112, !21, i64 2120}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!"_ZTSN11alglib_impl9apbuffersE", !13, i64 0, !13, i64 64, !13, i64 128, !13, i64 192, !13, i64 256, !13, i64 320, !13, i64 384, !13, i64 448, !13, i64 512, !16, i64 576, !16, i64 656}
!21 = !{!"_ZTSN11alglib_impl10rcommstateE", !22, i64 0, !13, i64 8, !13, i64 72, !13, i64 136, !13, i64 200}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !10, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!18, !18, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!12, !10, i64 576}
!29 = distinct !{!29, !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.244 = external hidden unnamed_addr constant [36 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_impl11ssagetbasisEPNS_8ssamodelEPNS_9ae_matrixEPNS_9ae_vectorEPlS6_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %1)
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %2)
  store i64 0, ptr %3, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !5
  %7 = tail call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %0, ptr noundef %5)
  br i1 %7, label %38, label %8

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 144
  %10 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %10, ptr %3, align 8, !tbaa !5
  store i64 1, ptr %4, align 8, !tbaa !5
  %11 = load i64, ptr %3, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %1, i64 noundef %11, i64 noundef 1, ptr noundef %5)
  %12 = load i64, ptr %3, align 8, !tbaa !5
  %.not.not49 = icmp sgt i64 %12, 0
  br i1 %.not.not49, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %8
  %13 = getelementptr inbounds i8, ptr %1, i64 72
  %xtraiter = and i64 %12, 3
  %14 = icmp ult i64 %12, 4
  br i1 %14, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %12, 9223372036854775804
  br label %15

15:                                               ; preds = %15, %.lr.ph.new
  %.050 = phi i64 [ 0, %.lr.ph.new ], [ %31, %15 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %15 ]
  %16 = load ptr, ptr %13, align 8, !tbaa !23
  %17 = getelementptr inbounds ptr, ptr %16, i64 %.050
  %18 = load ptr, ptr %17, align 8, !tbaa !24
  store double 0.000000e+00, ptr %18, align 8, !tbaa !25
  %19 = or disjoint i64 %.050, 1
  %20 = load ptr, ptr %13, align 8, !tbaa !23
  %21 = getelementptr inbounds ptr, ptr %20, i64 %19
  %22 = load ptr, ptr %21, align 8, !tbaa !24
  store double 0.000000e+00, ptr %22, align 8, !tbaa !25
  %23 = or disjoint i64 %.050, 2
  %24 = load ptr, ptr %13, align 8, !tbaa !23
  %25 = getelementptr inbounds ptr, ptr %24, i64 %23
  %26 = load ptr, ptr %25, align 8, !tbaa !24
  store double 0.000000e+00, ptr %26, align 8, !tbaa !25
  %27 = or disjoint i64 %.050, 3
  %28 = load ptr, ptr %13, align 8, !tbaa !23
  %29 = getelementptr inbounds ptr, ptr %28, i64 %27
  %30 = load ptr, ptr %29, align 8, !tbaa !24
  store double 0.000000e+00, ptr %30, align 8, !tbaa !25
  %31 = add nuw nsw i64 %.050, 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.loopexit.unr-lcssa, label %15, !llvm.loop !26

._crit_edge.loopexit.unr-lcssa:                   ; preds = %15, %.lr.ph
  %.050.unr = phi i64 [ 0, %.lr.ph ], [ %31, %15 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.050.epil = phi i64 [ %35, %.epil.preheader ], [ %.050.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %32 = load ptr, ptr %13, align 8, !tbaa !23
  %33 = getelementptr inbounds ptr, ptr %32, i64 %.050.epil
  %34 = load ptr, ptr %33, align 8, !tbaa !24
  store double 0.000000e+00, ptr %34, align 8, !tbaa !25
  %35 = add nuw nsw i64 %.050.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, label %.epil.preheader, !llvm.loop !28

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %8
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef 1, ptr noundef %5)
  %36 = getelementptr inbounds i8, ptr %2, i64 56
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  store double 0.000000e+00, ptr %37, align 8, !tbaa !25
  br label %.loopexit

38:                                               ; preds = %6
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %5)
  %39 = getelementptr inbounds i8, ptr %0, i64 576
  %40 = load i64, ptr %39, align 8, !tbaa !30
  %41 = icmp sgt i64 %40, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef nonnull @.str.244, ptr noundef %5)
  %42 = getelementptr inbounds i8, ptr %0, i64 144
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = icmp sgt i64 %43, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef nonnull @.str.244, ptr noundef %5)
  %45 = load i64, ptr %39, align 8, !tbaa !30
  store i64 %45, ptr %4, align 8, !tbaa !5
  %46 = load i64, ptr %42, align 8, !tbaa !9
  store i64 %46, ptr %3, align 8, !tbaa !5
  %47 = load i64, ptr %4, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %1, i64 noundef %46, i64 noundef %47, ptr noundef %5)
  %48 = load i64, ptr %3, align 8, !tbaa !5
  %49 = load i64, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @_ZN11alglib_impl11rmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %48, i64 noundef %49, ptr noundef nonnull %50, i64 noundef 0, i64 noundef 0, ptr noundef %1, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  %51 = load i64, ptr %4, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %51, ptr noundef %5)
  %52 = load i64, ptr %4, align 8, !tbaa !5
  %.not.not4851 = icmp sgt i64 %52, 0
  br i1 %.not.not4851, label %.lr.ph54, label %.loopexit

.lr.ph54:                                         ; preds = %38
  %53 = getelementptr inbounds i8, ptr %0, i64 504
  %54 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter57 = and i64 %52, 3
  %55 = icmp ult i64 %52, 4
  br i1 %55, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph54.new

.lr.ph54.new:                                     ; preds = %.lr.ph54
  %unroll_iter60 = and i64 %52, 9223372036854775804
  br label %56

56:                                               ; preds = %56, %.lr.ph54.new
  %.152 = phi i64 [ 0, %.lr.ph54.new ], [ %80, %56 ]
  %niter61 = phi i64 [ 0, %.lr.ph54.new ], [ %niter61.next.3, %56 ]
  %57 = load ptr, ptr %53, align 8, !tbaa !23
  %58 = getelementptr inbounds double, ptr %57, i64 %.152
  %59 = load double, ptr %58, align 8, !tbaa !25
  %60 = load ptr, ptr %54, align 8, !tbaa !23
  %61 = getelementptr inbounds double, ptr %60, i64 %.152
  store double %59, ptr %61, align 8, !tbaa !25
  %62 = or disjoint i64 %.152, 1
  %63 = load ptr, ptr %53, align 8, !tbaa !23
  %64 = getelementptr inbounds double, ptr %63, i64 %62
  %65 = load double, ptr %64, align 8, !tbaa !25
  %66 = load ptr, ptr %54, align 8, !tbaa !23
  %67 = getelementptr inbounds double, ptr %66, i64 %62
  store double %65, ptr %67, align 8, !tbaa !25
  %68 = or disjoint i64 %.152, 2
  %69 = load ptr, ptr %53, align 8, !tbaa !23
  %70 = getelementptr inbounds double, ptr %69, i64 %68
  %71 = load double, ptr %70, align 8, !tbaa !25
  %72 = load ptr, ptr %54, align 8, !tbaa !23
  %73 = getelementptr inbounds double, ptr %72, i64 %68
  store double %71, ptr %73, align 8, !tbaa !25
  %74 = or disjoint i64 %.152, 3
  %75 = load ptr, ptr %53, align 8, !tbaa !23
  %76 = getelementptr inbounds double, ptr %75, i64 %74
  %77 = load double, ptr %76, align 8, !tbaa !25
  %78 = load ptr, ptr %54, align 8, !tbaa !23
  %79 = getelementptr inbounds double, ptr %78, i64 %74
  store double %77, ptr %79, align 8, !tbaa !25
  %80 = add nuw nsw i64 %.152, 4
  %niter61.next.3 = add i64 %niter61, 4
  %niter61.ncmp.3 = icmp eq i64 %niter61.next.3, %unroll_iter60
  br i1 %niter61.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %56, !llvm.loop !31

.loopexit.loopexit.unr-lcssa:                     ; preds = %56, %.lr.ph54
  %.152.unr = phi i64 [ 0, %.lr.ph54 ], [ %80, %56 ]
  %lcmp.mod59.not = icmp eq i64 %xtraiter57, 0
  br i1 %lcmp.mod59.not, label %.loopexit, label %.epil.preheader56

.epil.preheader56:                                ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader56
  %.152.epil = phi i64 [ %86, %.epil.preheader56 ], [ %.152.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter58 = phi i64 [ %epil.iter58.next, %.epil.preheader56 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %81 = load ptr, ptr %53, align 8, !tbaa !23
  %82 = getelementptr inbounds double, ptr %81, i64 %.152.epil
  %83 = load double, ptr %82, align 8, !tbaa !25
  %84 = load ptr, ptr %54, align 8, !tbaa !23
  %85 = getelementptr inbounds double, ptr %84, i64 %.152.epil
  store double %83, ptr %85, align 8, !tbaa !25
  %86 = add nuw nsw i64 %.152.epil, 1
  %epil.iter58.next = add i64 %epil.iter58, 1
  %epil.iter58.cmp.not = icmp eq i64 %epil.iter58.next, %xtraiter57
  br i1 %epil.iter58.cmp.not, label %.loopexit, label %.epil.preheader56, !llvm.loop !32

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader56, %38, %._crit_edge
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

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


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