; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (linalg)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; 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_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl27_sluv2sparsetrail_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  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
  %11 = zext i1 %3 to i8
  store i8 %11, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %12, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %13, ptr %10, align 8, !tbaa !5
  %14 = load ptr, ptr %10, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %14, i32 0, i32 0
  %16 = load i64, ptr %15, align 8, !tbaa !11
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %17, i32 0, i32 0
  store i64 %16, ptr %18, align 8, !tbaa !11
  %19 = load ptr, ptr %10, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %19, i32 0, i32 1
  %21 = load i64, ptr %20, align 8, !tbaa !16
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %22, i32 0, i32 1
  store i64 %21, ptr %23, align 8, !tbaa !16
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %24, i32 0, i32 2
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %30 = trunc i8 %29 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %25, ptr noundef %27, ptr noundef %28, i1 noundef zeroext %30)
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %31, i32 0, i32 3
  %33 = load i64, ptr %32, align 8, !tbaa !19
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %34, i32 0, i32 3
  store i64 %33, ptr %35, align 8, !tbaa !19
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %36, i32 0, i32 4
  %38 = load i64, ptr %37, align 8, !tbaa !20
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %39, i32 0, i32 4
  store i64 %38, ptr %40, align 8, !tbaa !20
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %41, i32 0, i32 5
  %43 = load i64, ptr %42, align 8, !tbaa !21
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %44, i32 0, i32 5
  store i64 %43, ptr %45, align 8, !tbaa !21
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %46, i32 0, i32 6
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %48, i32 0, i32 6
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %52 = trunc i8 %51 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %47, ptr noundef %49, ptr noundef %50, i1 noundef zeroext %52)
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %53, i32 0, i32 7
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %55, i32 0, i32 7
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %59 = trunc i8 %58 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %54, ptr noundef %56, ptr noundef %57, i1 noundef zeroext %59)
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %60, i32 0, i32 8
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %62, i32 0, i32 8
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %66 = trunc i8 %65 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %61, ptr noundef %63, ptr noundef %64, i1 noundef zeroext %66)
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %67, i32 0, i32 9
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %69, i32 0, i32 9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %73 = trunc i8 %72 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %68, ptr noundef %70, ptr noundef %71, i1 noundef zeroext %73)
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %74, i32 0, i32 10
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %76, i32 0, i32 10
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %80 = trunc i8 %79 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %75, ptr noundef %77, ptr noundef %78, i1 noundef zeroext %80)
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %81, i32 0, i32 11
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %83, i32 0, i32 11
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %87 = trunc i8 %86 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %82, ptr noundef %84, ptr noundef %85, i1 noundef zeroext %87)
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %88, i32 0, i32 12
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %90, i32 0, i32 12
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %94 = trunc i8 %93 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %89, ptr noundef %91, ptr noundef %92, i1 noundef zeroext %94)
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %95, i32 0, i32 13
  %97 = load i64, ptr %96, align 8, !tbaa !22
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %98, i32 0, i32 13
  store i64 %97, ptr %99, align 8, !tbaa !22
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %100, i32 0, i32 14
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::sluv2sparsetrail", ptr %102, i32 0, i32 14
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load i8, ptr %8, align 1, !tbaa !9, !range !17, !noundef !18
  %106 = trunc i8 %105 to i1
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %101, ptr noundef %103, ptr noundef %104, i1 noundef zeroext %106)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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 = !{!"bool", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !13, i64 0, !13, i64 8, !14, i64 16, !13, i64 80, !13, i64 88, !13, i64 96, !14, i64 104, !14, i64 168, !14, i64 232, !14, i64 296, !14, i64 360, !14, i64 424, !14, i64 488, !13, i64 552, !14, i64 560}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !10, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!12, !13, i64 8}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!12, !13, i64 80}
!20 = !{!12, !13, i64 88}
!21 = !{!12, !13, i64 96}
!22 = !{!12, !13, i64 552}


; 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"

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl27_sluv2sparsetrail_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #1 {
  %5 = load <2 x i64>, ptr %1, align 8, !tbaa !5
  store <2 x i64> %5, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = getelementptr inbounds i8, ptr %1, i64 16
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %2, i1 noundef zeroext %3)
  %8 = getelementptr inbounds i8, ptr %1, i64 80
  %9 = getelementptr inbounds i8, ptr %0, i64 80
  %10 = load <2 x i64>, ptr %8, align 8, !tbaa !5
  store <2 x i64> %10, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 96
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 %12, ptr %13, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  %15 = getelementptr inbounds i8, ptr %1, i64 104
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %2, i1 noundef zeroext %3)
  %16 = getelementptr inbounds i8, ptr %0, i64 168
  %17 = getelementptr inbounds i8, ptr %1, i64 168
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %2, i1 noundef zeroext %3)
  %18 = getelementptr inbounds i8, ptr %0, i64 232
  %19 = getelementptr inbounds i8, ptr %1, i64 232
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef %2, i1 noundef zeroext %3)
  %20 = getelementptr inbounds i8, ptr %0, i64 296
  %21 = getelementptr inbounds i8, ptr %1, i64 296
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef %2, i1 noundef zeroext %3)
  %22 = getelementptr inbounds i8, ptr %0, i64 360
  %23 = getelementptr inbounds i8, ptr %1, i64 360
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef %2, i1 noundef zeroext %3)
  %24 = getelementptr inbounds i8, ptr %0, i64 424
  %25 = getelementptr inbounds i8, ptr %1, i64 424
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef %2, i1 noundef zeroext %3)
  %26 = getelementptr inbounds i8, ptr %0, i64 488
  %27 = getelementptr inbounds i8, ptr %1, i64 488
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %2, i1 noundef zeroext %3)
  %28 = getelementptr inbounds i8, ptr %1, i64 552
  %29 = load i64, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %0, i64 552
  store i64 %29, ptr %30, align 8, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %0, i64 560
  %32 = getelementptr inbounds i8, ptr %1, i64 560
  tail call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef %2, i1 noundef zeroext %3)
  ret void
}

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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 96}
!10 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 168, !11, i64 232, !11, i64 296, !11, i64 360, !11, i64 424, !11, i64 488, !6, i64 552, !11, i64 560}
!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 = !{!10, !6, i64 552}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass