; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/test/test_ScalableAllocator.ll (Z8TestMainv)

; 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::scalable_allocator" = type { i8 }
%"class.tbb::interface6::memory_pool.0" = type <{ %"class.tbb::interface6::internal::pool_base", [8 x i8] }>
%"class.tbb::interface6::internal::pool_base" = type { ptr }
%"class.tbb::scalable_allocator.2" = type { i8 }
%"class.tbb::interface6::memory_pool_allocator" = type { ptr }
%"class.tbb::interface6::memory_pool.3" = type { %"class.tbb::interface6::internal::pool_base", %class.MinimalAllocator }
%class.MinimalAllocator = type { %class.local_counting_allocator }
%class.local_counting_allocator = type { %"struct.tbb::atomic", %"struct.tbb::atomic", %"struct.tbb::atomic", %"struct.tbb::atomic", i64 }
%"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 }
%class.static_counting_allocator = type { %"class.tbb::interface6::memory_pool_allocator.4" }
%"class.tbb::interface6::memory_pool_allocator.4" = type { ptr }
%"class.tbb::interface6::fixed_pool" = type { %"class.tbb::interface6::internal::pool_base", ptr, i64 }
%"class.tbb::interface6::memory_pool_allocator.5" = type { ptr }
%"class.tbb::interface6::memory_pool.6" = type { %"class.tbb::interface6::internal::pool_base", %"class.tbb::interface6::memory_pool_allocator.5" }
%"class.tbb::interface6::memory_pool_allocator.7" = type { ptr }

@.str.20 = external hidden unnamed_addr constant [98 x i8], align 1
@_ZZ8TestMainvE3buf = external hidden global [4194304 x i8], align 16
@.str.31 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZZ8TestMainvE6buffer = external hidden global [8388608 x i8], align 16
@.str.39 = external hidden unnamed_addr constant [8 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 noundef i32 @_Z8TestMainv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.tbb::scalable_allocator", align 1
  %3 = alloca %"class.tbb::interface6::memory_pool.0", align 8
  %4 = alloca %"class.tbb::scalable_allocator.2", align 1
  %5 = alloca %"class.tbb::interface6::memory_pool_allocator", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.tbb::interface6::memory_pool.3", align 8
  %9 = alloca %class.MinimalAllocator, align 8
  %10 = alloca %class.static_counting_allocator, align 8
  %11 = alloca %"class.tbb::interface6::memory_pool_allocator.4", align 8
  %12 = alloca %"class.tbb::interface6::fixed_pool", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.tbb::interface6::memory_pool_allocator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"class.tbb::interface6::memory_pool_allocator", align 8
  %20 = alloca %"class.tbb::interface6::fixed_pool", align 8
  %21 = alloca %"class.tbb::interface6::memory_pool_allocator.5", align 8
  %22 = alloca %"class.tbb::interface6::memory_pool.6", align 8
  %23 = alloca %"class.tbb::interface6::memory_pool_allocator.7", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #6
  %24 = call noundef i32 @_Z8TestMainIN3tbb18scalable_allocatorIvEEEiRKT_(ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #6
  store i32 %24, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  call void @_ZN3tbb18scalable_allocatorIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @_ZN3tbb10interface611memory_poolINS_18scalable_allocatorIiEEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(9) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIvNS0_8internal9pool_baseEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %25 = invoke noundef i32 @_Z8TestMainIN3tbb10interface621memory_pool_allocatorIvNS1_8internal9pool_baseEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %26 unwind label %84

26:                                               ; preds = %0
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = add nsw i32 %27, %25
  store i32 %28, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN3tbb10interface611memory_poolINS_18scalable_allocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #6
  call void @_ZN16MinimalAllocatorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
  invoke void @_ZN3tbb10interface611memory_poolI16MinimalAllocatorEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %29 unwind label %88

29:                                               ; preds = %26
  call void @_ZN16MinimalAllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIcNS0_8internal9pool_baseEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @_ZN25static_counting_allocatorIN3tbb10interface621memory_pool_allocatorIcNS1_8internal9pool_baseEEENS0_6atomicImEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %30 = invoke noundef i32 @_Z8TestMainI25static_counting_allocatorIN3tbb10interface621memory_pool_allocatorIcNS2_8internal9pool_baseEEENS1_6atomicImEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %31 unwind label %92

31:                                               ; preds = %29
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = add nsw i32 %32, %30
  store i32 %33, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN3tbb10interface611memory_poolI16MinimalAllocatorED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @_ZN3tbb10interface610fixed_poolC2EPvm(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef @_ZZ8TestMainvE3buf, i64 noundef 4194304)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr @.str.31, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %34 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 16)
          to label %35 unwind label %97

35:                                               ; preds = %31
  store ptr %34, ptr %14, align 8, !tbaa !9
  %36 = load ptr, ptr %14, align 8, !tbaa !9
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  br label %41

39:                                               ; preds = %35
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 185, ptr noundef @.str.32, ptr noundef null)
          to label %40 unwind label %97

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40, %38
  %42 = load ptr, ptr %14, align 8, !tbaa !9
  %43 = load ptr, ptr %13, align 8, !tbaa !9
  %44 = call ptr @strcpy(ptr noundef %42, ptr noundef %43) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %45 = load ptr, ptr %14, align 8, !tbaa !9
  %46 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base7reallocEPvm(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %45, i64 noundef 15)
          to label %47 unwind label %101

47:                                               ; preds = %41
  store ptr %46, ptr %15, align 8, !tbaa !9
  %48 = load ptr, ptr %15, align 8, !tbaa !9
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %56

50:                                               ; preds = %47
  %51 = load ptr, ptr %15, align 8, !tbaa !9
  %52 = load ptr, ptr %13, align 8, !tbaa !9
  %53 = call i32 @strcmp(ptr noundef %51, ptr noundef %52) #7
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  br label %58

56:                                               ; preds = %50, %47
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 188, ptr noundef @.str.33, ptr noundef @.str.34)
          to label %57 unwind label %101

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57, %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIvNS0_8internal9pool_baseEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %59 = invoke noundef i32 @_Z8TestMainIN3tbb10interface621memory_pool_allocatorIvNS1_8internal9pool_baseEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %60 unwind label %105

60:                                               ; preds = %58
  %61 = load i32, ptr %1, align 4, !tbaa !5
  %62 = add nsw i32 %61, %59
  store i32 %62, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %63 = load ptr, ptr %15, align 8, !tbaa !9
  %64 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base7reallocEPvm(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %63, i64 noundef 4063232)
          to label %65 unwind label %109

65:                                               ; preds = %60
  store ptr %64, ptr %17, align 8, !tbaa !9
  %66 = load ptr, ptr %17, align 8, !tbaa !9
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  br label %71

69:                                               ; preds = %65
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 194, ptr noundef @.str.35, ptr noundef @.str.36)
          to label %70 unwind label %109

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70, %68
  %72 = load ptr, ptr %17, align 8, !tbaa !9
  %73 = load ptr, ptr %13, align 8, !tbaa !9
  %74 = call i32 @strcmp(ptr noundef %72, ptr noundef %73) #7
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %77, label %76

76:                                               ; preds = %71
  br label %79

77:                                               ; preds = %71
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 195, ptr noundef @.str.37, ptr noundef @.str.34)
          to label %78 unwind label %109

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78, %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 10, ptr %18, align 8, !tbaa !11
  br label %80

80:                                               ; preds = %123, %79
  %81 = load i64, ptr %18, align 8, !tbaa !11
  %82 = icmp ult i64 %81, 4194304
  br i1 %82, label %113, label %83

83:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %130

84:                                               ; preds = %0
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %6, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN3tbb10interface611memory_poolINS_18scalable_allocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  br label %161

88:                                               ; preds = %26
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %6, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %7, align 4
  call void @_ZN16MinimalAllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  br label %96

92:                                               ; preds = %29
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %6, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN3tbb10interface611memory_poolI16MinimalAllocatorED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br label %96

96:                                               ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #6
  br label %161

97:                                               ; preds = %39, %31
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %6, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %7, align 4
  br label %151

101:                                              ; preds = %56, %41
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %6, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %7, align 4
  br label %150

105:                                              ; preds = %58
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %6, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %150

109:                                              ; preds = %77, %69, %60
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %6, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %7, align 4
  br label %149

113:                                              ; preds = %80
  %114 = load i64, ptr %18, align 8, !tbaa !11
  %115 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %114)
          to label %116 unwind label %126

116:                                              ; preds = %113
  %117 = icmp ne ptr %115, null
  br i1 %117, label %118, label %119

118:                                              ; preds = %116
  br label %121

119:                                              ; preds = %116
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 197, ptr noundef @.str.38, ptr noundef null)
          to label %120 unwind label %126

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120, %118
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %122 unwind label %126

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  %124 = load i64, ptr %18, align 8, !tbaa !11
  %125 = mul i64 %124, 2
  store i64 %125, ptr %18, align 8, !tbaa !11
  br label %80, !llvm.loop !13

126:                                              ; preds = %121, %119, %113
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %6, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %149

130:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIvNS0_8internal9pool_baseEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %131 = invoke noundef i32 @_Z8TestMainIN3tbb10interface621memory_pool_allocatorIvNS1_8internal9pool_baseEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %132 unwind label %145

132:                                              ; preds = %130
  %133 = load i32, ptr %1, align 4, !tbaa !5
  %134 = add nsw i32 %133, %131
  store i32 %134, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN3tbb10interface610fixed_poolD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  call void @_ZN3tbb10interface610fixed_poolC2EPvm(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef @_ZZ8TestMainvE6buffer, i64 noundef 8388608)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIcNS0_10fixed_poolEEC2ERS2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  invoke void @_ZN3tbb10interface611memory_poolINS0_21memory_pool_allocatorIcNS0_10fixed_poolEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %135 unwind label %152

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIcNS0_11memory_poolINS1_IcNS0_10fixed_poolEEEEEEC2ERS5_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  %136 = invoke noundef i32 @_Z8TestMainIN3tbb10interface621memory_pool_allocatorIcNS1_11memory_poolINS2_IcNS1_10fixed_poolEEEEEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %137 unwind label %156

137:                                              ; preds = %135
  %138 = load i32, ptr %1, align 4, !tbaa !5
  %139 = add nsw i32 %138, %136
  store i32 %139, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @_ZN3tbb10interface611memory_poolINS0_21memory_pool_allocatorIcNS0_10fixed_poolEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @_ZN3tbb10interface610fixed_poolD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @_Z22TestSmallFixedSizePoolv()
  call void @_Z23TestZeroSpaceMemoryPoolv()
  %140 = load i32, ptr %1, align 4, !tbaa !5
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %143, label %142

142:                                              ; preds = %137
  br label %144

143:                                              ; preds = %137
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 221, ptr noundef @.str.39, ptr noundef null)
  br label %144

144:                                              ; preds = %143, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret i32 0

145:                                              ; preds = %130
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %6, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %149

149:                                              ; preds = %145, %126, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %150

150:                                              ; preds = %149, %105, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %151

151:                                              ; preds = %150, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN3tbb10interface610fixed_poolD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  br label %161

152:                                              ; preds = %132
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %6, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %7, align 4
  br label %160

156:                                              ; preds = %135
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %6, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @_ZN3tbb10interface611memory_poolINS0_21memory_pool_allocatorIcNS0_10fixed_poolEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  br label %160

160:                                              ; preds = %156, %152
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @_ZN3tbb10interface610fixed_poolD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  br label %161

161:                                              ; preds = %160, %151, %96, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %6, align 8
  %164 = load i32, ptr %7, align 4
  %165 = insertvalue { ptr, i32 } poison, ptr %163, 0
  %166 = insertvalue { ptr, i32 } %165, i32 %164, 1
  resume { ptr, i32 } %166
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z23TestZeroSpaceMemoryPoolv() #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22TestSmallFixedSizePoolv() #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8TestMainIN3tbb18scalable_allocatorIvEEEiRKT_(ptr noundef nonnull align 1 dereferenceable(1)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb18scalable_allocatorIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #5

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb10interface621memory_pool_allocatorIcNS0_11memory_poolINS1_IcNS0_10fixed_poolEEEEEEC2ERS5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress 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 = { 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 #4 = { 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 = { nounwind willreturn memory(read) "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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::scalable_allocator" = type { i8 }
%"class.tbb::interface6::memory_pool.0" = type <{ %"class.tbb::interface6::internal::pool_base", [8 x i8] }>
%"class.tbb::interface6::internal::pool_base" = type { ptr }
%"class.tbb::scalable_allocator.2" = type { i8 }
%"class.tbb::interface6::memory_pool_allocator" = type { ptr }
%"class.tbb::interface6::memory_pool.3" = type { %"class.tbb::interface6::internal::pool_base", %class.MinimalAllocator }
%class.MinimalAllocator = type { %class.local_counting_allocator }
%class.local_counting_allocator = type { %"struct.tbb::atomic", %"struct.tbb::atomic", %"struct.tbb::atomic", %"struct.tbb::atomic", i64 }
%"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 }
%class.static_counting_allocator = type { %"class.tbb::interface6::memory_pool_allocator.4" }
%"class.tbb::interface6::memory_pool_allocator.4" = type { ptr }
%"class.tbb::interface6::fixed_pool" = type { %"class.tbb::interface6::internal::pool_base", ptr, i64 }
%"class.tbb::interface6::memory_pool_allocator.5" = type { ptr }
%"class.tbb::interface6::memory_pool.6" = type { %"class.tbb::interface6::internal::pool_base", %"class.tbb::interface6::memory_pool_allocator.5" }
%"class.tbb::interface6::memory_pool_allocator.7" = type { ptr }

@.str.20 = external hidden unnamed_addr constant [98 x i8], align 1
@_ZZ8TestMainvE3buf = external hidden global [4194304 x i8], align 16
@.str.31 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZZ8TestMainvE6buffer = external hidden global [8388608 x i8], align 16
@.str.39 = external hidden unnamed_addr constant [8 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 noundef i32 @_Z8TestMainv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.tbb::scalable_allocator", align 1
  %2 = alloca %"class.tbb::interface6::memory_pool.0", align 8
  %3 = alloca %"class.tbb::scalable_allocator.2", align 1
  %4 = alloca %"class.tbb::interface6::memory_pool_allocator", align 8
  %5 = alloca %"class.tbb::interface6::memory_pool.3", align 8
  %6 = alloca %class.MinimalAllocator, align 8
  %7 = alloca %class.static_counting_allocator, align 8
  %8 = alloca %"class.tbb::interface6::memory_pool_allocator.4", align 8
  %9 = alloca %"class.tbb::interface6::fixed_pool", align 8
  %10 = alloca %"class.tbb::interface6::memory_pool_allocator", align 8
  %11 = alloca %"class.tbb::interface6::memory_pool_allocator", align 8
  %12 = alloca %"class.tbb::interface6::fixed_pool", align 8
  %13 = alloca %"class.tbb::interface6::memory_pool_allocator.5", align 8
  %14 = alloca %"class.tbb::interface6::memory_pool.6", align 8
  %15 = alloca %"class.tbb::interface6::memory_pool_allocator.7", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %1) #6
  %16 = call noundef i32 @_Z8TestMainIN3tbb18scalable_allocatorIvEEEiRKT_(ptr noundef nonnull align 1 dereferenceable(1) %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZN3tbb18scalable_allocatorIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @_ZN3tbb10interface611memory_poolINS_18scalable_allocatorIiEEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(9) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIvNS0_8internal9pool_baseEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %17 = invoke noundef i32 @_Z8TestMainIN3tbb10interface621memory_pool_allocatorIvNS1_8internal9pool_baseEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %18 unwind label %46

18:                                               ; preds = %0
  %19 = add nsw i32 %17, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN3tbb10interface611memory_poolINS_18scalable_allocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN16MinimalAllocatorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6)
  invoke void @_ZN3tbb10interface611memory_poolI16MinimalAllocatorEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(40) %6)
          to label %20 unwind label %48

20:                                               ; preds = %18
  call void @_ZN16MinimalAllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIcNS0_8internal9pool_baseEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @_ZN25static_counting_allocatorIN3tbb10interface621memory_pool_allocatorIcNS1_8internal9pool_baseEEENS0_6atomicImEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %21 = invoke noundef i32 @_Z8TestMainI25static_counting_allocatorIN3tbb10interface621memory_pool_allocatorIcNS2_8internal9pool_baseEEENS1_6atomicImEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %22 unwind label %50

22:                                               ; preds = %20
  %23 = add nsw i32 %19, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN3tbb10interface611memory_poolI16MinimalAllocatorED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN3tbb10interface610fixed_poolC2EPvm(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull @_ZZ8TestMainvE3buf, i64 noundef 4194304)
  %24 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 16)
          to label %25 unwind label %53

25:                                               ; preds = %22
  %.not = icmp eq ptr %24, null
  br i1 %.not, label %26, label %27

26:                                               ; preds = %25
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 185, ptr noundef nonnull @.str.32, ptr noundef null)
          to label %27 unwind label %53

27:                                               ; preds = %26, %25
  %28 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.31) #6
  %29 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base7reallocEPvm(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %24, i64 noundef 15)
          to label %30 unwind label %55

30:                                               ; preds = %27
  %.not30 = icmp eq ptr %29, null
  br i1 %.not30, label %33, label %31

31:                                               ; preds = %30
  %32 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %29, ptr noundef nonnull dereferenceable(1) @.str.31) #7
  %.not31 = icmp eq i32 %32, 0
  br i1 %.not31, label %34, label %33

33:                                               ; preds = %31, %30
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 188, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.34)
          to label %34 unwind label %55

34:                                               ; preds = %33, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIvNS0_8internal9pool_baseEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %35 = invoke noundef i32 @_Z8TestMainIN3tbb10interface621memory_pool_allocatorIvNS1_8internal9pool_baseEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %36 unwind label %57

36:                                               ; preds = %34
  %37 = add nsw i32 %23, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %38 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base7reallocEPvm(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %29, i64 noundef 4063232)
          to label %39 unwind label %59

39:                                               ; preds = %36
  %.not32 = icmp eq ptr %38, null
  br i1 %.not32, label %40, label %41

40:                                               ; preds = %39
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 194, ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.36)
          to label %41 unwind label %59

41:                                               ; preds = %40, %39
  %42 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %38, ptr noundef nonnull dereferenceable(1) @.str.31) #7
  %.not33 = icmp eq i32 %42, 0
  br i1 %.not33, label %44, label %43

43:                                               ; preds = %41
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 195, ptr noundef nonnull @.str.37, ptr noundef nonnull @.str.34)
          to label %44 unwind label %59

44:                                               ; preds = %43, %41
  %45 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 10)
          to label %61 unwind label %156

46:                                               ; preds = %0
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN3tbb10interface611memory_poolINS_18scalable_allocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %174

48:                                               ; preds = %18
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN16MinimalAllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  br label %52

50:                                               ; preds = %20
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN3tbb10interface611memory_poolI16MinimalAllocatorED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  br label %52

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  br label %174

53:                                               ; preds = %26, %22
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %168

55:                                               ; preds = %33, %27
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %168

57:                                               ; preds = %34
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %168

59:                                               ; preds = %43, %40, %36
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %168

61:                                               ; preds = %44
  %.not37 = icmp eq ptr %45, null
  br i1 %.not37, label %62, label %63

62:                                               ; preds = %61
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %63 unwind label %156

63:                                               ; preds = %62, %61
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %64 unwind label %156

64:                                               ; preds = %63
  %65 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 20)
          to label %66 unwind label %156

66:                                               ; preds = %64
  %.not37.1 = icmp eq ptr %65, null
  br i1 %.not37.1, label %67, label %68

67:                                               ; preds = %66
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %68 unwind label %156

68:                                               ; preds = %67, %66
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %69 unwind label %156

69:                                               ; preds = %68
  %70 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 40)
          to label %71 unwind label %156

71:                                               ; preds = %69
  %.not37.2 = icmp eq ptr %70, null
  br i1 %.not37.2, label %72, label %73

72:                                               ; preds = %71
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %73 unwind label %156

73:                                               ; preds = %72, %71
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %74 unwind label %156

74:                                               ; preds = %73
  %75 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 80)
          to label %76 unwind label %156

76:                                               ; preds = %74
  %.not37.3 = icmp eq ptr %75, null
  br i1 %.not37.3, label %77, label %78

77:                                               ; preds = %76
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %78 unwind label %156

78:                                               ; preds = %77, %76
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %79 unwind label %156

79:                                               ; preds = %78
  %80 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 160)
          to label %81 unwind label %156

81:                                               ; preds = %79
  %.not37.4 = icmp eq ptr %80, null
  br i1 %.not37.4, label %82, label %83

82:                                               ; preds = %81
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %83 unwind label %156

83:                                               ; preds = %82, %81
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %84 unwind label %156

84:                                               ; preds = %83
  %85 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 320)
          to label %86 unwind label %156

86:                                               ; preds = %84
  %.not37.5 = icmp eq ptr %85, null
  br i1 %.not37.5, label %87, label %88

87:                                               ; preds = %86
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %88 unwind label %156

88:                                               ; preds = %87, %86
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %89 unwind label %156

89:                                               ; preds = %88
  %90 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 640)
          to label %91 unwind label %156

91:                                               ; preds = %89
  %.not37.6 = icmp eq ptr %90, null
  br i1 %.not37.6, label %92, label %93

92:                                               ; preds = %91
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %93 unwind label %156

93:                                               ; preds = %92, %91
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %94 unwind label %156

94:                                               ; preds = %93
  %95 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 1280)
          to label %96 unwind label %156

96:                                               ; preds = %94
  %.not37.7 = icmp eq ptr %95, null
  br i1 %.not37.7, label %97, label %98

97:                                               ; preds = %96
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %98 unwind label %156

98:                                               ; preds = %97, %96
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %99 unwind label %156

99:                                               ; preds = %98
  %100 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 2560)
          to label %101 unwind label %156

101:                                              ; preds = %99
  %.not37.8 = icmp eq ptr %100, null
  br i1 %.not37.8, label %102, label %103

102:                                              ; preds = %101
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %103 unwind label %156

103:                                              ; preds = %102, %101
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %104 unwind label %156

104:                                              ; preds = %103
  %105 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 5120)
          to label %106 unwind label %156

106:                                              ; preds = %104
  %.not37.9 = icmp eq ptr %105, null
  br i1 %.not37.9, label %107, label %108

107:                                              ; preds = %106
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %108 unwind label %156

108:                                              ; preds = %107, %106
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %109 unwind label %156

109:                                              ; preds = %108
  %110 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 10240)
          to label %111 unwind label %156

111:                                              ; preds = %109
  %.not37.10 = icmp eq ptr %110, null
  br i1 %.not37.10, label %112, label %113

112:                                              ; preds = %111
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %113 unwind label %156

113:                                              ; preds = %112, %111
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %114 unwind label %156

114:                                              ; preds = %113
  %115 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 20480)
          to label %116 unwind label %156

116:                                              ; preds = %114
  %.not37.11 = icmp eq ptr %115, null
  br i1 %.not37.11, label %117, label %118

117:                                              ; preds = %116
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %118 unwind label %156

118:                                              ; preds = %117, %116
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %119 unwind label %156

119:                                              ; preds = %118
  %120 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 40960)
          to label %121 unwind label %156

121:                                              ; preds = %119
  %.not37.12 = icmp eq ptr %120, null
  br i1 %.not37.12, label %122, label %123

122:                                              ; preds = %121
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %123 unwind label %156

123:                                              ; preds = %122, %121
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %124 unwind label %156

124:                                              ; preds = %123
  %125 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 81920)
          to label %126 unwind label %156

126:                                              ; preds = %124
  %.not37.13 = icmp eq ptr %125, null
  br i1 %.not37.13, label %127, label %128

127:                                              ; preds = %126
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %128 unwind label %156

128:                                              ; preds = %127, %126
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %129 unwind label %156

129:                                              ; preds = %128
  %130 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 163840)
          to label %131 unwind label %156

131:                                              ; preds = %129
  %.not37.14 = icmp eq ptr %130, null
  br i1 %.not37.14, label %132, label %133

132:                                              ; preds = %131
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %133 unwind label %156

133:                                              ; preds = %132, %131
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %134 unwind label %156

134:                                              ; preds = %133
  %135 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 327680)
          to label %136 unwind label %156

136:                                              ; preds = %134
  %.not37.15 = icmp eq ptr %135, null
  br i1 %.not37.15, label %137, label %138

137:                                              ; preds = %136
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %138 unwind label %156

138:                                              ; preds = %137, %136
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %139 unwind label %156

139:                                              ; preds = %138
  %140 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 655360)
          to label %141 unwind label %156

141:                                              ; preds = %139
  %.not37.16 = icmp eq ptr %140, null
  br i1 %.not37.16, label %142, label %143

142:                                              ; preds = %141
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %143 unwind label %156

143:                                              ; preds = %142, %141
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %144 unwind label %156

144:                                              ; preds = %143
  %145 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 1310720)
          to label %146 unwind label %156

146:                                              ; preds = %144
  %.not37.17 = icmp eq ptr %145, null
  br i1 %.not37.17, label %147, label %148

147:                                              ; preds = %146
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %148 unwind label %156

148:                                              ; preds = %147, %146
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %149 unwind label %156

149:                                              ; preds = %148
  %150 = invoke noundef ptr @_ZN3tbb10interface68internal9pool_base6mallocEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 2621440)
          to label %151 unwind label %156

151:                                              ; preds = %149
  %.not37.18 = icmp eq ptr %150, null
  br i1 %.not37.18, label %152, label %153

152:                                              ; preds = %151
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 197, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %153 unwind label %156

153:                                              ; preds = %152, %151
  invoke void @_ZN3tbb10interface68internal9pool_base7recycleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %154 unwind label %156

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIvNS0_8internal9pool_baseEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %155 = invoke noundef i32 @_Z8TestMainIN3tbb10interface621memory_pool_allocatorIvNS1_8internal9pool_baseEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %158 unwind label %166

156:                                              ; preds = %153, %152, %149, %148, %147, %144, %143, %142, %139, %138, %137, %134, %133, %132, %129, %128, %127, %124, %123, %122, %119, %118, %117, %114, %113, %112, %109, %108, %107, %104, %103, %102, %99, %98, %97, %94, %93, %92, %89, %88, %87, %84, %83, %82, %79, %78, %77, %74, %73, %72, %69, %68, %67, %64, %63, %62, %44
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %168

158:                                              ; preds = %154
  %159 = add nsw i32 %37, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZN3tbb10interface610fixed_poolD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @_ZN3tbb10interface610fixed_poolC2EPvm(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull @_ZZ8TestMainvE6buffer, i64 noundef 8388608)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIcNS0_10fixed_poolEEC2ERS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  invoke void @_ZN3tbb10interface611memory_poolINS0_21memory_pool_allocatorIcNS0_10fixed_poolEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %160 unwind label %169

160:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @_ZN3tbb10interface621memory_pool_allocatorIcNS0_11memory_poolINS1_IcNS0_10fixed_poolEEEEEEC2ERS5_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  %161 = invoke noundef i32 @_Z8TestMainIN3tbb10interface621memory_pool_allocatorIcNS1_11memory_poolINS2_IcNS1_10fixed_poolEEEEEEEEiRKT_(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %162 unwind label %171

162:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @_ZN3tbb10interface611memory_poolINS0_21memory_pool_allocatorIcNS0_10fixed_poolEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @_ZN3tbb10interface610fixed_poolD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @_Z22TestSmallFixedSizePoolv()
  call void @_Z23TestZeroSpaceMemoryPoolv()
  %163 = sub i32 0, %161
  %.not36 = icmp eq i32 %159, %163
  br i1 %.not36, label %165, label %164

164:                                              ; preds = %162
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 221, ptr noundef nonnull @.str.39, ptr noundef null)
  br label %165

165:                                              ; preds = %162, %164
  ret i32 0

166:                                              ; preds = %154
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %168

168:                                              ; preds = %55, %57, %166, %156, %59, %53
  %.pn38.pn.pn = phi { ptr, i32 } [ %54, %53 ], [ %58, %57 ], [ %56, %55 ], [ %157, %156 ], [ %167, %166 ], [ %60, %59 ]
  call void @_ZN3tbb10interface610fixed_poolD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %174

169:                                              ; preds = %158
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %173

171:                                              ; preds = %160
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @_ZN3tbb10interface611memory_poolINS0_21memory_pool_allocatorIcNS0_10fixed_poolEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  br label %173

173:                                              ; preds = %171, %169
  %.pn34 = phi { ptr, i32 } [ %172, %171 ], [ %170, %169 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @_ZN3tbb10interface610fixed_poolD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  br label %174

174:                                              ; preds = %173, %168, %52, %46
  %.pn38.pn.pn.pn = phi { ptr, i32 } [ %.pn38.pn.pn, %168 ], [ %.pn34, %173 ], [ %.pn, %52 ], [ %47, %46 ]
  resume { ptr, i32 } %.pn38.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z23TestZeroSpaceMemoryPoolv() local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22TestSmallFixedSizePoolv() local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8TestMainIN3tbb18scalable_allocatorIvEEEiRKT_(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb18scalable_allocatorIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb10interface621memory_pool_allocatorIcNS0_11memory_poolINS1_IcNS0_10fixed_poolEEEEEEC2ERS5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass