; LLVM IR from fraillt/cpp_serializers_benchmark :: testing_core (types)

; 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.UniformIntDistribution = type { i16, i16 }
%class.UniformIntDistribution.0 = type { i32, i32 }
%class.UniformRealDistribution = type { float, float }
%"struct.MyTypes::Monster" = type { %"struct.MyTypes::Vec3", i16, i16, %"class.std::__cxx11::basic_string", %"class.std::vector", i8, %"class.std::vector.4", %"struct.MyTypes::Weapon", %"class.std::vector.9" }
%"struct.MyTypes::Vec3" = type { float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<MyTypes::Weapon, std::allocator<MyTypes::Weapon>>::_Vector_impl" }
%"struct.std::_Vector_base<MyTypes::Weapon, std::allocator<MyTypes::Weapon>>::_Vector_impl" = type { %"struct.std::_Vector_base<MyTypes::Weapon, std::allocator<MyTypes::Weapon>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MyTypes::Weapon, std::allocator<MyTypes::Weapon>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MyTypes::Weapon" = type <{ %"class.std::__cxx11::basic_string", i16, [6 x i8] }>
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<MyTypes::Vec3, std::allocator<MyTypes::Vec3>>::_Vector_impl" }
%"struct.std::_Vector_base<MyTypes::Vec3, std::allocator<MyTypes::Vec3>>::_Vector_impl" = type { %"struct.std::_Vector_base<MyTypes::Vec3, std::allocator<MyTypes::Vec3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MyTypes::Vec3, std::allocator<MyTypes::Vec3>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::back_insert_iterator" = type { ptr }
%"class.std::_Bind" = type { %class.UniformIntDistribution, %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.std::reference_wrapper" }
%"class.std::reference_wrapper" = type { ptr }
%"class.std::back_insert_iterator.18" = type { ptr }
%"class.std::_Bind.19" = type { %class.UniformIntDistribution.0, %"class.std::tuple" }
%"class.std::back_insert_iterator.24" = type { ptr }
%class.anon = type { ptr }
%"class.std::back_insert_iterator.25" = type { ptr }
%"class.std::_Bind.26" = type { ptr, %"class.std::tuple" }

@_ZL9rand_char = external hidden global %class.UniformIntDistribution, align 2
@_ZL8rand_len = external hidden global %class.UniformIntDistribution.0, align 4
@_ZL7rand_nr = external hidden global %class.UniformIntDistribution, align 2
@_ZL10rand_float = external hidden global %class.UniformRealDistribution, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MyTypes19createRandomMonsterERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind noalias writable sret(%"struct.MyTypes::Monster") align 8 %0, ptr noundef nonnull align 8 dereferenceable(5000) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"class.std::back_insert_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::_Bind", align 8
  %10 = alloca %"class.std::reference_wrapper", align 8
  %11 = alloca %"class.std::back_insert_iterator", align 8
  %12 = alloca %"class.std::back_insert_iterator.18", align 8
  %13 = alloca %"class.std::_Bind.19", align 8
  %14 = alloca %"class.std::reference_wrapper", align 8
  %15 = alloca %"class.std::back_insert_iterator.18", align 8
  %16 = alloca %"class.std::back_insert_iterator.24", align 8
  %17 = alloca %class.anon, align 8
  %18 = alloca %"class.std::back_insert_iterator.24", align 8
  %19 = alloca %"struct.MyTypes::Weapon", align 8
  %20 = alloca %"class.std::back_insert_iterator.25", align 8
  %21 = alloca %"class.std::_Bind.26", align 8
  %22 = alloca %"class.std::reference_wrapper", align 8
  %23 = alloca %"class.std::back_insert_iterator.25", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  %24 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 0
  %25 = getelementptr inbounds %"struct.MyTypes::Vec3", ptr %24, i32 0, i32 0
  store float 0.000000e+00, ptr %25, align 8, !tbaa !9
  %26 = getelementptr inbounds %"struct.MyTypes::Vec3", ptr %24, i32 0, i32 1
  store float 0.000000e+00, ptr %26, align 4, !tbaa !12
  %27 = getelementptr inbounds %"struct.MyTypes::Vec3", ptr %24, i32 0, i32 2
  store float 0.000000e+00, ptr %27, align 8, !tbaa !13
  %28 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 1
  store i16 0, ptr %28, align 4, !tbaa !14
  %29 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 2
  store i16 0, ptr %29, align 2, !tbaa !34
  %30 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  %31 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 4
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %32 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 5
  store i8 0, ptr %32, align 8, !tbaa !35
  %33 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 6
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN7MyTypes6WeaponESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  %34 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 7
  %35 = getelementptr inbounds %"struct.MyTypes::Weapon", ptr %34, i32 0, i32 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  %36 = getelementptr inbounds %"struct.MyTypes::Weapon", ptr %34, i32 0, i32 1
  store i16 0, ptr %36, align 8, !tbaa !36
  %37 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 8
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN7MyTypes4Vec3ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  %38 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 3
  %39 = invoke ptr @_ZSt13back_inserterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %40 unwind label %143

40:                                               ; preds = %2
  %41 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %6, i32 0, i32 0
  store ptr %39, ptr %41, align 8
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %42)
          to label %44 unwind label %143

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call ptr @_ZSt3refISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(5000) %45) #8
  %47 = getelementptr inbounds %"class.std::reference_wrapper", ptr %10, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  invoke void @_ZSt4bindIR22UniformIntDistributionIsEJSt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueES8_JDpT0_EE4typeEOS8_DpOS9_(ptr dead_on_unwind writable sret(%"class.std::_Bind") align 8 %9, ptr noundef nonnull align 2 dereferenceable(4) @_ZL9rand_char, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %48 unwind label %147

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %6, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8
  %51 = invoke ptr @_ZSt10generate_nISt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEiSt5_BindIF22UniformIntDistributionIsESt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEEET_SH_T0_T1_(ptr %50, i32 noundef %43, ptr noundef %9)
          to label %52 unwind label %147

52:                                               ; preds = %48
  %53 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %11, i32 0, i32 0
  store ptr %51, ptr %53, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = invoke noundef float @_ZN23UniformRealDistributionIfEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL10rand_float, ptr noundef nonnull align 8 dereferenceable(5000) %54)
          to label %56 unwind label %143

56:                                               ; preds = %52
  %57 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 0
  %58 = getelementptr inbounds %"struct.MyTypes::Vec3", ptr %57, i32 0, i32 0
  store float %55, ptr %58, align 8, !tbaa !37
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = invoke noundef float @_ZN23UniformRealDistributionIfEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL10rand_float, ptr noundef nonnull align 8 dereferenceable(5000) %59)
          to label %61 unwind label %143

61:                                               ; preds = %56
  %62 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 0
  %63 = getelementptr inbounds %"struct.MyTypes::Vec3", ptr %62, i32 0, i32 1
  store float %60, ptr %63, align 4, !tbaa !38
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = invoke noundef float @_ZN23UniformRealDistributionIfEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL10rand_float, ptr noundef nonnull align 8 dereferenceable(5000) %64)
          to label %66 unwind label %143

66:                                               ; preds = %61
  %67 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 0
  %68 = getelementptr inbounds %"struct.MyTypes::Vec3", ptr %67, i32 0, i32 2
  store float %65, ptr %68, align 8, !tbaa !39
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %69)
          to label %71 unwind label %143

71:                                               ; preds = %66
  %72 = srem i32 %70, 3
  %73 = trunc i32 %72 to i8
  %74 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 5
  store i8 %73, ptr %74, align 8, !tbaa !35
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = invoke noundef signext i16 @_ZN22UniformIntDistributionIsEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEsRT_(ptr noundef nonnull align 2 dereferenceable(4) @_ZL7rand_nr, ptr noundef nonnull align 8 dereferenceable(5000) %75)
          to label %77 unwind label %143

77:                                               ; preds = %71
  %78 = sext i16 %76 to i32
  %79 = srem i32 %78, 1000
  %80 = trunc i32 %79 to i16
  %81 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 2
  store i16 %80, ptr %81, align 2, !tbaa !34
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = invoke noundef signext i16 @_ZN22UniformIntDistributionIsEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEsRT_(ptr noundef nonnull align 2 dereferenceable(4) @_ZL7rand_nr, ptr noundef nonnull align 8 dereferenceable(5000) %82)
          to label %84 unwind label %143

84:                                               ; preds = %77
  %85 = sext i16 %83 to i32
  %86 = srem i32 %85, 500
  %87 = call i32 @llvm.abs.i32(i32 %86, i1 true)
  %88 = trunc i32 %87 to i16
  %89 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 1
  store i16 %88, ptr %89, align 4, !tbaa !14
  %90 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 4
  %91 = invoke ptr @_ZSt13back_inserterISt6vectorIhSaIhEEESt20back_insert_iteratorIT_ERS4_(ptr noundef nonnull align 8 dereferenceable(24) %90)
          to label %92 unwind label %143

92:                                               ; preds = %84
  %93 = getelementptr inbounds %"class.std::back_insert_iterator.18", ptr %12, i32 0, i32 0
  store ptr %91, ptr %93, align 8
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %94)
          to label %96 unwind label %143

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = call ptr @_ZSt3refISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(5000) %97) #8
  %99 = getelementptr inbounds %"class.std::reference_wrapper", ptr %14, i32 0, i32 0
  store ptr %98, ptr %99, align 8
  invoke void @_ZSt4bindIR22UniformIntDistributionIiEJSt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueES8_JDpT0_EE4typeEOS8_DpOS9_(ptr dead_on_unwind writable sret(%"class.std::_Bind.19") align 8 %13, ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %100 unwind label %151

100:                                              ; preds = %96
  %101 = getelementptr inbounds %"class.std::back_insert_iterator.18", ptr %12, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = invoke ptr @_ZSt10generate_nISt20back_insert_iteratorISt6vectorIhSaIhEEEiSt5_BindIF22UniformIntDistributionIiESt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEEET_SE_T0_T1_(ptr %102, i32 noundef %95, ptr noundef %13)
          to label %104 unwind label %151

104:                                              ; preds = %100
  %105 = getelementptr inbounds %"class.std::back_insert_iterator.18", ptr %15, i32 0, i32 0
  store ptr %103, ptr %105, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %106 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 8
  %107 = invoke ptr @_ZSt13back_inserterISt6vectorIN7MyTypes4Vec3ESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %106)
          to label %108 unwind label %143

108:                                              ; preds = %104
  %109 = getelementptr inbounds %"class.std::back_insert_iterator.24", ptr %16, i32 0, i32 0
  store ptr %107, ptr %109, align 8
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %110)
          to label %112 unwind label %143

112:                                              ; preds = %108
  %113 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 0
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %114, ptr %113, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.std::back_insert_iterator.24", ptr %16, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8
  %119 = invoke ptr @"_ZSt10generate_nISt20back_insert_iteratorISt6vectorIN7MyTypes4Vec3ESaIS3_EEEiZNS2_19createRandomMonsterERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEE3$_0ET_SB_T0_T1_"(ptr %116, i32 noundef %111, ptr %118)
          to label %120 unwind label %143

120:                                              ; preds = %112
  %121 = getelementptr inbounds %"class.std::back_insert_iterator.24", ptr %18, i32 0, i32 0
  store ptr %119, ptr %121, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #8
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN7MyTypesL18createRandomWeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind writable sret(%"struct.MyTypes::Weapon") align 8 %19, ptr noundef nonnull align 8 dereferenceable(5000) %122)
          to label %123 unwind label %155

123:                                              ; preds = %120
  %124 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 7
  %125 = call noundef nonnull align 8 dereferenceable(34) ptr @_ZN7MyTypes6WeaponaSEOS0_(ptr noundef nonnull align 8 dereferenceable(34) %124, ptr noundef nonnull align 8 dereferenceable(34) %19) #8
  call void @_ZN7MyTypes6WeaponD2Ev(ptr noundef nonnull align 8 dereferenceable(34) %19) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #8
  %126 = getelementptr inbounds %"struct.MyTypes::Monster", ptr %0, i32 0, i32 6
  %127 = invoke ptr @_ZSt13back_inserterISt6vectorIN7MyTypes6WeaponESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %126)
          to label %128 unwind label %143

128:                                              ; preds = %123
  %129 = getelementptr inbounds %"class.std::back_insert_iterator.25", ptr %20, i32 0, i32 0
  store ptr %127, ptr %129, align 8
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %130)
          to label %132 unwind label %143

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = call ptr @_ZSt3refISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(5000) %133) #8
  %135 = getelementptr inbounds %"class.std::reference_wrapper", ptr %22, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  invoke void @_ZSt4bindIRFN7MyTypes6WeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEJSt17reference_wrapperIS3_EEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESA_JDpT0_EE4typeEOSA_DpOSB_(ptr dead_on_unwind writable sret(%"class.std::_Bind.26") align 8 %21, ptr noundef nonnull @_ZN7MyTypesL18createRandomWeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %136 unwind label %159

136:                                              ; preds = %132
  %137 = getelementptr inbounds %"class.std::back_insert_iterator.25", ptr %20, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8
  %139 = invoke ptr @_ZSt10generate_nISt20back_insert_iteratorISt6vectorIN7MyTypes6WeaponESaIS3_EEEiSt5_BindIFPFS3_RSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIS9_EEEET_SH_T0_T1_(ptr %138, i32 noundef %131, ptr noundef %21)
          to label %140 unwind label %159

140:                                              ; preds = %136
  %141 = getelementptr inbounds %"class.std::back_insert_iterator.25", ptr %23, i32 0, i32 0
  store ptr %139, ptr %141, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  store i1 true, ptr %5, align 1
  %142 = load i1, ptr %5, align 1
  br i1 %142, label %164, label %163

143:                                              ; preds = %128, %123, %112, %108, %104, %92, %84, %77, %71, %66, %61, %56, %52, %40, %2
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  br label %165

147:                                              ; preds = %48, %44
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %7, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %165

151:                                              ; preds = %100, %96
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %7, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %165

155:                                              ; preds = %120
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %7, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #8
  br label %165

159:                                              ; preds = %136, %132
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %165

163:                                              ; preds = %140
  call void @_ZN7MyTypes7MonsterD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %0) #8
  br label %164

164:                                              ; preds = %163, %140
  ret void

165:                                              ; preds = %159, %155, %151, %147, %143
  call void @_ZN7MyTypes7MonsterD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %0) #8
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %7, align 8
  %168 = load i32, ptr %8, align 4
  %169 = insertvalue { ptr, i32 } poison, ptr %167, 0
  %170 = insertvalue { ptr, i32 } %169, i32 %168, 1
  resume { ptr, i32 } %170
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt10generate_nISt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEiSt5_BindIF22UniformIntDistributionIsESt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEEET_SH_T0_T1_(ptr, i32 noundef, ptr noundef) #0

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(5000)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIR22UniformIntDistributionIsEJSt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueES8_JDpT0_EE4typeEOS8_DpOS9_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind") align 8, ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(5000)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN23UniformRealDistributionIfEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(5000)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i16 @_ZN22UniformIntDistributionIsEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEsRT_(ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(5000)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #6

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt10generate_nISt20back_insert_iteratorISt6vectorIhSaIhEEEiSt5_BindIF22UniformIntDistributionIiESt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEEET_SE_T0_T1_(ptr, i32 noundef, ptr noundef) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIR22UniformIntDistributionIiEJSt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueES8_JDpT0_EE4typeEOS8_DpOS9_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.19") align 8, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt10generate_nISt20back_insert_iteratorISt6vectorIN7MyTypes4Vec3ESaIS3_EEEiZNS2_19createRandomMonsterERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEE3$_0ET_SB_T0_T1_"(ptr, i32 noundef, ptr) #7

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7MyTypesL18createRandomWeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind noalias writable sret(%"struct.MyTypes::Weapon") align 8, ptr noundef nonnull align 8 dereferenceable(5000)) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(34) ptr @_ZN7MyTypes6WeaponaSEOS0_(ptr noundef nonnull align 8 dereferenceable(34), ptr noundef nonnull align 8 dereferenceable(34)) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt10generate_nISt20back_insert_iteratorISt6vectorIN7MyTypes6WeaponESaIS3_EEEiSt5_BindIFPFS3_RSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIS9_EEEET_SH_T0_T1_(ptr, i32 noundef, ptr noundef) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIRFN7MyTypes6WeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEJSt17reference_wrapperIS3_EEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESA_JDpT0_EE4typeEOSA_DpOSB_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.26") align 8, ptr noundef nonnull, ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7MyTypes7MonsterD2Ev(ptr noundef nonnull align 8 dereferenceable(168)) unnamed_addr #5 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 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #8 = { 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, !11, i64 0}
!10 = !{!"_ZTSN7MyTypes4Vec3E", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 8}
!14 = !{!15, !16, i64 12}
!15 = !{!"_ZTSN7MyTypes7MonsterE", !10, i64 0, !16, i64 12, !16, i64 14, !17, i64 16, !20, i64 48, !24, i64 72, !25, i64 80, !29, i64 104, !30, i64 144}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIhSaIhEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSN7MyTypes5ColorE", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIN7MyTypes6WeaponESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN7MyTypes6WeaponESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN7MyTypes6WeaponESaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7MyTypes6WeaponESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSN7MyTypes6WeaponE", !17, i64 0, !16, i64 32}
!30 = !{!"_ZTSSt6vectorIN7MyTypes4Vec3ESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN7MyTypes4Vec3ESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN7MyTypes4Vec3ESaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7MyTypes4Vec3ESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!15, !16, i64 14}
!35 = !{!15, !24, i64 72}
!36 = !{!29, !16, i64 32}
!37 = !{!15, !11, i64 0}
!38 = !{!15, !11, i64 4}
!39 = !{!15, !11, i64 8}


; 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.UniformIntDistribution = type { i16, i16 }
%class.UniformIntDistribution.0 = type { i32, i32 }
%class.UniformRealDistribution = type { float, float }
%"struct.MyTypes::Monster" = type { %"struct.MyTypes::Vec3", i16, i16, %"class.std::__cxx11::basic_string", %"class.std::vector", i8, %"class.std::vector.4", %"struct.MyTypes::Weapon", %"class.std::vector.9" }
%"struct.MyTypes::Vec3" = type { float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<MyTypes::Weapon, std::allocator<MyTypes::Weapon>>::_Vector_impl" }
%"struct.std::_Vector_base<MyTypes::Weapon, std::allocator<MyTypes::Weapon>>::_Vector_impl" = type { %"struct.std::_Vector_base<MyTypes::Weapon, std::allocator<MyTypes::Weapon>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MyTypes::Weapon, std::allocator<MyTypes::Weapon>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MyTypes::Weapon" = type <{ %"class.std::__cxx11::basic_string", i16, [6 x i8] }>
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<MyTypes::Vec3, std::allocator<MyTypes::Vec3>>::_Vector_impl" }
%"struct.std::_Vector_base<MyTypes::Vec3, std::allocator<MyTypes::Vec3>>::_Vector_impl" = type { %"struct.std::_Vector_base<MyTypes::Vec3, std::allocator<MyTypes::Vec3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MyTypes::Vec3, std::allocator<MyTypes::Vec3>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::_Bind" = type { %class.UniformIntDistribution, %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.std::reference_wrapper" }
%"class.std::reference_wrapper" = type { ptr }
%"class.std::_Bind.19" = type { %class.UniformIntDistribution.0, %"class.std::tuple" }
%"class.std::_Bind.26" = type { ptr, %"class.std::tuple" }

@_ZL9rand_char = external hidden global %class.UniformIntDistribution, align 2
@_ZL8rand_len = external hidden global %class.UniformIntDistribution.0, align 4
@_ZL7rand_nr = external hidden global %class.UniformIntDistribution, align 2
@_ZL10rand_float = external hidden global %class.UniformRealDistribution, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MyTypes19createRandomMonsterERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind noalias writable sret(%"struct.MyTypes::Monster") align 8 %0, ptr noundef nonnull align 8 dereferenceable(5000) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::_Bind", align 8
  %4 = alloca %"class.std::reference_wrapper", align 8
  %5 = alloca %"class.std::_Bind.19", align 8
  %6 = alloca %"class.std::reference_wrapper", align 8
  %7 = alloca %"struct.MyTypes::Weapon", align 8
  %8 = alloca %"class.std::_Bind.26", align 8
  %9 = alloca %"class.std::reference_wrapper", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 4
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = getelementptr inbounds i8, ptr %0, i64 12
  %13 = getelementptr inbounds i8, ptr %0, i64 14
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, i8 0, i64 16, i1 false)
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %15, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  store i8 0, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %17, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorIN7MyTypes6WeaponESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %18 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  %19 = getelementptr inbounds i8, ptr %0, i64 136
  store i16 0, ptr %19, align 8, !tbaa !30
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %20, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorIN7MyTypes4Vec3ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %21 = invoke ptr @_ZSt13back_inserterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %22 unwind label %70

22:                                               ; preds = %2
  %23 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %24 unwind label %70

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %25 = tail call ptr @_ZSt3refISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(5000) %1) #8
  store ptr %25, ptr %4, align 8
  invoke void @_ZSt4bindIR22UniformIntDistributionIsEJSt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueES8_JDpT0_EE4typeEOS8_DpOS9_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind") align 8 %3, ptr noundef nonnull align 2 dereferenceable(4) @_ZL9rand_char, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %26 unwind label %72

26:                                               ; preds = %24
  %27 = invoke ptr @_ZSt10generate_nISt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEiSt5_BindIF22UniformIntDistributionIsESt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEEET_SH_T0_T1_(ptr %21, i32 noundef %23, ptr noundef nonnull %3)
          to label %28 unwind label %72

28:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %29 = invoke noundef float @_ZN23UniformRealDistributionIfEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL10rand_float, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %30 unwind label %70

30:                                               ; preds = %28
  store float %29, ptr %0, align 8, !tbaa !31
  %31 = invoke noundef float @_ZN23UniformRealDistributionIfEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL10rand_float, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %32 unwind label %70

32:                                               ; preds = %30
  store float %31, ptr %10, align 4, !tbaa !32
  %33 = invoke noundef float @_ZN23UniformRealDistributionIfEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL10rand_float, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %34 unwind label %70

34:                                               ; preds = %32
  store float %33, ptr %11, align 8, !tbaa !33
  %35 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %36 unwind label %70

36:                                               ; preds = %34
  %37 = srem i32 %35, 3
  %38 = trunc nsw i32 %37 to i8
  store i8 %38, ptr %16, align 8, !tbaa !5
  %39 = invoke noundef signext i16 @_ZN22UniformIntDistributionIsEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEsRT_(ptr noundef nonnull align 2 dereferenceable(4) @_ZL7rand_nr, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %40 unwind label %70

40:                                               ; preds = %36
  %41 = srem i16 %39, 1000
  store i16 %41, ptr %13, align 2, !tbaa !34
  %42 = invoke noundef signext i16 @_ZN22UniformIntDistributionIsEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEsRT_(ptr noundef nonnull align 2 dereferenceable(4) @_ZL7rand_nr, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %43 unwind label %70

43:                                               ; preds = %40
  %44 = srem i16 %42, 500
  %45 = call i16 @llvm.abs.i16(i16 %44, i1 true)
  store i16 %45, ptr %12, align 4, !tbaa !35
  %46 = invoke ptr @_ZSt13back_inserterISt6vectorIhSaIhEEESt20back_insert_iteratorIT_ERS4_(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %47 unwind label %70

47:                                               ; preds = %43
  %48 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %49 unwind label %70

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %50 = call ptr @_ZSt3refISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(5000) %1) #8
  store ptr %50, ptr %6, align 8
  invoke void @_ZSt4bindIR22UniformIntDistributionIiEJSt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueES8_JDpT0_EE4typeEOS8_DpOS9_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.19") align 8 %5, ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %51 unwind label %74

51:                                               ; preds = %49
  %52 = invoke ptr @_ZSt10generate_nISt20back_insert_iteratorISt6vectorIhSaIhEEEiSt5_BindIF22UniformIntDistributionIiESt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEEET_SE_T0_T1_(ptr %46, i32 noundef %48, ptr noundef nonnull %5)
          to label %53 unwind label %74

53:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %54 = invoke ptr @_ZSt13back_inserterISt6vectorIN7MyTypes4Vec3ESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %55 unwind label %70

55:                                               ; preds = %53
  %56 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %57 unwind label %70

57:                                               ; preds = %55
  %58 = invoke ptr @"_ZSt10generate_nISt20back_insert_iteratorISt6vectorIN7MyTypes4Vec3ESaIS3_EEEiZNS2_19createRandomMonsterERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEE3$_0ET_SB_T0_T1_"(ptr %54, i32 noundef %56, ptr nonnull %1)
          to label %59 unwind label %70

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #8
  invoke void @_ZN7MyTypesL18createRandomWeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind nonnull writable sret(%"struct.MyTypes::Weapon") align 8 %7, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %60 unwind label %76

60:                                               ; preds = %59
  %61 = call noundef nonnull align 8 dereferenceable(34) ptr @_ZN7MyTypes6WeaponaSEOS0_(ptr noundef nonnull align 8 dereferenceable(34) %18, ptr noundef nonnull align 8 dereferenceable(34) %7) #8
  call void @_ZN7MyTypes6WeaponD2Ev(ptr noundef nonnull align 8 dereferenceable(34) %7) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #8
  %62 = invoke ptr @_ZSt13back_inserterISt6vectorIN7MyTypes6WeaponESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %63 unwind label %70

63:                                               ; preds = %60
  %64 = invoke noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) @_ZL8rand_len, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %65 unwind label %70

65:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %66 = call ptr @_ZSt3refISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(5000) %1) #8
  store ptr %66, ptr %9, align 8
  invoke void @_ZSt4bindIRFN7MyTypes6WeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEJSt17reference_wrapperIS3_EEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESA_JDpT0_EE4typeEOSA_DpOSB_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.26") align 8 %8, ptr noundef nonnull @_ZN7MyTypesL18createRandomWeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %67 unwind label %78

67:                                               ; preds = %65
  %68 = invoke ptr @_ZSt10generate_nISt20back_insert_iteratorISt6vectorIN7MyTypes6WeaponESaIS3_EEEiSt5_BindIFPFS3_RSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIS9_EEEET_SH_T0_T1_(ptr %62, i32 noundef %64, ptr noundef nonnull %8)
          to label %69 unwind label %78

69:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  ret void

70:                                               ; preds = %63, %60, %57, %55, %53, %47, %43, %40, %36, %34, %32, %30, %28, %22, %2
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %80

72:                                               ; preds = %26, %24
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %80

74:                                               ; preds = %51, %49
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %80

76:                                               ; preds = %59
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #8
  br label %80

78:                                               ; preds = %67, %65
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %80

80:                                               ; preds = %78, %76, %74, %72, %70
  %.pn = phi { ptr, i32 } [ %79, %78 ], [ %71, %70 ], [ %77, %76 ], [ %75, %74 ], [ %73, %72 ]
  call void @_ZN7MyTypes7MonsterD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %0) #8
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt10generate_nISt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEiSt5_BindIF22UniformIntDistributionIsESt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEEET_SH_T0_T1_(ptr, i32 noundef, ptr noundef) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN22UniformIntDistributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIR22UniformIntDistributionIsEJSt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueES8_JDpT0_EE4typeEOS8_DpOS9_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind") align 8, ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN23UniformRealDistributionIfEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i16 @_ZN22UniformIntDistributionIsEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEsRT_(ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt10generate_nISt20back_insert_iteratorISt6vectorIhSaIhEEEiSt5_BindIF22UniformIntDistributionIiESt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEEET_SE_T0_T1_(ptr, i32 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIR22UniformIntDistributionIiEJSt17reference_wrapperISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueES8_JDpT0_EE4typeEOS8_DpOS9_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.19") align 8, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt10generate_nISt20back_insert_iteratorISt6vectorIN7MyTypes4Vec3ESaIS3_EEEiZNS2_19createRandomMonsterERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEE3$_0ET_SB_T0_T1_"(ptr, i32 noundef, ptr) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7MyTypesL18createRandomWeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind noalias writable sret(%"struct.MyTypes::Weapon") align 8, ptr noundef nonnull align 8 dereferenceable(5000)) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(34) ptr @_ZN7MyTypes6WeaponaSEOS0_(ptr noundef nonnull align 8 dereferenceable(34), ptr noundef nonnull align 8 dereferenceable(34)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt10generate_nISt20back_insert_iteratorISt6vectorIN7MyTypes6WeaponESaIS3_EEEiSt5_BindIFPFS3_RSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEESt17reference_wrapperIS9_EEEET_SH_T0_T1_(ptr, i32 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIRFN7MyTypes6WeaponERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEJSt17reference_wrapperIS3_EEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESA_JDpT0_EE4typeEOSA_DpOSB_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.26") align 8, ptr noundef nonnull, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.abs.i16(i16, i1 immarg) #7

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 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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, !20, i64 72}
!6 = !{!"_ZTSN7MyTypes7MonsterE", !7, i64 0, !11, i64 12, !11, i64 14, !12, i64 16, !16, i64 48, !20, i64 72, !21, i64 80, !25, i64 104, !26, i64 144}
!7 = !{!"_ZTSN7MyTypes4Vec3E", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"short", !9, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !15, i64 8, !9, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!"_ZTSSt6vectorIhSaIhEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!20 = !{!"_ZTSN7MyTypes5ColorE", !9, i64 0}
!21 = !{!"_ZTSSt6vectorIN7MyTypes6WeaponESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN7MyTypes6WeaponESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7MyTypes6WeaponESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7MyTypes6WeaponESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!25 = !{!"_ZTSN7MyTypes6WeaponE", !12, i64 0, !11, i64 32}
!26 = !{!"_ZTSSt6vectorIN7MyTypes4Vec3ESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN7MyTypes4Vec3ESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7MyTypes4Vec3ESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7MyTypes4Vec3ESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!30 = !{!25, !11, i64 32}
!31 = !{!6, !8, i64 0}
!32 = !{!6, !8, i64 4}
!33 = !{!6, !8, i64 8}
!34 = !{!6, !11, i64 14}
!35 = !{!6, !11, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass