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

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

%"struct.tbb::atomic" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic" }
%"struct.tbb::internal::atomic_impl_with_arithmetic" = type { %"struct.tbb::internal::atomic_impl" }
%"struct.tbb::internal::atomic_impl" = type { %"struct.tbb::internal::aligned_storage" }
%"struct.tbb::internal::aligned_storage" = type { i64 }
%struct.Body = type <{ ptr, i32, [4 x i8] }>
%"class.tbb::concurrent_queue" = type { %"class.tbb::internal::concurrent_queue_base" }
%"class.tbb::internal::concurrent_queue_base" = type { ptr, ptr, i64, i64, i64 }
%class.Foo = type { i32, i32, i32 }
%"class.tbb::tick_count" = type { i64 }
%"class.tbb::tick_count::interval_t" = type { i64 }

@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@_ZL7PopKind = external hidden global [3 x %"struct.tbb::atomic"], align 16
@_ZL14FooConstructed = external hidden global %"struct.tbb::atomic", align 8
@_ZL12FooDestroyed = external hidden global %"struct.tbb::atomic", align 8
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZL7Verbose = external hidden global i8, align 1
@.str.22 = external hidden unnamed_addr constant [54 x i8], align 1
@_ZL3Sum = external hidden global [256 x i32], align 16
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [193 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [129 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11TestPushPopili(i32 noundef %0, i64 noundef %1, i32 noundef %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.Body, align 8
  %12 = alloca %"class.tbb::concurrent_queue", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %class.Foo, align 4
  %17 = alloca %"class.tbb::tick_count", align 8
  %18 = alloca %"class.tbb::tick_count", align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.tbb::tick_count::interval_t", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %class.Foo, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !5
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %3
  br label %33

32:                                               ; preds = %3
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 115, ptr noundef @.str.18, ptr noundef @.str.19)
  br label %33

33:                                               ; preds = %32, %31
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  %36 = sext i32 %35 to i64
  %37 = load i64, ptr %5, align 8, !tbaa !9
  %38 = icmp sge i64 %36, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %33
  br label %326

40:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 0, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %50, %40
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 3
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %53

45:                                               ; preds = %41
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [3 x %"struct.tbb::atomic"], ptr @_ZL7PopKind, i64 0, i64 %47
  %49 = call noundef i64 @_ZN3tbb6atomicIlEaSEl(ptr noundef nonnull align 8 dereferenceable(8) %48, i64 noundef 0)
  br label %50

50:                                               ; preds = %45
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %8, align 4, !tbaa !5
  br label %41, !llvm.loop !13

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

54:                                               ; preds = %317, %53
  %55 = load i8, ptr %7, align 1, !tbaa !11, !range !15, !noundef !16
  %56 = trunc i8 %55 to i1
  %57 = xor i1 %56, true
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %325

59:                                               ; preds = %54
  %60 = call noundef i64 @_ZN3tbb6atomicIlEaSEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZL14FooConstructed, i64 noundef 0)
  %61 = call noundef i64 @_ZN3tbb6atomicIlEaSEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZL12FooDestroyed, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %62 = load i32, ptr %6, align 4, !tbaa !5
  call void @_ZN4BodyC2Ei(ptr noundef nonnull align 8 dereferenceable(12) %11, i32 noundef %62)
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #5
  call void @_ZN3tbb16concurrent_queueI3FooEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
  %63 = load i64, ptr %5, align 8, !tbaa !9
  invoke void @_ZN3tbb16concurrent_queueI3FooE12set_capacityEl(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %63)
          to label %64 unwind label %71

64:                                               ; preds = %59
  %65 = getelementptr inbounds %struct.Body, ptr %11, i32 0, i32 0
  store ptr %12, ptr %65, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %99, %64
  %67 = load i32, ptr %15, align 4, !tbaa !5
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %75, label %70

70:                                               ; preds = %66
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %111

71:                                               ; preds = %59
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  br label %324

75:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  invoke void @_ZN3FooC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %76 unwind label %102

76:                                               ; preds = %75
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = getelementptr inbounds %class.Foo, ptr %16, i32 0, i32 1
  store i32 %77, ptr %78, align 4, !tbaa !20
  %79 = load i32, ptr %15, align 4, !tbaa !5
  %80 = add nsw i32 1, %79
  %81 = getelementptr inbounds %class.Foo, ptr %16, i32 0, i32 2
  store i32 %80, ptr %81, align 4, !tbaa !23
  invoke void @_ZN3tbb16concurrent_queueI3FooE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %82 unwind label %106

82:                                               ; preds = %76
  %83 = invoke noundef i64 @_ZNK3tbb16concurrent_queueI3FooE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %84 unwind label %106

84:                                               ; preds = %82
  %85 = load i32, ptr %15, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = icmp eq i64 %83, %87
  br i1 %88, label %89, label %90

89:                                               ; preds = %84
  br label %92

90:                                               ; preds = %84
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 133, ptr noundef @.str.20, ptr noundef null)
          to label %91 unwind label %106

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91, %89
  %93 = invoke noundef zeroext i1 @_ZNK3tbb16concurrent_queueI3FooE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %94 unwind label %106

94:                                               ; preds = %92
  br i1 %93, label %96, label %95

95:                                               ; preds = %94
  br label %98

96:                                               ; preds = %94
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 134, ptr noundef @.str.21, ptr noundef null)
          to label %97 unwind label %106

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97, %95
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %15, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %15, align 4, !tbaa !5
  br label %66, !llvm.loop !24

102:                                              ; preds = %75
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %13, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %14, align 4
  br label %110

106:                                              ; preds = %96, %92, %90, %82, %76
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %13, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %14, align 4
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #5
  br label %110

110:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %324

111:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %112 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %113 unwind label %140

113:                                              ; preds = %111
  %114 = getelementptr inbounds %"class.tbb::tick_count", ptr %17, i32 0, i32 0
  store i64 %112, ptr %114, align 8
  %115 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_Z17NativeParallelForIi4BodyEvT_RKT0_(i32 noundef %115, ptr noundef nonnull align 8 dereferenceable(12) %11)
          to label %116 unwind label %140

116:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %117 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %118 unwind label %144

118:                                              ; preds = %116
  %119 = getelementptr inbounds %"class.tbb::tick_count", ptr %18, i32 0, i32 0
  store i64 %117, ptr %119, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %120 = invoke i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %121 unwind label %148

121:                                              ; preds = %118
  %122 = getelementptr inbounds %"class.tbb::tick_count::interval_t", ptr %20, i32 0, i32 0
  store i64 %120, ptr %122, align 8
  %123 = invoke noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %124 unwind label %148

124:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  store double %123, ptr %19, align 8, !tbaa !25
  %125 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !11, !range !15, !noundef !16
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %156

127:                                              ; preds = %124
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = load i64, ptr %5, align 8, !tbaa !9
  %130 = trunc i64 %129 to i32
  %131 = load double, ptr %19, align 8, !tbaa !25
  %132 = load double, ptr %19, align 8, !tbaa !25
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = mul nsw i32 20000, %133
  %135 = sitofp i32 %134 to double
  %136 = fdiv double %132, %135
  %137 = fmul double %136, 1.000000e+09
  %138 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %128, i32 noundef %130, double noundef %131, double noundef %137)
          to label %139 unwind label %152

139:                                              ; preds = %127
  br label %156

140:                                              ; preds = %113, %111
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %13, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %14, align 4
  br label %323

144:                                              ; preds = %116
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %13, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %14, align 4
  br label %322

148:                                              ; preds = %121, %118
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %13, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %321

152:                                              ; preds = %127
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %13, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %14, align 4
  br label %321

156:                                              ; preds = %139, %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %169, %156
  %158 = load i32, ptr %22, align 4, !tbaa !5
  %159 = load i32, ptr %6, align 4, !tbaa !5
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %157
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %172

162:                                              ; preds = %157
  %163 = load i32, ptr %22, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [256 x i32], ptr @_ZL3Sum, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = load i32, ptr %21, align 4, !tbaa !5
  %168 = add nsw i32 %167, %166
  store i32 %168, ptr %21, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %162
  %170 = load i32, ptr %22, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %22, align 4, !tbaa !5
  br label %157, !llvm.loop !27

172:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %173 = load i32, ptr %6, align 4, !tbaa !5
  %174 = mul nsw i32 %173, 49995000
  %175 = load i32, ptr %4, align 4, !tbaa !5
  %176 = sub nsw i32 %175, 1
  %177 = load i32, ptr %4, align 4, !tbaa !5
  %178 = mul nsw i32 %176, %177
  %179 = sdiv i32 %178, 2
  %180 = add nsw i32 %174, %179
  store i32 %180, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %181 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %181, ptr %24, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %204, %172
  %183 = load i32, ptr %24, align 4, !tbaa !5
  %184 = add nsw i32 %183, -1
  store i32 %184, ptr %24, align 4, !tbaa !5
  %185 = icmp sge i32 %184, 0
  br i1 %185, label %187, label %186

186:                                              ; preds = %182
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %224

187:                                              ; preds = %182
  %188 = invoke noundef zeroext i1 @_ZNK3tbb16concurrent_queueI3FooE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %189 unwind label %210

189:                                              ; preds = %187
  br i1 %188, label %191, label %190

190:                                              ; preds = %189
  br label %193

191:                                              ; preds = %189
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 147, ptr noundef @.str.21, ptr noundef null)
          to label %192 unwind label %210

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192, %190
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  invoke void @_ZN3FooC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %194 unwind label %214

194:                                              ; preds = %193
  invoke void @_ZN3tbb16concurrent_queueI3FooE3popERS1_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %195 unwind label %218

195:                                              ; preds = %194
  %196 = invoke noundef i64 @_ZNK3tbb16concurrent_queueI3FooE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %197 unwind label %218

197:                                              ; preds = %195
  %198 = load i32, ptr %24, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = icmp eq i64 %196, %199
  br i1 %200, label %201, label %202

201:                                              ; preds = %197
  br label %204

202:                                              ; preds = %197
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 150, ptr noundef @.str.23, ptr noundef null)
          to label %203 unwind label %218

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203, %201
  %205 = getelementptr inbounds %class.Foo, ptr %25, i32 0, i32 2
  %206 = load i32, ptr %205, align 4, !tbaa !23
  %207 = sub nsw i32 %206, 1
  %208 = load i32, ptr %21, align 4, !tbaa !5
  %209 = add nsw i32 %208, %207
  store i32 %209, ptr %21, align 4, !tbaa !5
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  br label %182, !llvm.loop !28

210:                                              ; preds = %191, %187
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %13, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %14, align 4
  br label %223

214:                                              ; preds = %193
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %13, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %14, align 4
  br label %222

218:                                              ; preds = %202, %195, %194
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %13, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %14, align 4
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #5
  br label %222

222:                                              ; preds = %218, %214
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  br label %223

223:                                              ; preds = %222, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %320

224:                                              ; preds = %186
  %225 = invoke noundef zeroext i1 @_ZNK3tbb16concurrent_queueI3FooE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %226 unwind label %246

226:                                              ; preds = %224
  br i1 %225, label %227, label %228

227:                                              ; preds = %226
  br label %230

228:                                              ; preds = %226
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 153, ptr noundef @.str.24, ptr noundef null)
          to label %229 unwind label %246

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229, %227
  %231 = invoke noundef i64 @_ZNK3tbb16concurrent_queueI3FooE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %232 unwind label %246

232:                                              ; preds = %230
  %233 = icmp eq i64 %231, 0
  br i1 %233, label %234, label %235

234:                                              ; preds = %232
  br label %237

235:                                              ; preds = %232
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 154, ptr noundef @.str.25, ptr noundef null)
          to label %236 unwind label %246

236:                                              ; preds = %235
  br label %237

237:                                              ; preds = %236, %234
  %238 = load i32, ptr %21, align 4, !tbaa !5
  %239 = load i32, ptr %23, align 4, !tbaa !5
  %240 = icmp ne i32 %238, %239
  br i1 %240, label %241, label %250

241:                                              ; preds = %237
  %242 = load i32, ptr %21, align 4, !tbaa !5
  %243 = load i32, ptr %23, align 4, !tbaa !5
  %244 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %242, i32 noundef %243)
          to label %245 unwind label %246

245:                                              ; preds = %241
  br label %250

246:                                              ; preds = %257, %252, %250, %241, %235, %230, %228, %224
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %13, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %14, align 4
  br label %320

250:                                              ; preds = %245, %237
  %251 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZL14FooConstructed)
          to label %252 unwind label %246

252:                                              ; preds = %250
  %253 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZL12FooDestroyed)
          to label %254 unwind label %246

254:                                              ; preds = %252
  %255 = icmp eq i64 %251, %253
  br i1 %255, label %256, label %257

256:                                              ; preds = %254
  br label %259

257:                                              ; preds = %254
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 157, ptr noundef @.str.27, ptr noundef null)
          to label %258 unwind label %246

258:                                              ; preds = %257
  br label %259

259:                                              ; preds = %258, %256
  store i8 1, ptr %7, align 1, !tbaa !11
  %260 = load i32, ptr %6, align 4, !tbaa !5
  %261 = icmp sgt i32 %260, 1
  br i1 %261, label %262, label %316

262:                                              ; preds = %259
  %263 = load i32, ptr %4, align 4, !tbaa !5
  %264 = icmp eq i32 %263, 0
  br i1 %264, label %265, label %316

265:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %266

266:                                              ; preds = %312, %265
  %267 = load i32, ptr %26, align 4, !tbaa !5
  %268 = icmp slt i32 %267, 2
  br i1 %268, label %270, label %269

269:                                              ; preds = %266
  store i32 16, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %315

270:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 100, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 20, ptr %28, align 4, !tbaa !5
  %271 = load i32, ptr %26, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [3 x %"struct.tbb::atomic"], ptr @_ZL7PopKind, i64 0, i64 %272
  %274 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) %273)
          to label %275 unwind label %296

275:                                              ; preds = %270
  %276 = icmp slt i64 %274, 100
  br i1 %276, label %277, label %311

277:                                              ; preds = %275
  %278 = load i32, ptr %9, align 4, !tbaa !5
  %279 = icmp sge i32 %278, 20
  br i1 %279, label %280, label %309

280:                                              ; preds = %277
  %281 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !11, !range !15, !noundef !16
  %282 = trunc i8 %281 to i1
  br i1 %282, label %283, label %300

283:                                              ; preds = %280
  %284 = load i32, ptr %6, align 4, !tbaa !5
  %285 = load i32, ptr %26, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [3 x %"struct.tbb::atomic"], ptr @_ZL7PopKind, i64 0, i64 %286
  %288 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) %287)
          to label %289 unwind label %296

289:                                              ; preds = %283
  %290 = load i32, ptr %26, align 4, !tbaa !5
  %291 = icmp eq i32 %290, 0
  %292 = zext i1 %291 to i64
  %293 = select i1 %291, ptr @.str.6, ptr @.str.29
  %294 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.28, i32 noundef %284, i64 noundef %288, ptr noundef %293, i32 noundef 20, i32 noundef 100)
          to label %295 unwind label %296

295:                                              ; preds = %289
  br label %308

296:                                              ; preds = %300, %289, %283, %270
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %13, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %320

300:                                              ; preds = %280
  %301 = load i32, ptr %26, align 4, !tbaa !5
  %302 = icmp eq i32 %301, 0
  %303 = zext i1 %302 to i64
  %304 = select i1 %302, ptr @.str.6, ptr @.str.29
  %305 = load i32, ptr %6, align 4, !tbaa !5
  %306 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef %304, i32 noundef %305)
          to label %307 unwind label %296

307:                                              ; preds = %300
  br label %308

308:                                              ; preds = %307, %295
  br label %310

309:                                              ; preds = %277
  store i8 0, ptr %7, align 1, !tbaa !11
  br label %310

310:                                              ; preds = %309, %308
  br label %311

311:                                              ; preds = %310, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %312

312:                                              ; preds = %311
  %313 = load i32, ptr %26, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %26, align 4, !tbaa !5
  br label %266, !llvm.loop !29

315:                                              ; preds = %269
  br label %316

316:                                              ; preds = %315, %262, %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN3tbb16concurrent_queueI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %9, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %9, align 4, !tbaa !5
  br label %54, !llvm.loop !30

320:                                              ; preds = %296, %246, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %321

321:                                              ; preds = %320, %152, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %322

322:                                              ; preds = %321, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %323

323:                                              ; preds = %322, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %324

324:                                              ; preds = %323, %110, %71
  call void @_ZN3tbb16concurrent_queueI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %327

325:                                              ; preds = %58
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %326

326:                                              ; preds = %325, %39
  ret void

327:                                              ; preds = %324
  %328 = load ptr, ptr %13, align 8
  %329 = load i32, ptr %14, align 4
  %330 = insertvalue { ptr, i32 } poison, ptr %328, 0
  %331 = insertvalue { ptr, i32 } %330, i32 %329, 1
  resume { ptr, i32 } %331
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4BodyC2Ei(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) unnamed_addr #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3FooC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #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 @_Z17NativeParallelForIi4BodyEvT_RKT0_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(12)) #1

; 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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb16concurrent_queueI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 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 = { "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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTS4Body", !19, i64 0, !6, i64 8}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!21, !6, i64 4}
!21 = !{!"_ZTS3Foo", !22, i64 0, !6, i64 4, !6, i64 8}
!22 = !{!"_ZTS7state_t", !7, i64 0}
!23 = !{!21, !6, i64 8}
!24 = distinct !{!24, !14}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}


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

%"struct.tbb::atomic" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic" }
%"struct.tbb::internal::atomic_impl_with_arithmetic" = type { %"struct.tbb::internal::atomic_impl" }
%"struct.tbb::internal::atomic_impl" = type { %"struct.tbb::internal::aligned_storage" }
%"struct.tbb::internal::aligned_storage" = type { i64 }
%struct.Body = type <{ ptr, i32, [4 x i8] }>
%"class.tbb::concurrent_queue" = type { %"class.tbb::internal::concurrent_queue_base" }
%"class.tbb::internal::concurrent_queue_base" = type { ptr, ptr, i64, i64, i64 }
%class.Foo = type { i32, i32, i32 }
%"class.tbb::tick_count" = type { i64 }
%"class.tbb::tick_count::interval_t" = type { i64 }

@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@_ZL7PopKind = external hidden global [3 x %"struct.tbb::atomic"], align 16
@_ZL14FooConstructed = external hidden global %"struct.tbb::atomic", align 8
@_ZL12FooDestroyed = external hidden global %"struct.tbb::atomic", align 8
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZL7Verbose = external hidden local_unnamed_addr global i8, align 1
@.str.22 = external hidden unnamed_addr constant [54 x i8], align 1
@_ZL3Sum = external hidden local_unnamed_addr global [256 x i32], align 16
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [193 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [129 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

; 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 @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11TestPushPopili(i32 noundef %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.Body, align 8
  %5 = alloca %"class.tbb::concurrent_queue", align 8
  %6 = alloca %class.Foo, align 4
  %7 = alloca %"class.tbb::tick_count", align 8
  %8 = alloca %"class.tbb::tick_count", align 8
  %9 = alloca %"class.tbb::tick_count::interval_t", align 8
  %10 = alloca %class.Foo, align 4
  %11 = icmp sgt i32 %2, 0
  br i1 %11, label %13, label %12

12:                                               ; preds = %3
  tail call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 115, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19)
  br label %13

13:                                               ; preds = %3, %12
  %14 = add nsw i32 %0, 1
  %15 = sext i32 %14 to i64
  %.not = icmp slt i64 %15, %1
  br i1 %.not, label %.preheader88.preheader, label %.loopexit87

.preheader88.preheader:                           ; preds = %13
  %16 = tail call noundef i64 @_ZN3tbb6atomicIlEaSEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZL7PopKind, i64 noundef 0)
  %17 = tail call noundef i64 @_ZN3tbb6atomicIlEaSEl(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZL7PopKind, i64 8), i64 noundef 0)
  %18 = tail call noundef i64 @_ZN3tbb6atomicIlEaSEl(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZL7PopKind, i64 16), i64 noundef 0)
  %19 = icmp sgt i32 %0, 0
  %20 = getelementptr inbounds i8, ptr %6, i64 4
  %21 = getelementptr inbounds i8, ptr %6, i64 8
  %22 = trunc i64 %1 to i32
  %23 = mul nsw i32 %2, 20000
  %24 = sitofp i32 %23 to double
  %25 = mul nsw i32 %2, 49995000
  %26 = add nsw i32 %0, -1
  %27 = mul nsw i32 %26, %0
  %28 = sdiv i32 %27, 2
  %29 = add nsw i32 %25, %28
  %30 = getelementptr inbounds i8, ptr %10, i64 8
  %31 = icmp sgt i32 %2, 1
  %32 = icmp eq i32 %0, 0
  %or.cond = and i1 %32, %31
  %33 = zext i32 %0 to i64
  %wide.trip.count116 = zext i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 8
  %n.vec = and i64 %wide.trip.count116, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count116
  br label %34

34:                                               ; preds = %.preheader88.preheader, %.loopexit
  %.054108 = phi i32 [ 0, %.preheader88.preheader ], [ %162, %.loopexit ]
  %35 = call noundef i64 @_ZN3tbb6atomicIlEaSEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZL14FooConstructed, i64 noundef 0)
  %36 = call noundef i64 @_ZN3tbb6atomicIlEaSEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZL12FooDestroyed, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN4BodyC2Ei(ptr noundef nonnull align 8 dereferenceable(12) %4, i32 noundef %2)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @_ZN3tbb16concurrent_queueI3FooEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5)
  invoke void @_ZN3tbb16concurrent_queueI3FooE12set_capacityEl(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %1)
          to label %37 unwind label %39

37:                                               ; preds = %34
  store ptr %5, ptr %4, align 8, !tbaa !5
  br i1 %19, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %52, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %38 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %58 unwind label %72

39:                                               ; preds = %34
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %165

.lr.ph:                                           ; preds = %37, %52
  %indvars.iv = phi i64 [ %indvars.iv.next, %52 ], [ 0, %37 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  invoke void @_ZN3FooC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %41 unwind label %53

41:                                               ; preds = %.lr.ph
  store i32 %2, ptr %20, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %42, ptr %21, align 4, !tbaa !14
  invoke void @_ZN3tbb16concurrent_queueI3FooE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %43 unwind label %55

43:                                               ; preds = %41
  %44 = invoke noundef i64 @_ZNK3tbb16concurrent_queueI3FooE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %45 unwind label %55

45:                                               ; preds = %43
  %46 = icmp eq i64 %44, %indvars.iv.next
  br i1 %46, label %48, label %47

47:                                               ; preds = %45
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 133, ptr noundef nonnull @.str.20, ptr noundef null)
          to label %48 unwind label %55

48:                                               ; preds = %47, %45
  %49 = invoke noundef zeroext i1 @_ZNK3tbb16concurrent_queueI3FooE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %50 unwind label %55

50:                                               ; preds = %48
  br i1 %49, label %51, label %52

51:                                               ; preds = %50
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 134, ptr noundef nonnull @.str.21, ptr noundef null)
          to label %52 unwind label %55

52:                                               ; preds = %51, %50
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  %exitcond.not = icmp eq i64 %indvars.iv.next, %33
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

53:                                               ; preds = %.lr.ph
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %51, %48, %47, %43, %41
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #6
  br label %57

57:                                               ; preds = %55, %53
  %.pn83 = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  br label %165

58:                                               ; preds = %._crit_edge
  store i64 %38, ptr %7, align 8
  invoke void @_Z17NativeParallelForIi4BodyEvT_RKT0_(i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(12) %4)
          to label %59 unwind label %72

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %60 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %61 unwind label %74

61:                                               ; preds = %59
  store i64 %60, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %62 = invoke i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %63 unwind label %76

63:                                               ; preds = %61
  store i64 %62, ptr %9, align 8
  %64 = invoke noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %65 unwind label %76

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %66 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !17, !range !19, !noundef !20
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %68, label %78

68:                                               ; preds = %65
  %69 = fdiv double %64, %24
  %70 = fmul double %69, 1.000000e+09
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %0, i32 noundef %22, double noundef %64, double noundef %70)
  br label %78

72:                                               ; preds = %58, %._crit_edge
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %164

74:                                               ; preds = %59
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %163

76:                                               ; preds = %63, %61
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %163

78:                                               ; preds = %68, %65
  br i1 %11, label %.lr.ph98.preheader, label %._crit_edge99

.lr.ph98.preheader:                               ; preds = %78
  br i1 %min.iters.check, label %.lr.ph98.preheader131, label %vector.body

.lr.ph98.preheader131:                            ; preds = %middle.block, %.lr.ph98.preheader
  %indvars.iv113.ph = phi i64 [ 0, %.lr.ph98.preheader ], [ %n.vec, %middle.block ]
  %.05695.ph = phi i32 [ 0, %.lr.ph98.preheader ], [ %84, %middle.block ]
  br label %.lr.ph98

vector.body:                                      ; preds = %.lr.ph98.preheader, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph98.preheader ]
  %vec.phi = phi <4 x i32> [ %81, %vector.body ], [ zeroinitializer, %.lr.ph98.preheader ]
  %vec.phi129 = phi <4 x i32> [ %82, %vector.body ], [ zeroinitializer, %.lr.ph98.preheader ]
  %79 = getelementptr inbounds [256 x i32], ptr @_ZL3Sum, i64 0, i64 %index
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  %wide.load = load <4 x i32>, ptr %79, align 16, !tbaa !21
  %wide.load130 = load <4 x i32>, ptr %80, align 16, !tbaa !21
  %81 = add <4 x i32> %wide.load, %vec.phi
  %82 = add <4 x i32> %wide.load130, %vec.phi129
  %index.next = add nuw i64 %index, 8
  %83 = icmp eq i64 %index.next, %n.vec
  br i1 %83, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %82, %81
  %84 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge99, label %.lr.ph98.preheader131

._crit_edge99:                                    ; preds = %.lr.ph98, %middle.block, %78
  %.056.lcssa = phi i32 [ 0, %78 ], [ %84, %middle.block ], [ %87, %.lr.ph98 ]
  br i1 %19, label %.lr.ph102, label %._crit_edge103

.lr.ph98:                                         ; preds = %.lr.ph98.preheader131, %.lr.ph98
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %.lr.ph98 ], [ %indvars.iv113.ph, %.lr.ph98.preheader131 ]
  %.05695 = phi i32 [ %87, %.lr.ph98 ], [ %.05695.ph, %.lr.ph98.preheader131 ]
  %85 = getelementptr inbounds [256 x i32], ptr @_ZL3Sum, i64 0, i64 %indvars.iv113
  %86 = load i32, ptr %85, align 4, !tbaa !21
  %87 = add nsw i32 %86, %.05695
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next114, %wide.trip.count116
  br i1 %exitcond117.not, label %._crit_edge99, label %.lr.ph98, !llvm.loop !25

._crit_edge103:                                   ; preds = %99, %._crit_edge99
  %.157.lcssa = phi i32 [ %.056.lcssa, %._crit_edge99 ], [ %102, %99 ]
  %88 = invoke noundef zeroext i1 @_ZNK3tbb16concurrent_queueI3FooE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %111 unwind label %121

.lr.ph102:                                        ; preds = %._crit_edge99, %99
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %99 ], [ %33, %._crit_edge99 ]
  %.157100 = phi i32 [ %102, %99 ], [ %.056.lcssa, %._crit_edge99 ]
  %indvars.iv.next119 = add nsw i64 %indvars.iv118, -1
  %89 = invoke noundef zeroext i1 @_ZNK3tbb16concurrent_queueI3FooE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %90 unwind label %104

90:                                               ; preds = %.lr.ph102
  br i1 %89, label %91, label %92

91:                                               ; preds = %90
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 147, ptr noundef nonnull @.str.21, ptr noundef null)
          to label %92 unwind label %104

92:                                               ; preds = %91, %90
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  invoke void @_ZN3FooC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %93 unwind label %106

93:                                               ; preds = %92
  invoke void @_ZN3tbb16concurrent_queueI3FooE3popERS1_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %94 unwind label %108

94:                                               ; preds = %93
  %95 = invoke noundef i64 @_ZNK3tbb16concurrent_queueI3FooE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %96 unwind label %108

96:                                               ; preds = %94
  %97 = icmp eq i64 %95, %indvars.iv.next119
  br i1 %97, label %99, label %98

98:                                               ; preds = %96
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 150, ptr noundef nonnull @.str.23, ptr noundef null)
          to label %99 unwind label %108

99:                                               ; preds = %98, %96
  %100 = load i32, ptr %30, align 4, !tbaa !14
  %101 = add i32 %.157100, -1
  %102 = add i32 %101, %100
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  %103 = icmp sgt i64 %indvars.iv118, 1
  br i1 %103, label %.lr.ph102, label %._crit_edge103, !llvm.loop !26

104:                                              ; preds = %91, %.lr.ph102
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %163

106:                                              ; preds = %92
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %110

108:                                              ; preds = %98, %94, %93
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #6
  br label %110

110:                                              ; preds = %108, %106
  %.pn = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  br label %163

111:                                              ; preds = %._crit_edge103
  br i1 %88, label %113, label %112

112:                                              ; preds = %111
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 153, ptr noundef nonnull @.str.24, ptr noundef null)
          to label %113 unwind label %121

113:                                              ; preds = %112, %111
  %114 = invoke noundef i64 @_ZNK3tbb16concurrent_queueI3FooE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %115 unwind label %121

115:                                              ; preds = %113
  %116 = icmp eq i64 %114, 0
  br i1 %116, label %118, label %117

117:                                              ; preds = %115
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 154, ptr noundef nonnull @.str.25, ptr noundef null)
          to label %118 unwind label %121

118:                                              ; preds = %117, %115
  %.not76 = icmp eq i32 %.157.lcssa, %29
  br i1 %.not76, label %123, label %119

119:                                              ; preds = %118
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %.157.lcssa, i32 noundef %29)
  br label %123

121:                                              ; preds = %129, %125, %123, %117, %113, %112, %._crit_edge103
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %163

123:                                              ; preds = %119, %118
  %124 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZL14FooConstructed)
          to label %125 unwind label %121

125:                                              ; preds = %123
  %126 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZL12FooDestroyed)
          to label %127 unwind label %121

127:                                              ; preds = %125
  %128 = icmp eq i64 %124, %126
  br i1 %128, label %130, label %129

129:                                              ; preds = %127
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 157, ptr noundef nonnull @.str.27, ptr noundef null)
          to label %130 unwind label %121

130:                                              ; preds = %129, %127
  br i1 %or.cond, label %.preheader, label %.loopexit.thread

.preheader:                                       ; preds = %130
  %131 = icmp ugt i32 %.054108, 19
  br i1 %131, label %.preheader.split.us.preheader, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  %132 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZL7PopKind)
          to label %.preheader.split.1 unwind label %.split

.preheader.split.us.preheader:                    ; preds = %.preheader
  %133 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZL7PopKind)
          to label %134 unwind label %.split.us

134:                                              ; preds = %.preheader.split.us.preheader
  %135 = icmp slt i64 %133, 100
  br i1 %135, label %136, label %.preheader.split.us.1

136:                                              ; preds = %134
  %137 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !17, !range !19, !noundef !20
  %138 = trunc nuw i8 %137 to i1
  br i1 %138, label %141, label %139

139:                                              ; preds = %136
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.6, i32 noundef %2)
  br label %.preheader.split.us.1

141:                                              ; preds = %136
  %142 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZL7PopKind)
          to label %143 unwind label %.split.us

143:                                              ; preds = %141
  %144 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, i32 noundef %2, i64 noundef %142, ptr noundef nonnull @.str.6, i32 noundef 20, i32 noundef 100)
  br label %.preheader.split.us.1

.preheader.split.us.1:                            ; preds = %143, %139, %134
  %145 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZL7PopKind, i64 8))
          to label %146 unwind label %.split.us

146:                                              ; preds = %.preheader.split.us.1
  %147 = icmp slt i64 %145, 100
  br i1 %147, label %148, label %.loopexit.thread

148:                                              ; preds = %146
  %149 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !17, !range !19, !noundef !20
  %150 = trunc nuw i8 %149 to i1
  br i1 %150, label %153, label %151

151:                                              ; preds = %148
  %152 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.29, i32 noundef %2)
  br label %.loopexit.thread

153:                                              ; preds = %148
  %154 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZL7PopKind, i64 8))
          to label %155 unwind label %.split.us

155:                                              ; preds = %153
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, i32 noundef %2, i64 noundef %154, ptr noundef nonnull @.str.29, i32 noundef 20, i32 noundef 100)
  br label %.loopexit.thread

.split.us:                                        ; preds = %153, %.preheader.split.us.1, %141, %.preheader.split.us.preheader
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %163

.preheader.split.1:                               ; preds = %.preheader.split.preheader
  %158 = invoke noundef i64 @_ZNVK3tbb8internal11atomic_implIlEcvlEv(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZL7PopKind, i64 8))
          to label %.loopexit unwind label %.split

.split:                                           ; preds = %.preheader.split.1, %.preheader.split.preheader
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %163

.loopexit.thread:                                 ; preds = %130, %155, %151, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN3tbb16concurrent_queueI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %.loopexit87

.loopexit:                                        ; preds = %.preheader.split.1
  %160 = icmp sgt i64 %132, 99
  %161 = icmp sgt i64 %158, 99
  %spec.select.1 = and i1 %161, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN3tbb16concurrent_queueI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %162 = add nuw nsw i32 %.054108, 1
  br i1 %spec.select.1, label %.loopexit87, label %34, !llvm.loop !27

163:                                              ; preds = %.split, %.split.us, %76, %104, %110, %121, %74
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %75, %74 ], [ %77, %76 ], [ %122, %121 ], [ %.pn, %110 ], [ %105, %104 ], [ %159, %.split ], [ %157, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %164

164:                                              ; preds = %163, %72
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %163 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %165

165:                                              ; preds = %164, %57, %39
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %57 ], [ %.pn.pn.pn.pn.pn.pn, %164 ], [ %40, %39 ]
  call void @_ZN3tbb16concurrent_queueI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn83.pn

.loopexit87:                                      ; preds = %.loopexit, %.loopexit.thread, %13
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4BodyC2Ei(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) unnamed_addr #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3FooC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb16concurrent_queueI3FooE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3tbb16concurrent_queueI3FooE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3FooD2Ev(ptr noundef nonnull align 4 dereferenceable(12)) 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 @_Z17NativeParallelForIi4BodyEvT_RKT0_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb16concurrent_queueI3FooE3popERS1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"_ZTS4Body", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTS3Foo", !13, i64 0, !10, i64 4, !10, i64 8}
!13 = !{!"_ZTS7state_t", !8, i64 0}
!14 = !{!12, !10, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!10, !10, i64 0}
!22 = distinct !{!22, !16, !23, !24}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !16, !24, !23}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass