; LLVM IR from facebook/redex :: libredex (ControlFlow)

; 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::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.113" = type { ptr }
%class.anon.630 = type { i8 }
%class.anon.632 = type { ptr, ptr, ptr }
%"class.cfg::ControlFlowGraph" = type { %"class.std::map", %class.UnorderedSet, ptr, ptr, ptr, i32, i8, i8, i8, %"class.std::vector" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, cfg::Block *>, std::_Select1st<std::pair<const unsigned long, cfg::Block *>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, cfg::Block *>, std::_Select1st<std::pair<const unsigned long, cfg::Block *>>, std::less<unsigned long>>::_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.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl" }
%"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl" = type { %"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.8 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph12create_catchEPNS_5BlockEP12UnorderedMapIP15MethodItemEntryS2_St4hashIS5_ESt8equal_toIS5_EE = external hidden unnamed_addr constant [106 x i8], align 1

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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3cfg16ControlFlowGraph22get_succ_edges_of_typeEPKNS_5BlockENS_8EdgeTypeE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.11") align 8, ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, i8 noundef zeroext) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3cfg16ControlFlowGraph12create_catchEPNS_5BlockEP12UnorderedMapIP15MethodItemEntryS2_St4hashIS5_ESt8equal_toIS5_EE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef %1, ptr noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector.11", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.113", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.113", align 8
  %12 = alloca %class.anon.630, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.113", align 8
  %17 = alloca %class.anon.632, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.113", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  %20 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %19, i32 0, i32 6
  %21 = load i8, ptr %20, align 4, !tbaa !9, !range !32, !noundef !33
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %24

23:                                               ; preds = %3
  br label %26

24:                                               ; preds = %3
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.89, ptr noundef @.str.8, i32 noundef 2189, ptr noundef @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph12create_catchEPNS_5BlockEP12UnorderedMapIP15MethodItemEntryS2_St4hashIS5_ESt8equal_toIS5_EE, i32 noundef 2, ptr noundef @.str.9) #5
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK3cfg16ControlFlowGraph22get_succ_edges_of_typeEPKNS_5BlockENS_8EdgeTypeE(ptr dead_on_unwind writable sret(%"class.std::vector.11") align 8 %8, ptr noundef nonnull align 8 dereferenceable(160) %19, ptr noundef %27, i8 noundef zeroext 2)
  %28 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store ptr null, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %59

30:                                               ; preds = %26
  %31 = call ptr @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %10, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  %33 = call ptr @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %11, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  %35 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %10, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %11, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN3cfg4EdgeESt6vectorIS4_SaIS4_EEEEZNS2_16ControlFlowGraph12create_catchEPNS2_5BlockEP12UnorderedMapIP15MethodItemEntrySC_St4hashISF_ESt8equal_toISF_EEE3$_0EvT_SN_T0_"(ptr %36, ptr %38)
          to label %39 unwind label %51

39:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %40 = call ptr @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %16, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  store ptr %16, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  %42 = getelementptr inbounds %class.anon.632, ptr %17, i32 0, i32 0
  store ptr %19, ptr %42, align 8, !tbaa !34
  %43 = getelementptr inbounds %class.anon.632, ptr %17, i32 0, i32 1
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %44, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.anon.632, ptr %17, i32 0, i32 2
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %46, ptr %45, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %47 = call ptr @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %18, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  %49 = invoke noundef ptr @"_Z17self_recursive_fnIZN3cfg16ControlFlowGraph12create_catchEPNS0_5BlockEP12UnorderedMapIP15MethodItemEntryS3_St4hashIS6_ESt8equal_toIS6_EEE3$_1JN9__gnu_cxx17__normal_iteratorIPPNS0_4EdgeESt6vectorISH_SaISH_EEEEEEDTclfp_fp_spclsr3stdE7forwardIT0_Efp0_EEERKT_DpOSN_"(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %50 unwind label %55

50:                                               ; preds = %39
  store ptr %49, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %59

51:                                               ; preds = %30
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %13, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %14, align 4
  br label %61

55:                                               ; preds = %39
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %13, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %61

59:                                               ; preds = %50, %29
  call void @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  %60 = load ptr, ptr %4, align 8
  ret ptr %60

61:                                               ; preds = %55, %51
  call void @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %13, align 8
  %64 = load i32, ptr %14, align 4
  %65 = insertvalue { ptr, i32 } poison, ptr %63, 0
  %66 = insertvalue { ptr, i32 } %65, i32 %64, 1
  resume { ptr, i32 } %66
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN3cfg4EdgeESt6vectorIS4_SaIS4_EEEEZNS2_16ControlFlowGraph12create_catchEPNS2_5BlockEP12UnorderedMapIP15MethodItemEntrySC_St4hashISF_ESt8equal_toISF_EEE3$_0EvT_SN_T0_"(ptr, ptr) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @"_Z17self_recursive_fnIZN3cfg16ControlFlowGraph12create_catchEPNS0_5BlockEP12UnorderedMapIP15MethodItemEntryS3_St4hashIS6_ESt8equal_toIS6_EEE3$_1JN9__gnu_cxx17__normal_iteratorIPPNS0_4EdgeESt6vectorISH_SaISH_EEEEEEDTclfp_fp_spclsr3stdE7forwardIT0_Efp0_EEERKT_DpOSN_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 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 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 = { noreturn }
attributes #6 = { 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, !27, i64 132}
!10 = !{!"_ZTSN3cfg16ControlFlowGraphE", !11, i64 0, !20, i64 48, !6, i64 104, !6, i64 112, !6, i64 120, !26, i64 128, !27, i64 132, !27, i64 133, !27, i64 134, !28, i64 136}
!11 = !{!"_ZTSSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !15, i64 0}
!15 = !{!"_ZTSSt4lessImE"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !19, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTS12UnorderedSetIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt13unordered_setIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableIPN3cfg4EdgeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !19, i64 8, !23, i64 16, !19, i64 24, !24, i64 32, !6, i64 48}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !25, i64 0, !19, i64 8}
!25 = !{!"float", !7, i64 0}
!26 = !{!"int", !7, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!35, !6, i64 0}
!35 = !{!"_ZTSZN3cfg16ControlFlowGraph12create_catchEPNS_5BlockEP12UnorderedMapIP15MethodItemEntryS2_St4hashIS5_ESt8equal_toIS5_EEE3$_1", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!35, !6, i64 16}


; 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::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.113" = type { ptr }
%class.anon.632 = type { ptr, ptr, ptr }

@.str.8 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph12create_catchEPNS_5BlockEP12UnorderedMapIP15MethodItemEntryS2_St4hashIS5_ESt8equal_toIS5_EE = external hidden unnamed_addr constant [106 x i8], align 1

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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3cfg16ControlFlowGraph22get_succ_edges_of_typeEPKNS_5BlockENS_8EdgeTypeE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.11") align 8, ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, i8 noundef zeroext) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3cfg16ControlFlowGraph12create_catchEPNS_5BlockEP12UnorderedMapIP15MethodItemEntryS2_St4hashIS5_ESt8equal_toIS5_EE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.11", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.113", align 8
  %6 = alloca %class.anon.632, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.113", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 132
  %9 = load i8, ptr %8, align 4, !tbaa !5, !range !31, !noundef !32
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %12, label %11

11:                                               ; preds = %3
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.89, ptr noundef nonnull @.str.8, i32 noundef 2189, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph12create_catchEPNS_5BlockEP12UnorderedMapIP15MethodItemEntryS2_St4hashIS5_ESt8equal_toIS5_EE, i32 noundef 2, ptr noundef nonnull @.str.9) #5
  unreachable

12:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNK3cfg16ControlFlowGraph22get_succ_edges_of_typeEPKNS_5BlockENS_8EdgeTypeE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.11") align 8 %4, ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef %1, i8 noundef zeroext 2)
  %13 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br i1 %13, label %28, label %14

14:                                               ; preds = %12
  %15 = call ptr @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %16 = call ptr @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN3cfg4EdgeESt6vectorIS4_SaIS4_EEEEZNS2_16ControlFlowGraph12create_catchEPNS2_5BlockEP12UnorderedMapIP15MethodItemEntrySC_St4hashISF_ESt8equal_toISF_EEE3$_0EvT_SN_T0_"(ptr %15, ptr %16)
          to label %17 unwind label %24

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %18 = call ptr @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %18, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  store ptr %0, ptr %6, align 8, !tbaa !33
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %5, ptr %19, align 8, !tbaa !35
  %20 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %2, ptr %20, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %21 = call ptr @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %21, ptr %7, align 8
  %22 = invoke noundef ptr @"_Z17self_recursive_fnIZN3cfg16ControlFlowGraph12create_catchEPNS0_5BlockEP12UnorderedMapIP15MethodItemEntryS3_St4hashIS6_ESt8equal_toIS6_EEE3$_1JN9__gnu_cxx17__normal_iteratorIPPNS0_4EdgeESt6vectorISH_SaISH_EEEEEEDTclfp_fp_spclsr3stdE7forwardIT0_Efp0_EEERKT_DpOSN_"(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %23 unwind label %26

23:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %28

24:                                               ; preds = %14
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %29

26:                                               ; preds = %17
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %29

28:                                               ; preds = %12, %23
  %.0 = phi ptr [ %22, %23 ], [ null, %12 ]
  call void @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret ptr %.0

29:                                               ; preds = %26, %24
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %25, %24 ]
  call void @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN3cfg4EdgeESt6vectorIS4_SaIS4_EEEEZNS2_16ControlFlowGraph12create_catchEPNS2_5BlockEP12UnorderedMapIP15MethodItemEntrySC_St4hashISF_ESt8equal_toISF_EEE3$_0EvT_SN_T0_"(ptr, ptr) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @"_Z17self_recursive_fnIZN3cfg16ControlFlowGraph12create_catchEPNS0_5BlockEP12UnorderedMapIP15MethodItemEntryS3_St4hashIS6_ESt8equal_toIS6_EEE3$_1JN9__gnu_cxx17__normal_iteratorIPPNS0_4EdgeESt6vectorISH_SaISH_EEEEEEDTclfp_fp_spclsr3stdE7forwardIT0_Efp0_EEERKT_DpOSN_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 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 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 = { noreturn }
attributes #6 = { 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, !26, i64 132}
!6 = !{!"_ZTSN3cfg16ControlFlowGraphE", !7, i64 0, !19, i64 48, !17, i64 104, !17, i64 112, !17, i64 120, !25, i64 128, !26, i64 132, !26, i64 133, !26, i64 134, !27, i64 136}
!7 = !{!"_ZTSSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE", !8, i64 0}
!8 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE", !9, i64 0}
!9 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !10, i64 0, !12, i64 8}
!10 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !11, i64 0}
!11 = !{!"_ZTSSt4lessImE"}
!12 = !{!"_ZTSSt15_Rb_tree_header", !13, i64 0, !18, i64 32}
!13 = !{!"_ZTSSt18_Rb_tree_node_base", !14, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!14 = !{!"_ZTSSt14_Rb_tree_color", !15, i64 0}
!15 = !{!"omnipotent char", !16, i64 0}
!16 = !{!"Simple C++ TBAA"}
!17 = !{!"any pointer", !15, i64 0}
!18 = !{!"long", !15, i64 0}
!19 = !{!"_ZTS12UnorderedSetIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt13unordered_setIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIPN3cfg4EdgeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !17, i64 0, !18, i64 8, !22, i64 16, !18, i64 24, !23, i64 32, !17, i64 48}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !17, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !24, i64 0, !18, i64 8}
!24 = !{!"float", !15, i64 0}
!25 = !{!"int", !15, i64 0}
!26 = !{!"bool", !15, i64 0}
!27 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!34, !17, i64 0}
!34 = !{!"_ZTSZN3cfg16ControlFlowGraph12create_catchEPNS_5BlockEP12UnorderedMapIP15MethodItemEntryS2_St4hashIS5_ESt8equal_toIS5_EEE3$_1", !17, i64 0, !17, i64 8, !17, i64 16}
!35 = !{!17, !17, i64 0}
!36 = !{!34, !17, i64 16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass