; LLVM IR from opset/openset :: lib/sba/sba.ll (ZN7PoolMemC2Ev)

; 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.std::initializer_list" = type { ptr, i64 }
%"struct.PoolMem::memory_s" = type { %class.CriticalSection, i32, i64, %"class.std::vector.5" }
%class.CriticalSection = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<PoolMem::alloc_s *, std::allocator<PoolMem::alloc_s *>>::_Vector_impl" }
%"struct.std::_Vector_base<PoolMem::alloc_s *, std::allocator<PoolMem::alloc_s *>>::_Vector_impl" = type { %"struct.std::_Vector_base<PoolMem::alloc_s *, std::allocator<PoolMem::alloc_s *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PoolMem::alloc_s *, std::allocator<PoolMem::alloc_s *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.PoolMem = type { %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PoolMem::memory_s, std::allocator<PoolMem::memory_s>>::_Vector_impl" }
%"struct.std::_Vector_base<PoolMem::memory_s, std::allocator<PoolMem::memory_s>>::_Vector_impl" = type { %"struct.std::_Vector_base<PoolMem::memory_s, std::allocator<PoolMem::memory_s>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PoolMem::memory_s, std::allocator<PoolMem::memory_s>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7PoolMemC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::initializer_list", align 8
  %4 = alloca [33 x %"struct.PoolMem::memory_s"], align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8
  %24 = getelementptr inbounds %class.PoolMem, ptr %23, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 1320, ptr %4) #4
  store ptr %4, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef 16)
          to label %25 unwind label %115

25:                                               ; preds = %1
  %26 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 1
  store ptr %26, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %26, i64 noundef 20)
          to label %27 unwind label %115

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 2
  store ptr %28, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %28, i64 noundef 24)
          to label %29 unwind label %115

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 3
  store ptr %30, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %30, i64 noundef 28)
          to label %31 unwind label %115

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 4
  store ptr %32, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %32, i64 noundef 36)
          to label %33 unwind label %115

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 5
  store ptr %34, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %34, i64 noundef 52)
          to label %35 unwind label %115

35:                                               ; preds = %33
  %36 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 6
  store ptr %36, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %36, i64 noundef 64)
          to label %37 unwind label %115

37:                                               ; preds = %35
  %38 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 7
  store ptr %38, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %38, i64 noundef 100)
          to label %39 unwind label %115

39:                                               ; preds = %37
  %40 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 8
  store ptr %40, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %40, i64 noundef 144)
          to label %41 unwind label %115

41:                                               ; preds = %39
  %42 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 9
  store ptr %42, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %42, i64 noundef 256)
          to label %43 unwind label %115

43:                                               ; preds = %41
  %44 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 10
  store ptr %44, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %44, i64 noundef 400)
          to label %45 unwind label %115

45:                                               ; preds = %43
  %46 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 11
  store ptr %46, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %46, i64 noundef 576)
          to label %47 unwind label %115

47:                                               ; preds = %45
  %48 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 12
  store ptr %48, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %48, i64 noundef 784)
          to label %49 unwind label %115

49:                                               ; preds = %47
  %50 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 13
  store ptr %50, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %50, i64 noundef 1024)
          to label %51 unwind label %115

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 14
  store ptr %52, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %52, i64 noundef 1296)
          to label %53 unwind label %115

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 15
  store ptr %54, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %54, i64 noundef 1600)
          to label %55 unwind label %115

55:                                               ; preds = %53
  %56 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 16
  store ptr %56, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %56, i64 noundef 1936)
          to label %57 unwind label %115

57:                                               ; preds = %55
  %58 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 17
  store ptr %58, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %58, i64 noundef 2304)
          to label %59 unwind label %115

59:                                               ; preds = %57
  %60 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 18
  store ptr %60, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %60, i64 noundef 2704)
          to label %61 unwind label %115

61:                                               ; preds = %59
  %62 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 19
  store ptr %62, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %62, i64 noundef 3136)
          to label %63 unwind label %115

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 20
  store ptr %64, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %64, i64 noundef 3600)
          to label %65 unwind label %115

65:                                               ; preds = %63
  %66 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 21
  store ptr %66, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %66, i64 noundef 4096)
          to label %67 unwind label %115

67:                                               ; preds = %65
  %68 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 22
  store ptr %68, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %68, i64 noundef 4624)
          to label %69 unwind label %115

69:                                               ; preds = %67
  %70 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 23
  store ptr %70, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %70, i64 noundef 5184)
          to label %71 unwind label %115

71:                                               ; preds = %69
  %72 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 24
  store ptr %72, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %72, i64 noundef 5776)
          to label %73 unwind label %115

73:                                               ; preds = %71
  %74 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 25
  store ptr %74, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %74, i64 noundef 6400)
          to label %75 unwind label %115

75:                                               ; preds = %73
  %76 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 26
  store ptr %76, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %76, i64 noundef 7056)
          to label %77 unwind label %115

77:                                               ; preds = %75
  %78 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 27
  store ptr %78, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %78, i64 noundef 7744)
          to label %79 unwind label %115

79:                                               ; preds = %77
  %80 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 28
  store ptr %80, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %80, i64 noundef 9216)
          to label %81 unwind label %115

81:                                               ; preds = %79
  %82 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 29
  store ptr %82, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %82, i64 noundef 10816)
          to label %83 unwind label %115

83:                                               ; preds = %81
  %84 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 30
  store ptr %84, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %84, i64 noundef 12544)
          to label %85 unwind label %115

85:                                               ; preds = %83
  %86 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 31
  store ptr %86, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %86, i64 noundef 14400)
          to label %87 unwind label %115

87:                                               ; preds = %85
  %88 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %4, i64 32
  store ptr %88, ptr %5, align 8
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %88, i64 noundef 16384)
          to label %89 unwind label %115

89:                                               ; preds = %87
  %90 = getelementptr inbounds %"class.std::initializer_list", ptr %3, i32 0, i32 0
  store ptr %4, ptr %90, align 8, !tbaa !9
  %91 = getelementptr inbounds %"class.std::initializer_list", ptr %3, i32 0, i32 1
  store i64 33, ptr %91, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  call void @_ZNSaIN7PoolMem8memory_sEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  %92 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 1
  %95 = load i64, ptr %94, align 8
  invoke void @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr %93, i64 %95, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %96 unwind label %126

96:                                               ; preds = %89
  call void @_ZNSt15__new_allocatorIN7PoolMem8memory_sEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  %97 = getelementptr inbounds [33 x %"struct.PoolMem::memory_s"], ptr %4, i32 0, i32 0
  %98 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %97, i64 33
  br label %99

99:                                               ; preds = %99, %96
  %100 = phi ptr [ %98, %96 ], [ %101, %99 ]
  %101 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %100, i64 -1
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %101) #4
  %102 = icmp eq ptr %101, %97
  br i1 %102, label %103, label %99

103:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 1320, ptr %4) #4
  %104 = getelementptr inbounds %class.PoolMem, ptr %23, i32 0, i32 1
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %104) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %105 = getelementptr inbounds %class.PoolMem, ptr %23, i32 0, i32 0
  store ptr %105, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = call ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #4
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %107, ptr %108, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = call ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #4
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %110, ptr %111, align 8
  br label %112

112:                                              ; preds = %145, %103
  %113 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %113, label %138, label %114

114:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %147

115:                                              ; preds = %87, %85, %83, %81, %79, %77, %75, %73, %71, %69, %67, %65, %63, %61, %59, %57, %55, %53, %51, %49, %47, %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %1
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %6, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %7, align 4
  %119 = load ptr, ptr %5, align 8
  %120 = icmp eq ptr %4, %119
  br i1 %120, label %125, label %121

121:                                              ; preds = %121, %115
  %122 = phi ptr [ %119, %115 ], [ %123, %121 ]
  %123 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %122, i64 -1
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %123) #4
  %124 = icmp eq ptr %123, %4
  br i1 %124, label %125, label %121

125:                                              ; preds = %121, %115
  br label %137

126:                                              ; preds = %89
  %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 @_ZNSt15__new_allocatorIN7PoolMem8memory_sEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  %130 = getelementptr inbounds [33 x %"struct.PoolMem::memory_s"], ptr %4, i32 0, i32 0
  %131 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %130, i64 33
  br label %132

132:                                              ; preds = %132, %126
  %133 = phi ptr [ %131, %126 ], [ %134, %132 ]
  %134 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %133, i64 -1
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %134) #4
  %135 = icmp eq ptr %134, %130
  br i1 %135, label %136, label %132

136:                                              ; preds = %132
  br label %137

137:                                              ; preds = %136, %125
  call void @llvm.lifetime.end.p0(i64 1320, ptr %4) #4
  br label %216

138:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %139 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  store ptr %139, ptr %13, align 8, !tbaa !5
  %140 = load i32, ptr %9, align 4, !tbaa !13
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %141, i32 0, i32 1
  store i32 %140, ptr %142, align 4, !tbaa !15
  %143 = load i32, ptr %9, align 4, !tbaa !13
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %145

145:                                              ; preds = %138
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br label %112

147:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %148

148:                                              ; preds = %213, %147
  br label %149

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %150 = load i32, ptr %14, align 4, !tbaa !13
  %151 = invoke noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef %150, i32 noundef 2)
          to label %152 unwind label %163

152:                                              ; preds = %149
  store double %151, ptr %15, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 -1, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %153 = getelementptr inbounds %class.PoolMem, ptr %23, i32 0, i32 0
  store ptr %153, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = call ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #4
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %155, ptr %156, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = call ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %157) #4
  %159 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %158, ptr %159, align 8
  br label %160

160:                                              ; preds = %183, %152
  %161 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  br i1 %161, label %167, label %162

162:                                              ; preds = %160
  store i32 6, ptr %20, align 4
  br label %185

163:                                              ; preds = %149
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %6, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %7, align 4
  br label %214

167:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %168 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  store ptr %168, ptr %21, align 8, !tbaa !5
  %169 = load ptr, ptr %21, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %169, i32 0, i32 2
  %171 = load i64, ptr %170, align 8, !tbaa !27
  %172 = sitofp i64 %171 to double
  %173 = load double, ptr %15, align 8, !tbaa !25
  %174 = fcmp oge double %172, %173
  br i1 %174, label %175, label %179

175:                                              ; preds = %167
  %176 = load ptr, ptr %21, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %176, i32 0, i32 1
  %178 = load i32, ptr %177, align 4, !tbaa !15
  store i32 %178, ptr %16, align 4, !tbaa !13
  store i32 6, ptr %20, align 4
  br label %180

179:                                              ; preds = %167
  store i32 0, ptr %20, align 4
  br label %180

180:                                              ; preds = %179, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  %181 = load i32, ptr %20, align 4
  switch i32 %181, label %185 [
    i32 0, label %182
  ]

182:                                              ; preds = %180
  br label %183

183:                                              ; preds = %182
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  br label %160

185:                                              ; preds = %180, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %186

186:                                              ; preds = %185
  %187 = getelementptr inbounds %class.PoolMem, ptr %23, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %188 = load i32, ptr %16, align 4, !tbaa !13
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %186
  br label %193

191:                                              ; preds = %186
  %192 = load i32, ptr %16, align 4, !tbaa !13
  br label %193

193:                                              ; preds = %191, %190
  %194 = phi i32 [ 1, %190 ], [ %192, %191 ]
  store i32 %194, ptr %22, align 4, !tbaa !13
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %187, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %195 unwind label %206

195:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  %196 = load i32, ptr %14, align 4, !tbaa !13
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %14, align 4, !tbaa !13
  %198 = load double, ptr %15, align 8, !tbaa !25
  %199 = getelementptr inbounds %class.PoolMem, ptr %23, i32 0, i32 0
  %200 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %199) #4
  %201 = getelementptr inbounds %"struct.PoolMem::memory_s", ptr %200, i32 0, i32 2
  %202 = load i64, ptr %201, align 8, !tbaa !27
  %203 = sitofp i64 %202 to double
  %204 = fcmp oge double %198, %203
  br i1 %204, label %205, label %210

205:                                              ; preds = %195
  store i32 5, ptr %20, align 4
  br label %211

206:                                              ; preds = %193
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %6, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %214

210:                                              ; preds = %195
  store i32 0, ptr %20, align 4
  br label %211

211:                                              ; preds = %210, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %212 = load i32, ptr %20, align 4
  switch i32 %212, label %221 [
    i32 0, label %213
    i32 5, label %215
  ]

213:                                              ; preds = %211
  br label %148, !llvm.loop !28

214:                                              ; preds = %206, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %104) #4
  call void @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  br label %216

215:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void

216:                                              ; preds = %214, %137
  %217 = load ptr, ptr %6, align 8
  %218 = load i32, ptr %7, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220

221:                                              ; preds = %211
  unreachable
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i32 noundef) #2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt16initializer_listIN7PoolMem8memory_sEE", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 4}
!16 = !{!"_ZTSN7PoolMem8memory_sE", !17, i64 0, !14, i64 4, !11, i64 8, !21, i64 16}
!17 = !{!"_ZTS15CriticalSection", !18, i64 0}
!18 = !{!"_ZTSSt6atomicIbE", !19, i64 0}
!19 = !{!"_ZTSSt13__atomic_baseIbE", !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIPN7PoolMem7alloc_sESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN7PoolMem7alloc_sESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7PoolMem7alloc_sESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7PoolMem7alloc_sESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = !{!16, !11, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"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"

%"struct.PoolMem::memory_s" = type { %class.CriticalSection, i32, i64, %"class.std::vector.5" }
%class.CriticalSection = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<PoolMem::alloc_s *, std::allocator<PoolMem::alloc_s *>>::_Vector_impl" }
%"struct.std::_Vector_base<PoolMem::alloc_s *, std::allocator<PoolMem::alloc_s *>>::_Vector_impl" = type { %"struct.std::_Vector_base<PoolMem::alloc_s *, std::allocator<PoolMem::alloc_s *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PoolMem::alloc_s *, std::allocator<PoolMem::alloc_s *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7PoolMemC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [33 x %"struct.PoolMem::memory_s"], align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 1320, ptr nonnull %2) #5
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef 16)
          to label %10 unwind label %.thread

.thread:                                          ; preds = %1
  %9 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

10:                                               ; preds = %1
  %11 = getelementptr inbounds i8, ptr %2, i64 40
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef 20)
          to label %12 unwind label %112

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %2, i64 80
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %13, i64 noundef 24)
          to label %14 unwind label %112

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %2, i64 120
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef 28)
          to label %16 unwind label %112

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %2, i64 160
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %17, i64 noundef 36)
          to label %18 unwind label %112

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %2, i64 200
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %19, i64 noundef 52)
          to label %20 unwind label %112

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %2, i64 240
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %21, i64 noundef 64)
          to label %22 unwind label %112

22:                                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %2, i64 280
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %23, i64 noundef 100)
          to label %24 unwind label %112

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %2, i64 320
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %25, i64 noundef 144)
          to label %26 unwind label %112

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %2, i64 360
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %27, i64 noundef 256)
          to label %28 unwind label %112

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %2, i64 400
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %29, i64 noundef 400)
          to label %30 unwind label %112

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %2, i64 440
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %31, i64 noundef 576)
          to label %32 unwind label %112

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %2, i64 480
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %33, i64 noundef 784)
          to label %34 unwind label %112

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %2, i64 520
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %35, i64 noundef 1024)
          to label %36 unwind label %112

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %2, i64 560
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %37, i64 noundef 1296)
          to label %38 unwind label %112

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %2, i64 600
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %39, i64 noundef 1600)
          to label %40 unwind label %112

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %2, i64 640
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %41, i64 noundef 1936)
          to label %42 unwind label %112

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %2, i64 680
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %43, i64 noundef 2304)
          to label %44 unwind label %112

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %2, i64 720
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %45, i64 noundef 2704)
          to label %46 unwind label %112

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %2, i64 760
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %47, i64 noundef 3136)
          to label %48 unwind label %112

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %2, i64 800
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %49, i64 noundef 3600)
          to label %50 unwind label %112

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %2, i64 840
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %51, i64 noundef 4096)
          to label %52 unwind label %112

52:                                               ; preds = %50
  %53 = getelementptr inbounds i8, ptr %2, i64 880
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %53, i64 noundef 4624)
          to label %54 unwind label %112

54:                                               ; preds = %52
  %55 = getelementptr inbounds i8, ptr %2, i64 920
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %55, i64 noundef 5184)
          to label %56 unwind label %112

56:                                               ; preds = %54
  %57 = getelementptr inbounds i8, ptr %2, i64 960
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %57, i64 noundef 5776)
          to label %58 unwind label %112

58:                                               ; preds = %56
  %59 = getelementptr inbounds i8, ptr %2, i64 1000
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %59, i64 noundef 6400)
          to label %60 unwind label %112

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %2, i64 1040
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %61, i64 noundef 7056)
          to label %62 unwind label %112

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %2, i64 1080
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %63, i64 noundef 7744)
          to label %64 unwind label %112

64:                                               ; preds = %62
  %65 = getelementptr inbounds i8, ptr %2, i64 1120
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %65, i64 noundef 9216)
          to label %66 unwind label %112

66:                                               ; preds = %64
  %67 = getelementptr inbounds i8, ptr %2, i64 1160
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %67, i64 noundef 10816)
          to label %68 unwind label %112

68:                                               ; preds = %66
  %69 = getelementptr inbounds i8, ptr %2, i64 1200
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %69, i64 noundef 12544)
          to label %70 unwind label %112

70:                                               ; preds = %68
  %71 = getelementptr inbounds i8, ptr %2, i64 1240
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %71, i64 noundef 14400)
          to label %72 unwind label %112

72:                                               ; preds = %70
  %73 = getelementptr inbounds i8, ptr %2, i64 1280
  invoke void @_ZN7PoolMem8memory_sC2El(ptr noundef nonnull align 8 dereferenceable(40) %73, i64 noundef 16384)
          to label %74 unwind label %112

74:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  call void @_ZNSaIN7PoolMem8memory_sEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  invoke void @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %2, i64 33, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %75 unwind label %.loopexit.loopexit

75:                                               ; preds = %74
  call void @_ZNSt15__new_allocatorIN7PoolMem8memory_sEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  %76 = getelementptr inbounds i8, ptr %2, i64 1280
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %76) #5
  %77 = getelementptr inbounds i8, ptr %2, i64 1240
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %77) #5
  %78 = getelementptr inbounds i8, ptr %2, i64 1200
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %78) #5
  %79 = getelementptr inbounds i8, ptr %2, i64 1160
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %79) #5
  %80 = getelementptr inbounds i8, ptr %2, i64 1120
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %80) #5
  %81 = getelementptr inbounds i8, ptr %2, i64 1080
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %81) #5
  %82 = getelementptr inbounds i8, ptr %2, i64 1040
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %82) #5
  %83 = getelementptr inbounds i8, ptr %2, i64 1000
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %83) #5
  %84 = getelementptr inbounds i8, ptr %2, i64 960
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %84) #5
  %85 = getelementptr inbounds i8, ptr %2, i64 920
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %85) #5
  %86 = getelementptr inbounds i8, ptr %2, i64 880
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %86) #5
  %87 = getelementptr inbounds i8, ptr %2, i64 840
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %87) #5
  %88 = getelementptr inbounds i8, ptr %2, i64 800
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %88) #5
  %89 = getelementptr inbounds i8, ptr %2, i64 760
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %89) #5
  %90 = getelementptr inbounds i8, ptr %2, i64 720
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %90) #5
  %91 = getelementptr inbounds i8, ptr %2, i64 680
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %91) #5
  %92 = getelementptr inbounds i8, ptr %2, i64 640
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %92) #5
  %93 = getelementptr inbounds i8, ptr %2, i64 600
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %93) #5
  %94 = getelementptr inbounds i8, ptr %2, i64 560
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %94) #5
  %95 = getelementptr inbounds i8, ptr %2, i64 520
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %95) #5
  %96 = getelementptr inbounds i8, ptr %2, i64 480
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %96) #5
  %97 = getelementptr inbounds i8, ptr %2, i64 440
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %97) #5
  %98 = getelementptr inbounds i8, ptr %2, i64 400
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %98) #5
  %99 = getelementptr inbounds i8, ptr %2, i64 360
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %99) #5
  %100 = getelementptr inbounds i8, ptr %2, i64 320
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %100) #5
  %101 = getelementptr inbounds i8, ptr %2, i64 280
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %101) #5
  %102 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %102) #5
  %103 = getelementptr inbounds i8, ptr %2, i64 200
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %103) #5
  %104 = getelementptr inbounds i8, ptr %2, i64 160
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %104) #5
  %105 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %105) #5
  %106 = getelementptr inbounds i8, ptr %2, i64 80
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %106) #5
  %107 = getelementptr inbounds i8, ptr %2, i64 40
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %107) #5
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #5
  call void @llvm.lifetime.end.p0(i64 1320, ptr nonnull %2) #5
  %108 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %108) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %109 = call ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %109, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %110 = call ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %110, ptr %5, align 8
  %111 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %111, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %156

112:                                              ; preds = %72, %70, %68, %66, %64, %62, %60, %58, %56, %54, %52, %50, %48, %46, %44, %42, %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10
  %.0 = phi ptr [ %73, %72 ], [ %71, %70 ], [ %69, %68 ], [ %67, %66 ], [ %65, %64 ], [ %63, %62 ], [ %61, %60 ], [ %59, %58 ], [ %57, %56 ], [ %55, %54 ], [ %53, %52 ], [ %51, %50 ], [ %49, %48 ], [ %47, %46 ], [ %45, %44 ], [ %43, %42 ], [ %41, %40 ], [ %39, %38 ], [ %37, %36 ], [ %35, %34 ], [ %33, %32 ], [ %31, %30 ], [ %29, %28 ], [ %27, %26 ], [ %25, %24 ], [ %23, %22 ], [ %21, %20 ], [ %19, %18 ], [ %17, %16 ], [ %15, %14 ], [ %13, %12 ], [ %11, %10 ]
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %114

114:                                              ; preds = %112, %114
  %115 = phi ptr [ %.0, %112 ], [ %116, %114 ]
  %116 = getelementptr inbounds i8, ptr %115, i64 -40
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %116) #5
  %117 = icmp eq ptr %116, %2
  br i1 %117, label %.loopexit, label %114

.loopexit.loopexit:                               ; preds = %74
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN7PoolMem8memory_sEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  %119 = getelementptr inbounds i8, ptr %2, i64 1280
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %119) #5
  %120 = getelementptr inbounds i8, ptr %2, i64 1240
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %120) #5
  %121 = getelementptr inbounds i8, ptr %2, i64 1200
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %121) #5
  %122 = getelementptr inbounds i8, ptr %2, i64 1160
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %122) #5
  %123 = getelementptr inbounds i8, ptr %2, i64 1120
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %123) #5
  %124 = getelementptr inbounds i8, ptr %2, i64 1080
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %124) #5
  %125 = getelementptr inbounds i8, ptr %2, i64 1040
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %125) #5
  %126 = getelementptr inbounds i8, ptr %2, i64 1000
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %126) #5
  %127 = getelementptr inbounds i8, ptr %2, i64 960
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %127) #5
  %128 = getelementptr inbounds i8, ptr %2, i64 920
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %128) #5
  %129 = getelementptr inbounds i8, ptr %2, i64 880
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %129) #5
  %130 = getelementptr inbounds i8, ptr %2, i64 840
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %130) #5
  %131 = getelementptr inbounds i8, ptr %2, i64 800
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %131) #5
  %132 = getelementptr inbounds i8, ptr %2, i64 760
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %132) #5
  %133 = getelementptr inbounds i8, ptr %2, i64 720
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %133) #5
  %134 = getelementptr inbounds i8, ptr %2, i64 680
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %134) #5
  %135 = getelementptr inbounds i8, ptr %2, i64 640
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %135) #5
  %136 = getelementptr inbounds i8, ptr %2, i64 600
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %136) #5
  %137 = getelementptr inbounds i8, ptr %2, i64 560
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %137) #5
  %138 = getelementptr inbounds i8, ptr %2, i64 520
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %138) #5
  %139 = getelementptr inbounds i8, ptr %2, i64 480
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %139) #5
  %140 = getelementptr inbounds i8, ptr %2, i64 440
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %140) #5
  %141 = getelementptr inbounds i8, ptr %2, i64 400
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %141) #5
  %142 = getelementptr inbounds i8, ptr %2, i64 360
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %142) #5
  %143 = getelementptr inbounds i8, ptr %2, i64 320
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %143) #5
  %144 = getelementptr inbounds i8, ptr %2, i64 280
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %144) #5
  %145 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %145) #5
  %146 = getelementptr inbounds i8, ptr %2, i64 200
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %146) #5
  %147 = getelementptr inbounds i8, ptr %2, i64 160
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %147) #5
  %148 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %148) #5
  %149 = getelementptr inbounds i8, ptr %2, i64 80
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %149) #5
  %150 = getelementptr inbounds i8, ptr %2, i64 40
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %150) #5
  call void @_ZN7PoolMem8memory_sD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #5
  br label %.loopexit

.loopexit:                                        ; preds = %114, %.loopexit.loopexit, %.thread
  %.pn = phi { ptr, i32 } [ %9, %.thread ], [ %118, %.loopexit.loopexit ], [ %113, %114 ]
  call void @llvm.lifetime.end.p0(i64 1320, ptr nonnull %2) #5
  br label %182

.lr.ph:                                           ; preds = %75, %.lr.ph
  %.02835 = phi i32 [ %153, %.lr.ph ], [ 0, %75 ]
  %151 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %152 = getelementptr inbounds i8, ptr %151, i64 4
  store i32 %.02835, ptr %152, align 4, !tbaa !5
  %153 = add nuw nsw i32 %.02835, 1
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %155 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %155, label %.lr.ph, label %._crit_edge

156:                                              ; preds = %172, %._crit_edge
  %.027 = phi i32 [ 0, %._crit_edge ], [ %173, %172 ]
  %157 = call noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef %.027, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %158 = call ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %158, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %159 = call ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %159, ptr %7, align 8
  %160 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %160, label %.lr.ph37, label %._crit_edge38

.lr.ph37:                                         ; preds = %156, %168
  %161 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %162 = getelementptr inbounds i8, ptr %161, i64 8
  %163 = load i64, ptr %162, align 8, !tbaa !20
  %164 = sitofp i64 %163 to double
  %165 = fcmp ugt double %157, %164
  %166 = getelementptr inbounds i8, ptr %161, i64 4
  %167 = load i32, ptr %166, align 4
  br i1 %165, label %168, label %._crit_edge38

168:                                              ; preds = %.lr.ph37
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %170 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %170, label %.lr.ph37, label %._crit_edge38

._crit_edge38:                                    ; preds = %.lr.ph37, %168, %156
  %.2 = phi i32 [ -1, %156 ], [ -1, %168 ], [ %167, %.lr.ph37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %171 = call i32 @llvm.umax.i32(i32 %.2, i32 1)
  store i32 %171, ptr %8, align 4, !tbaa !21
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %172 unwind label %179

172:                                              ; preds = %._crit_edge38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %173 = add nuw nsw i32 %.027, 1
  %174 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %175 = getelementptr inbounds i8, ptr %174, i64 8
  %176 = load i64, ptr %175, align 8, !tbaa !20
  %177 = sitofp i64 %176 to double
  %178 = fcmp ult double %157, %177
  br i1 %178, label %156, label %181

179:                                              ; preds = %._crit_edge38
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %108) #5
  call void @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %182

181:                                              ; preds = %172
  ret void

182:                                              ; preds = %179, %.loopexit
  %.pn31 = phi { ptr, i32 } [ %180, %179 ], [ %.pn, %.loopexit ]
  resume { ptr, i32 } %.pn31
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7PoolMem8memory_sESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN7PoolMem8memory_sESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !13, i64 4}
!6 = !{!"_ZTSN7PoolMem8memory_sE", !7, i64 0, !13, i64 4, !14, i64 8, !15, i64 16}
!7 = !{!"_ZTS15CriticalSection", !8, i64 0}
!8 = !{!"_ZTSSt6atomicIbE", !9, i64 0}
!9 = !{!"_ZTSSt13__atomic_baseIbE", !10, i64 0}
!10 = !{!"bool", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"int", !11, i64 0}
!14 = !{!"long", !11, i64 0}
!15 = !{!"_ZTSSt6vectorIPN7PoolMem7alloc_sESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7PoolMem7alloc_sESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7PoolMem7alloc_sESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7PoolMem7alloc_sESaIS2_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !11, i64 0}
!20 = !{!6, !14, i64 8}
!21 = !{!13, !13, i64 0}


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