; LLVM IR from facebook/redex :: libredex/ControlFlow.ll (ZN3cfg16ControlFlowGraph25remove_unreachable_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.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"struct.std::pair.190" = type <{ i32, i8, [3 x i8] }>
%"class.std::vector.193" = type { %"struct.std::_Vector_base.194" }
%"struct.std::_Vector_base.194" = type { %"struct.std::_Vector_base<std::unique_ptr<DexPosition>, std::allocator<std::unique_ptr<DexPosition>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<DexPosition>, std::allocator<std::unique_ptr<DexPosition>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<DexPosition>, std::allocator<std::unique_ptr<DexPosition>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<DexPosition>, std::allocator<std::unique_ptr<DexPosition>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { 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 }
%"struct.std::pair.178" = type { i64, ptr }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.16 }
%"class.boost::intrusive::list_member_hook" = type { %"class.boost::intrusive::generic_hook" }
%"class.boost::intrusive::generic_hook" = type { %"struct.boost::intrusive::list_node" }
%"struct.boost::intrusive::list_node" = type { ptr, ptr }
%union.anon.16 = type { 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.44 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph25remove_unreachable_blocksEv = external hidden unnamed_addr constant [77 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [19 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: mustprogress uwtable
declare dso_local void @_ZN3cfg5Block4freeEv(ptr noundef nonnull align 8 dereferenceable(104)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cfg5Block5beginEv(ptr dead_on_unwind noalias writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cfg5Block3endEv(ptr dead_on_unwind noalias writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #1 align 2

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

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

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3cfg5Block11num_opcodesEv(ptr noundef nonnull align 8 dereferenceable(104)) #1 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) #7

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN3cfg16ControlFlowGraph25remove_unreachable_blocksEv(ptr noundef nonnull align 8 dereferenceable(160) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.std::pair.190", align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector.193", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.boost::intrusive::list_iterator", align 8
  %16 = alloca %"class.boost::intrusive::list_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %22 = alloca %"class.std::vector.193", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @_ZN3cfg16ControlFlowGraph29remove_unreachable_succ_edgesEv(ptr noundef nonnull align 8 dereferenceable(160) %23)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  store i8 0, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %24 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %23, i32 0, i32 0
  %25 = call ptr @_ZNSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %24) #8
  %26 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %7, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  br label %27

27:                                               ; preds = %179, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %28 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %23, i32 0, i32 0
  %29 = call ptr @_ZNSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %28) #8
  %30 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %8, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  %31 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmPN3cfg5BlockEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br i1 %31, label %33, label %32

32:                                               ; preds = %27
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %181

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %34 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmPN3cfg5BlockEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %35 = getelementptr inbounds %"struct.std::pair.178", ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  store ptr %36, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3cfg5Block5predsEv(ptr noundef nonnull align 8 dereferenceable(104) %37)
          to label %39 unwind label %54

39:                                               ; preds = %33
  store ptr %38, ptr %11, align 8, !tbaa !5
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  br i1 %41, label %42, label %177

42:                                               ; preds = %39
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = invoke noundef ptr @_ZNK3cfg16ControlFlowGraph11entry_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %23)
          to label %45 unwind label %54

45:                                               ; preds = %42
  %46 = icmp ne ptr %43, %44
  br i1 %46, label %47, label %177

47:                                               ; preds = %45
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = invoke noundef ptr @_ZNK3cfg16ControlFlowGraph10exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %23)
          to label %50 unwind label %54

50:                                               ; preds = %47
  %51 = icmp eq ptr %48, %49
  br i1 %51, label %52, label %58

52:                                               ; preds = %50
  invoke void @_ZN3cfg16ControlFlowGraph14set_exit_blockEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160) %23, ptr noundef null)
          to label %53 unwind label %54

53:                                               ; preds = %52
  br label %58

54:                                               ; preds = %160, %157, %151, %148, %140, %137, %52, %47, %42, %33
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  br label %180

58:                                               ; preds = %53, %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %59, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN3cfg5Block5beginEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(104) %60)
          to label %61 unwind label %68

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN3cfg5Block3endEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(104) %62)
          to label %63 unwind label %72

63:                                               ; preds = %61
  br label %64

64:                                               ; preds = %133, %63
  %65 = invoke noundef zeroext i1 @_ZN5boost9intrusiveneERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %66 unwind label %72

66:                                               ; preds = %64
  br i1 %65, label %76, label %67

67:                                               ; preds = %66
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %137

68:                                               ; preds = %58
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %12, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %13, align 4
  br label %136

72:                                               ; preds = %131, %64, %61
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %12, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %13, align 4
  br label %135

76:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %77 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %78 unwind label %87

78:                                               ; preds = %76
  store ptr %77, ptr %17, align 8, !tbaa !5
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.MethodItemEntry, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !16
  %82 = icmp eq i32 %81, 6
  br i1 %82, label %83, label %91

83:                                               ; preds = %78
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MethodItemEntry, ptr %84, i32 0, i32 2
  invoke void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %85)
          to label %86 unwind label %87

86:                                               ; preds = %83
  br label %130

87:                                               ; preds = %83, %76
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %12, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %13, align 4
  br label %134

91:                                               ; preds = %78
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.MethodItemEntry, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 8, !tbaa !16
  %95 = icmp eq i32 %94, 2
  br i1 %95, label %96, label %129

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %97 = load ptr, ptr %17, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.MethodItemEntry, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  store ptr %99, ptr %18, align 8, !tbaa !5
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = invoke noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %100)
          to label %102 unwind label %118

102:                                              ; preds = %96
  br i1 %101, label %103, label %127

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = invoke noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %104)
          to label %106 unwind label %122

106:                                              ; preds = %103
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = invoke noundef zeroext i1 @_ZNK13IRInstruction12dest_is_wideEv(ptr noundef nonnull align 8 dereferenceable(32) %107)
          to label %109 unwind label %122

109:                                              ; preds = %106
  %110 = zext i1 %108 to i32
  %111 = add i32 %105, %110
  %112 = add i32 %111, 1
  store i32 %112, ptr %19, align 4, !tbaa !9
  %113 = load i32, ptr %19, align 4, !tbaa !9
  %114 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %23, i32 0, i32 5
  %115 = load i32, ptr %114, align 8, !tbaa !23
  %116 = icmp uge i32 %113, %115
  br i1 %116, label %117, label %126

117:                                              ; preds = %109
  store i8 1, ptr %6, align 1, !tbaa !11
  br label %126

118:                                              ; preds = %96
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %12, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %13, align 4
  br label %128

122:                                              ; preds = %106, %103
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %12, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %128

126:                                              ; preds = %117, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %127

127:                                              ; preds = %126, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %129

128:                                              ; preds = %122, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %134

129:                                              ; preds = %127, %91
  br label %130

130:                                              ; preds = %129, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %131

131:                                              ; preds = %130
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %133 unwind label %72

133:                                              ; preds = %131
  br label %64

134:                                              ; preds = %128, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %135

135:                                              ; preds = %134, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %136

136:                                              ; preds = %135, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %180

137:                                              ; preds = %67
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = invoke noundef i32 @_ZNK3cfg5Block11num_opcodesEv(ptr noundef nonnull align 8 dereferenceable(104) %138)
          to label %140 unwind label %54

140:                                              ; preds = %137
  %141 = load i32, ptr %4, align 4, !tbaa !9
  %142 = add i32 %141, %139
  store i32 %142, ptr %4, align 4, !tbaa !9
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3cfg5Block5succsEv(ptr noundef nonnull align 8 dereferenceable(104) %143)
          to label %145 unwind label %54

145:                                              ; preds = %140
  %146 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #8
  br i1 %146, label %147, label %148

147:                                              ; preds = %145
  br label %151

148:                                              ; preds = %145
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.44, ptr noundef @.str.8, i32 noundef 1124, ptr noundef @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph25remove_unreachable_blocksEv, i32 noundef 2, ptr noundef @.str.9) #9
          to label %149 unwind label %54

149:                                              ; preds = %148
  unreachable

150:                                              ; No predecessors!
  br label %151

151:                                              ; preds = %150, %147
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3cfg5Block5predsEv(ptr noundef nonnull align 8 dereferenceable(104) %152)
          to label %154 unwind label %54

154:                                              ; preds = %151
  %155 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %153) #8
  br i1 %155, label %156, label %157

156:                                              ; preds = %154
  br label %160

157:                                              ; preds = %154
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.45, ptr noundef @.str.8, i32 noundef 1125, ptr noundef @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph25remove_unreachable_blocksEv, i32 noundef 2, ptr noundef @.str.9) #9
          to label %158 unwind label %54

158:                                              ; preds = %157
  unreachable

159:                                              ; No predecessors!
  br label %160

160:                                              ; preds = %159, %156
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN3cfg5Block4freeEv(ptr noundef nonnull align 8 dereferenceable(104) %161)
          to label %162 unwind label %54

162:                                              ; preds = %160
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = icmp eq ptr %163, null
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  call void @_ZN3cfg5BlockD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %163) #8
  call void @_ZdlPvm(ptr noundef %163, i64 noundef 104) #10
  br label %166

166:                                              ; preds = %165, %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %167 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %23, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !43
  %168 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %21, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8
  %170 = invoke ptr @_ZNSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS7_E(ptr noundef nonnull align 8 dereferenceable(48) %167, ptr %169)
          to label %171 unwind label %173

171:                                              ; preds = %166
  %172 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %170, ptr %172, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %20, i64 8, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %179

173:                                              ; preds = %166
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %12, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %180

177:                                              ; preds = %45, %39
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmPN3cfg5BlockEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br label %179

179:                                              ; preds = %177, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %27, !llvm.loop !44

180:                                              ; preds = %173, %136, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %195

181:                                              ; preds = %32
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  invoke void @_ZN3cfg16ControlFlowGraph20fix_dangling_parentsESt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS3_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(160) %23, ptr noundef %22)
          to label %182 unwind label %187

182:                                              ; preds = %181
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %183 = invoke i64 @_ZSt9make_pairIRjRbESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %184 unwind label %191

184:                                              ; preds = %182
  %185 = trunc i64 %183 to i40
  store i40 %185, ptr %2, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  %186 = load i64, ptr %2, align 4
  ret i64 %186

187:                                              ; preds = %181
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %12, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %13, align 4
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %195

191:                                              ; preds = %182
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %12, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %13, align 4
  br label %195

195:                                              ; preds = %191, %187, %180
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %12, align 8
  %198 = load i32, ptr %13, align 4
  %199 = insertvalue { ptr, i32 } poison, ptr %197, 0
  %200 = insertvalue { ptr, i32 } %199, i32 %198, 1
  resume { ptr, i32 } %200
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cfg16ControlFlowGraph14set_exit_blockEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #6 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRjRbESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) #1

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 = { 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 #3 = { nobuiltin nounwind "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 = { 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { builtin 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSSt4pairIKmPN3cfg5BlockEE", !15, i64 0, !6, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !21, i64 16}
!17 = !{!"_ZTS15MethodItemEntry", !18, i64 0, !21, i64 16, !7, i64 24}
!18 = !{!"_ZTSN5boost9intrusive16list_member_hookIJEEE", !19, i64 0}
!19 = !{!"_ZTSN5boost9intrusive12generic_hookILNS0_10algo_typesE0ENS0_16list_node_traitsIPvEENS0_10member_tagELNS0_14link_mode_typeE1ELNS0_14base_hook_typeE0EEE", !20, i64 0}
!20 = !{!"_ZTSN5boost9intrusive9list_nodeIPvEE", !6, i64 0, !6, i64 8}
!21 = !{!"_ZTS14MethodItemType", !7, i64 0}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !10, i64 128}
!24 = !{!"_ZTSN3cfg16ControlFlowGraphE", !25, i64 0, !33, i64 48, !6, i64 104, !6, i64 112, !6, i64 120, !10, i64 128, !12, i64 132, !12, i64 133, !12, i64 134, !39, i64 136}
!25 = !{!"_ZTSSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE", !26, i64 0}
!26 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !28, i64 0, !30, i64 8}
!28 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !29, i64 0}
!29 = !{!"_ZTSSt4lessImE"}
!30 = !{!"_ZTSSt15_Rb_tree_header", !31, i64 0, !15, i64 32}
!31 = !{!"_ZTSSt18_Rb_tree_node_base", !32, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!33 = !{!"_ZTS12UnorderedSetIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_EE", !34, i64 0}
!34 = !{!"_ZTSSt13unordered_setIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !35, i64 0}
!35 = !{!"_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, !15, i64 8, !36, i64 16, !15, i64 24, !37, i64 32, !6, i64 48}
!36 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!37 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !38, i64 0, !15, i64 8}
!38 = !{!"float", !7, i64 0}
!39 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{i64 0, i64 8, !5}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}


; 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.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.std::vector.193" = type { %"struct.std::_Vector_base.194" }
%"struct.std::_Vector_base.194" = type { %"struct.std::_Vector_base<std::unique_ptr<DexPosition>, std::allocator<std::unique_ptr<DexPosition>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<DexPosition>, std::allocator<std::unique_ptr<DexPosition>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<DexPosition>, std::allocator<std::unique_ptr<DexPosition>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<DexPosition>, std::allocator<std::unique_ptr<DexPosition>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { 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.44 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph25remove_unreachable_blocksEv = external hidden unnamed_addr constant [77 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [19 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: mustprogress uwtable
declare dso_local void @_ZN3cfg5Block4freeEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cfg5Block5beginEv(ptr dead_on_unwind noalias writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cfg5Block3endEv(ptr dead_on_unwind noalias writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

; 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 #5

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local range(i64 0, 1099511627776) i64 @_ZN3cfg16ControlFlowGraph25remove_unreachable_blocksEv(ptr noundef nonnull align 8 dereferenceable(160) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector.193", align 8
  %4 = alloca i8, align 1
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"class.boost::intrusive::list_iterator", align 8
  %8 = alloca %"class.boost::intrusive::list_iterator", align 8
  %9 = alloca %"class.std::vector.193", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  tail call void @_ZN3cfg16ControlFlowGraph29remove_unreachable_succ_edgesEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  store i8 0, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %10 = call ptr @_ZNSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  store ptr %10, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %11 = call ptr @_ZNSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  store ptr %11, ptr %6, align 8
  %12 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmPN3cfg5BlockEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 128
  br label %14

._crit_edge:                                      ; preds = %84, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @_ZN3cfg16ControlFlowGraph20fix_dangling_parentsESt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS3_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull %9)
          to label %89 unwind label %92

14:                                               ; preds = %.lr.ph, %84
  %15 = phi i32 [ 0, %.lr.ph ], [ %85, %84 ]
  %16 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmPN3cfg5BlockEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3cfg5Block5predsEv(ptr noundef nonnull align 8 dereferenceable(104) %18)
  %20 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  br i1 %20, label %21, label %82

21:                                               ; preds = %14
  %22 = call noundef ptr @_ZNK3cfg16ControlFlowGraph11entry_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  %.not = icmp eq ptr %18, %22
  br i1 %.not, label %82, label %23

23:                                               ; preds = %21
  %24 = call noundef ptr @_ZNK3cfg16ControlFlowGraph10exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  %25 = icmp eq ptr %18, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  call void @_ZN3cfg16ControlFlowGraph14set_exit_blockEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef null)
  br label %27

.loopexit40:                                      ; preds = %31, %76
  %lpad.loopexit42 = landingpad { ptr, i32 }
          cleanup
  br label %88

.loopexit.split-lp41:                             ; preds = %.invoke
  %lpad.loopexit.split-lp43 = landingpad { ptr, i32 }
          cleanup
  br label %88

27:                                               ; preds = %26, %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  invoke void @_ZN3cfg5Block5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(104) %18)
          to label %28 unwind label %33

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  invoke void @_ZN3cfg5Block3endEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(104) %18)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %28, %63
  %29 = invoke noundef zeroext i1 @_ZN5boost9intrusiveneERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %30 unwind label %.loopexit

30:                                               ; preds = %.preheader
  br i1 %29, label %35, label %31

31:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %32 = invoke noundef i32 @_ZNK3cfg5Block11num_opcodesEv(ptr noundef nonnull align 8 dereferenceable(104) %18)
          to label %67 unwind label %.loopexit40

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

.loopexit:                                        ; preds = %.preheader
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %65

.loopexit.split-lp:                               ; preds = %28
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %65

35:                                               ; preds = %30
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %37 unwind label %42

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %36, i64 16
  %39 = load i32, ptr %38, align 8, !tbaa !15
  switch i32 %39, label %63 [
    i32 6, label %40
    i32 2, label %44
  ]

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %36, i64 24
  invoke void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %63 unwind label %42

42:                                               ; preds = %40, %35
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %65

44:                                               ; preds = %37
  %45 = getelementptr inbounds i8, ptr %36, i64 24
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  %47 = invoke noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %48 unwind label %59

48:                                               ; preds = %44
  br i1 %47, label %49, label %63

49:                                               ; preds = %48
  %50 = invoke noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %51 unwind label %61

51:                                               ; preds = %49
  %52 = invoke noundef zeroext i1 @_ZNK13IRInstruction12dest_is_wideEv(ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %53 unwind label %61

53:                                               ; preds = %51
  %54 = zext i1 %52 to i32
  %55 = add i32 %50, 1
  %56 = add i32 %55, %54
  %57 = load i32, ptr %13, align 8, !tbaa !22
  %.not33 = icmp ult i32 %56, %57
  br i1 %.not33, label %63, label %58

58:                                               ; preds = %53
  store i8 1, ptr %4, align 1, !tbaa !9
  br label %63

59:                                               ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %65

61:                                               ; preds = %51, %49
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %48, %58, %53, %37, %40
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  br label %.preheader

65:                                               ; preds = %.loopexit, %.loopexit.split-lp, %42, %61, %59
  %.pn34.pn = phi { ptr, i32 } [ %43, %42 ], [ %62, %61 ], [ %60, %59 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %66

66:                                               ; preds = %65, %33
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %65 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %88

67:                                               ; preds = %31
  %68 = add i32 %15, %32
  store i32 %68, ptr %2, align 4, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3cfg5Block5succsEv(ptr noundef nonnull align 8 dereferenceable(104) %18)
  %70 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #7
  br i1 %70, label %73, label %.invoke

.invoke:                                          ; preds = %73, %67
  %71 = phi ptr [ @.str.44, %67 ], [ @.str.45, %73 ]
  %72 = phi i32 [ 1124, %67 ], [ 1125, %73 ]
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull %71, ptr noundef nonnull @.str.8, i32 noundef %72, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph25remove_unreachable_blocksEv, i32 noundef 2, ptr noundef nonnull @.str.9) #8
          to label %.cont unwind label %.loopexit.split-lp41

.cont:                                            ; preds = %.invoke
  unreachable

73:                                               ; preds = %67
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3cfg5Block5predsEv(ptr noundef nonnull align 8 dereferenceable(104) %18)
  %75 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #7
  br i1 %75, label %76, label %.invoke

76:                                               ; preds = %73
  invoke void @_ZN3cfg5Block4freeEv(ptr noundef nonnull align 8 dereferenceable(104) %18)
          to label %77 unwind label %.loopexit40

77:                                               ; preds = %76
  call void @_ZN3cfg5BlockD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %18) #7
  call void @_ZdlPvm(ptr noundef %18, i64 noundef 104) #9
  %.sroa.0.0.copyload = load ptr, ptr %5, align 8, !tbaa !42
  %78 = invoke ptr @_ZNSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS7_E(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr %.sroa.0.0.copyload)
          to label %79 unwind label %80

79:                                               ; preds = %77
  store ptr %78, ptr %5, align 8, !tbaa !42
  br label %84

80:                                               ; preds = %77
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %88

82:                                               ; preds = %21, %14
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmPN3cfg5BlockEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br label %84

84:                                               ; preds = %82, %79
  %85 = phi i32 [ %15, %82 ], [ %68, %79 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %86 = call ptr @_ZNSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  store ptr %86, ptr %6, align 8
  %87 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmPN3cfg5BlockEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %87, label %14, label %._crit_edge, !llvm.loop !43

88:                                               ; preds = %.loopexit40, %.loopexit.split-lp41, %80, %66
  %.pn34.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn, %66 ], [ %81, %80 ], [ %lpad.loopexit42, %.loopexit40 ], [ %lpad.loopexit.split-lp43, %.loopexit.split-lp41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %96

89:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %90 = invoke i64 @_ZSt9make_pairIRjRbESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %91 unwind label %94

91:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %.sroa.023.0.insert.ext = and i64 %90, 1099511627775
  ret i64 %.sroa.023.0.insert.ext

92:                                               ; preds = %._crit_edge
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %96

94:                                               ; preds = %89
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %96

96:                                               ; preds = %94, %92, %88
  %.pn34.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn, %88 ], [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn34.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cfg16ControlFlowGraph14set_exit_blockEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt10unique_ptrI11DexPositionSt14default_deleteIS1_EESaIS4_EE9push_backEOS4_(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 noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRjRbESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

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 = { 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 #3 = { nobuiltin nounwind "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 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !14, i64 8}
!12 = !{!"_ZTSSt4pairIKmPN3cfg5BlockEE", !13, i64 0, !14, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !20, i64 16}
!16 = !{!"_ZTS15MethodItemEntry", !17, i64 0, !20, i64 16, !7, i64 24}
!17 = !{!"_ZTSN5boost9intrusive16list_member_hookIJEEE", !18, i64 0}
!18 = !{!"_ZTSN5boost9intrusive12generic_hookILNS0_10algo_typesE0ENS0_16list_node_traitsIPvEENS0_10member_tagELNS0_14link_mode_typeE1ELNS0_14base_hook_typeE0EEE", !19, i64 0}
!19 = !{!"_ZTSN5boost9intrusive9list_nodeIPvEE", !14, i64 0, !14, i64 8}
!20 = !{!"_ZTS14MethodItemType", !7, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !6, i64 128}
!23 = !{!"_ZTSN3cfg16ControlFlowGraphE", !24, i64 0, !32, i64 48, !14, i64 104, !14, i64 112, !14, i64 120, !6, i64 128, !10, i64 132, !10, i64 133, !10, i64 134, !38, i64 136}
!24 = !{!"_ZTSSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessImE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !13, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"_ZTS12UnorderedSetIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt13unordered_setIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSSt10_HashtableIPN3cfg4EdgeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !14, i64 0, !13, i64 8, !35, i64 16, !13, i64 24, !36, i64 32, !14, i64 48}
!35 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !14, i64 0}
!36 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !37, i64 0, !13, i64 8}
!37 = !{!"float", !7, i64 0}
!38 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!42 = !{!14, !14, i64 0}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}


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