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

; 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.54" = type { %"class.std::_Rb_tree.55" }
%"class.std::_Rb_tree.55" = type { %"struct.std::_Rb_tree<NOMAD_4_3::LHStopType, std::pair<const NOMAD_4_3::LHStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::LHStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::LHStopType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<NOMAD_4_3::LHStopType, std::pair<const NOMAD_4_3::LHStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::LHStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::LHStopType>>::_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.60" = type { ptr, i64 }
%"struct.std::pair.61" = 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.63" = type { i8 }
%"class.std::allocator.65" = type { i8 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@__dso_handle = external hidden global i8
@_ZZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global %"class.std::map.54", align 8
@_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global i64, align 8
@.str.20 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 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_10LHStopTypeEE4dictB5cxx11Ev(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.60", align 8
  %4 = alloca [3 x %"struct.std::pair.61"], 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 i1, align 1
  %12 = alloca %"struct.std::less.63", align 1
  %13 = alloca %"class.std::allocator.65", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  %15 = load atomic i8, ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 acquire, align 8
  %16 = icmp eq i8 %15, 0
  br i1 %16, label %17, label %41, !prof !9

17:                                               ; preds = %1
  %18 = call i32 @__cxa_guard_acquire(ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #0
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %41

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 120, ptr %4) #0
  store i1 true, ptr %11, 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_310LHStopTypeENSt7__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 %21 unwind label %42

21:                                               ; preds = %20
  %22 = getelementptr inbounds %"struct.std::pair.61", ptr %4, i64 1
  store ptr %22, 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_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA39_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) %9, ptr noundef nonnull align 1 dereferenceable(39) @.str.20)
          to label %23 unwind label %46

23:                                               ; preds = %21
  %24 = getelementptr inbounds %"struct.std::pair.61", ptr %4, i64 2
  store ptr %24, 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_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA27_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) %10, ptr noundef nonnull align 1 dereferenceable(27) @.str.21)
          to label %25 unwind label %50

25:                                               ; preds = %23
  store i1 false, ptr %11, align 1
  %26 = getelementptr inbounds %"class.std::initializer_list.60", ptr %3, i32 0, i32 0
  store ptr %4, ptr %26, align 8, !tbaa !12
  %27 = getelementptr inbounds %"class.std::initializer_list.60", ptr %3, i32 0, i32 1
  store i64 3, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #0
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #0
  call void @_ZNSaISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #0
  %28 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8
  %30 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 1
  %31 = load i64, ptr %30, align 8
  invoke void @_ZNSt3mapIN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEEC2ESt16initializer_listISC_ERKS9_RKSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr %29, i64 %31, ptr noundef nonnull align 1 dereferenceable(1) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %32 unwind label %54

32:                                               ; preds = %25
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #0
  %33 = getelementptr inbounds [3 x %"struct.std::pair.61"], ptr %4, i32 0, i32 0
  %34 = getelementptr inbounds %"struct.std::pair.61", ptr %33, i64 3
  br label %35

35:                                               ; preds = %35, %32
  %36 = phi ptr [ %34, %32 ], [ %37, %35 ]
  %37 = getelementptr inbounds %"struct.std::pair.61", ptr %36, i64 -1
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %37) #0
  %38 = icmp eq ptr %37, %33
  br i1 %38, label %39, label %35

39:                                               ; preds = %35
  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 120, ptr %4) #0
  %40 = call i32 @__cxa_atexit(ptr @_ZNSt3mapIN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEED2Ev, ptr @_ZZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #0
  br label %41

41:                                               ; preds = %39, %17, %1
  ret ptr @_ZZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11

42:                                               ; preds = %20
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %7, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %8, align 4
  br label %67

46:                                               ; preds = %21
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %7, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %8, align 4
  br label %66

50:                                               ; preds = %23
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  br label %65

54:                                               ; preds = %25
  %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
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #0
  %58 = getelementptr inbounds [3 x %"struct.std::pair.61"], ptr %4, i32 0, i32 0
  %59 = getelementptr inbounds %"struct.std::pair.61", ptr %58, i64 3
  br label %60

60:                                               ; preds = %60, %54
  %61 = phi ptr [ %59, %54 ], [ %62, %60 ]
  %62 = getelementptr inbounds %"struct.std::pair.61", ptr %61, i64 -1
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %62) #0
  %63 = icmp eq ptr %62, %58
  br i1 %63, label %64, label %60

64:                                               ; preds = %60
  br label %65

65:                                               ; preds = %64, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #0
  br label %66

66:                                               ; preds = %65, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #0
  br label %67

67:                                               ; preds = %66, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #0
  %68 = load i1, ptr %11, align 1
  br i1 %68, label %69, label %77

69:                                               ; preds = %67
  %70 = load ptr, ptr %5, align 8
  %71 = icmp eq ptr %4, %70
  br i1 %71, label %76, label %72

72:                                               ; preds = %72, %69
  %73 = phi ptr [ %70, %69 ], [ %74, %72 ]
  %74 = getelementptr inbounds %"struct.std::pair.61", ptr %73, i64 -1
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %74) #0
  %75 = icmp eq ptr %74, %4
  br i1 %75, label %76, label %72

76:                                               ; preds = %72, %69
  br label %77

77:                                               ; preds = %76, %67
  call void @llvm.lifetime.end.p0(i64 120, ptr %4) #0
  call void @__cxa_guard_abort(ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #0
  br label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr %7, align 8
  %80 = load i32, ptr %8, align 4
  %81 = insertvalue { ptr, i32 } poison, ptr %79, 0
  %82 = insertvalue { ptr, i32 } %81, i32 %80, 1
  resume { ptr, i32 } %82
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__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 nounwind uwtable
declare dso_local void @_ZNSaISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__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_310LHStopTypeENSt7__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_310LHStopTypeENSt7__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_310LHStopTypeENSt7__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_310LHStopTypeENSt7__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_310LHStopTypeE", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSSt16initializer_listISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__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.54" = type { %"class.std::_Rb_tree.55" }
%"class.std::_Rb_tree.55" = type { %"struct.std::_Rb_tree<NOMAD_4_3::LHStopType, std::pair<const NOMAD_4_3::LHStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::LHStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::LHStopType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<NOMAD_4_3::LHStopType, std::pair<const NOMAD_4_3::LHStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::LHStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::LHStopType>>::_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.61" = 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.63" = type { i8 }
%"class.std::allocator.65" = type { i8 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@__dso_handle = external hidden global i8
@_ZZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global %"class.std::map.54", align 8
@_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global i64, align 8
@.str.20 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 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_10LHStopTypeEE4dictB5cxx11Ev(ptr nocapture noundef nonnull readnone align 8 dereferenceable(12) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [3 x %"struct.std::pair.61"], align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::less.63", align 1
  %7 = alloca %"class.std::allocator.65", align 1
  %8 = load atomic i8, ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 acquire, align 8
  %9 = icmp eq i8 %8, 0
  br i1 %9, label %10, label %22, !prof !5

10:                                               ; preds = %1
  %11 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  %.not14 = icmp eq i32 %11, 0
  br i1 %.not14, label %22, label %12

12:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 120, 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_310LHStopTypeENSt7__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 %13 unwind label %.thread

13:                                               ; preds = %12
  %14 = 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_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA39_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(39) @.str.20)
          to label %15 unwind label %.thread24

15:                                               ; preds = %13
  %16 = 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_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IS1_RA27_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISF_SG_EEEbE4typeELb1EEEOSF_OSG_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(27) @.str.21)
          to label %17 unwind label %28

17:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt3mapIN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEEC2ESt16initializer_listISC_ERKS9_RKSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr nonnull %2, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %18 unwind label %.thread30

18:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  %19 = getelementptr inbounds i8, ptr %2, i64 80
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #5
  %20 = getelementptr inbounds i8, ptr %2, i64 40
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #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 120, ptr nonnull %2) #5
  %21 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt3mapIN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEED2Ev, ptr nonnull @_ZZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr nonnull @__dso_handle) #5
  call void @__cxa_guard_release(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  br label %22

22:                                               ; preds = %18, %10, %1
  ret ptr @_ZZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11

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

.thread24:                                        ; preds = %13
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %.preheader.preheader

.thread30:                                        ; preds = %17
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  %26 = getelementptr inbounds i8, ptr %2, i64 80
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #5
  %27 = getelementptr inbounds i8, ptr %2, i64 40
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #5
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #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
  br label %.loopexit

28:                                               ; preds = %15
  %29 = landingpad { ptr, i32 }
          cleanup
  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
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %28, %.thread24
  %.pn.pn29 = phi { ptr, i32 } [ %24, %.thread24 ], [ %29, %28 ]
  %.01128 = phi ptr [ %14, %.thread24 ], [ %16, %28 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %30 = phi ptr [ %31, %.preheader ], [ %.01128, %.preheader.preheader ]
  %31 = getelementptr inbounds i8, ptr %30, i64 -40
  call void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %31) #5
  %32 = icmp eq ptr %31, %2
  br i1 %32, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread30, %.thread
  %.pn.pn.pn22 = phi { ptr, i32 } [ %23, %.thread ], [ %25, %.thread30 ], [ %.pn.pn29, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #5
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_10LHStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  resume { ptr, i32 } %.pn.pn.pn22
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_310LHStopTypeENSt7__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 nounwind uwtable
declare dso_local void @_ZNSaISt4pairIKN9NOMAD_4_310LHStopTypeENSt7__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_310LHStopTypeENSt7__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_310LHStopTypeENSt7__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_310LHStopTypeENSt7__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_310LHStopTypeENSt7__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_310LHStopTypeE", !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,SROAPass,SimplifyCFGPass,TailCallElimPass