; 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.36" = type { %"class.std::_Rb_tree.37" }
%"class.std::_Rb_tree.37" = type { %"struct.std::_Rb_tree<NOMAD_4_3::SSDMadsStopType, std::pair<const NOMAD_4_3::SSDMadsStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::SSDMadsStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::SSDMadsStopType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<NOMAD_4_3::SSDMadsStopType, std::pair<const NOMAD_4_3::SSDMadsStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::SSDMadsStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::SSDMadsStopType>>::_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.42" = type { ptr, i64 }
%"struct.std::pair.43" = 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.45" = type { i8 }
%"class.std::allocator.47" = type { i8 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@__dso_handle = external hidden global i8
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global %"class.std::map.36", align 8
@_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global i64, align 8

; 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_15SSDMadsStopTypeEE4dictB5cxx11Ev(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.42", align 8
  %4 = alloca [2 x %"struct.std::pair.43"], 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 i1, align 1
  %11 = alloca %"struct.std::less.45", align 1
  %12 = alloca %"class.std::allocator.47", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  %14 = load atomic i8, ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 acquire, align 8
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %16, label %38, !prof !9

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

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #0
  store i1 true, ptr %10, 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_315SSDMadsStopTypeENSt7__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 %20 unwind label %39

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

22:                                               ; preds = %20
  store i1 false, ptr %10, align 1
  %23 = getelementptr inbounds %"class.std::initializer_list.42", ptr %3, i32 0, i32 0
  store ptr %4, ptr %23, align 8, !tbaa !12
  %24 = getelementptr inbounds %"class.std::initializer_list.42", ptr %3, i32 0, i32 1
  store i64 2, ptr %24, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #0
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #0
  call void @_ZNSaISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #0
  %25 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8
  %27 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 1
  %28 = load i64, ptr %27, align 8
  invoke void @_ZNSt3mapIN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEEC2ESt16initializer_listISC_ERKS9_RKSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr %26, i64 %28, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %29 unwind label %47

29:                                               ; preds = %22
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  %30 = getelementptr inbounds [2 x %"struct.std::pair.43"], ptr %4, i32 0, i32 0
  %31 = getelementptr inbounds %"struct.std::pair.43", ptr %30, i64 2
  br label %32

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

36:                                               ; preds = %32
  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 80, ptr %4) #0
  %37 = call i32 @__cxa_atexit(ptr @_ZNSt3mapIN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEED2Ev, ptr @_ZZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #0
  br label %38

38:                                               ; preds = %36, %16, %1
  ret ptr @_ZZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11

39:                                               ; preds = %19
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %7, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %8, align 4
  br label %59

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

47:                                               ; preds = %22
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  %51 = getelementptr inbounds [2 x %"struct.std::pair.43"], ptr %4, i32 0, i32 0
  %52 = getelementptr inbounds %"struct.std::pair.43", ptr %51, i64 2
  br label %53

53:                                               ; preds = %53, %47
  %54 = phi ptr [ %52, %47 ], [ %55, %53 ]
  %55 = getelementptr inbounds %"struct.std::pair.43", ptr %54, i64 -1
  call void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %55) #0
  %56 = icmp eq ptr %55, %51
  br i1 %56, label %57, label %53

57:                                               ; preds = %53
  br label %58

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

59:                                               ; preds = %58, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #0
  %60 = load i1, ptr %10, align 1
  br i1 %60, label %61, label %69

61:                                               ; preds = %59
  %62 = load ptr, ptr %5, align 8
  %63 = icmp eq ptr %4, %62
  br i1 %63, label %68, label %64

64:                                               ; preds = %64, %61
  %65 = phi ptr [ %62, %61 ], [ %66, %64 ]
  %66 = getelementptr inbounds %"struct.std::pair.43", ptr %65, i64 -1
  call void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %66) #0
  %67 = icmp eq ptr %66, %4
  br i1 %67, label %68, label %64

68:                                               ; preds = %64, %61
  br label %69

69:                                               ; preds = %68, %59
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #0
  call void @__cxa_guard_abort(ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #0
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %7, align 8
  %72 = load i32, ptr %8, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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 nounwind uwtable
declare dso_local void @_ZNSaISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeE", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSSt16initializer_listISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__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.36" = type { %"class.std::_Rb_tree.37" }
%"class.std::_Rb_tree.37" = type { %"struct.std::_Rb_tree<NOMAD_4_3::SSDMadsStopType, std::pair<const NOMAD_4_3::SSDMadsStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::SSDMadsStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::SSDMadsStopType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<NOMAD_4_3::SSDMadsStopType, std::pair<const NOMAD_4_3::SSDMadsStopType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const NOMAD_4_3::SSDMadsStopType, std::__cxx11::basic_string<char>>>, std::less<NOMAD_4_3::SSDMadsStopType>>::_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.43" = 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.45" = type { i8 }
%"class.std::allocator.47" = type { i8 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@__dso_handle = external hidden global i8
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global %"class.std::map.36", align 8
@_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 = external hidden global i64, align 8

; 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_15SSDMadsStopTypeEE4dictB5cxx11Ev(ptr nocapture noundef nonnull readnone align 8 dereferenceable(12) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [2 x %"struct.std::pair.43"], align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::less.45", align 1
  %6 = alloca %"class.std::allocator.47", align 1
  %7 = load atomic i8, ptr @_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11 acquire, align 8
  %8 = icmp eq i8 %7, 0
  br i1 %8, label %9, label %18, !prof !5

9:                                                ; preds = %1
  %10 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  %.not11 = icmp eq i32 %10, 0
  br i1 %.not11, label %18, label %11

11:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 80, 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_315SSDMadsStopTypeENSt7__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 %12 unwind label %.thread

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

14:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt3mapIN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEEC2ESt16initializer_listISC_ERKS9_RKSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr nonnull %2, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %15 unwind label %.thread19

15:                                               ; preds = %14
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  %16 = getelementptr inbounds i8, ptr %2, i64 40
  call void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  call void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #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 80, ptr nonnull %2) #5
  %17 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt3mapIN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEED2Ev, ptr nonnull @_ZZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11, ptr nonnull @__dso_handle) #5
  call void @__cxa_guard_release(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  br label %18

18:                                               ; preds = %15, %9, %1
  ret ptr @_ZZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11

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

.thread19:                                        ; preds = %14
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  %21 = getelementptr inbounds i8, ptr %2, i64 40
  call void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  call void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #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

.loopexit.loopexit:                               ; preds = %12
  %22 = 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
  call void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.thread19, %.thread
  %.pn.pn18 = phi { ptr, i32 } [ %19, %.thread ], [ %20, %.thread19 ], [ %22, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZNK9NOMAD_4_310StopReasonINS_15SSDMadsStopTypeEE4dictB5cxx11EvE10dictionaryB5cxx11) #5
  resume { ptr, i32 } %.pn.pn18
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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 nounwind uwtable
declare dso_local void @_ZNSaISt4pairIKN9NOMAD_4_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeENSt7__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_315SSDMadsStopTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


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