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

; 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::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 }
%"class.tbb::tick_count" = type { i64 }
%"class.tbb::concurrent_vector<int>::generic_range_type" = type { %"class.tbb::blocked_range" }
%"class.tbb::blocked_range" = type { %"class.tbb::internal::vector_iterator", %"class.tbb::internal::vector_iterator", i64 }
%"class.tbb::internal::vector_iterator" = type { ptr, i64, ptr }
%struct.AssignElement = type { %"class.tbb::internal::vector_iterator" }
%"class.tbb::concurrent_vector<int>::generic_range_type.9" = type { %"class.tbb::blocked_range.10" }
%"class.tbb::blocked_range.10" = type { %"class.tbb::internal::vector_iterator.11", %"class.tbb::internal::vector_iterator.11", i64 }
%"class.tbb::internal::vector_iterator.11" = type { ptr, i64, ptr }
%struct.CheckElement = type { %"class.tbb::internal::vector_iterator.11" }
%"class.tbb::tick_count::interval_t" = type { i64 }

@_ZL7Verbose = external hidden global i8, align 1
@.str.29 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [18 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15TestParallelFori(i32 noundef %0) #2 personality ptr @__gxx_personality_v0 {
  %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 %"class.tbb::tick_count", align 8
  %7 = alloca %"class.tbb::concurrent_vector<int>::generic_range_type", align 8
  %8 = alloca %struct.AssignElement, align 8
  %9 = alloca %"class.tbb::internal::vector_iterator", align 8
  %10 = alloca %"class.tbb::tick_count", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.tbb::concurrent_vector<int>::generic_range_type.9", align 8
  %13 = alloca %struct.CheckElement, align 8
  %14 = alloca %"class.tbb::internal::vector_iterator.11", align 8
  %15 = alloca %"class.tbb::tick_count", align 8
  %16 = alloca %"class.tbb::tick_count::interval_t", align 8
  %17 = alloca %"class.tbb::tick_count::interval_t", align 8
  %18 = alloca i64, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #5
  call void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3)
  invoke void @_ZN3tbb17concurrent_vectorIiE16grow_to_at_leastEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 500000)
          to label %19 unwind label %30

19:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %20 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %21 unwind label %34

21:                                               ; preds = %19
  %22 = getelementptr inbounds %"class.tbb::tick_count", ptr %6, i32 0, i32 0
  store i64 %20, ptr %22, align 8
  %23 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !9, !range !11, !noundef !12
  %24 = trunc i8 %23 to i1
  br i1 %24, label %25, label %38

25:                                               ; preds = %21
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.29, i64 noundef %27)
          to label %29 unwind label %34

29:                                               ; preds = %25
  br label %38

30:                                               ; preds = %1
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %4, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %5, align 4
  br label %137

34:                                               ; preds = %25, %19
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %4, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %5, align 4
  br label %136

38:                                               ; preds = %29, %21
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #5
  invoke void @_ZN3tbb17concurrent_vectorIiE5rangeEm(ptr dead_on_unwind writable sret(%"class.tbb::concurrent_vector<int>::generic_range_type") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 10000)
          to label %39 unwind label %70

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #5
  invoke void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind writable sret(%"class.tbb::internal::vector_iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %40 unwind label %74

40:                                               ; preds = %39
  invoke void @_ZN13AssignElementC2EN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEE(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef %9)
          to label %41 unwind label %74

41:                                               ; preds = %40
  invoke void @_ZN3tbb12parallel_forINS_17concurrent_vectorIiE18generic_range_typeINS_8internal15vector_iteratorIS2_iEEEE13AssignElementEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %42 unwind label %74

42:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %43 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %44 unwind label %79

44:                                               ; preds = %42
  %45 = getelementptr inbounds %"class.tbb::tick_count", ptr %10, i32 0, i32 0
  store i64 %43, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr %3, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 56, ptr %12) #5
  %46 = load ptr, ptr %11, align 8, !tbaa !13
  invoke void @_ZNK3tbb17concurrent_vectorIiE5rangeEm(ptr dead_on_unwind writable sret(%"class.tbb::concurrent_vector<int>::generic_range_type.9") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %46, i64 noundef 10000)
          to label %47 unwind label %83

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %48 = load ptr, ptr %11, align 8, !tbaa !13
  invoke void @_ZNK3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind writable sret(%"class.tbb::internal::vector_iterator.11") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %49 unwind label %87

49:                                               ; preds = %47
  invoke void @_ZN12CheckElementC2EN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEKiEE(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef byval(%"class.tbb::internal::vector_iterator.11") align 8 %14)
          to label %50 unwind label %87

50:                                               ; preds = %49
  invoke void @_ZN3tbb12parallel_forINS_17concurrent_vectorIiE18generic_range_typeINS_8internal15vector_iteratorIS2_KiEEEE12CheckElementEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %51 unwind label %87

51:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %52 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %53 unwind label %92

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.tbb::tick_count", ptr %15, i32 0, i32 0
  store i64 %52, ptr %54, align 8
  %55 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !9, !range !11, !noundef !12
  %56 = trunc i8 %55 to i1
  br i1 %56, label %57, label %105

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %58 = invoke i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %59 unwind label %96

59:                                               ; preds = %57
  %60 = getelementptr inbounds %"class.tbb::tick_count::interval_t", ptr %16, i32 0, i32 0
  store i64 %58, ptr %60, align 8
  %61 = invoke noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %62 unwind label %96

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %63 = invoke i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %64 unwind label %100

64:                                               ; preds = %62
  %65 = getelementptr inbounds %"class.tbb::tick_count::interval_t", ptr %17, i32 0, i32 0
  store i64 %63, ptr %65, align 8
  %66 = invoke noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %67 unwind label %100

67:                                               ; preds = %64
  %68 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.30, double noundef %61, double noundef %66)
          to label %69 unwind label %100

69:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %105

70:                                               ; preds = %38
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  br label %78

74:                                               ; preds = %41, %40, %39
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %4, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  br label %78

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #5
  br label %136

79:                                               ; preds = %42
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %4, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %5, align 4
  br label %135

83:                                               ; preds = %44
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %4, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %5, align 4
  br label %91

87:                                               ; preds = %50, %49, %47
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %4, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %91

91:                                               ; preds = %87, %83
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #5
  br label %134

92:                                               ; preds = %51
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %4, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %5, align 4
  br label %133

96:                                               ; preds = %59, %57
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %4, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %5, align 4
  br label %104

100:                                              ; preds = %67, %64, %62
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %4, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %104

104:                                              ; preds = %100, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %133

105:                                              ; preds = %69, %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 0, ptr %18, align 8, !tbaa !15
  br label %106

106:                                              ; preds = %129, %105
  %107 = load i64, ptr %18, align 8, !tbaa !15
  %108 = invoke noundef i64 @_ZNK3tbb17concurrent_vectorIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %109 unwind label %112

109:                                              ; preds = %106
  %110 = icmp ult i64 %107, %108
  br i1 %110, label %116, label %111

111:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %132

112:                                              ; preds = %124, %116, %106
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %4, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %133

116:                                              ; preds = %109
  %117 = load i64, ptr %18, align 8, !tbaa !15
  %118 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %117)
          to label %119 unwind label %112

119:                                              ; preds = %116
  %120 = load i32, ptr %118, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = load i64, ptr %18, align 8, !tbaa !15
  %123 = icmp ne i64 %121, %122
  br i1 %123, label %124, label %128

124:                                              ; preds = %119
  %125 = load i64, ptr %18, align 8, !tbaa !15
  %126 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.31, i64 noundef %125)
          to label %127 unwind label %112

127:                                              ; preds = %124
  br label %128

128:                                              ; preds = %127, %119
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %18, align 8, !tbaa !15
  %131 = add nsw i64 %130, 1
  store i64 %131, ptr %18, align 8, !tbaa !15
  br label %106, !llvm.loop !17

132:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  ret void

133:                                              ; preds = %112, %104, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %134

134:                                              ; preds = %133, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %135

135:                                              ; preds = %134, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %136

136:                                              ; preds = %135, %78, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %137

137:                                              ; preds = %136, %30
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  br label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %4, align 8
  %140 = load i32, ptr %5, align 4
  %141 = insertvalue { ptr, i32 } poison, ptr %139, 0
  %142 = insertvalue { ptr, i32 } %141, i32 %140, 1
  resume { ptr, i32 } %142
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN3tbb10tick_count3nowEv() #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb17concurrent_vectorIiE5rangeEm(ptr dead_on_unwind noalias writable sret(%"class.tbb::concurrent_vector<int>::generic_range_type") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 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)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3tbb17concurrent_vectorIiE5rangeEm(ptr dead_on_unwind noalias writable sret(%"class.tbb::concurrent_vector<int>::generic_range_type.9") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CheckElementC2EN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEKiEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%"class.tbb::internal::vector_iterator.11") align 8) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3tbb17concurrent_vectorIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 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) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"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 }
%"class.tbb::tick_count" = type { i64 }
%"class.tbb::concurrent_vector<int>::generic_range_type" = type { %"class.tbb::blocked_range" }
%"class.tbb::blocked_range" = type { %"class.tbb::internal::vector_iterator", %"class.tbb::internal::vector_iterator", i64 }
%"class.tbb::internal::vector_iterator" = type { ptr, i64, ptr }
%struct.AssignElement = type { %"class.tbb::internal::vector_iterator" }
%"class.tbb::concurrent_vector<int>::generic_range_type.9" = type { %"class.tbb::blocked_range.10" }
%"class.tbb::blocked_range.10" = type { %"class.tbb::internal::vector_iterator.11", %"class.tbb::internal::vector_iterator.11", i64 }
%"class.tbb::internal::vector_iterator.11" = type { ptr, i64, ptr }
%struct.CheckElement = type { %"class.tbb::internal::vector_iterator.11" }
%"class.tbb::tick_count::interval_t" = type { i64 }

@_ZL7Verbose = external hidden local_unnamed_addr global i8, align 1
@.str.29 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [18 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15TestParallelFori(i32 noundef %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.tbb::concurrent_vector.8", align 8
  %3 = alloca %"class.tbb::tick_count", align 8
  %4 = alloca %"class.tbb::concurrent_vector<int>::generic_range_type", align 8
  %5 = alloca %struct.AssignElement, align 8
  %6 = alloca %"class.tbb::internal::vector_iterator", align 8
  %7 = alloca %"class.tbb::tick_count", align 8
  %8 = alloca %"class.tbb::concurrent_vector<int>::generic_range_type.9", align 8
  %9 = alloca %struct.CheckElement, align 8
  %10 = alloca %"class.tbb::internal::vector_iterator.11", align 8
  %11 = alloca %"class.tbb::tick_count", align 8
  %12 = alloca %"class.tbb::tick_count::interval_t", align 8
  %13 = alloca %"class.tbb::tick_count::interval_t", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @_ZN3tbb17concurrent_vectorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2)
  invoke void @_ZN3tbb17concurrent_vectorIiE16grow_to_at_leastEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 500000)
          to label %14 unwind label %22

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %15 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %16 unwind label %24

16:                                               ; preds = %14
  store i64 %15, ptr %3, align 8
  %17 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !5, !range !9, !noundef !10
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %19, label %26

19:                                               ; preds = %16
  %20 = sext i32 %0 to i64
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29, i64 noundef %20)
  br label %26

22:                                               ; preds = %1
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %88

24:                                               ; preds = %14
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %87

26:                                               ; preds = %19, %16
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #5
  invoke void @_ZN3tbb17concurrent_vectorIiE5rangeEm(ptr dead_on_unwind nonnull writable sret(%"class.tbb::concurrent_vector<int>::generic_range_type") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 10000)
          to label %27 unwind label %50

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  invoke void @_ZN3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %28 unwind label %52

28:                                               ; preds = %27
  invoke void @_ZN13AssignElementC2EN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEiEE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull %6)
          to label %29 unwind label %52

29:                                               ; preds = %28
  invoke void @_ZN3tbb12parallel_forINS_17concurrent_vectorIiE18generic_range_typeINS_8internal15vector_iteratorIS2_iEEEE13AssignElementEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %30 unwind label %52

30:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %31 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %32 unwind label %55

32:                                               ; preds = %30
  store i64 %31, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #5
  invoke void @_ZNK3tbb17concurrent_vectorIiE5rangeEm(ptr dead_on_unwind nonnull writable sret(%"class.tbb::concurrent_vector<int>::generic_range_type.9") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 10000)
          to label %33 unwind label %57

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  invoke void @_ZNK3tbb17concurrent_vectorIiE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::vector_iterator.11") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %34 unwind label %59

34:                                               ; preds = %33
  call void @_ZN12CheckElementC2EN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEKiEE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull byval(%"class.tbb::internal::vector_iterator.11") align 8 %10)
  invoke void @_ZN3tbb12parallel_forINS_17concurrent_vectorIiE18generic_range_typeINS_8internal15vector_iteratorIS2_KiEEEE12CheckElementEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %35 unwind label %59

35:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %36 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %37 unwind label %62

37:                                               ; preds = %35
  store i64 %36, ptr %11, align 8
  %38 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !5, !range !9, !noundef !10
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %40, label %.preheader

.preheader:                                       ; preds = %48, %37
  br label %69

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %41 = invoke i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %42 unwind label %64

42:                                               ; preds = %40
  store i64 %41, ptr %12, align 8
  %43 = invoke noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %44 unwind label %64

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %45 = invoke i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %46 unwind label %66

46:                                               ; preds = %44
  store i64 %45, ptr %13, align 8
  %47 = invoke noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %48 unwind label %66

48:                                               ; preds = %46
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, double noundef %43, double noundef %47)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %.preheader

50:                                               ; preds = %26
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %29, %28, %27
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %54

54:                                               ; preds = %52, %50
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  br label %87

55:                                               ; preds = %30
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %86

57:                                               ; preds = %32
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %34, %33
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %61

61:                                               ; preds = %59, %57
  %.pn19 = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  br label %86

62:                                               ; preds = %35
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %85

64:                                               ; preds = %42, %40
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %46, %44
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %68

68:                                               ; preds = %66, %64
  %.pn21 = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %85

69:                                               ; preds = %.preheader, %83
  %.0 = phi i64 [ %84, %83 ], [ 0, %.preheader ]
  %70 = invoke noundef i64 @_ZNK3tbb17concurrent_vectorIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %71 unwind label %74

71:                                               ; preds = %69
  %72 = icmp ult i64 %.0, %70
  br i1 %72, label %76, label %73

73:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret void

74:                                               ; preds = %76, %69
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %85

76:                                               ; preds = %71
  %77 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3tbb17concurrent_vectorIiEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.0)
          to label %78 unwind label %74

78:                                               ; preds = %76
  %79 = load i32, ptr %77, align 4, !tbaa !11
  %80 = sext i32 %79 to i64
  %.not = icmp eq i64 %.0, %80
  br i1 %.not, label %83, label %81

81:                                               ; preds = %78
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, i64 noundef %.0)
  br label %83

83:                                               ; preds = %78, %81
  %84 = add nuw nsw i64 %.0, 1
  br label %69, !llvm.loop !13

85:                                               ; preds = %74, %68, %62
  %.pn23 = phi { ptr, i32 } [ %75, %74 ], [ %.pn21, %68 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %86

86:                                               ; preds = %61, %85, %55
  %.pn23.pn.pn = phi { ptr, i32 } [ %56, %55 ], [ %.pn23, %85 ], [ %.pn19, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %87

87:                                               ; preds = %86, %54, %24
  %.pn23.pn.pn.pn = phi { ptr, i32 } [ %.pn23.pn.pn, %86 ], [ %.pn, %54 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %88

88:                                               ; preds = %87, %22
  %.pn23.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn23.pn.pn.pn, %87 ], [ %23, %22 ]
  call void @_ZN3tbb17concurrent_vectorIiED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn23.pn.pn.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN3tbb10tick_count3nowEv() local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb17concurrent_vectorIiE5rangeEm(ptr dead_on_unwind noalias writable sret(%"class.tbb::concurrent_vector<int>::generic_range_type") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 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 #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3tbb17concurrent_vectorIiE5rangeEm(ptr dead_on_unwind noalias writable sret(%"class.tbb::concurrent_vector<int>::generic_range_type.9") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CheckElementC2EN3tbb8internal15vector_iteratorINS0_17concurrent_vectorIiEEKiEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%"class.tbb::internal::vector_iterator.11") align 8) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3tbb17concurrent_vectorIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 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 #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "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 = { 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 = { 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 #5 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LoopUnrollPass,SROAPass,SimplifyCFGPass