; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/old/test_concurrent_vector_v2.ll (Z8TestSortv)

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

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [12 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

; 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
declare dso_local void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.tbb::internal::vector_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8TestSortv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.tbb::concurrent_vector.8", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.tbb::internal::vector_iterator", align 8
  %8 = alloca %"class.tbb::internal::vector_iterator", align 8
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %73, %0
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = icmp slt i32 %11, 100
  br i1 %12, label %14, label %13

13:                                               ; preds = %10
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %77

14:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  call void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = invoke noundef i64 @_ZN3tbb17concurrent_vectorIiE7grow_byEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %16)
          to label %18 unwind label %24

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %37, %18
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %28, label %23

23:                                               ; preds = %19
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %44

24:                                               ; preds = %46, %45, %44, %14
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %4, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %5, align 4
  br label %76

28:                                               ; preds = %19
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = mul nsw i32 %29, 7
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = srem i32 %30, %31
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %34)
          to label %36 unwind label %40

36:                                               ; preds = %28
  store i32 %32, ptr %35, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %6, align 4, !tbaa !5
  br label %19, !llvm.loop !9

40:                                               ; preds = %28
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %4, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %76

44:                                               ; preds = %23
  invoke void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind writable sret(%"class.tbb::internal::vector_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %45 unwind label %24

45:                                               ; preds = %44
  invoke void @_ZN3tbb17concurrent_vectorIiE3endEv(ptr dead_on_unwind writable sret(%"class.tbb::internal::vector_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %46 unwind label %24

46:                                               ; preds = %45
  invoke void @_ZSt4sortIN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEEEvT_S6_(ptr noundef %7, ptr noundef %8)
          to label %47 unwind label %24

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %65, %47
  %49 = load i32, ptr %9, align 4, !tbaa !5
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %72

53:                                               ; preds = %48
  %54 = load i32, ptr %9, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %55)
          to label %57 unwind label %68

57:                                               ; preds = %53
  %58 = load i32, ptr %56, align 4, !tbaa !5
  %59 = load i32, ptr %9, align 4, !tbaa !5
  %60 = icmp eq i32 %58, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %57
  br label %64

62:                                               ; preds = %57
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 528, ptr noundef @.str.42, ptr noundef null)
          to label %63 unwind label %68

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63, %61
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %9, align 4, !tbaa !5
  br label %48, !llvm.loop !11

68:                                               ; preds = %62, %53
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %4, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %76

72:                                               ; preds = %52
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = mul nsw i32 %74, 3
  store i32 %75, ptr %1, align 4, !tbaa !5
  br label %10, !llvm.loop !12

76:                                               ; preds = %68, %40, %24
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %78

77:                                               ; preds = %13
  ret void

78:                                               ; preds = %76
  %79 = load ptr, ptr %4, align 8
  %80 = load i32, ptr %5, align 4
  %81 = insertvalue { ptr, i32 } poison, ptr %79, 0
  %82 = insertvalue { ptr, i32 } %81, i32 %80, 1
  resume { ptr, i32 } %82
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEEEvT_S6_(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb17concurrent_vectorIiE3endEv(ptr dead_on_unwind noalias writable sret(%"class.tbb::internal::vector_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #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 = { 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 = { inlinehint 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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

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

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.tbb::internal::vector_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8TestSortv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.tbb::concurrent_vector.8", align 8
  %2 = alloca %"class.tbb::internal::vector_iterator", align 8
  %3 = alloca %"class.tbb::internal::vector_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #4
  call void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %4 = invoke noundef i64 @_ZN3tbb17concurrent_vectorIiE7grow_byEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
          to label %.preheader20.preheader unwind label %6

.preheader20.preheader:                           ; preds = %0
  %5 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
          to label %8 unwind label %.loopexit

6:                                                ; preds = %140, %139, %138, %131, %123, %122, %121, %92, %46, %45, %44, %33, %17, %16, %15, %153, %10, %9, %8, %0
  %7 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

8:                                                ; preds = %.preheader20.preheader
  store i32 0, ptr %5, align 4, !tbaa !5
  invoke void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %9 unwind label %6

.loopexit:                                        ; preds = %.preheader20.preheader
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.preheader20.1.2, %.preheader20.1.1, %.preheader20.preheader.1
  %lpad.loopexit35 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.preheader20.2.8, %.preheader20.2.7, %.preheader20.2.6, %.preheader20.2.5, %.preheader20.2.4, %.preheader20.2.3, %.preheader20.2.2, %.preheader20.2.1, %.preheader20.preheader.2
  %lpad.loopexit40 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.preheader20.3.26, %.preheader20.3.25, %.preheader20.3.24, %.preheader20.3.23, %.preheader20.3.22, %.preheader20.3.21, %.preheader20.3.20, %.preheader20.3.19, %.preheader20.3.18, %.preheader20.3.17, %.preheader20.3.16, %.preheader20.3.15, %.preheader20.3.14, %.preheader20.3.13, %.preheader20.3.12, %.preheader20.3.11, %.preheader20.3.10, %.preheader20.3.9, %.preheader20.3.8, %.preheader20.3.7, %.preheader20.3.6, %.preheader20.3.5, %.preheader20.3.4, %.preheader20.3.3, %.preheader20.3.2, %.preheader20.3.1, %.preheader20.preheader.3
  %lpad.loopexit46 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %.preheader20.4
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

9:                                                ; preds = %8
  invoke void @_ZN3tbb17concurrent_vectorIiE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %10 unwind label %6

10:                                               ; preds = %9
  invoke void @_ZSt4sortIN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEEEvT_S6_(ptr noundef nonnull %2, ptr noundef nonnull %3)
          to label %.preheader.preheader unwind label %6

.preheader.preheader:                             ; preds = %10
  %11 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
          to label %149 unwind label %.loopexit30

.preheader20.preheader.1:                         ; preds = %153
  %12 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
          to label %.preheader20.1.1 unwind label %.loopexit.split-lp.loopexit

.preheader20.1.1:                                 ; preds = %.preheader20.preheader.1
  store i32 0, ptr %12, align 4, !tbaa !5
  %13 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
          to label %.preheader20.1.2 unwind label %.loopexit.split-lp.loopexit

.preheader20.1.2:                                 ; preds = %.preheader20.1.1
  store i32 1, ptr %13, align 4, !tbaa !5
  %14 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
          to label %15 unwind label %.loopexit.split-lp.loopexit

15:                                               ; preds = %.preheader20.1.2
  store i32 2, ptr %14, align 4, !tbaa !5
  invoke void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %16 unwind label %6

16:                                               ; preds = %15
  invoke void @_ZN3tbb17concurrent_vectorIiE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %17 unwind label %6

17:                                               ; preds = %16
  invoke void @_ZSt4sortIN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEEEvT_S6_(ptr noundef nonnull %2, ptr noundef nonnull %3)
          to label %.preheader.preheader.1 unwind label %6

.preheader.preheader.1:                           ; preds = %17
  %18 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
          to label %19 unwind label %.loopexit.split-lp31.loopexit

19:                                               ; preds = %.preheader.preheader.1
  %20 = load i32, ptr %18, align 4, !tbaa !5
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %.preheader.1.1, label %22

22:                                               ; preds = %19
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.1.1 unwind label %.loopexit.split-lp31.loopexit

.preheader.1.1:                                   ; preds = %22, %19
  %23 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
          to label %24 unwind label %.loopexit.split-lp31.loopexit

24:                                               ; preds = %.preheader.1.1
  %25 = load i32, ptr %23, align 4, !tbaa !5
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %.preheader.1.2, label %27

27:                                               ; preds = %24
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.1.2 unwind label %.loopexit.split-lp31.loopexit

.preheader.1.2:                                   ; preds = %27, %24
  %28 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
          to label %29 unwind label %.loopexit.split-lp31.loopexit

29:                                               ; preds = %.preheader.1.2
  %30 = load i32, ptr %28, align 4, !tbaa !5
  %31 = icmp eq i32 %30, 2
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %33 unwind label %.loopexit.split-lp31.loopexit

33:                                               ; preds = %32, %29
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #4
  call void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %34 = invoke noundef i64 @_ZN3tbb17concurrent_vectorIiE7grow_byEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
          to label %.preheader20.preheader.2 unwind label %6

.preheader20.preheader.2:                         ; preds = %33
  %35 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
          to label %.preheader20.2.1 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.2.1:                                 ; preds = %.preheader20.preheader.2
  store i32 0, ptr %35, align 4, !tbaa !5
  %36 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
          to label %.preheader20.2.2 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.2.2:                                 ; preds = %.preheader20.2.1
  store i32 7, ptr %36, align 4, !tbaa !5
  %37 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
          to label %.preheader20.2.3 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.2.3:                                 ; preds = %.preheader20.2.2
  store i32 5, ptr %37, align 4, !tbaa !5
  %38 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
          to label %.preheader20.2.4 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.2.4:                                 ; preds = %.preheader20.2.3
  store i32 3, ptr %38, align 4, !tbaa !5
  %39 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
          to label %.preheader20.2.5 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.2.5:                                 ; preds = %.preheader20.2.4
  store i32 1, ptr %39, align 4, !tbaa !5
  %40 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
          to label %.preheader20.2.6 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.2.6:                                 ; preds = %.preheader20.2.5
  store i32 8, ptr %40, align 4, !tbaa !5
  %41 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
          to label %.preheader20.2.7 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.2.7:                                 ; preds = %.preheader20.2.6
  store i32 6, ptr %41, align 4, !tbaa !5
  %42 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
          to label %.preheader20.2.8 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.2.8:                                 ; preds = %.preheader20.2.7
  store i32 4, ptr %42, align 4, !tbaa !5
  %43 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
          to label %44 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

44:                                               ; preds = %.preheader20.2.8
  store i32 2, ptr %43, align 4, !tbaa !5
  invoke void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %45 unwind label %6

45:                                               ; preds = %44
  invoke void @_ZN3tbb17concurrent_vectorIiE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %46 unwind label %6

46:                                               ; preds = %45
  invoke void @_ZSt4sortIN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEEEvT_S6_(ptr noundef nonnull %2, ptr noundef nonnull %3)
          to label %.preheader.preheader.2 unwind label %6

.preheader.preheader.2:                           ; preds = %46
  %47 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
          to label %48 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

48:                                               ; preds = %.preheader.preheader.2
  %49 = load i32, ptr %47, align 4, !tbaa !5
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %.preheader.2.1, label %51

51:                                               ; preds = %48
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.2.1 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

.preheader.2.1:                                   ; preds = %51, %48
  %52 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
          to label %53 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

53:                                               ; preds = %.preheader.2.1
  %54 = load i32, ptr %52, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %.preheader.2.2, label %56

56:                                               ; preds = %53
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.2.2 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

.preheader.2.2:                                   ; preds = %56, %53
  %57 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
          to label %58 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

58:                                               ; preds = %.preheader.2.2
  %59 = load i32, ptr %57, align 4, !tbaa !5
  %60 = icmp eq i32 %59, 2
  br i1 %60, label %.preheader.2.3, label %61

61:                                               ; preds = %58
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.2.3 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

.preheader.2.3:                                   ; preds = %61, %58
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
          to label %63 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

63:                                               ; preds = %.preheader.2.3
  %64 = load i32, ptr %62, align 4, !tbaa !5
  %65 = icmp eq i32 %64, 3
  br i1 %65, label %.preheader.2.4, label %66

66:                                               ; preds = %63
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.2.4 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

.preheader.2.4:                                   ; preds = %66, %63
  %67 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
          to label %68 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

68:                                               ; preds = %.preheader.2.4
  %69 = load i32, ptr %67, align 4, !tbaa !5
  %70 = icmp eq i32 %69, 4
  br i1 %70, label %.preheader.2.5, label %71

71:                                               ; preds = %68
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.2.5 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

.preheader.2.5:                                   ; preds = %71, %68
  %72 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
          to label %73 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

73:                                               ; preds = %.preheader.2.5
  %74 = load i32, ptr %72, align 4, !tbaa !5
  %75 = icmp eq i32 %74, 5
  br i1 %75, label %.preheader.2.6, label %76

76:                                               ; preds = %73
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.2.6 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

.preheader.2.6:                                   ; preds = %76, %73
  %77 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
          to label %78 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

78:                                               ; preds = %.preheader.2.6
  %79 = load i32, ptr %77, align 4, !tbaa !5
  %80 = icmp eq i32 %79, 6
  br i1 %80, label %.preheader.2.7, label %81

81:                                               ; preds = %78
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.2.7 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

.preheader.2.7:                                   ; preds = %81, %78
  %82 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
          to label %83 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

83:                                               ; preds = %.preheader.2.7
  %84 = load i32, ptr %82, align 4, !tbaa !5
  %85 = icmp eq i32 %84, 7
  br i1 %85, label %.preheader.2.8, label %86

86:                                               ; preds = %83
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %.preheader.2.8 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

.preheader.2.8:                                   ; preds = %86, %83
  %87 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
          to label %88 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

88:                                               ; preds = %.preheader.2.8
  %89 = load i32, ptr %87, align 4, !tbaa !5
  %90 = icmp eq i32 %89, 8
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %92 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit

92:                                               ; preds = %91, %88
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #4
  call void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %93 = invoke noundef i64 @_ZN3tbb17concurrent_vectorIiE7grow_byEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 27)
          to label %.preheader20.preheader.3 unwind label %6

.preheader20.preheader.3:                         ; preds = %92
  %94 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
          to label %.preheader20.3.1 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.1:                                 ; preds = %.preheader20.preheader.3
  store i32 0, ptr %94, align 4, !tbaa !5
  %95 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
          to label %.preheader20.3.2 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.2:                                 ; preds = %.preheader20.3.1
  store i32 7, ptr %95, align 4, !tbaa !5
  %96 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
          to label %.preheader20.3.3 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.3:                                 ; preds = %.preheader20.3.2
  store i32 14, ptr %96, align 4, !tbaa !5
  %97 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
          to label %.preheader20.3.4 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.4:                                 ; preds = %.preheader20.3.3
  store i32 21, ptr %97, align 4, !tbaa !5
  %98 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
          to label %.preheader20.3.5 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.5:                                 ; preds = %.preheader20.3.4
  store i32 1, ptr %98, align 4, !tbaa !5
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
          to label %.preheader20.3.6 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.6:                                 ; preds = %.preheader20.3.5
  store i32 8, ptr %99, align 4, !tbaa !5
  %100 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
          to label %.preheader20.3.7 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.7:                                 ; preds = %.preheader20.3.6
  store i32 15, ptr %100, align 4, !tbaa !5
  %101 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
          to label %.preheader20.3.8 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.8:                                 ; preds = %.preheader20.3.7
  store i32 22, ptr %101, align 4, !tbaa !5
  %102 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
          to label %.preheader20.3.9 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.9:                                 ; preds = %.preheader20.3.8
  store i32 2, ptr %102, align 4, !tbaa !5
  %103 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
          to label %.preheader20.3.10 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.10:                                ; preds = %.preheader20.3.9
  store i32 9, ptr %103, align 4, !tbaa !5
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 10)
          to label %.preheader20.3.11 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.11:                                ; preds = %.preheader20.3.10
  store i32 16, ptr %104, align 4, !tbaa !5
  %105 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 11)
          to label %.preheader20.3.12 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.12:                                ; preds = %.preheader20.3.11
  store i32 23, ptr %105, align 4, !tbaa !5
  %106 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 12)
          to label %.preheader20.3.13 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.13:                                ; preds = %.preheader20.3.12
  store i32 3, ptr %106, align 4, !tbaa !5
  %107 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 13)
          to label %.preheader20.3.14 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.14:                                ; preds = %.preheader20.3.13
  store i32 10, ptr %107, align 4, !tbaa !5
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 14)
          to label %.preheader20.3.15 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.15:                                ; preds = %.preheader20.3.14
  store i32 17, ptr %108, align 4, !tbaa !5
  %109 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 15)
          to label %.preheader20.3.16 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.16:                                ; preds = %.preheader20.3.15
  store i32 24, ptr %109, align 4, !tbaa !5
  %110 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 16)
          to label %.preheader20.3.17 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.17:                                ; preds = %.preheader20.3.16
  store i32 4, ptr %110, align 4, !tbaa !5
  %111 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 17)
          to label %.preheader20.3.18 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.18:                                ; preds = %.preheader20.3.17
  store i32 11, ptr %111, align 4, !tbaa !5
  %112 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 18)
          to label %.preheader20.3.19 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.19:                                ; preds = %.preheader20.3.18
  store i32 18, ptr %112, align 4, !tbaa !5
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 19)
          to label %.preheader20.3.20 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.20:                                ; preds = %.preheader20.3.19
  store i32 25, ptr %113, align 4, !tbaa !5
  %114 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 20)
          to label %.preheader20.3.21 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.21:                                ; preds = %.preheader20.3.20
  store i32 5, ptr %114, align 4, !tbaa !5
  %115 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 21)
          to label %.preheader20.3.22 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.22:                                ; preds = %.preheader20.3.21
  store i32 12, ptr %115, align 4, !tbaa !5
  %116 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 22)
          to label %.preheader20.3.23 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.23:                                ; preds = %.preheader20.3.22
  store i32 19, ptr %116, align 4, !tbaa !5
  %117 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 23)
          to label %.preheader20.3.24 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.24:                                ; preds = %.preheader20.3.23
  store i32 26, ptr %117, align 4, !tbaa !5
  %118 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 24)
          to label %.preheader20.3.25 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.25:                                ; preds = %.preheader20.3.24
  store i32 6, ptr %118, align 4, !tbaa !5
  %119 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 25)
          to label %.preheader20.3.26 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader20.3.26:                                ; preds = %.preheader20.3.25
  store i32 13, ptr %119, align 4, !tbaa !5
  %120 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 26)
          to label %121 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

121:                                              ; preds = %.preheader20.3.26
  store i32 20, ptr %120, align 4, !tbaa !5
  invoke void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %122 unwind label %6

122:                                              ; preds = %121
  invoke void @_ZN3tbb17concurrent_vectorIiE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %123 unwind label %6

123:                                              ; preds = %122
  invoke void @_ZSt4sortIN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEEEvT_S6_(ptr noundef nonnull %2, ptr noundef nonnull %3)
          to label %.preheader.3 unwind label %6

.preheader.3:                                     ; preds = %123, %130
  %indvars.iv25.3 = phi i64 [ %indvars.iv.next26.3, %130 ], [ 0, %123 ]
  %124 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv25.3)
          to label %125 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit

125:                                              ; preds = %.preheader.3
  %126 = load i32, ptr %124, align 4, !tbaa !5
  %127 = zext i32 %126 to i64
  %128 = icmp eq i64 %indvars.iv25.3, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %130 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit

130:                                              ; preds = %129, %125
  %indvars.iv.next26.3 = add nuw nsw i64 %indvars.iv25.3, 1
  %exitcond29.3.not = icmp eq i64 %indvars.iv.next26.3, 27
  br i1 %exitcond29.3.not, label %131, label %.preheader.3, !llvm.loop !9

131:                                              ; preds = %130
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #4
  call void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %132 = invoke noundef i64 @_ZN3tbb17concurrent_vectorIiE7grow_byEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 81)
          to label %.preheader20.4 unwind label %6

.preheader20.4:                                   ; preds = %131, %134
  %indvars.iv.4 = phi i64 [ %indvars.iv.next.4, %134 ], [ 0, %131 ]
  %133 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv.4)
          to label %134 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

134:                                              ; preds = %.preheader20.4
  %135 = trunc i64 %indvars.iv.4 to i32
  %136 = mul i32 %135, 7
  %137 = urem i32 %136, 81
  store i32 %137, ptr %133, align 4, !tbaa !5
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %exitcond.4.not = icmp eq i64 %indvars.iv.next.4, 81
  br i1 %exitcond.4.not, label %138, label %.preheader20.4, !llvm.loop !11

138:                                              ; preds = %134
  invoke void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %139 unwind label %6

139:                                              ; preds = %138
  invoke void @_ZN3tbb17concurrent_vectorIiE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %140 unwind label %6

140:                                              ; preds = %139
  invoke void @_ZSt4sortIN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEEEvT_S6_(ptr noundef nonnull %2, ptr noundef nonnull %3)
          to label %.preheader.4 unwind label %6

.preheader.4:                                     ; preds = %140, %147
  %indvars.iv25.4 = phi i64 [ %indvars.iv.next26.4, %147 ], [ 0, %140 ]
  %141 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv25.4)
          to label %142 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

142:                                              ; preds = %.preheader.4
  %143 = load i32, ptr %141, align 4, !tbaa !5
  %144 = zext i32 %143 to i64
  %145 = icmp eq i64 %indvars.iv25.4, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %147 unwind label %.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

147:                                              ; preds = %146, %142
  %indvars.iv.next26.4 = add nuw nsw i64 %indvars.iv25.4, 1
  %exitcond29.4.not = icmp eq i64 %indvars.iv.next26.4, 81
  br i1 %exitcond29.4.not, label %148, label %.preheader.4, !llvm.loop !9

148:                                              ; preds = %147
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #4
  ret void

149:                                              ; preds = %.preheader.preheader
  %150 = load i32, ptr %11, align 4, !tbaa !5
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %153, label %152

152:                                              ; preds = %149
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 528, ptr noundef nonnull @.str.42, ptr noundef null)
          to label %153 unwind label %.loopexit30

153:                                              ; preds = %149, %152
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #4
  call void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %154 = invoke noundef i64 @_ZN3tbb17concurrent_vectorIiE7grow_byEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
          to label %.preheader20.preheader.1 unwind label %6

.loopexit30:                                      ; preds = %.preheader.preheader, %152
  %lpad.loopexit32 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp31.loopexit:                    ; preds = %32, %.preheader.1.2, %27, %.preheader.1.1, %22, %.preheader.preheader.1
  %lpad.loopexit38 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp31.loopexit.split-lp.loopexit:  ; preds = %91, %.preheader.2.8, %86, %.preheader.2.7, %81, %.preheader.2.6, %76, %.preheader.2.5, %71, %.preheader.2.4, %66, %.preheader.2.3, %61, %.preheader.2.2, %56, %.preheader.2.1, %.preheader.preheader.2, %51
  %lpad.loopexit43 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %129, %.preheader.3
  %lpad.loopexit48 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %146, %.preheader.4
  %lpad.loopexit.split-lp49 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit30, %.loopexit.split-lp31.loopexit.split-lp.loopexit, %.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp31.loopexit, %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit, %6
  %.pn = phi { ptr, i32 } [ %7, %6 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit35, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit40, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit46, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ], [ %lpad.loopexit32, %.loopexit30 ], [ %lpad.loopexit38, %.loopexit.split-lp31.loopexit ], [ %lpad.loopexit43, %.loopexit.split-lp31.loopexit.split-lp.loopexit ], [ %lpad.loopexit48, %.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp49, %.loopexit.split-lp31.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #4
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEEEvT_S6_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb17concurrent_vectorIiE3endEv(ptr dead_on_unwind noalias writable sret(%"class.tbb::internal::vector_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress 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 = { 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 = { inlinehint 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass