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

@.str.227 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [43 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_impl14ssaaddsequenceEPNS_8ssamodelEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %11 = load i64, ptr %7, align 8, !tbaa !9
  %12 = icmp sge i64 %11, 0
  %13 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef @.str.227, ptr noundef %13)
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 0
  %16 = load i64, ptr %15, align 8, !tbaa !11
  %17 = load i64, ptr %7, align 8, !tbaa !9
  %18 = icmp sge i64 %16, %17
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef @.str.228, ptr noundef %19)
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %21, ptr noundef %22)
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.229, ptr noundef %24)
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %25, i32 0, i32 12
  store i8 0, ptr %26, align 8, !tbaa !15
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %27, i32 0, i32 1
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %29, i32 0, i32 0
  %31 = load i64, ptr %30, align 8, !tbaa !25
  %32 = add nsw i64 %31, 2
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %32, ptr noundef %33)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %37 = load ptr, ptr %36, align 8, !tbaa !26
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !25
  %41 = getelementptr inbounds i64, ptr %37, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = load i64, ptr %7, align 8, !tbaa !9
  %44 = add nsw i64 %42, %43
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !25
  %52 = add nsw i64 %51, 1
  %53 = getelementptr inbounds i64, ptr %48, i64 %52
  store i64 %44, ptr %53, align 8, !tbaa !9
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !25
  %63 = add nsw i64 %62, 1
  %64 = getelementptr inbounds i64, ptr %59, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %55, i64 noundef %65, ptr noundef %66)
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !26
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %71, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !25
  %74 = getelementptr inbounds i64, ptr %70, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !9
  store i64 %75, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %96, %4
  %77 = load i64, ptr %9, align 8, !tbaa !9
  %78 = load i64, ptr %7, align 8, !tbaa !9
  %79 = sub nsw i64 %78, 1
  %80 = icmp sle i64 %77, %79
  br i1 %80, label %81, label %99

81:                                               ; preds = %76
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !26
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !27
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %88, i32 0, i32 2
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %89, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !26
  %92 = load i64, ptr %10, align 8, !tbaa !9
  %93 = load i64, ptr %9, align 8, !tbaa !9
  %94 = add nsw i64 %92, %93
  %95 = getelementptr inbounds double, ptr %91, i64 %94
  store double %87, ptr %95, align 8, !tbaa !27
  br label %96

96:                                               ; preds = %81
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %9, align 8, !tbaa !9
  br label %76, !llvm.loop !28

99:                                               ; preds = %76
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %100, i32 0, i32 0
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %101, ptr noundef %102)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

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

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


; 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.227 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [43 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_impl14ssaaddsequenceEPNS_8ssamodelEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = icmp sgt i64 %2, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %5, ptr noundef nonnull @.str.227, ptr noundef %3)
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = icmp sge i64 %6, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.228, ptr noundef %3)
  %8 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %3)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.229, ptr noundef %3)
  %9 = getelementptr inbounds i8, ptr %0, i64 280
  store i8 0, ptr %9, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load i64, ptr %0, align 8, !tbaa !23
  %12 = add nsw i64 %11, 2
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %12, ptr noundef %3)
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  %14 = load ptr, ptr %13, align 8, !tbaa !24
  %15 = load i64, ptr %0, align 8, !tbaa !23
  %16 = getelementptr inbounds i64, ptr %14, i64 %15
  %17 = load i64, ptr %16, align 8, !tbaa !25
  %18 = add nsw i64 %17, %2
  %19 = getelementptr i8, ptr %16, i64 8
  store i64 %18, ptr %19, align 8, !tbaa !25
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = load ptr, ptr %13, align 8, !tbaa !24
  %22 = load i64, ptr %0, align 8, !tbaa !23
  %23 = getelementptr i64, ptr %21, i64 %22
  %24 = getelementptr i8, ptr %23, i64 8
  %25 = load i64, ptr %24, align 8, !tbaa !25
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %25, ptr noundef %3)
  %26 = load ptr, ptr %13, align 8, !tbaa !24
  %27 = load i64, ptr %0, align 8, !tbaa !23
  %28 = getelementptr inbounds i64, ptr %26, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !25
  %.not.not33 = icmp sgt i64 %2, 0
  br i1 %.not.not33, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %30 = getelementptr inbounds i8, ptr %1, i64 56
  %31 = getelementptr inbounds i8, ptr %0, i64 128
  %xtraiter = and i64 %2, 3
  %32 = icmp ult i64 %2, 4
  br i1 %32, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

33:                                               ; preds = %33, %.lr.ph.new
  %.034 = phi i64 [ 0, %.lr.ph.new ], [ %61, %33 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %33 ]
  %34 = load ptr, ptr %30, align 8, !tbaa !24
  %35 = getelementptr inbounds double, ptr %34, i64 %.034
  %36 = load double, ptr %35, align 8, !tbaa !26
  %37 = load ptr, ptr %31, align 8, !tbaa !24
  %38 = getelementptr double, ptr %37, i64 %29
  %39 = getelementptr double, ptr %38, i64 %.034
  store double %36, ptr %39, align 8, !tbaa !26
  %40 = or disjoint i64 %.034, 1
  %41 = load ptr, ptr %30, align 8, !tbaa !24
  %42 = getelementptr inbounds double, ptr %41, i64 %40
  %43 = load double, ptr %42, align 8, !tbaa !26
  %44 = load ptr, ptr %31, align 8, !tbaa !24
  %45 = getelementptr double, ptr %44, i64 %29
  %46 = getelementptr double, ptr %45, i64 %40
  store double %43, ptr %46, align 8, !tbaa !26
  %47 = or disjoint i64 %.034, 2
  %48 = load ptr, ptr %30, align 8, !tbaa !24
  %49 = getelementptr inbounds double, ptr %48, i64 %47
  %50 = load double, ptr %49, align 8, !tbaa !26
  %51 = load ptr, ptr %31, align 8, !tbaa !24
  %52 = getelementptr double, ptr %51, i64 %29
  %53 = getelementptr double, ptr %52, i64 %47
  store double %50, ptr %53, align 8, !tbaa !26
  %54 = or disjoint i64 %.034, 3
  %55 = load ptr, ptr %30, align 8, !tbaa !24
  %56 = getelementptr inbounds double, ptr %55, i64 %54
  %57 = load double, ptr %56, align 8, !tbaa !26
  %58 = load ptr, ptr %31, align 8, !tbaa !24
  %59 = getelementptr double, ptr %58, i64 %29
  %60 = getelementptr double, ptr %59, i64 %54
  store double %57, ptr %60, align 8, !tbaa !26
  %61 = add nuw nsw i64 %.034, 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 %33, !llvm.loop !27

._crit_edge.loopexit.unr-lcssa:                   ; preds = %33, %.lr.ph
  %.034.unr = phi i64 [ 0, %.lr.ph ], [ %61, %33 ]
  %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
  %.034.epil = phi i64 [ %68, %.epil.preheader ], [ %.034.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %62 = load ptr, ptr %30, align 8, !tbaa !24
  %63 = getelementptr inbounds double, ptr %62, i64 %.034.epil
  %64 = load double, ptr %63, align 8, !tbaa !26
  %65 = load ptr, ptr %31, align 8, !tbaa !24
  %66 = getelementptr double, ptr %65, i64 %29
  %67 = getelementptr double, ptr %66, i64 %.034.epil
  store double %64, ptr %67, align 8, !tbaa !26
  %68 = add nuw nsw i64 %.034.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 !29

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %4
  tail call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %3)
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

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


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