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

; 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::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::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { 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::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::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::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::eigsubspacereport" = type { i64 }

@.str.360 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.361 = external hidden unnamed_addr constant [49 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
declare dso_local void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23eigsubspacesolvesparsesEPNS_16eigsubspacestateEPNS_12sparsematrixEbPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  %19 = zext i1 %2 to i8
  store i8 %19, ptr %10, align 1, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %20 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %20)
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %21)
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef %22)
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %23, i32 0, i32 10
  %25 = load i8, ptr %24, align 8, !tbaa !11, !range !22, !noundef !23
  %26 = trunc i8 %25 to i1
  %27 = xor i1 %26, true
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef @.str.361, ptr noundef %28)
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 0
  %31 = load i64, ptr %30, align 8, !tbaa !24
  store i64 %31, ptr %15, align 8, !tbaa !25
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %32, i32 0, i32 6
  store i64 0, ptr %33, align 8, !tbaa !26
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %34, i32 0, i32 32
  %36 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef 8, ptr noundef %37)
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %38, i32 0, i32 32
  %40 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef 2, ptr noundef %41)
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %42, i32 0, i32 32
  %44 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %43, i32 0, i32 0
  store i32 -1, ptr %44, align 8, !tbaa !27
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %45, ptr noundef %46)
  br label %47

47:                                               ; preds = %51, %7
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = call noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %48, ptr noundef %49)
  br i1 %50, label %51, label %73

51:                                               ; preds = %47
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %52, i32 0, i32 29
  %54 = load i64, ptr %53, align 8, !tbaa !28
  %55 = icmp eq i64 %54, 0
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.360, ptr noundef %56)
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %57, i32 0, i32 30
  %59 = load i64, ptr %58, align 8, !tbaa !29
  %60 = icmp sgt i64 %59, 0
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.360, ptr noundef %61)
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %64 = trunc i8 %63 to i1
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %65, i32 0, i32 27
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %67, i32 0, i32 30
  %69 = load i64, ptr %68, align 8, !tbaa !29
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %70, i32 0, i32 28
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef %62, i1 noundef zeroext %64, ptr noundef %66, i64 noundef %69, ptr noundef %71, ptr noundef %72)
  br label %47, !llvm.loop !30

73:                                               ; preds = %47
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %74, i32 0, i32 1
  %76 = load i64, ptr %75, align 8, !tbaa !32
  store i64 %76, ptr %18, align 8, !tbaa !25
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = load i64, ptr %18, align 8, !tbaa !25
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %77, i64 noundef %78, ptr noundef %79)
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = load i64, ptr %15, align 8, !tbaa !25
  %82 = load i64, ptr %18, align 8, !tbaa !25
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %80, i64 noundef %81, i64 noundef %82, ptr noundef %83)
  store i64 0, ptr %16, align 8, !tbaa !25
  br label %84

84:                                               ; preds = %102, %73
  %85 = load i64, ptr %16, align 8, !tbaa !25
  %86 = load i64, ptr %18, align 8, !tbaa !25
  %87 = sub nsw i64 %86, 1
  %88 = icmp sle i64 %85, %87
  br i1 %88, label %89, label %105

89:                                               ; preds = %84
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %90, i32 0, i32 21
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !33
  %94 = load i64, ptr %16, align 8, !tbaa !25
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !34
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !33
  %100 = load i64, ptr %16, align 8, !tbaa !25
  %101 = getelementptr inbounds double, ptr %99, i64 %100
  store double %96, ptr %101, align 8, !tbaa !34
  br label %102

102:                                              ; preds = %89
  %103 = load i64, ptr %16, align 8, !tbaa !25
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %16, align 8, !tbaa !25
  br label %84, !llvm.loop !35

105:                                              ; preds = %84
  store i64 0, ptr %16, align 8, !tbaa !25
  br label %106

106:                                              ; preds = %140, %105
  %107 = load i64, ptr %16, align 8, !tbaa !25
  %108 = load i64, ptr %15, align 8, !tbaa !25
  %109 = sub nsw i64 %108, 1
  %110 = icmp sle i64 %107, %109
  br i1 %110, label %111, label %143

111:                                              ; preds = %106
  store i64 0, ptr %17, align 8, !tbaa !25
  br label %112

112:                                              ; preds = %136, %111
  %113 = load i64, ptr %17, align 8, !tbaa !25
  %114 = load i64, ptr %18, align 8, !tbaa !25
  %115 = sub nsw i64 %114, 1
  %116 = icmp sle i64 %113, %115
  br i1 %116, label %117, label %139

117:                                              ; preds = %112
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %118, i32 0, i32 19
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %119, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !33
  %122 = load i64, ptr %16, align 8, !tbaa !25
  %123 = getelementptr inbounds ptr, ptr %121, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load i64, ptr %17, align 8, !tbaa !25
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !34
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !33
  %131 = load i64, ptr %16, align 8, !tbaa !25
  %132 = getelementptr inbounds ptr, ptr %130, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = load i64, ptr %17, align 8, !tbaa !25
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  store double %127, ptr %135, align 8, !tbaa !34
  br label %136

136:                                              ; preds = %117
  %137 = load i64, ptr %17, align 8, !tbaa !25
  %138 = add nsw i64 %137, 1
  store i64 %138, ptr %17, align 8, !tbaa !25
  br label %112, !llvm.loop !36

139:                                              ; preds = %112
  br label %140

140:                                              ; preds = %139
  %141 = load i64, ptr %16, align 8, !tbaa !25
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %16, align 8, !tbaa !25
  br label %106, !llvm.loop !37

143:                                              ; preds = %106
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %144, i32 0, i32 31
  %146 = load i64, ptr %145, align 8, !tbaa !38
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::eigsubspacereport", ptr %147, i32 0, i32 0
  store i64 %146, ptr %148, align 8, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef) #2

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 = !{!"bool", !7, i64 0}
!11 = !{!12, !10, i64 88}
!12 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !13, i64 40, !13, i64 48, !10, i64 56, !10, i64 57, !15, i64 64, !10, i64 88, !16, i64 96, !18, i64 160, !18, i64 240, !18, i64 320, !18, i64 400, !18, i64 480, !18, i64 560, !18, i64 640, !18, i64 720, !18, i64 800, !16, i64 880, !16, i64 944, !16, i64 1008, !16, i64 1072, !16, i64 1136, !19, i64 1200, !18, i64 1936, !18, i64 2016, !13, i64 2096, !13, i64 2104, !13, i64 2112, !20, i64 2120}
!13 = !{!"long", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl10hqrndstateE", !13, i64 0, !13, i64 8, !13, i64 16}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !10, i64 16, !17, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !10, i64 32, !17, i64 40, !7, i64 72}
!19 = !{!"_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, !18, i64 576, !18, i64 656}
!20 = !{!"_ZTSN11alglib_impl10rcommstateE", !21, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !16, i64 200}
!21 = !{!"int", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!12, !13, i64 0}
!25 = !{!13, !13, i64 0}
!26 = !{!12, !13, i64 48}
!27 = !{!12, !21, i64 2120}
!28 = !{!12, !13, i64 2096}
!29 = !{!12, !13, i64 2104}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!12, !13, i64 8}
!33 = !{!7, !7, i64 0}
!34 = !{!14, !14, i64 0}
!35 = distinct !{!35, !31}
!36 = distinct !{!36, !31}
!37 = distinct !{!37, !31}
!38 = !{!12, !13, i64 2112}
!39 = !{!40, !13, i64 0}
!40 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !13, i64 0}


; 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.360 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.361 = external hidden unnamed_addr constant [49 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
declare dso_local void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23eigsubspacesolvesparsesEPNS_16eigsubspacestateEPNS_12sparsematrixEbPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  tail call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %4)
  tail call void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef %5)
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = load i8, ptr %8, align 8, !tbaa !5, !range !20, !noundef !21
  %10 = trunc nuw i8 %9 to i1
  %11 = xor i1 %10, true
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.361, ptr noundef %6)
  %12 = load i64, ptr %0, align 8, !tbaa !22
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 0, ptr %13, align 8, !tbaa !23
  %14 = getelementptr inbounds i8, ptr %0, i64 2120
  %15 = getelementptr inbounds i8, ptr %0, i64 2128
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef 8, ptr noundef %6)
  %16 = getelementptr inbounds i8, ptr %0, i64 2256
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 2, ptr noundef %6)
  store i32 -1, ptr %14, align 8, !tbaa !24
  tail call void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  %17 = tail call noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %18 = getelementptr inbounds i8, ptr %0, i64 2096
  %19 = getelementptr inbounds i8, ptr %0, i64 2104
  %20 = getelementptr inbounds i8, ptr %0, i64 1936
  %21 = getelementptr inbounds i8, ptr %0, i64 2016
  br label %22

22:                                               ; preds = %.lr.ph, %22
  %23 = load i64, ptr %18, align 8, !tbaa !25
  %24 = icmp eq i64 %23, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.360, ptr noundef %6)
  %25 = load i64, ptr %19, align 8, !tbaa !26
  %26 = icmp sgt i64 %25, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.360, ptr noundef %6)
  %27 = load i64, ptr %19, align 8, !tbaa !26
  tail call void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef %1, i1 noundef zeroext %2, ptr noundef nonnull %20, i64 noundef %27, ptr noundef nonnull %21, ptr noundef %6)
  %28 = tail call noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  br i1 %28, label %22, label %._crit_edge, !llvm.loop !27

._crit_edge:                                      ; preds = %22, %7
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !29
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %30, ptr noundef %6)
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %12, i64 noundef %30, ptr noundef %6)
  %.not.not59 = icmp sgt i64 %30, 0
  br i1 %.not.not59, label %.lr.ph62, label %._crit_edge69

.lr.ph62:                                         ; preds = %._crit_edge
  %31 = getelementptr inbounds i8, ptr %0, i64 936
  %32 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %30, 3
  %33 = icmp ult i64 %30, 4
  br i1 %33, label %.preheader58.unr-lcssa, label %.lr.ph62.new

.lr.ph62.new:                                     ; preds = %.lr.ph62
  %unroll_iter = and i64 %30, 9223372036854775804
  br label %73

.preheader58.unr-lcssa:                           ; preds = %73, %.lr.ph62
  %.060.unr = phi i64 [ 0, %.lr.ph62 ], [ %97, %73 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader58, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader58.unr-lcssa, %.epil.preheader
  %.060.epil = phi i64 [ %39, %.epil.preheader ], [ %.060.unr, %.preheader58.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader58.unr-lcssa ]
  %34 = load ptr, ptr %31, align 8, !tbaa !30
  %35 = getelementptr inbounds double, ptr %34, i64 %.060.epil
  %36 = load double, ptr %35, align 8, !tbaa !31
  %37 = load ptr, ptr %32, align 8, !tbaa !30
  %38 = getelementptr inbounds double, ptr %37, i64 %.060.epil
  store double %36, ptr %38, align 8, !tbaa !31
  %39 = add nuw nsw i64 %.060.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 %.preheader58, label %.epil.preheader, !llvm.loop !32

.preheader58:                                     ; preds = %.epil.preheader, %.preheader58.unr-lcssa
  %.not.not5667 = icmp sgt i64 %12, 0
  br i1 %.not.not5667, label %.preheader.lr.ph, label %._crit_edge69

.preheader.lr.ph:                                 ; preds = %.preheader58
  %40 = getelementptr inbounds i8, ptr %0, i64 792
  %41 = getelementptr inbounds i8, ptr %4, i64 72
  br i1 %.not.not59, label %.preheader.us.preheader, label %._crit_edge69

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter75 = and i64 %30, 1
  %42 = icmp eq i64 %30, 1
  %unroll_iter78 = and i64 %30, 9223372036854775806
  %lcmp.mod77.not = icmp eq i64 %xtraiter75, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge66.us
  %.168.us = phi i64 [ %72, %._crit_edge66.us ], [ 0, %.preheader.us.preheader ]
  br i1 %42, label %._crit_edge66.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.05464.us = phi i64 [ %62, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter79 = phi i64 [ %niter79.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %43 = load ptr, ptr %40, align 8, !tbaa !30
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.168.us
  %45 = load ptr, ptr %44, align 8, !tbaa !34
  %46 = getelementptr inbounds double, ptr %45, i64 %.05464.us
  %47 = load double, ptr %46, align 8, !tbaa !31
  %48 = load ptr, ptr %41, align 8, !tbaa !30
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.168.us
  %50 = load ptr, ptr %49, align 8, !tbaa !34
  %51 = getelementptr inbounds double, ptr %50, i64 %.05464.us
  store double %47, ptr %51, align 8, !tbaa !31
  %52 = or disjoint i64 %.05464.us, 1
  %53 = load ptr, ptr %40, align 8, !tbaa !30
  %54 = getelementptr inbounds ptr, ptr %53, i64 %.168.us
  %55 = load ptr, ptr %54, align 8, !tbaa !34
  %56 = getelementptr inbounds double, ptr %55, i64 %52
  %57 = load double, ptr %56, align 8, !tbaa !31
  %58 = load ptr, ptr %41, align 8, !tbaa !30
  %59 = getelementptr inbounds ptr, ptr %58, i64 %.168.us
  %60 = load ptr, ptr %59, align 8, !tbaa !34
  %61 = getelementptr inbounds double, ptr %60, i64 %52
  store double %57, ptr %61, align 8, !tbaa !31
  %62 = add nuw nsw i64 %.05464.us, 2
  %niter79.next.1 = add i64 %niter79, 2
  %niter79.ncmp.1 = icmp eq i64 %niter79.next.1, %unroll_iter78
  br i1 %niter79.ncmp.1, label %._crit_edge66.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !35

._crit_edge66.us.unr-lcssa:                       ; preds = %.preheader.us.new, %.preheader.us
  %.05464.us.unr = phi i64 [ 0, %.preheader.us ], [ %62, %.preheader.us.new ]
  br i1 %lcmp.mod77.not, label %._crit_edge66.us, label %._crit_edge66.us.epilog-lcssa

._crit_edge66.us.epilog-lcssa:                    ; preds = %._crit_edge66.us.unr-lcssa
  %63 = load ptr, ptr %40, align 8, !tbaa !30
  %64 = getelementptr inbounds ptr, ptr %63, i64 %.168.us
  %65 = load ptr, ptr %64, align 8, !tbaa !34
  %66 = getelementptr inbounds double, ptr %65, i64 %.05464.us.unr
  %67 = load double, ptr %66, align 8, !tbaa !31
  %68 = load ptr, ptr %41, align 8, !tbaa !30
  %69 = getelementptr inbounds ptr, ptr %68, i64 %.168.us
  %70 = load ptr, ptr %69, align 8, !tbaa !34
  %71 = getelementptr inbounds double, ptr %70, i64 %.05464.us.unr
  store double %67, ptr %71, align 8, !tbaa !31
  br label %._crit_edge66.us

._crit_edge66.us:                                 ; preds = %._crit_edge66.us.unr-lcssa, %._crit_edge66.us.epilog-lcssa
  %72 = add nuw nsw i64 %.168.us, 1
  %exitcond72.not = icmp eq i64 %72, %12
  br i1 %exitcond72.not, label %._crit_edge69, label %.preheader.us, !llvm.loop !36

73:                                               ; preds = %73, %.lr.ph62.new
  %.060 = phi i64 [ 0, %.lr.ph62.new ], [ %97, %73 ]
  %niter = phi i64 [ 0, %.lr.ph62.new ], [ %niter.next.3, %73 ]
  %74 = load ptr, ptr %31, align 8, !tbaa !30
  %75 = getelementptr inbounds double, ptr %74, i64 %.060
  %76 = load double, ptr %75, align 8, !tbaa !31
  %77 = load ptr, ptr %32, align 8, !tbaa !30
  %78 = getelementptr inbounds double, ptr %77, i64 %.060
  store double %76, ptr %78, align 8, !tbaa !31
  %79 = or disjoint i64 %.060, 1
  %80 = load ptr, ptr %31, align 8, !tbaa !30
  %81 = getelementptr inbounds double, ptr %80, i64 %79
  %82 = load double, ptr %81, align 8, !tbaa !31
  %83 = load ptr, ptr %32, align 8, !tbaa !30
  %84 = getelementptr inbounds double, ptr %83, i64 %79
  store double %82, ptr %84, align 8, !tbaa !31
  %85 = or disjoint i64 %.060, 2
  %86 = load ptr, ptr %31, align 8, !tbaa !30
  %87 = getelementptr inbounds double, ptr %86, i64 %85
  %88 = load double, ptr %87, align 8, !tbaa !31
  %89 = load ptr, ptr %32, align 8, !tbaa !30
  %90 = getelementptr inbounds double, ptr %89, i64 %85
  store double %88, ptr %90, align 8, !tbaa !31
  %91 = or disjoint i64 %.060, 3
  %92 = load ptr, ptr %31, align 8, !tbaa !30
  %93 = getelementptr inbounds double, ptr %92, i64 %91
  %94 = load double, ptr %93, align 8, !tbaa !31
  %95 = load ptr, ptr %32, align 8, !tbaa !30
  %96 = getelementptr inbounds double, ptr %95, i64 %91
  store double %94, ptr %96, align 8, !tbaa !31
  %97 = add nuw nsw i64 %.060, 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 %.preheader58.unr-lcssa, label %73, !llvm.loop !37

._crit_edge69:                                    ; preds = %._crit_edge66.us, %._crit_edge, %.preheader.lr.ph, %.preheader58
  %98 = getelementptr inbounds i8, ptr %0, i64 2112
  %99 = load i64, ptr %98, align 8, !tbaa !38
  store i64 %99, ptr %5, align 8, !tbaa !39
  ret void
}

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

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_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 void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef) local_unnamed_addr #1

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, !11, i64 88}
!6 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !7, i64 48, !11, i64 56, !11, i64 57, !12, i64 64, !11, 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, !17, i64 1200, !16, i64 1936, !16, i64 2016, !7, i64 2096, !7, i64 2104, !7, i64 2112, !18, i64 2120}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !14, i64 24, !8, i64 56}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !14, i64 40, !8, i64 72}
!17 = !{!"_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}
!18 = !{!"_ZTSN11alglib_impl10rcommstateE", !19, i64 0, !13, i64 8, !13, i64 72, !13, i64 136, !13, i64 200}
!19 = !{!"int", !8, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !7, i64 0}
!23 = !{!6, !7, i64 48}
!24 = !{!6, !19, i64 2120}
!25 = !{!6, !7, i64 2096}
!26 = !{!6, !7, i64 2104}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!6, !7, i64 8}
!30 = !{!8, !8, i64 0}
!31 = !{!10, !10, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = !{!15, !15, i64 0}
!35 = distinct !{!35, !28}
!36 = distinct !{!36, !28}
!37 = distinct !{!37, !28}
!38 = !{!6, !7, i64 2112}
!39 = !{!40, !7, i64 0}
!40 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !7, i64 0}


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