; 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.358 = external hidden unnamed_addr constant [41 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_impl18eigsubspaceoocstopEPNS_16eigsubspacestateEPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %15)
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %16)
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef %17)
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %18, i32 0, i32 10
  %20 = load i8, ptr %19, align 8, !tbaa !9, !range !21, !noundef !22
  %21 = trunc i8 %20 to i1
  %22 = xor i1 %21, true
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef @.str.358, ptr noundef %23)
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %24, i32 0, i32 0
  %26 = load i64, ptr %25, align 8, !tbaa !23
  store i64 %26, ptr %11, align 8, !tbaa !24
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !25
  store i64 %29, ptr %12, align 8, !tbaa !24
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load i64, ptr %12, align 8, !tbaa !24
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %31, ptr noundef %32)
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = load i64, ptr %11, align 8, !tbaa !24
  %35 = load i64, ptr %12, align 8, !tbaa !24
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %33, i64 noundef %34, i64 noundef %35, ptr noundef %36)
  store i64 0, ptr %13, align 8, !tbaa !24
  br label %37

37:                                               ; preds = %55, %5
  %38 = load i64, ptr %13, align 8, !tbaa !24
  %39 = load i64, ptr %12, align 8, !tbaa !24
  %40 = sub nsw i64 %39, 1
  %41 = icmp sle i64 %38, %40
  br i1 %41, label %42, label %58

42:                                               ; preds = %37
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %43, i32 0, i32 21
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !26
  %47 = load i64, ptr %13, align 8, !tbaa !24
  %48 = getelementptr inbounds double, ptr %46, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !27
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !26
  %53 = load i64, ptr %13, align 8, !tbaa !24
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  store double %49, ptr %54, align 8, !tbaa !27
  br label %55

55:                                               ; preds = %42
  %56 = load i64, ptr %13, align 8, !tbaa !24
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %13, align 8, !tbaa !24
  br label %37, !llvm.loop !28

58:                                               ; preds = %37
  store i64 0, ptr %13, align 8, !tbaa !24
  br label %59

59:                                               ; preds = %93, %58
  %60 = load i64, ptr %13, align 8, !tbaa !24
  %61 = load i64, ptr %11, align 8, !tbaa !24
  %62 = sub nsw i64 %61, 1
  %63 = icmp sle i64 %60, %62
  br i1 %63, label %64, label %96

64:                                               ; preds = %59
  store i64 0, ptr %14, align 8, !tbaa !24
  br label %65

65:                                               ; preds = %89, %64
  %66 = load i64, ptr %14, align 8, !tbaa !24
  %67 = load i64, ptr %12, align 8, !tbaa !24
  %68 = sub nsw i64 %67, 1
  %69 = icmp sle i64 %66, %68
  br i1 %69, label %70, label %92

70:                                               ; preds = %65
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %71, i32 0, i32 19
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %72, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !26
  %75 = load i64, ptr %13, align 8, !tbaa !24
  %76 = getelementptr inbounds ptr, ptr %74, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i64, ptr %14, align 8, !tbaa !24
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !27
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %81, i32 0, i32 6
  %83 = load ptr, ptr %82, align 8, !tbaa !26
  %84 = load i64, ptr %13, align 8, !tbaa !24
  %85 = getelementptr inbounds ptr, ptr %83, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i64, ptr %14, align 8, !tbaa !24
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  store double %80, ptr %88, align 8, !tbaa !27
  br label %89

89:                                               ; preds = %70
  %90 = load i64, ptr %14, align 8, !tbaa !24
  %91 = add nsw i64 %90, 1
  store i64 %91, ptr %14, align 8, !tbaa !24
  br label %65, !llvm.loop !30

92:                                               ; preds = %65
  br label %93

93:                                               ; preds = %92
  %94 = load i64, ptr %13, align 8, !tbaa !24
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %13, align 8, !tbaa !24
  br label %59, !llvm.loop !31

96:                                               ; preds = %59
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %97, i32 0, i32 31
  %99 = load i64, ptr %98, align 8, !tbaa !32
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::eigsubspacereport", ptr %100, i32 0, i32 0
  store i64 %99, ptr %101, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  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_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 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 = { 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, !13, i64 88}
!10 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !11, i64 40, !11, i64 48, !13, i64 56, !13, i64 57, !14, i64 64, !13, i64 88, !15, i64 96, !17, i64 160, !17, i64 240, !17, i64 320, !17, i64 400, !17, i64 480, !17, i64 560, !17, i64 640, !17, i64 720, !17, i64 800, !15, i64 880, !15, i64 944, !15, i64 1008, !15, i64 1072, !15, i64 1136, !18, i64 1200, !17, i64 1936, !17, i64 2016, !11, i64 2096, !11, i64 2104, !11, i64 2112, !19, i64 2120}
!11 = !{!"long", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl10hqrndstateE", !11, i64 0, !11, i64 8, !11, i64 16}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !16, i64 24, !7, i64 56}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !16, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl9apbuffersE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !15, i64 320, !15, i64 384, !15, i64 448, !15, i64 512, !17, i64 576, !17, i64 656}
!19 = !{!"_ZTSN11alglib_impl10rcommstateE", !20, i64 0, !15, i64 8, !15, i64 72, !15, i64 136, !15, i64 200}
!20 = !{!"int", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!10, !11, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!10, !11, i64 8}
!26 = !{!7, !7, i64 0}
!27 = !{!12, !12, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = !{!10, !11, i64 2112}
!33 = !{!34, !11, i64 0}
!34 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !11, 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.358 = external hidden unnamed_addr constant [41 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_impl18eigsubspaceoocstopEPNS_16eigsubspacestateEPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %1)
  tail call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %2)
  tail call void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef %3)
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  %7 = load i8, ptr %6, align 8, !tbaa !5, !range !20, !noundef !21
  %8 = trunc nuw i8 %7 to i1
  %9 = xor i1 %8, true
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.358, ptr noundef %4)
  %10 = load i64, ptr %0, align 8, !tbaa !22
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !23
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %12, ptr noundef %4)
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %2, i64 noundef %10, i64 noundef %12, ptr noundef %4)
  %.not.not39 = icmp sgt i64 %12, 0
  br i1 %.not.not39, label %.lr.ph, label %._crit_edge46

.lr.ph:                                           ; preds = %5
  %13 = getelementptr inbounds i8, ptr %0, i64 936
  %14 = getelementptr inbounds i8, ptr %1, i64 56
  %xtraiter = and i64 %12, 3
  %15 = icmp ult i64 %12, 4
  br i1 %15, label %.preheader38.unr-lcssa, label %.lr.ph.new

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

.preheader38.unr-lcssa:                           ; preds = %55, %.lr.ph
  %.03440.unr = phi i64 [ 0, %.lr.ph ], [ %79, %55 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader38, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader38.unr-lcssa, %.epil.preheader
  %.03440.epil = phi i64 [ %21, %.epil.preheader ], [ %.03440.unr, %.preheader38.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader38.unr-lcssa ]
  %16 = load ptr, ptr %13, align 8, !tbaa !24
  %17 = getelementptr inbounds double, ptr %16, i64 %.03440.epil
  %18 = load double, ptr %17, align 8, !tbaa !25
  %19 = load ptr, ptr %14, align 8, !tbaa !24
  %20 = getelementptr inbounds double, ptr %19, i64 %.03440.epil
  store double %18, ptr %20, align 8, !tbaa !25
  %21 = add nuw nsw i64 %.03440.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 %.preheader38, label %.epil.preheader, !llvm.loop !26

.preheader38:                                     ; preds = %.epil.preheader, %.preheader38.unr-lcssa
  %.not.not3644 = icmp sgt i64 %10, 0
  br i1 %.not.not3644, label %.preheader.lr.ph, label %._crit_edge46

.preheader.lr.ph:                                 ; preds = %.preheader38
  %22 = getelementptr inbounds i8, ptr %0, i64 792
  %23 = getelementptr inbounds i8, ptr %2, i64 72
  br i1 %.not.not39, label %.preheader.us.preheader, label %._crit_edge46

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter52 = and i64 %12, 1
  %24 = icmp eq i64 %12, 1
  %unroll_iter55 = and i64 %12, 9223372036854775806
  %lcmp.mod54.not = icmp eq i64 %xtraiter52, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.145.us = phi i64 [ %54, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  br i1 %24, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.042.us = phi i64 [ %44, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter56 = phi i64 [ %niter56.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %25 = load ptr, ptr %22, align 8, !tbaa !24
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.145.us
  %27 = load ptr, ptr %26, align 8, !tbaa !28
  %28 = getelementptr inbounds double, ptr %27, i64 %.042.us
  %29 = load double, ptr %28, align 8, !tbaa !25
  %30 = load ptr, ptr %23, align 8, !tbaa !24
  %31 = getelementptr inbounds ptr, ptr %30, i64 %.145.us
  %32 = load ptr, ptr %31, align 8, !tbaa !28
  %33 = getelementptr inbounds double, ptr %32, i64 %.042.us
  store double %29, ptr %33, align 8, !tbaa !25
  %34 = or disjoint i64 %.042.us, 1
  %35 = load ptr, ptr %22, align 8, !tbaa !24
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.145.us
  %37 = load ptr, ptr %36, align 8, !tbaa !28
  %38 = getelementptr inbounds double, ptr %37, i64 %34
  %39 = load double, ptr %38, align 8, !tbaa !25
  %40 = load ptr, ptr %23, align 8, !tbaa !24
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.145.us
  %42 = load ptr, ptr %41, align 8, !tbaa !28
  %43 = getelementptr inbounds double, ptr %42, i64 %34
  store double %39, ptr %43, align 8, !tbaa !25
  %44 = add nuw nsw i64 %.042.us, 2
  %niter56.next.1 = add i64 %niter56, 2
  %niter56.ncmp.1 = icmp eq i64 %niter56.next.1, %unroll_iter55
  br i1 %niter56.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !29

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.042.us.unr = phi i64 [ 0, %.preheader.us ], [ %44, %.preheader.us.new ]
  br i1 %lcmp.mod54.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %45 = load ptr, ptr %22, align 8, !tbaa !24
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.145.us
  %47 = load ptr, ptr %46, align 8, !tbaa !28
  %48 = getelementptr inbounds double, ptr %47, i64 %.042.us.unr
  %49 = load double, ptr %48, align 8, !tbaa !25
  %50 = load ptr, ptr %23, align 8, !tbaa !24
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.145.us
  %52 = load ptr, ptr %51, align 8, !tbaa !28
  %53 = getelementptr inbounds double, ptr %52, i64 %.042.us.unr
  store double %49, ptr %53, align 8, !tbaa !25
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %54 = add nuw nsw i64 %.145.us, 1
  %exitcond49.not = icmp eq i64 %54, %10
  br i1 %exitcond49.not, label %._crit_edge46, label %.preheader.us, !llvm.loop !31

55:                                               ; preds = %55, %.lr.ph.new
  %.03440 = phi i64 [ 0, %.lr.ph.new ], [ %79, %55 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %55 ]
  %56 = load ptr, ptr %13, align 8, !tbaa !24
  %57 = getelementptr inbounds double, ptr %56, i64 %.03440
  %58 = load double, ptr %57, align 8, !tbaa !25
  %59 = load ptr, ptr %14, align 8, !tbaa !24
  %60 = getelementptr inbounds double, ptr %59, i64 %.03440
  store double %58, ptr %60, align 8, !tbaa !25
  %61 = or disjoint i64 %.03440, 1
  %62 = load ptr, ptr %13, align 8, !tbaa !24
  %63 = getelementptr inbounds double, ptr %62, i64 %61
  %64 = load double, ptr %63, align 8, !tbaa !25
  %65 = load ptr, ptr %14, align 8, !tbaa !24
  %66 = getelementptr inbounds double, ptr %65, i64 %61
  store double %64, ptr %66, align 8, !tbaa !25
  %67 = or disjoint i64 %.03440, 2
  %68 = load ptr, ptr %13, align 8, !tbaa !24
  %69 = getelementptr inbounds double, ptr %68, i64 %67
  %70 = load double, ptr %69, align 8, !tbaa !25
  %71 = load ptr, ptr %14, align 8, !tbaa !24
  %72 = getelementptr inbounds double, ptr %71, i64 %67
  store double %70, ptr %72, align 8, !tbaa !25
  %73 = or disjoint i64 %.03440, 3
  %74 = load ptr, ptr %13, align 8, !tbaa !24
  %75 = getelementptr inbounds double, ptr %74, i64 %73
  %76 = load double, ptr %75, align 8, !tbaa !25
  %77 = load ptr, ptr %14, align 8, !tbaa !24
  %78 = getelementptr inbounds double, ptr %77, i64 %73
  store double %76, ptr %78, align 8, !tbaa !25
  %79 = add nuw nsw i64 %.03440, 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 %.preheader38.unr-lcssa, label %55, !llvm.loop !32

._crit_edge46:                                    ; preds = %._crit_edge.us, %5, %.preheader.lr.ph, %.preheader38
  %80 = getelementptr inbounds i8, ptr %0, i64 2112
  %81 = load i64, ptr %80, align 8, !tbaa !33
  store i64 %81, ptr %3, align 8, !tbaa !34
  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 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" }

!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 8}
!24 = !{!8, !8, i64 0}
!25 = !{!10, !10, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.unroll.disable"}
!28 = !{!15, !15, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = !{!6, !7, i64 2112}
!34 = !{!35, !7, i64 0}
!35 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !7, i64 0}


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