; LLVM IR from buresjan/optim_lbm :: nomad/src/Util (StopReason)

; 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.116" = type { %"class.std::_Rb_tree.117" }
%"class.std::_Rb_tree.117" = type { %"struct.std::_Rb_tree<NOMAD_4_3::RandomAlgoStopType, std::pair<const NOMAD_4_3::RandomAlgoStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::RandomAlgoStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::RandomAlgoStopType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<NOMAD_4_3::RandomAlgoStopType, std::pair<const NOMAD_4_3::RandomAlgoStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::RandomAlgoStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::RandomAlgoStopType>>::_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::initializer_list.122" = type { ptr, i64 }
%"struct.std::pair.123" = type { i32, %"class.std::__cxx11::basic_string" }
%"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::less.125" = type { i8 }
%"class.std::allocator.127" = type { i8 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@__dso_handle = external hidden global i8
@.str.36 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global %"class.std::map.116", align 8
@_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global i64, align 8
@.str.43 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [32 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 uwtable
define dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(12) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::initializer_list.122", align 8
  %4 = alloca [7 x %"struct.std::pair.123"], align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i1, align 1
  %16 = alloca %"struct.std::less.125", align 1
  %17 = alloca %"class.std::allocator.127", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  %19 = load atomic i8, ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 acquire, align 8
  %20 = icmp eq i8 %19, 0
  br i1 %20, label %21, label %53, !prof !9

21:                                               ; preds = %1
  %22 = call i32 @__cxa_guard_acquire(ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #0
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %53

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 280, ptr %4) #0
  store i1 true, ptr %15, align 1
  store ptr %4, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #0
  store i32 0, ptr %6, align 4, !tbaa !10
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__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) %6, ptr noundef nonnull align 1 dereferenceable(8) @.str)
          to label %25 unwind label %54

25:                                               ; preds = %24
  %26 = getelementptr inbounds %"struct.std::pair.123", ptr %4, i64 1
  store ptr %26, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #0
  store i32 1, ptr %9, align 4, !tbaa !10
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA13_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 1 dereferenceable(13) @.str.36)
          to label %27 unwind label %58

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"struct.std::pair.123", ptr %4, i64 2
  store ptr %28, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #0
  store i32 2, ptr %10, align 4, !tbaa !10
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA27_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %28, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(27) @.str.43)
          to label %29 unwind label %62

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"struct.std::pair.123", ptr %4, i64 3
  store ptr %30, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #0
  store i32 3, ptr %11, align 4, !tbaa !10
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA33_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(33) @.str.44)
          to label %31 unwind label %66

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"struct.std::pair.123", ptr %4, i64 4
  store ptr %32, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #0
  store i32 4, ptr %12, align 4, !tbaa !10
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA37_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(37) @.str.38)
          to label %33 unwind label %70

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"struct.std::pair.123", ptr %4, i64 5
  store ptr %34, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #0
  store i32 5, ptr %13, align 4, !tbaa !10
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA41_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %34, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(41) @.str.45)
          to label %35 unwind label %74

35:                                               ; preds = %33
  %36 = getelementptr inbounds %"struct.std::pair.123", ptr %4, i64 6
  store ptr %36, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #0
  store i32 6, ptr %14, align 4, !tbaa !10
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA32_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %36, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(32) @.str.46)
          to label %37 unwind label %78

37:                                               ; preds = %35
  store i1 false, ptr %15, align 1
  %38 = getelementptr inbounds %"class.std::initializer_list.122", ptr %3, i32 0, i32 0
  store ptr %4, ptr %38, align 8, !tbaa !12
  %39 = getelementptr inbounds %"class.std::initializer_list.122", ptr %3, i32 0, i32 1
  store i64 7, ptr %39, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #0
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #0
  call void @_ZNSaISt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #0
  %40 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 1
  %43 = load i64, ptr %42, align 8
  invoke void @_ZNSt3mapIN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEEC2ESt16initializer_listISC_ERKS9_RKSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr %41, i64 %43, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %44 unwind label %82

44:                                               ; preds = %37
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #0
  %45 = getelementptr inbounds [7 x %"struct.std::pair.123"], ptr %4, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.std::pair.123", ptr %45, i64 7
  br label %47

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

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #0
  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 %10) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #0
  call void @llvm.lifetime.end.p0(i64 280, ptr %4) #0
  %52 = call i32 @__cxa_atexit(ptr @_ZNSt3mapIN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEED2Ev, ptr @_ZZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #0
  br label %53

53:                                               ; preds = %51, %21, %1
  ret ptr @_ZZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11

54:                                               ; preds = %24
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %99

58:                                               ; preds = %25
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  br label %98

62:                                               ; preds = %27
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  br label %97

66:                                               ; preds = %29
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %7, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %8, align 4
  br label %96

70:                                               ; preds = %31
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  br label %95

74:                                               ; preds = %33
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %7, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %8, align 4
  br label %94

78:                                               ; preds = %35
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  br label %93

82:                                               ; preds = %37
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #0
  %86 = getelementptr inbounds [7 x %"struct.std::pair.123"], ptr %4, i32 0, i32 0
  %87 = getelementptr inbounds %"struct.std::pair.123", ptr %86, i64 7
  br label %88

88:                                               ; preds = %88, %82
  %89 = phi ptr [ %87, %82 ], [ %90, %88 ]
  %90 = getelementptr inbounds %"struct.std::pair.123", ptr %89, i64 -1
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %90) #0
  %91 = icmp eq ptr %90, %86
  br i1 %91, label %92, label %88

92:                                               ; preds = %88
  br label %93

93:                                               ; preds = %92, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #0
  br label %94

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

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

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

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

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

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

101:                                              ; preds = %99
  %102 = load ptr, ptr %5, align 8
  %103 = icmp eq ptr %4, %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.123", ptr %105, i64 -1
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %106) #0
  %107 = icmp eq ptr %106, %4
  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 280, ptr %4) #0
  call void @__cxa_guard_abort(ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #0
  br label %110

110:                                              ; preds = %109
  %111 = load ptr, ptr %7, align 8
  %112 = load i32, ptr %8, align 4
  %113 = insertvalue { ptr, i32 } poison, ptr %111, 0
  %114 = insertvalue { ptr, i32 } %113, i32 %112, 1
  resume { ptr, i32 } %114
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA13_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(13)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA27_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(27)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA33_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(33)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA37_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(37)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA41_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(41)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA32_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(32)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3mapIN9NOMAD_4_318RandomAlgoStopTypeENSt7__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 #2 align 2

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

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

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

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !11, i64 0}
!11 = !{!"_ZTSN9NOMAD_4_318RandomAlgoStopTypeE", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSSt16initializer_listISt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !6, i64 0, !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !14, 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.116" = type { %"class.std::_Rb_tree.117" }
%"class.std::_Rb_tree.117" = type { %"struct.std::_Rb_tree<NOMAD_4_3::RandomAlgoStopType, std::pair<const NOMAD_4_3::RandomAlgoStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::RandomAlgoStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::RandomAlgoStopType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<NOMAD_4_3::RandomAlgoStopType, std::pair<const NOMAD_4_3::RandomAlgoStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::RandomAlgoStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::RandomAlgoStopType>>::_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 }
%"struct.std::pair.123" = type { i32, %"class.std::__cxx11::basic_string" }
%"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::less.125" = type { i8 }
%"class.std::allocator.127" = type { i8 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@__dso_handle = external hidden global i8
@.str.36 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global %"class.std::map.116", align 8
@_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global i64, align 8
@.str.43 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [32 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 uwtable
define dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11Ev(ptr nocapture noundef nonnull readnone align 8 dereferenceable(12) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [7 x %"struct.std::pair.123"], align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::less.125", align 1
  %11 = alloca %"class.std::allocator.127", align 1
  %12 = load atomic i8, ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 acquire, align 8
  %13 = icmp eq i8 %12, 0
  br i1 %13, label %14, label %38, !prof !5

14:                                               ; preds = %1
  %15 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  %.not26 = icmp eq i32 %15, 0
  br i1 %.not26, label %38, label %16

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !6
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA8_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(8) @.str)
          to label %17 unwind label %.thread

17:                                               ; preds = %16
  %18 = getelementptr inbounds i8, ptr %2, i64 40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 1, ptr %4, align 4, !tbaa !6
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA13_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(13) @.str.36)
          to label %19 unwind label %40

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %2, i64 80
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 2, ptr %5, align 4, !tbaa !6
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA27_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) %5, ptr noundef nonnull align 1 dereferenceable(27) @.str.43)
          to label %21 unwind label %42

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %2, i64 120
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 3, ptr %6, align 4, !tbaa !6
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA33_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) %6, ptr noundef nonnull align 1 dereferenceable(33) @.str.44)
          to label %23 unwind label %44

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %2, i64 160
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 4, ptr %7, align 4, !tbaa !6
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA37_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) %7, ptr noundef nonnull align 1 dereferenceable(37) @.str.38)
          to label %25 unwind label %46

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %2, i64 200
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 5, ptr %8, align 4, !tbaa !6
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA41_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 1 dereferenceable(41) @.str.45)
          to label %27 unwind label %48

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %2, i64 240
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 6, ptr %9, align 4, !tbaa !6
  invoke void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA32_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %28, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 1 dereferenceable(32) @.str.46)
          to label %29 unwind label %50

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  call void @_ZNSaISt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt3mapIN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEEC2ESt16initializer_listISC_ERKS9_RKSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr nonnull %2, i64 7, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %30 unwind label %.loopexit39.loopexit

30:                                               ; preds = %29
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  %31 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %31) #5
  %32 = getelementptr inbounds i8, ptr %2, i64 200
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %32) #5
  %33 = getelementptr inbounds i8, ptr %2, i64 160
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #5
  %34 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %34) #5
  %35 = getelementptr inbounds i8, ptr %2, i64 80
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %35) #5
  %36 = getelementptr inbounds i8, ptr %2, i64 40
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %36) #5
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #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 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %2) #5
  %37 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt3mapIN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEED2Ev, ptr nonnull @_ZZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr nonnull @__dso_handle) #5
  call void @__cxa_guard_release(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  br label %38

38:                                               ; preds = %30, %14, %1
  ret ptr @_ZZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11

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

40:                                               ; preds = %17
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %64

42:                                               ; preds = %19
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %63

44:                                               ; preds = %21
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %62

46:                                               ; preds = %23
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %61

48:                                               ; preds = %25
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %60

50:                                               ; preds = %27
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit39

.loopexit39.loopexit:                             ; preds = %29
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  %53 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %53) #5
  %54 = getelementptr inbounds i8, ptr %2, i64 200
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %54) #5
  %55 = getelementptr inbounds i8, ptr %2, i64 160
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %55) #5
  %56 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %56) #5
  %57 = getelementptr inbounds i8, ptr %2, i64 80
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %57) #5
  %58 = getelementptr inbounds i8, ptr %2, i64 40
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %58) #5
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #5
  br label %.loopexit39

.loopexit39:                                      ; preds = %.loopexit39.loopexit, %50
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %52, %.loopexit39.loopexit ]
  %59 = phi i1 [ false, %50 ], [ true, %.loopexit39.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %60

60:                                               ; preds = %.loopexit39, %48
  %.019 = phi ptr [ %28, %.loopexit39 ], [ %26, %48 ]
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit39 ], [ %49, %48 ]
  %.1 = phi i1 [ %59, %.loopexit39 ], [ false, %48 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %61

61:                                               ; preds = %60, %46
  %.120 = phi ptr [ %.019, %60 ], [ %24, %46 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %60 ], [ %47, %46 ]
  %.2 = phi i1 [ %.1, %60 ], [ false, %46 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %62

62:                                               ; preds = %61, %44
  %.221 = phi ptr [ %.120, %61 ], [ %22, %44 ]
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %61 ], [ %45, %44 ]
  %.3 = phi i1 [ %.2, %61 ], [ false, %44 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %63

63:                                               ; preds = %62, %42
  %.322 = phi ptr [ %.221, %62 ], [ %20, %42 ]
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %62 ], [ %43, %42 ]
  %.4 = phi i1 [ %.3, %62 ], [ false, %42 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %64

64:                                               ; preds = %40, %63
  %.423 = phi ptr [ %.322, %63 ], [ %18, %40 ]
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %63 ], [ %41, %40 ]
  %.5 = phi i1 [ %.4, %63 ], [ false, %40 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %65 = icmp eq ptr %2, %.423
  %or.cond = or i1 %65, %.5
  br i1 %or.cond, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %64, %.preheader
  %66 = phi ptr [ %67, %.preheader ], [ %.423, %64 ]
  %67 = getelementptr inbounds i8, ptr %66, i64 -40
  call void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %67) #5
  %68 = icmp eq ptr %67, %2
  br i1 %68, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread, %64
  %.pn.pn.pn.pn.pn.pn.pn38 = phi { ptr, i32 } [ %39, %.thread ], [ %.pn.pn.pn.pn.pn.pn, %64 ], [ %.pn.pn.pn.pn.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %2) #5
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_18RandomAlgoStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn38
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA13_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(13)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA27_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(27)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA33_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(33)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA37_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(37)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA41_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(41)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_318RandomAlgoStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA32_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(32)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3mapIN9NOMAD_4_318RandomAlgoStopTypeENSt7__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 #2 align 2

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

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

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

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


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