; 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.245 = external hidden unnamed_addr constant [34 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_impl9ssagetlrrEPNS_8ssamodelEPNS_9ae_vectorEPlPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %11)
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  store i64 0, ptr %12, align 8, !tbaa !9
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %13, i32 0, i32 4
  %15 = load i64, ptr %14, align 8, !tbaa !11
  %16 = icmp sgt i64 %15, 0
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef @.str.245, ptr noundef %17)
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %18, ptr noundef %19)
  br i1 %20, label %47, label %21

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

31:                                               ; preds = %43, %21
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = sub nsw i64 %34, 2
  %36 = icmp sle i64 %32, %35
  br i1 %36, label %37, label %46

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

43:                                               ; preds = %37
  %44 = load i64, ptr %9, align 8, !tbaa !9
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %9, align 8, !tbaa !9
  br label %31, !llvm.loop !26

46:                                               ; preds = %31
  store i32 1, ptr %10, align 4
  br label %82

47:                                               ; preds = %4
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %48, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %49)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %50, i32 0, i32 4
  %52 = load i64, ptr %51, align 8, !tbaa !11
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  store i64 %52, ptr %53, align 8, !tbaa !9
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = sub nsw i64 %56, 1
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %54, i64 noundef %57, ptr noundef %58)
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %78, %47
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = sub nsw i64 %62, 2
  %64 = icmp sle i64 %60, %63
  br i1 %64, label %65, label %81

65:                                               ; preds = %59
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %66, i32 0, i32 16
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !25
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  %76 = load i64, ptr %9, align 8, !tbaa !9
  %77 = getelementptr inbounds double, ptr %75, i64 %76
  store double %72, ptr %77, align 8, !tbaa !25
  br label %78

78:                                               ; preds = %65
  %79 = load i64, ptr %9, align 8, !tbaa !9
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr %9, align 8, !tbaa !9
  br label %59, !llvm.loop !28

81:                                               ; preds = %59
  store i32 0, ptr %10, align 4
  br label %82

82:                                               ; preds = %81, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %83 = load i32, ptr %10, align 4
  switch i32 %83, label %85 [
    i32 0, label %84
    i32 1, label %84
  ]

84:                                               ; preds = %82, %82
  ret void

85:                                               ; preds = %82
  unreachable
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #1

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr 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

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 = distinct !{!28, !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.245 = external hidden unnamed_addr constant [34 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_impl9ssagetlrrEPNS_8ssamodelEPNS_9ae_vectorEPlPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %1)
  store i64 0, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 144
  %6 = load i64, ptr %5, align 8, !tbaa !9
  %7 = icmp sgt i64 %6, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.245, ptr noundef %3)
  %8 = tail call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %0, ptr noundef %3)
  br i1 %8, label %30, label %9

9:                                                ; preds = %4
  %10 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %10, ptr %2, align 8, !tbaa !5
  %11 = add nsw i64 %10, -1
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %11, ptr noundef %3)
  %12 = load i64, ptr %2, align 8, !tbaa !5
  %.not31 = icmp slt i64 %12, 2
  br i1 %.not31, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %13 = getelementptr inbounds i8, ptr %1, i64 56
  %14 = add nsw i64 %12, -2
  %15 = add nsw i64 %12, -1
  %xtraiter = and i64 %15, 3
  %16 = icmp ult i64 %14, 3
  br i1 %16, label %.loopexit.loopexit40.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %15, -4
  br label %17

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

30:                                               ; preds = %4
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %3)
  %31 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %31, ptr %2, align 8, !tbaa !5
  %32 = add nsw i64 %31, -1
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %32, ptr noundef %3)
  %33 = load i64, ptr %2, align 8, !tbaa !5
  %.not2933 = icmp slt i64 %33, 2
  br i1 %.not2933, label %.loopexit, label %.lr.ph35

.lr.ph35:                                         ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 568
  %35 = getelementptr inbounds i8, ptr %1, i64 56
  %36 = add nsw i64 %33, -2
  %37 = add nsw i64 %33, -1
  %xtraiter42 = and i64 %37, 3
  %38 = icmp ult i64 %36, 3
  br i1 %38, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph35.new

.lr.ph35.new:                                     ; preds = %.lr.ph35
  %unroll_iter45 = and i64 %37, -4
  br label %39

39:                                               ; preds = %39, %.lr.ph35.new
  %.134 = phi i64 [ 0, %.lr.ph35.new ], [ %63, %39 ]
  %niter46 = phi i64 [ 0, %.lr.ph35.new ], [ %niter46.next.3, %39 ]
  %40 = load ptr, ptr %34, align 8, !tbaa !23
  %41 = getelementptr inbounds double, ptr %40, i64 %.134
  %42 = load double, ptr %41, align 8, !tbaa !24
  %43 = load ptr, ptr %35, align 8, !tbaa !23
  %44 = getelementptr inbounds double, ptr %43, i64 %.134
  store double %42, ptr %44, align 8, !tbaa !24
  %45 = or disjoint i64 %.134, 1
  %46 = load ptr, ptr %34, align 8, !tbaa !23
  %47 = getelementptr inbounds double, ptr %46, i64 %45
  %48 = load double, ptr %47, align 8, !tbaa !24
  %49 = load ptr, ptr %35, align 8, !tbaa !23
  %50 = getelementptr inbounds double, ptr %49, i64 %45
  store double %48, ptr %50, align 8, !tbaa !24
  %51 = or disjoint i64 %.134, 2
  %52 = load ptr, ptr %34, align 8, !tbaa !23
  %53 = getelementptr inbounds double, ptr %52, i64 %51
  %54 = load double, ptr %53, align 8, !tbaa !24
  %55 = load ptr, ptr %35, align 8, !tbaa !23
  %56 = getelementptr inbounds double, ptr %55, i64 %51
  store double %54, ptr %56, align 8, !tbaa !24
  %57 = or disjoint i64 %.134, 3
  %58 = load ptr, ptr %34, align 8, !tbaa !23
  %59 = getelementptr inbounds double, ptr %58, i64 %57
  %60 = load double, ptr %59, align 8, !tbaa !24
  %61 = load ptr, ptr %35, align 8, !tbaa !23
  %62 = getelementptr inbounds double, ptr %61, i64 %57
  store double %60, ptr %62, align 8, !tbaa !24
  %63 = add nuw i64 %.134, 4
  %niter46.next.3 = add i64 %niter46, 4
  %niter46.ncmp.3 = icmp eq i64 %niter46.next.3, %unroll_iter45
  br i1 %niter46.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %39, !llvm.loop !27

.loopexit.loopexit.unr-lcssa:                     ; preds = %39, %.lr.ph35
  %.134.unr = phi i64 [ 0, %.lr.ph35 ], [ %63, %39 ]
  %lcmp.mod44.not = icmp eq i64 %xtraiter42, 0
  br i1 %lcmp.mod44.not, label %.loopexit, label %.epil.preheader41

.epil.preheader41:                                ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader41
  %.134.epil = phi i64 [ %69, %.epil.preheader41 ], [ %.134.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter43 = phi i64 [ %epil.iter43.next, %.epil.preheader41 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %64 = load ptr, ptr %34, align 8, !tbaa !23
  %65 = getelementptr inbounds double, ptr %64, i64 %.134.epil
  %66 = load double, ptr %65, align 8, !tbaa !24
  %67 = load ptr, ptr %35, align 8, !tbaa !23
  %68 = getelementptr inbounds double, ptr %67, i64 %.134.epil
  store double %66, ptr %68, align 8, !tbaa !24
  %69 = add nuw i64 %.134.epil, 1
  %epil.iter43.next = add i64 %epil.iter43, 1
  %epil.iter43.cmp.not = icmp eq i64 %epil.iter43.next, %xtraiter42
  br i1 %epil.iter43.cmp.not, label %.loopexit, label %.epil.preheader41, !llvm.loop !28

.loopexit.loopexit40.unr-lcssa:                   ; preds = %17, %.lr.ph
  %.032.unr = phi i64 [ 0, %.lr.ph ], [ %29, %17 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit40.unr-lcssa, %.epil.preheader
  %.032.epil = phi i64 [ %72, %.epil.preheader ], [ %.032.unr, %.loopexit.loopexit40.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit40.unr-lcssa ]
  %70 = load ptr, ptr %13, align 8, !tbaa !23
  %71 = getelementptr inbounds double, ptr %70, i64 %.032.epil
  store double 0.000000e+00, ptr %71, align 8, !tbaa !24
  %72 = add nuw i64 %.032.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 %.loopexit, label %.epil.preheader, !llvm.loop !30

.loopexit:                                        ; preds = %.loopexit.loopexit40.unr-lcssa, %.epil.preheader, %.loopexit.loopexit.unr-lcssa, %.epil.preheader41, %9, %30
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(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

; 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

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 = !{!17, !17, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !29}


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