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

77:                                               ; preds = %97, %5
  %78 = load i64, ptr %11, align 8, !tbaa !9
  %79 = load i64, ptr %8, align 8, !tbaa !9
  %80 = sub nsw i64 %79, 1
  %81 = icmp sle i64 %78, %80
  br i1 %81, label %82, label %100

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

97:                                               ; preds = %82
  %98 = load i64, ptr %11, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %11, align 8, !tbaa !9
  br label %77, !llvm.loop !27

100:                                              ; preds = %77
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %102, ptr noundef %103)
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %104, ptr noundef %105)
  br i1 %106, label %110, label %107

107:                                              ; preds = %100
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %108, i32 0, i32 12
  store i8 0, ptr %109, align 8, !tbaa !29
  store i32 1, ptr %13, align 4
  br label %135

110:                                              ; preds = %100
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %111, i32 0, i32 12
  %113 = load i8, ptr %112, align 8, !tbaa !29, !range !30, !noundef !31
  %114 = trunc i8 %113 to i1
  br i1 %114, label %118, label %115

115:                                              ; preds = %110
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %116, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %117)
  store i32 1, ptr %13, align 4
  br label %135

118:                                              ; preds = %110
  %119 = load i64, ptr %8, align 8, !tbaa !9
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %120, i32 0, i32 4
  %122 = load i64, ptr %121, align 8, !tbaa !32
  %123 = icmp sge i64 %119, %122
  br i1 %123, label %124, label %134

124:                                              ; preds = %118
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = load i64, ptr %8, align 8, !tbaa !9
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %127, i32 0, i32 4
  %129 = load i64, ptr %128, align 8, !tbaa !32
  %130 = sub nsw i64 %126, %129
  %131 = add nsw i64 %130, 1
  %132 = load double, ptr %9, align 8, !tbaa !11
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %125, i64 noundef %131, double noundef %132, ptr noundef %133)
  br label %134

134:                                              ; preds = %124, %118
  store i32 0, ptr %13, align 4
  br label %135

135:                                              ; preds = %134, %115, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %136 = load i32, ptr %13, align 4
  switch i32 %136, label %138 [
    i32 0, label %137
    i32 1, label %137
  ]

137:                                              ; preds = %135, %135
  ret void

138:                                              ; preds = %135
  unreachable
}

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

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


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

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

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %5
  tail call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %4)
  %69 = tail call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %4)
  %70 = getelementptr inbounds i8, ptr %0, i64 280
  br i1 %69, label %72, label %71

71:                                               ; preds = %._crit_edge
  store i8 0, ptr %70, align 8, !tbaa !30
  br label %82

72:                                               ; preds = %._crit_edge
  %73 = load i8, ptr %70, align 8, !tbaa !30, !range !31, !noundef !32
  %74 = trunc nuw i8 %73 to i1
  br i1 %74, label %76, label %75

75:                                               ; preds = %72
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %4)
  br label %82

76:                                               ; preds = %72
  %77 = getelementptr inbounds i8, ptr %0, i64 144
  %78 = load i64, ptr %77, align 8, !tbaa !33
  %.not = icmp sgt i64 %78, %2
  br i1 %.not, label %82, label %79

79:                                               ; preds = %76
  %80 = add i64 %2, 1
  %81 = sub i64 %80, %78
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %81, double noundef %3, ptr noundef %4)
  br label %82

82:                                               ; preds = %76, %79, %75, %71
  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

; 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, !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 0}
!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 = !{!7, !7, i64 0}
!25 = !{!17, !17, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = !{!14, !10, i64 280}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!14, !7, i64 144}


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