; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/tbb (concurrent_vector)

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

%"class.tbb::internal::concurrent_vector_base_v3" = type { ptr, %"struct.tbb::atomic", %"struct.tbb::atomic", %"struct.tbb::atomic.0", [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"] }
%"struct.tbb::atomic" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic" }
%"struct.tbb::internal::atomic_impl_with_arithmetic" = type { %"struct.tbb::internal::atomic_impl" }
%"struct.tbb::internal::atomic_impl" = type { %"struct.tbb::internal::aligned_storage" }
%"struct.tbb::internal::aligned_storage" = type { i64 }
%"struct.tbb::atomic.0" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.1" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.1" = type { %"struct.tbb::internal::atomic_impl.2" }
%"struct.tbb::internal::atomic_impl.2" = type { %"struct.tbb::internal::aligned_storage.3" }
%"struct.tbb::internal::aligned_storage.3" = type { ptr }
%"class.tbb::internal::concurrent_vector_base_v3::segment_t" = type { %"struct.tbb::atomic.4" }
%"struct.tbb::atomic.4" = type { %"struct.tbb::internal::atomic_impl.5" }
%"struct.tbb::internal::atomic_impl.5" = type { %"struct.tbb::internal::aligned_storage.6" }
%"struct.tbb::internal::aligned_storage.6" = 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3tbb8internal25concurrent_vector_base_v313internal_swapERS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %12 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 2
  %13 = call noundef i64 @_ZNK3tbb8internal11atomic_implImE4loadILNS_16memory_semanticsE1EEEmv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  store i64 %13, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %14, i32 0, i32 2
  %16 = call noundef i64 @_ZNK3tbb8internal11atomic_implImE4loadILNS_16memory_semanticsE3EEEmv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  store i64 %16, ptr %6, align 8, !tbaa !9
  %17 = load i64, ptr %5, align 8, !tbaa !9
  %18 = icmp ne i64 %17, 0
  br i1 %18, label %23, label %19

19:                                               ; preds = %2
  %20 = load i64, ptr %6, align 8, !tbaa !9
  %21 = icmp ne i64 %20, 0
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  store i32 1, ptr %7, align 4
  br label %83

23:                                               ; preds = %19, %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  %24 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 3
  %25 = call noundef ptr @_ZNK3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE4loadILNS_16memory_semanticsE3EEES4_v(ptr noundef nonnull align 8 dereferenceable(8) %24)
  %26 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 4
  %27 = getelementptr inbounds [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"], ptr %26, i64 0, i64 0
  %28 = icmp eq ptr %25, %27
  %29 = zext i1 %28 to i8
  store i8 %29, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %30, i32 0, i32 3
  %32 = call noundef ptr @_ZNK3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE4loadILNS_16memory_semanticsE3EEES4_v(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %33, i32 0, i32 4
  %35 = getelementptr inbounds [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"], ptr %34, i64 0, i64 0
  %36 = icmp eq ptr %32, %35
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %38

38:                                               ; preds = %52, %23
  %39 = load i32, ptr %10, align 4, !tbaa !13
  %40 = icmp slt i32 %39, 3
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %55

42:                                               ; preds = %38
  %43 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 4
  %44 = load i32, ptr %10, align 4, !tbaa !13
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"], ptr %43, i64 0, i64 %45
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %47, i32 0, i32 4
  %49 = load i32, ptr %10, align 4, !tbaa !13
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"], ptr %48, i64 0, i64 %50
  call void @_ZN3tbb8internal4swapERNS0_25concurrent_vector_base_v39segment_tES3_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %51) #3
  br label %52

52:                                               ; preds = %42
  %53 = load i32, ptr %10, align 4, !tbaa !13
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %10, align 4, !tbaa !13
  br label %38, !llvm.loop !15

55:                                               ; preds = %41
  %56 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 1
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %57, i32 0, i32 1
  call void @_ZN3tbb8internal4swapILNS_16memory_semanticsE3EmEEvRNS_6atomicIT0_EES6_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %58)
  %59 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 3
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %60, i32 0, i32 3
  call void @_ZN3tbb8internal4swapILNS_16memory_semanticsE3EPNS0_25concurrent_vector_base_v39segment_tEEEvRNS_6atomicIT0_EES9_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %61)
  %62 = load i8, ptr %8, align 1, !tbaa !11, !range !17, !noundef !18
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %70

64:                                               ; preds = %55
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %65, i32 0, i32 3
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %67, i32 0, i32 4
  %69 = getelementptr inbounds [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"], ptr %68, i64 0, i64 0
  call void @_ZN3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE5storeILNS_16memory_semanticsE3EEEvS4_(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef %69)
  br label %70

70:                                               ; preds = %64, %55
  %71 = load i8, ptr %9, align 1, !tbaa !11, !range !17, !noundef !18
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %77

73:                                               ; preds = %70
  %74 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 3
  %75 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 4
  %76 = getelementptr inbounds [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"], ptr %75, i64 0, i64 0
  call void @_ZN3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE5storeILNS_16memory_semanticsE3EEEvS4_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef %76)
  br label %77

77:                                               ; preds = %73, %70
  %78 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %11, i32 0, i32 2
  %79 = load i64, ptr %6, align 8, !tbaa !9
  call void @_ZN3tbb8internal11atomic_implImE5storeILNS_16memory_semanticsE3EEEvm(ptr noundef nonnull align 8 dereferenceable(8) %78, i64 noundef %79)
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.tbb::internal::concurrent_vector_base_v3", ptr %80, i32 0, i32 2
  %82 = load i64, ptr %5, align 8, !tbaa !9
  call void @_ZN3tbb8internal11atomic_implImE5storeILNS_16memory_semanticsE2EEEvm(ptr noundef nonnull align 8 dereferenceable(8) %81, i64 noundef %82)
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  store i32 0, ptr %7, align 4
  br label %83

83:                                               ; preds = %77, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %84 = load i32, ptr %7, align 4
  switch i32 %84, label %86 [
    i32 0, label %85
    i32 1, label %85
  ]

85:                                               ; preds = %83, %83
  ret void

86:                                               ; preds = %83
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3tbb8internal11atomic_implImE4loadILNS_16memory_semanticsE1EEEmv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3tbb8internal11atomic_implImE4loadILNS_16memory_semanticsE3EEEmv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE4loadILNS_16memory_semanticsE3EEES4_v(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb8internal4swapERNS0_25concurrent_vector_base_v39segment_tES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal4swapILNS_16memory_semanticsE3EmEEvRNS_6atomicIT0_EES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal4swapILNS_16memory_semanticsE3EPNS0_25concurrent_vector_base_v39segment_tEEEvRNS_6atomicIT0_EES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE5storeILNS_16memory_semanticsE3EEEvS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal11atomic_implImE5storeILNS_16memory_semanticsE3EEEvm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal11atomic_implImE5storeILNS_16memory_semanticsE2EEEvm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i8 0, i8 2}
!18 = !{}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3tbb8internal25concurrent_vector_base_v313internal_swapERS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = tail call noundef i64 @_ZNK3tbb8internal11atomic_implImE4loadILNS_16memory_semanticsE1EEEmv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = tail call noundef i64 @_ZNK3tbb8internal11atomic_implImE4loadILNS_16memory_semanticsE3EEEmv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %7 = or i64 %6, %4
  %or.cond.not = icmp eq i64 %7, 0
  br i1 %or.cond.not, label %27, label %8

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = tail call noundef ptr @_ZNK3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE4loadILNS_16memory_semanticsE3EEES4_v(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = getelementptr inbounds i8, ptr %1, i64 24
  %13 = tail call noundef ptr @_ZNK3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE4loadILNS_16memory_semanticsE3EEES4_v(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %14 = getelementptr inbounds i8, ptr %1, i64 32
  tail call void @_ZN3tbb8internal4swapERNS0_25concurrent_vector_base_v39segment_tES3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %14) #2
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = getelementptr inbounds i8, ptr %1, i64 40
  tail call void @_ZN3tbb8internal4swapERNS0_25concurrent_vector_base_v39segment_tES3_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #2
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %18 = getelementptr inbounds i8, ptr %1, i64 48
  tail call void @_ZN3tbb8internal4swapERNS0_25concurrent_vector_base_v39segment_tES3_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #2
  %19 = icmp eq ptr %10, %11
  %20 = icmp eq ptr %13, %14
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  tail call void @_ZN3tbb8internal4swapILNS_16memory_semanticsE3EmEEvRNS_6atomicIT0_EES6_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
  tail call void @_ZN3tbb8internal4swapILNS_16memory_semanticsE3EPNS0_25concurrent_vector_base_v39segment_tEEEvRNS_6atomicIT0_EES9_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %12)
  br i1 %19, label %23, label %24

23:                                               ; preds = %8
  tail call void @_ZN3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE5storeILNS_16memory_semanticsE3EEEvS4_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %14)
  br label %24

24:                                               ; preds = %23, %8
  br i1 %20, label %25, label %26

25:                                               ; preds = %24
  tail call void @_ZN3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE5storeILNS_16memory_semanticsE3EEEvS4_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %11)
  br label %26

26:                                               ; preds = %25, %24
  tail call void @_ZN3tbb8internal11atomic_implImE5storeILNS_16memory_semanticsE3EEEvm(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %6)
  tail call void @_ZN3tbb8internal11atomic_implImE5storeILNS_16memory_semanticsE2EEEvm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %4)
  br label %27

27:                                               ; preds = %2, %26
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3tbb8internal11atomic_implImE4loadILNS_16memory_semanticsE1EEEmv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3tbb8internal11atomic_implImE4loadILNS_16memory_semanticsE3EEEmv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE4loadILNS_16memory_semanticsE3EEES4_v(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb8internal4swapERNS0_25concurrent_vector_base_v39segment_tES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal4swapILNS_16memory_semanticsE3EmEEvRNS_6atomicIT0_EES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal4swapILNS_16memory_semanticsE3EPNS0_25concurrent_vector_base_v39segment_tEEEvRNS_6atomicIT0_EES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal11atomic_implIPNS0_25concurrent_vector_base_v39segment_tEE5storeILNS_16memory_semanticsE3EEEvS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal11atomic_implImE5storeILNS_16memory_semanticsE3EEEvm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal11atomic_implImE5storeILNS_16memory_semanticsE2EEEvm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { inlinehint 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 #2 = { 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)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass