; 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.249 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.250 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.251 = external hidden unnamed_addr constant [50 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_impl18ssaanalyzesequenceEPNS_8ssamodelEPNS_9ae_vectorElS3_S3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %15 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %15)
  %16 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %16)
  %17 = load i64, ptr %9, align 8, !tbaa !9
  %18 = icmp sge i64 %17, 1
  %19 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef @.str.249, ptr noundef %19)
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = load i64, ptr %9, align 8, !tbaa !9
  %24 = icmp sge i64 %22, %23
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.250, ptr noundef %25)
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  %29 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %27, ptr noundef %28)
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.251, ptr noundef %30)
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %32, ptr noundef %33)
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load i64, ptr %9, align 8, !tbaa !9
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %35, ptr noundef %36)
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %37, ptr noundef %38)
  br i1 %39, label %40, label %46

40:                                               ; preds = %6
  %41 = load i64, ptr %9, align 8, !tbaa !9
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %42, i32 0, i32 4
  %44 = load i64, ptr %43, align 8, !tbaa !15
  %45 = icmp slt i64 %41, %44
  br i1 %45, label %46, label %73

46:                                               ; preds = %40, %6
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %69, %46
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = load i64, ptr %9, align 8, !tbaa !9
  %50 = sub nsw i64 %49, 1
  %51 = icmp sle i64 %48, %50
  br i1 %51, label %52, label %72

52:                                               ; preds = %47
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !25
  %56 = load i64, ptr %13, align 8, !tbaa !9
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  store double 0.000000e+00, ptr %57, align 8, !tbaa !26
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !25
  %61 = load i64, ptr %13, align 8, !tbaa !9
  %62 = getelementptr inbounds double, ptr %60, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !26
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %64, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !25
  %67 = load i64, ptr %13, align 8, !tbaa !9
  %68 = getelementptr inbounds double, ptr %66, i64 %67
  store double %63, ptr %68, align 8, !tbaa !26
  br label %69

69:                                               ; preds = %52
  %70 = load i64, ptr %13, align 8, !tbaa !9
  %71 = add nsw i64 %70, 1
  store i64 %71, ptr %13, align 8, !tbaa !9
  br label %47, !llvm.loop !27

72:                                               ; preds = %47
  store i32 1, ptr %14, align 4
  br label %82

73:                                               ; preds = %40
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %74, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %75)
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load i64, ptr %9, align 8, !tbaa !9
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL19ssa_analyzesequenceEPNS_8ssamodelEPNS_9ae_vectorEllS3_S3_lPNS_8ae_stateE(ptr noundef %76, ptr noundef %77, i64 noundef 0, i64 noundef %78, ptr noundef %79, ptr noundef %80, i64 noundef 0, ptr noundef %81)
  store i32 0, ptr %14, align 4
  br label %82

82:                                               ; preds = %73, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %83 = load i32, ptr %14, 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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL19ssa_analyzesequenceEPNS_8ssamodelEPNS_9ae_vectorEllS3_S3_lPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, i64 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 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, !10, i64 144}
!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 = !{!7, !7, i64 0}
!26 = !{!19, !19, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"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.249 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.250 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.251 = external hidden unnamed_addr constant [50 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_impl18ssaanalyzesequenceEPNS_8ssamodelEPNS_9ae_vectorElS3_S3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  %7 = icmp sgt i64 %2, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.249, ptr noundef %5)
  %8 = load i64, ptr %1, align 8, !tbaa !5
  %9 = icmp sge i64 %8, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.250, ptr noundef %5)
  %10 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.251, ptr noundef %5)
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %2, ptr noundef %5)
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %2, ptr noundef %5)
  %11 = tail call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %0, ptr noundef %5)
  br i1 %11, label %12, label %16

12:                                               ; preds = %6
  %13 = getelementptr inbounds i8, ptr %0, i64 144
  %14 = load i64, ptr %13, align 8, !tbaa !13
  %15 = icmp sgt i64 %14, %2
  br i1 %15, label %16, label %38

16:                                               ; preds = %12, %6
  br i1 %7, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %16
  %17 = getelementptr inbounds i8, ptr %3, i64 56
  %18 = getelementptr inbounds i8, ptr %1, i64 56
  %19 = getelementptr inbounds i8, ptr %4, i64 56
  %xtraiter = and i64 %2, 1
  %20 = icmp eq i64 %2, 1
  br i1 %20, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.new

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

21:                                               ; preds = %21, %.lr.ph.new
  %.039 = phi i64 [ 0, %.lr.ph.new ], [ %37, %21 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %21 ]
  %22 = load ptr, ptr %17, align 8, !tbaa !23
  %23 = getelementptr inbounds double, ptr %22, i64 %.039
  store double 0.000000e+00, ptr %23, align 8, !tbaa !24
  %24 = load ptr, ptr %18, align 8, !tbaa !23
  %25 = getelementptr inbounds double, ptr %24, i64 %.039
  %26 = load double, ptr %25, align 8, !tbaa !24
  %27 = load ptr, ptr %19, align 8, !tbaa !23
  %28 = getelementptr inbounds double, ptr %27, i64 %.039
  store double %26, ptr %28, align 8, !tbaa !24
  %29 = or disjoint i64 %.039, 1
  %30 = load ptr, ptr %17, align 8, !tbaa !23
  %31 = getelementptr inbounds double, ptr %30, i64 %29
  store double 0.000000e+00, ptr %31, align 8, !tbaa !24
  %32 = load ptr, ptr %18, align 8, !tbaa !23
  %33 = getelementptr inbounds double, ptr %32, i64 %29
  %34 = load double, ptr %33, align 8, !tbaa !24
  %35 = load ptr, ptr %19, align 8, !tbaa !23
  %36 = getelementptr inbounds double, ptr %35, i64 %29
  store double %34, ptr %36, align 8, !tbaa !24
  %37 = add nuw nsw i64 %.039, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %21, !llvm.loop !25

38:                                               ; preds = %12
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %5)
  tail call void @_ZN11alglib_implL19ssa_analyzesequenceEPNS_8ssamodelEPNS_9ae_vectorEllS3_S3_lPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %1, i64 noundef 0, i64 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef 0, ptr noundef %5)
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %21, %.lr.ph
  %.039.unr = phi i64 [ 0, %.lr.ph ], [ %37, %21 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %.loopexit.loopexit.unr-lcssa
  %39 = load ptr, ptr %17, align 8, !tbaa !23
  %40 = getelementptr inbounds double, ptr %39, i64 %.039.unr
  store double 0.000000e+00, ptr %40, align 8, !tbaa !24
  %41 = load ptr, ptr %18, align 8, !tbaa !23
  %42 = getelementptr inbounds double, ptr %41, i64 %.039.unr
  %43 = load double, ptr %42, align 8, !tbaa !24
  %44 = load ptr, ptr %19, align 8, !tbaa !23
  %45 = getelementptr inbounds double, ptr %44, i64 %.039.unr
  store double %43, ptr %45, align 8, !tbaa !24
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %16, %38
  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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL19ssa_analyzesequenceEPNS_8ssamodelEPNS_9ae_vectorEllS3_S3_lPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, i64 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, !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, !7, i64 144}
!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 = !{!8, !8, i64 0}
!24 = !{!17, !17, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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