; LLVM IR from facebook/redex :: service/switch-partitioning/SwitchEquivFinder.ll (ZNK17SwitchEquivFinder14visited_blocksEv)

; 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.UnorderedBag = type { %"class.std::vector.154" }
%"class.std::vector.154" = type { %"struct.std::_Vector_base.155" }
%"struct.std::_Vector_base.155" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UnorderedMap<cfg::Block *, unsigned short>::ConstUnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_const_iterator.394" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ ptr, i16, [6 x i8] }>
%class.SwitchEquivFinder = type <{ ptr, ptr, i32, i32, %"class.std::shared_ptr.0", i32, [4 x i8], %"class.std::shared_ptr.3", i8, [7 x i8], %"class.std::map", %class.UnorderedMap, %class.UnorderedMap.14, i8, [7 x i8] }>
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<boost::variant<SwitchEquivFinder::DefaultCase, int, const DexType *>, std::pair<const boost::variant<SwitchEquivFinder::DefaultCase, int, const DexType *>, cfg::Block *>, std::_Select1st<std::pair<const boost::variant<SwitchEquivFinder::DefaultCase, int, const DexType *>, cfg::Block *>>, SwitchEquivFinder::key_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<boost::variant<SwitchEquivFinder::DefaultCase, int, const DexType *>, std::pair<const boost::variant<SwitchEquivFinder::DefaultCase, int, const DexType *>, cfg::Block *>, std::_Select1st<std::pair<const boost::variant<SwitchEquivFinder::DefaultCase, int, const DexType *>, cfg::Block *>>, SwitchEquivFinder::key_comparator>::_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.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.UnorderedMap.14 = type { %"class.std::unordered_map.16" }
%"class.std::unordered_map.16" = type { %"class.std::_Hashtable.17" }
%"class.std::_Hashtable.17" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EE5blockEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK17SwitchEquivFinder14visited_blocksEv(ptr dead_on_unwind noalias writable sret(%class.UnorderedBag) align 8 %0, ptr noundef nonnull align 8 dereferenceable(233) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.UnorderedMap<cfg::Block *, unsigned short>::ConstUnorderedIterable", align 8
  %11 = alloca %"struct.std::__detail::_Node_const_iterator.394", align 8
  %12 = alloca %"struct.std::__detail::_Node_const_iterator.394", align 8
  %13 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZN12UnorderedBagIPN3cfg5BlockEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %15 = getelementptr inbounds %class.SwitchEquivFinder, ptr %14, i32 0, i32 12
  %16 = invoke noundef i64 @_ZNK12UnorderedMapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %15)
          to label %17 unwind label %42

17:                                               ; preds = %2
  %18 = add i64 1, %16
  invoke void @_ZN12UnorderedBagIPN3cfg5BlockEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %18)
          to label %19 unwind label %42

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %20 = getelementptr inbounds %class.SwitchEquivFinder, ptr %14, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = invoke noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EE5blockEv(ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %23 unwind label %46

23:                                               ; preds = %19
  store ptr %22, ptr %8, align 8, !tbaa !5
  invoke void @_ZN12UnorderedBagIPN3cfg5BlockEE6insertEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %24 unwind label %46

24:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %25 = getelementptr inbounds %class.SwitchEquivFinder, ptr %14, i32 0, i32 12
  %26 = invoke ptr @_Z17UnorderedIterableI12UnorderedMapIPN3cfg5BlockEtSt4hashIS3_ESt8equal_toIS3_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESB_EEbE4typeELb1EEDaRKSB_(ptr noundef nonnull align 8 dereferenceable(56) %25)
          to label %27 unwind label %50

27:                                               ; preds = %24
  %28 = getelementptr inbounds %"class.UnorderedMap<cfg::Block *, unsigned short>::ConstUnorderedIterable", ptr %10, i32 0, i32 0
  store ptr %26, ptr %28, align 8
  store ptr %10, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = invoke ptr @_ZNK12UnorderedMapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %31 unwind label %54

31:                                               ; preds = %27
  %32 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.394", ptr %11, i32 0, i32 0
  %33 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %32, i32 0, i32 0
  store ptr %30, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = invoke ptr @_ZNK12UnorderedMapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %36 unwind label %58

36:                                               ; preds = %31
  %37 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.394", ptr %12, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %37, i32 0, i32 0
  store ptr %35, ptr %38, align 8
  br label %39

39:                                               ; preds = %66, %36
  %40 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPN3cfg5BlockEtELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %40, label %62, label %41

41:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %75

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

46:                                               ; preds = %23, %19
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %6, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %79

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

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

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

62:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %63 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKPN3cfg5BlockEtELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %63, i64 16, i1 false)
  %64 = getelementptr inbounds %"struct.std::pair", ptr %13, i32 0, i32 0
  invoke void @_ZN12UnorderedBagIPN3cfg5BlockEE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %65 unwind label %68

65:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %66

66:                                               ; preds = %65
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPN3cfg5BlockEtELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %39

68:                                               ; preds = %62
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %6, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %72

72:                                               ; preds = %68, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %73

73:                                               ; preds = %72, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %74

74:                                               ; preds = %73, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %79

75:                                               ; preds = %41
  store i1 true, ptr %5, align 1
  %76 = load i1, ptr %5, align 1
  br i1 %76, label %78, label %77

77:                                               ; preds = %75
  call void @_ZN12UnorderedBagIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %78

78:                                               ; preds = %77, %75
  ret void

79:                                               ; preds = %74, %46, %42
  call void @_ZN12UnorderedBagIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %80

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedBagIPN3cfg5BlockEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z17UnorderedIterableI12UnorderedMapIPN3cfg5BlockEtSt4hashIS3_ESt8equal_toIS3_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESB_EEbE4typeELb1EEDaRKSB_(ptr noundef nonnull align 8 dereferenceable(56)) #1

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS17SwitchEquivFinder", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !15, i64 40, !16, i64 48, !18, i64 64, !19, i64 72, !28, i64 120, !34, i64 176, !18, i64 232}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt10shared_ptrIN20constant_propagation15intraprocedural16FixpointIteratorEE", !13, i64 0}
!13 = !{!"_ZTSSt12__shared_ptrIN20constant_propagation15intraprocedural16FixpointIteratorELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !14, i64 8}
!14 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!15 = !{!"_ZTSN17SwitchEquivFinder21DuplicateCaseStrategyE", !7, i64 0}
!16 = !{!"_ZTSSt10shared_ptrI12UnorderedMapIP13IRInstruction12UnorderedSetIPN3cfg5BlockESt4hashIS6_ESt8equal_toIS6_EES7_IS2_ES9_IS2_EEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrI12UnorderedMapIP13IRInstruction12UnorderedSetIPN3cfg5BlockESt4hashIS6_ESt8equal_toIS6_EES7_IS2_ES9_IS2_EELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !14, i64 8}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSSt3mapIN5boost7variantIN17SwitchEquivFinder11DefaultCaseEJiPK7DexTypeEEEPN3cfg5BlockENS2_14key_comparatorESaISt4pairIKS7_SA_EEE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeIN5boost7variantIN17SwitchEquivFinder11DefaultCaseEJiPK7DexTypeEEESt4pairIKS7_PN3cfg5BlockEESt10_Select1stISD_ENS2_14key_comparatorESaISD_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeIN5boost7variantIN17SwitchEquivFinder11DefaultCaseEJiPK7DexTypeEEESt4pairIKS7_PN3cfg5BlockEESt10_Select1stISD_ENS2_14key_comparatorESaISD_EE13_Rb_tree_implISG_Lb1EEE", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareIN17SwitchEquivFinder14key_comparatorEE", !23, i64 0}
!23 = !{!"_ZTSN17SwitchEquivFinder14key_comparatorE"}
!24 = !{!"_ZTSSt15_Rb_tree_header", !25, i64 0, !27, i64 32}
!25 = !{!"_ZTSSt18_Rb_tree_node_base", !26, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTS12UnorderedMapIPN3cfg5BlockESt3mapIjP13IRInstructionSt4lessIjESaISt4pairIKjS5_EEESt4hashIS2_ESt8equal_toIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt13unordered_mapIPN3cfg5BlockESt3mapIjP13IRInstructionSt4lessIjESaISt4pairIKjS5_EEESt4hashIS2_ESt8equal_toIS2_ESaIS8_IKS2_SC_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableIPN3cfg5BlockESt4pairIKS2_St3mapIjP13IRInstructionSt4lessIjESaIS3_IKjS7_EEEESaISE_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSG_18_Mod_range_hashingENSG_20_Default_ranged_hashENSG_20_Prime_rehash_policyENSG_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !27, i64 8, !31, i64 16, !27, i64 24, !32, i64 32, !6, i64 48}
!31 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!32 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !33, i64 0, !27, i64 8}
!33 = !{!"float", !7, i64 0}
!34 = !{!"_ZTS12UnorderedMapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_EE", !35, i64 0}
!35 = !{!"_ZTSSt13unordered_mapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_tEEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableIPN3cfg5BlockESt4pairIKS2_tESaIS5_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !27, i64 8, !31, i64 16, !27, i64 24, !32, i64 32, !6, i64 48}


; 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.UnorderedBag = type { %"class.std::vector.154" }
%"class.std::vector.154" = type { %"struct.std::_Vector_base.155" }
%"struct.std::_Vector_base.155" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UnorderedMap<cfg::Block *, unsigned short>::ConstUnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_const_iterator.394" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ ptr, i16, [6 x i8] }>

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK17SwitchEquivFinder14visited_blocksEv(ptr dead_on_unwind noalias nonnull writable sret(%class.UnorderedBag) align 8 %0, ptr noundef nonnull align 8 dereferenceable(233) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.UnorderedMap<cfg::Block *, unsigned short>::ConstUnorderedIterable", align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator.394", align 8
  %6 = alloca %"struct.std::__detail::_Node_const_iterator.394", align 8
  %7 = alloca %"struct.std::pair", align 8
  tail call void @_ZN12UnorderedBagIPN3cfg5BlockEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %8 = getelementptr inbounds i8, ptr %1, i64 176
  %9 = tail call noundef i64 @_ZNK12UnorderedMapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
  %10 = add i64 %9, 1
  invoke void @_ZN12UnorderedBagIPN3cfg5BlockEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %10)
          to label %11 unwind label %22

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = invoke noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EE5blockEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %15 unwind label %24

15:                                               ; preds = %11
  store ptr %14, ptr %3, align 8, !tbaa !36
  invoke void @_ZN12UnorderedBagIPN3cfg5BlockEE6insertEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %16 unwind label %24

16:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %17 = invoke ptr @_Z17UnorderedIterableI12UnorderedMapIPN3cfg5BlockEtSt4hashIS3_ESt8equal_toIS3_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESB_EEbE4typeELb1EEDaRKSB_(ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %18 unwind label %26

18:                                               ; preds = %16
  store ptr %17, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %19 = call ptr @_ZNK12UnorderedMapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store ptr %19, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %20 = call ptr @_ZNK12UnorderedMapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store ptr %20, ptr %6, align 8
  %21 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPN3cfg5BlockEtELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %29, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void

22:                                               ; preds = %2
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %34

24:                                               ; preds = %15, %11
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %34

26:                                               ; preds = %16
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %34

.lr.ph:                                           ; preds = %18, %29
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %28 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKPN3cfg5BlockEtELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %28, i64 16, i1 false)
  invoke void @_ZN12UnorderedBagIPN3cfg5BlockEE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %29 unwind label %32

29:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPN3cfg5BlockEtELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %31 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPN3cfg5BlockEtELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %31, label %.lr.ph, label %._crit_edge

32:                                               ; preds = %.lr.ph
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %34

34:                                               ; preds = %26, %32, %24, %22
  %.pn.pn = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ], [ %33, %32 ], [ %27, %26 ]
  call void @_ZN12UnorderedBagIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedBagIPN3cfg5BlockEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedBagIPN3cfg5BlockEE6insertEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z17UnorderedIterableI12UnorderedMapIPN3cfg5BlockEtSt4hashIS3_ESt8equal_toIS3_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESB_EEbE4typeELb1EEDaRKSB_(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedBagIPN3cfg5BlockEE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTS17SwitchEquivFinder", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !11, i64 24, !14, i64 40, !15, i64 48, !17, i64 64, !18, i64 72, !27, i64 120, !33, i64 176, !17, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSSt10shared_ptrIN20constant_propagation15intraprocedural16FixpointIteratorEE", !12, i64 0}
!12 = !{!"_ZTSSt12__shared_ptrIN20constant_propagation15intraprocedural16FixpointIteratorELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0}
!14 = !{!"_ZTSN17SwitchEquivFinder21DuplicateCaseStrategyE", !8, i64 0}
!15 = !{!"_ZTSSt10shared_ptrI12UnorderedMapIP13IRInstruction12UnorderedSetIPN3cfg5BlockESt4hashIS6_ESt8equal_toIS6_EES7_IS2_ES9_IS2_EEE", !16, i64 0}
!16 = !{!"_ZTSSt12__shared_ptrI12UnorderedMapIP13IRInstruction12UnorderedSetIPN3cfg5BlockESt4hashIS6_ESt8equal_toIS6_EES7_IS2_ES9_IS2_EELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !13, i64 8}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTSSt3mapIN5boost7variantIN17SwitchEquivFinder11DefaultCaseEJiPK7DexTypeEEEPN3cfg5BlockENS2_14key_comparatorESaISt4pairIKS7_SA_EEE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeIN5boost7variantIN17SwitchEquivFinder11DefaultCaseEJiPK7DexTypeEEESt4pairIKS7_PN3cfg5BlockEESt10_Select1stISD_ENS2_14key_comparatorESaISD_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeIN5boost7variantIN17SwitchEquivFinder11DefaultCaseEJiPK7DexTypeEEESt4pairIKS7_PN3cfg5BlockEESt10_Select1stISD_ENS2_14key_comparatorESaISD_EE13_Rb_tree_implISG_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareIN17SwitchEquivFinder14key_comparatorEE", !22, i64 0}
!22 = !{!"_ZTSN17SwitchEquivFinder14key_comparatorE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !26, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!26 = !{!"long", !8, i64 0}
!27 = !{!"_ZTS12UnorderedMapIPN3cfg5BlockESt3mapIjP13IRInstructionSt4lessIjESaISt4pairIKjS5_EEESt4hashIS2_ESt8equal_toIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt13unordered_mapIPN3cfg5BlockESt3mapIjP13IRInstructionSt4lessIjESaISt4pairIKjS5_EEESt4hashIS2_ESt8equal_toIS2_ESaIS8_IKS2_SC_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_HashtableIPN3cfg5BlockESt4pairIKS2_St3mapIjP13IRInstructionSt4lessIjESaIS3_IKjS7_EEEESaISE_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSG_18_Mod_range_hashingENSG_20_Default_ranged_hashENSG_20_Prime_rehash_policyENSG_17_Hashtable_traitsILb0ELb0ELb1EEEE", !7, i64 0, !26, i64 8, !30, i64 16, !26, i64 24, !31, i64 32, !7, i64 48}
!30 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!31 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !32, i64 0, !26, i64 8}
!32 = !{!"float", !8, i64 0}
!33 = !{!"_ZTS12UnorderedMapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_EE", !34, i64 0}
!34 = !{!"_ZTSSt13unordered_mapIPN3cfg5BlockEtSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_tEEE", !35, i64 0}
!35 = !{!"_ZTSSt10_HashtableIPN3cfg5BlockESt4pairIKS2_tESaIS5_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !7, i64 0, !26, i64 8, !30, i64 16, !26, i64 24, !31, i64 32, !7, i64 48}
!36 = !{!7, !7, i64 0}


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