; LLVM IR from gem5/gem5 :: src/mem/htm.ll (ZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureE)

; 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::map.6" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<gem5::HtmCacheFailure, std::pair<const gem5::HtmCacheFailure, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const gem5::HtmCacheFailure, std::__cxx11::basic_string<char>>>, std::less<gem5::HtmCacheFailure>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<gem5::HtmCacheFailure, std::pair<const gem5::HtmCacheFailure, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const gem5::HtmCacheFailure, std::__cxx11::basic_string<char>>>, std::less<gem5::HtmCacheFailure>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"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::initializer_list.12" = type { ptr, i64 }
%"struct.std::pair.13" = type { i32, %"class.std::__cxx11::basic_string" }
%"struct.std::less.15" = type { i8 }
%"class.std::allocator.17" = type { i8 }
%"struct.std::_Rb_tree_const_iterator.20" = type { ptr }
%"class.std::allocator" = type { i8 }

@__dso_handle = external hidden global i8
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11 = external hidden global %"class.std::map.6", align 8
@_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11 = external hidden global i64, align 8
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, i32 noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::initializer_list.12", align 8
  %6 = alloca [4 x %"struct.std::pair.13"], align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i1, align 1
  %15 = alloca %"struct.std::less.15", align 1
  %16 = alloca %"class.std::allocator.17", align 1
  %17 = alloca %"struct.std::_Rb_tree_const_iterator.20", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator.20", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca i1, align 1
  %21 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store i32 %1, ptr %4, align 4, !tbaa !5
  %22 = load atomic i8, ptr @_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11 acquire, align 8
  %23 = icmp eq i8 %22, 0
  br i1 %23, label %24, label %50, !prof !9

24:                                               ; preds = %2
  %25 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11) #0
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %50

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 160, ptr %6) #0
  store i1 true, ptr %14, align 1
  store ptr %6, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #0
  store i32 0, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA8_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 1 dereferenceable(8) @.str.7)
          to label %28 unwind label %69

28:                                               ; preds = %27
  %29 = getelementptr inbounds %"struct.std::pair.13", ptr %6, i64 1
  store ptr %29, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #0
  store i32 1, ptr %11, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA10_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(10) @.str.8)
          to label %30 unwind label %73

30:                                               ; preds = %28
  %31 = getelementptr inbounds %"struct.std::pair.13", ptr %6, i64 2
  store ptr %31, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #0
  store i32 2, ptr %12, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA12_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(12) @.str.9)
          to label %32 unwind label %77

32:                                               ; preds = %30
  %33 = getelementptr inbounds %"struct.std::pair.13", ptr %6, i64 3
  store ptr %33, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #0
  store i32 3, ptr %13, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA11_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %33, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(11) @.str.10)
          to label %34 unwind label %81

34:                                               ; preds = %32
  store i1 false, ptr %14, align 1
  %35 = getelementptr inbounds %"class.std::initializer_list.12", ptr %5, i32 0, i32 0
  store ptr %6, ptr %35, align 8, !tbaa !10
  %36 = getelementptr inbounds %"class.std::initializer_list.12", ptr %5, i32 0, i32 1
  store i64 4, ptr %36, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #0
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #0
  call void @_ZNSaISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #0
  %37 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8
  %39 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %40 = load i64, ptr %39, align 8
  invoke void @_ZNSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEEC2ESt16initializer_listISC_ERKS9_RKSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11, ptr %38, i64 %40, ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %41 unwind label %85

41:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #0
  %42 = getelementptr inbounds [4 x %"struct.std::pair.13"], ptr %6, i32 0, i32 0
  %43 = getelementptr inbounds %"struct.std::pair.13", ptr %42, i64 4
  br label %44

44:                                               ; preds = %44, %41
  %45 = phi ptr [ %43, %41 ], [ %46, %44 ]
  %46 = getelementptr inbounds %"struct.std::pair.13", ptr %45, i64 -1
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %46) #0
  %47 = icmp eq ptr %46, %42
  br i1 %47, label %48, label %44

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #0
  call void @llvm.lifetime.end.p0(i64 160, ptr %6) #0
  %49 = call i32 @__cxa_atexit(ptr @_ZNSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEED2Ev, ptr @_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11) #0
  br label %50

50:                                               ; preds = %48, %24, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #0
  %51 = call ptr @_ZNKSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %52 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.20", ptr %17, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #0
  %53 = call ptr @_ZNKSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11) #0
  %54 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.20", ptr %18, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  %55 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #0
  store i1 false, ptr %20, align 1
  store i1 false, ptr %21, align 1
  br i1 %55, label %56, label %58

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #0
  store i1 true, ptr %20, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #0
  store i1 true, ptr %21, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %57 unwind label %110

57:                                               ; preds = %56
  br label %62

58:                                               ; preds = %50
  %59 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #0
  %60 = getelementptr inbounds %"struct.std::pair.13", ptr %59, i32 0, i32 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %60)
          to label %61 unwind label %110

61:                                               ; preds = %58
  br label %62

62:                                               ; preds = %61, %57
  %63 = load i1, ptr %21, align 1
  br i1 %63, label %64, label %65

64:                                               ; preds = %62
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #0
  br label %65

65:                                               ; preds = %64, %62
  %66 = load i1, ptr %20, align 1
  br i1 %66, label %67, label %68

67:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #0
  br label %68

68:                                               ; preds = %67, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #0
  ret void

69:                                               ; preds = %27
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %99

73:                                               ; preds = %28
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  br label %98

77:                                               ; preds = %30
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  br label %97

81:                                               ; preds = %32
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  br label %96

85:                                               ; preds = %34
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #0
  %89 = getelementptr inbounds [4 x %"struct.std::pair.13"], ptr %6, i32 0, i32 0
  %90 = getelementptr inbounds %"struct.std::pair.13", ptr %89, i64 4
  br label %91

91:                                               ; preds = %91, %85
  %92 = phi ptr [ %90, %85 ], [ %93, %91 ]
  %93 = getelementptr inbounds %"struct.std::pair.13", ptr %92, i64 -1
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %93) #0
  %94 = icmp eq ptr %93, %89
  br i1 %94, label %95, label %91

95:                                               ; preds = %91
  br label %96

96:                                               ; preds = %95, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #0
  br label %97

97:                                               ; preds = %96, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #0
  br label %98

98:                                               ; preds = %97, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #0
  br label %99

99:                                               ; preds = %98, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #0
  %100 = load i1, ptr %14, align 1
  br i1 %100, label %101, label %109

101:                                              ; preds = %99
  %102 = load ptr, ptr %7, align 8
  %103 = icmp eq ptr %6, %102
  br i1 %103, label %108, label %104

104:                                              ; preds = %104, %101
  %105 = phi ptr [ %102, %101 ], [ %106, %104 ]
  %106 = getelementptr inbounds %"struct.std::pair.13", ptr %105, i64 -1
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %106) #0
  %107 = icmp eq ptr %106, %6
  br i1 %107, label %108, label %104

108:                                              ; preds = %104, %101
  br label %109

109:                                              ; preds = %108, %99
  call void @llvm.lifetime.end.p0(i64 160, ptr %6) #0
  call void @__cxa_guard_abort(ptr @_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11) #0
  br label %120

110:                                              ; preds = %58, %56
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  %114 = load i1, ptr %21, align 1
  br i1 %114, label %115, label %116

115:                                              ; preds = %110
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #0
  br label %116

116:                                              ; preds = %115, %110
  %117 = load i1, ptr %20, align 1
  br i1 %117, label %118, label %119

118:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #0
  br label %119

119:                                              ; preds = %118, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #0
  br label %120

120:                                              ; preds = %119, %109
  %121 = load ptr, ptr %9, align 8
  %122 = load i32, ptr %10, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

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

!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 = !{!"_ZTSN4gem515HtmCacheFailureE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTSSt16initializer_listISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !12, i64 0, !13, i64 8}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !13, 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.std::map.6" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<gem5::HtmCacheFailure, std::pair<const gem5::HtmCacheFailure, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const gem5::HtmCacheFailure, std::__cxx11::basic_string<char>>>, std::less<gem5::HtmCacheFailure>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<gem5::HtmCacheFailure, std::pair<const gem5::HtmCacheFailure, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const gem5::HtmCacheFailure, std::__cxx11::basic_string<char>>>, std::less<gem5::HtmCacheFailure>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"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] }
%"struct.std::pair.13" = type { i32, %"class.std::__cxx11::basic_string" }
%"struct.std::less.15" = type { i8 }
%"class.std::allocator.17" = type { i8 }
%"struct.std::_Rb_tree_const_iterator.20" = type { ptr }
%"class.std::allocator" = type { i8 }

@__dso_handle = external hidden global i8
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11 = external hidden global %"class.std::map.6", align 8
@_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11 = external hidden global i64, align 8
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, i32 noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca [4 x %"struct.std::pair.13"], align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::less.15", align 1
  %10 = alloca %"class.std::allocator.17", align 1
  %11 = alloca %"struct.std::_Rb_tree_const_iterator.20", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator.20", align 8
  %13 = alloca %"class.std::allocator", align 1
  store i32 %1, ptr %3, align 4, !tbaa !5
  %14 = load atomic i8, ptr @_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11 acquire, align 8
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %16, label %31, !prof !9

16:                                               ; preds = %2
  %17 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11) #5
  %.not25 = icmp eq i32 %17, 0
  br i1 %.not25, label %31, label %18

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA8_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(8) @.str.7)
          to label %19 unwind label %.thread34

19:                                               ; preds = %18
  %20 = getelementptr inbounds i8, ptr %4, i64 40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 1, ptr %6, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA10_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 1 dereferenceable(10) @.str.8)
          to label %21 unwind label %.thread

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %4, i64 80
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 2, ptr %7, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA12_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(12) @.str.9)
          to label %23 unwind label %.thread47

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %4, i64 120
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 3, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA11_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 1 dereferenceable(11) @.str.10)
          to label %25 unwind label %47

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEEC2ESt16initializer_listISC_ERKS9_RKSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11, ptr nonnull %4, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %26 unwind label %.thread51

26:                                               ; preds = %25
  call void @_ZNSt15__new_allocatorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  %27 = getelementptr inbounds i8, ptr %4, i64 120
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #5
  %28 = getelementptr inbounds i8, ptr %4, i64 80
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #5
  %29 = getelementptr inbounds i8, ptr %4, i64 40
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %29) #5
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #5
  %30 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEED2Ev, ptr nonnull @_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11, ptr nonnull @__dso_handle) #5
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11) #5
  br label %31

31:                                               ; preds = %26, %16, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %32 = call ptr @_ZNKSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store ptr %32, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %33 = call ptr @_ZNKSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11) #5
  store ptr %33, ptr %12, align 8
  %34 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %39 unwind label %54

36:                                               ; preds = %31
  %37 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %.critedge unwind label %52

39:                                               ; preds = %35
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  br label %.critedge

.critedge:                                        ; preds = %36, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  ret void

.thread34:                                        ; preds = %18
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %.loopexit

.thread:                                          ; preds = %19
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %.preheader.preheader

.thread47:                                        ; preds = %21
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %.preheader.preheader

.thread51:                                        ; preds = %25
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  %44 = getelementptr inbounds i8, ptr %4, i64 120
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %44) #5
  %45 = getelementptr inbounds i8, ptr %4, i64 80
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %45) #5
  %46 = getelementptr inbounds i8, ptr %4, i64 40
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %46) #5
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %.loopexit

47:                                               ; preds = %23
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %47, %.thread47, %.thread
  %.pn.pn.pn46 = phi { ptr, i32 } [ %41, %.thread ], [ %48, %47 ], [ %42, %.thread47 ]
  %.12245 = phi ptr [ %20, %.thread ], [ %24, %47 ], [ %22, %.thread47 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %49 = phi ptr [ %50, %.preheader ], [ %.12245, %.preheader.preheader ]
  %50 = getelementptr inbounds i8, ptr %49, i64 -40
  call void @_ZNSt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %50) #5
  %51 = icmp eq ptr %50, %4
  br i1 %51, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread51, %.thread34
  %.pn.pn.pn.pn39 = phi { ptr, i32 } [ %40, %.thread34 ], [ %43, %.thread51 ], [ %.pn.pn.pn46, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #5
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN4gem515htmFailureToStrB5cxx11ENS_15HtmCacheFailureEE9rc_to_strB5cxx11) #5
  br label %57

52:                                               ; preds = %36
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge33

54:                                               ; preds = %35
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  br label %.critedge33

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

57:                                               ; preds = %.critedge33, %.loopexit
  %.pn30 = phi { ptr, i32 } [ %56, %.critedge33 ], [ %.pn.pn.pn.pn39, %.loopexit ]
  resume { ptr, i32 } %.pn30
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESD_(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 ptr @_ZNKSt3mapIN4gem515HtmCacheFailureENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTSN4gem515HtmCacheFailureE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"branch_weights", i32 1, i32 1048575}


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