; LLVM IR from facebook/redex :: service/regalloc (Split)

; 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 }
%"class.cfg::InstructionIteratorImpl" = type { ptr, %"struct.std::_Rb_tree_const_iterator", %"class.ir_list::InstructionIteratorImpl" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"struct.std::_Rb_tree_const_iterator.294" = type { ptr }
%"class.UnorderedSet<IRInstruction *>::ConstUnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_const_iterator.297" = type { %"struct.std::__detail::_Node_iterator_base.298" }
%"struct.std::__detail::_Node_iterator_base.298" = type { ptr }
%"struct.regalloc::BlockLoadInfo" = type { %class.UnorderedMap.242, %class.UnorderedMap.242, %"class.std::map.258" }
%class.UnorderedMap.242 = type { %"class.std::unordered_map.244" }
%"class.std::unordered_map.244" = type { %"class.std::_Hashtable.245" }
%"class.std::_Hashtable.245" = 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::map.258" = type { %"class.std::_Rb_tree.259" }
%"class.std::_Rb_tree.259" = type { %"struct.std::_Rb_tree<std::pair<cfg::Block *, cfg::Block *>, std::pair<const std::pair<cfg::Block *, cfg::Block *>, regalloc::BlockModeInsn>, std::_Select1st<std::pair<const std::pair<cfg::Block *, cfg::Block *>, regalloc::BlockModeInsn>>, regalloc::BlockLoadInfo::block_edge_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<cfg::Block *, cfg::Block *>, std::pair<const std::pair<cfg::Block *, cfg::Block *>, regalloc::BlockModeInsn>, std::_Select1st<std::pair<const std::pair<cfg::Block *, cfg::Block *>, regalloc::BlockModeInsn>>, regalloc::BlockLoadInfo::block_edge_comparator>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair.295" = type { %"struct.std::pair.270", %"struct.regalloc::BlockModeInsn" }
%"struct.std::pair.270" = type { ptr, ptr }
%"struct.regalloc::BlockModeInsn" = type <{ %class.UnorderedSet.272, i32, [4 x i8] }>
%class.UnorderedSet.272 = type { %"class.std::unordered_set.274" }
%"class.std::unordered_set.274" = type { %"class.std::_Hashtable.275" }
%"class.std::_Hashtable.275" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.86 }
%"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.86 = type { ptr }

; 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 nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare void @_ZN3cfg5Block14get_first_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #2

declare noundef zeroext i1 @_ZN3cfg16ControlFlowGraph13insert_beforeERKNS_23InstructionIteratorImplILb0EEEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2

declare void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN8regalloc26insert_insn_between_blocksERKNS_13BlockLoadInfoERN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator.294", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator.294", 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 %"class.boost::intrusive::list_iterator", align 8
  %15 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.UnorderedSet<IRInstruction *>::ConstUnorderedIterable", align 8
  %18 = alloca %"struct.std::__detail::_Node_const_iterator.297", align 8
  %19 = alloca %"struct.std::__detail::_Node_const_iterator.297", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.UnorderedSet<IRInstruction *>::ConstUnorderedIterable", align 8
  %24 = alloca %"struct.std::__detail::_Node_const_iterator.297", align 8
  %25 = alloca %"struct.std::__detail::_Node_const_iterator.297", align 8
  %26 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.regalloc::BlockLoadInfo", ptr %27, i32 0, i32 2
  store ptr %28, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call ptr @_ZNKSt3mapISt4pairIPN3cfg5BlockES3_EN8regalloc13BlockModeInsnENS5_13BlockLoadInfo21block_edge_comparatorESaIS0_IKS4_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %29) #4
  %31 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.294", ptr %7, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call ptr @_ZNKSt3mapISt4pairIPN3cfg5BlockES3_EN8regalloc13BlockModeInsnENS5_13BlockLoadInfo21block_edge_comparatorESaIS0_IKS4_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %32) #4
  %34 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.294", ptr %8, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  br label %35

35:                                               ; preds = %134, %2
  %36 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKS0_IPN3cfg5BlockES3_EN8regalloc13BlockModeInsnEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %39 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKS0_IPN3cfg5BlockES3_EN8regalloc13BlockModeInsnEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  store ptr %39, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.std::pair.295", ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %"struct.std::pair.270", ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  store ptr %43, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.std::pair.295", ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.std::pair.270", ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  store ptr %47, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.std::pair.295", ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds %"struct.regalloc::BlockModeInsn", ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !23
  store i32 %51, ptr %13, align 4, !tbaa !24
  %52 = load i32, ptr %13, align 4, !tbaa !24
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %95

54:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN3cfg5Block14get_first_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(104) %55)
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %15, ptr noundef nonnull align 8 dereferenceable(104) %56, ptr noundef nonnull align 8 dereferenceable(8) %14, i1 noundef zeroext false)
  %57 = call noundef zeroext i1 @_ZNK3cfg23InstructionIteratorImplILb0EE15is_end_in_blockEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
  br i1 %57, label %67, label %58

58:                                               ; preds = %54
  %59 = call noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
  %60 = getelementptr inbounds %struct.MethodItemEntry, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !25
  %62 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %61)
  %63 = zext i16 %62 to i32
  %64 = icmp eq i32 %63, 7
  br i1 %64, label %65, label %67

65:                                               ; preds = %58
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3cfg23InstructionIteratorImplILb0EE18move_next_in_blockEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
  br label %67

67:                                               ; preds = %65, %58, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.std::pair.295", ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds %"struct.regalloc::BlockModeInsn", ptr %69, i32 0, i32 0
  %71 = call ptr @_Z17UnorderedIterableI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRKSA_(ptr noundef nonnull align 8 dereferenceable(56) %70)
  %72 = getelementptr inbounds %"class.UnorderedSet<IRInstruction *>::ConstUnorderedIterable", ptr %17, i32 0, i32 0
  store ptr %71, ptr %72, align 8
  store ptr %17, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = call ptr @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %73)
  %75 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.297", ptr %18, i32 0, i32 0
  %76 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.298", ptr %75, i32 0, i32 0
  store ptr %74, ptr %76, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = call ptr @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %77)
  %79 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.297", ptr %19, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.298", ptr %79, i32 0, i32 0
  store ptr %78, ptr %80, align 8
  br label %81

81:                                               ; preds = %92, %67
  %82 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP13IRInstructionLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  br i1 %82, label %84, label %83

83:                                               ; preds = %81
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %94

84:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail20_Node_const_iteratorIP13IRInstructionLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  store ptr %86, ptr %20, align 8, !tbaa !5
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  %89 = call noundef zeroext i1 @_ZN3cfg16ControlFlowGraph13insert_beforeERKNS_23InstructionIteratorImplILb0EEEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160) %87, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %88)
  %90 = load i64, ptr %5, align 8, !tbaa !9
  %91 = add i64 %90, 1
  store i64 %91, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %92

92:                                               ; preds = %84
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorIP13IRInstructionLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  br label %81

94:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %133

95:                                               ; preds = %38
  %96 = load i32, ptr %13, align 4, !tbaa !24
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %132

98:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = call noundef ptr @_ZN3cfg16ControlFlowGraph12create_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %99)
  store ptr %100, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.std::pair.295", ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds %"struct.regalloc::BlockModeInsn", ptr %102, i32 0, i32 0
  %104 = call ptr @_Z17UnorderedIterableI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRKSA_(ptr noundef nonnull align 8 dereferenceable(56) %103)
  %105 = getelementptr inbounds %"class.UnorderedSet<IRInstruction *>::ConstUnorderedIterable", ptr %23, i32 0, i32 0
  store ptr %104, ptr %105, align 8
  store ptr %23, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %106 = load ptr, ptr %22, align 8, !tbaa !5
  %107 = call ptr @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %106)
  %108 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.297", ptr %24, i32 0, i32 0
  %109 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.298", ptr %108, i32 0, i32 0
  store ptr %107, ptr %109, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %110 = load ptr, ptr %22, align 8, !tbaa !5
  %111 = call ptr @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %110)
  %112 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.297", ptr %25, i32 0, i32 0
  %113 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.298", ptr %112, i32 0, i32 0
  store ptr %111, ptr %113, align 8
  br label %114

114:                                              ; preds = %125, %98
  %115 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP13IRInstructionLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #4
  br i1 %115, label %117, label %116

116:                                              ; preds = %114
  store i32 6, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %127

117:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail20_Node_const_iteratorIP13IRInstructionLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  store ptr %119, ptr %26, align 8, !tbaa !5
  %120 = load ptr, ptr %21, align 8, !tbaa !5
  %121 = load ptr, ptr %26, align 8, !tbaa !5
  %122 = call noundef zeroext i1 @_ZN3cfg5Block9push_backEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(104) %120, ptr noundef %121)
  %123 = load i64, ptr %5, align 8, !tbaa !9
  %124 = add i64 %123, 1
  store i64 %124, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %125

125:                                              ; preds = %117
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorIP13IRInstructionLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  br label %114

127:                                              ; preds = %116
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN3cfg16ControlFlowGraph12insert_blockEPNS_5BlockES2_S2_(ptr noundef nonnull align 8 dereferenceable(160) %128, ptr noundef %129, ptr noundef %130, ptr noundef %131)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %132

132:                                              ; preds = %127, %95
  br label %133

133:                                              ; preds = %132, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %134

134:                                              ; preds = %133
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKS0_IPN3cfg5BlockES3_EN8regalloc13BlockModeInsnEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br label %35

136:                                              ; preds = %37
  %137 = load i64, ptr %5, align 8, !tbaa !9
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i64 %137
}

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef ptr @_ZN3cfg16ControlFlowGraph12create_blockEv(ptr noundef nonnull align 8 dereferenceable(160)) #2

declare noundef zeroext i1 @_ZN3cfg5Block9push_backEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #2

declare void @_ZN3cfg16ControlFlowGraph12insert_blockEPNS_5BlockES2_S2_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef, ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIKS_IPN3cfg5BlockES2_EN8regalloc13BlockModeInsnEE", !13, i64 0, !14, i64 16}
!13 = !{!"_ZTSSt4pairIPN3cfg5BlockES2_E", !6, i64 0, !6, i64 8}
!14 = !{!"_ZTSN8regalloc13BlockModeInsnE", !15, i64 0, !21, i64 56}
!15 = !{!"_ZTS12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt13unordered_setIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt10_HashtableIP13IRInstructionS1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !10, i64 8, !18, i64 16, !10, i64 24, !19, i64 32, !6, i64 48}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !10, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN8regalloc9BlockModeE", !7, i64 0}
!22 = !{!12, !6, i64 8}
!23 = !{!12, !21, i64 72}
!24 = !{!21, !21, i64 0}
!25 = !{!7, !7, i64 0}


; 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.cfg::InstructionIteratorImpl" = type { ptr, %"struct.std::_Rb_tree_const_iterator", %"class.ir_list::InstructionIteratorImpl" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"struct.std::_Rb_tree_const_iterator.294" = type { ptr }
%"class.UnorderedSet<IRInstruction *>::ConstUnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_const_iterator.297" = type { %"struct.std::__detail::_Node_iterator_base.298" }
%"struct.std::__detail::_Node_iterator_base.298" = type { ptr }

; 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 nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare void @_ZN3cfg5Block14get_first_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN3cfg16ControlFlowGraph13insert_beforeERKNS_23InstructionIteratorImplILb0EEEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2

declare void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN8regalloc26insert_insn_between_blocksERKNS_13BlockLoadInfoERN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %1) local_unnamed_addr #3 {
  %3 = alloca %"struct.std::_Rb_tree_const_iterator.294", align 8
  %4 = alloca %"struct.std::_Rb_tree_const_iterator.294", align 8
  %5 = alloca %"class.boost::intrusive::list_iterator", align 8
  %6 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %7 = alloca %"class.UnorderedSet<IRInstruction *>::ConstUnorderedIterable", align 8
  %8 = alloca %"struct.std::__detail::_Node_const_iterator.297", align 8
  %9 = alloca %"struct.std::__detail::_Node_const_iterator.297", align 8
  %10 = alloca %"class.UnorderedSet<IRInstruction *>::ConstUnorderedIterable", align 8
  %11 = alloca %"struct.std::__detail::_Node_const_iterator.297", align 8
  %12 = alloca %"struct.std::__detail::_Node_const_iterator.297", align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %14 = tail call ptr @_ZNKSt3mapISt4pairIPN3cfg5BlockES3_EN8regalloc13BlockModeInsnENS5_13BlockLoadInfo21block_edge_comparatorESaIS0_IKS4_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %13) #4
  store ptr %14, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %15 = tail call ptr @_ZNKSt3mapISt4pairIPN3cfg5BlockES3_EN8regalloc13BlockModeInsnENS5_13BlockLoadInfo21block_edge_comparatorESaIS0_IKS4_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %13) #4
  store ptr %15, ptr %4, align 8
  %16 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKS0_IPN3cfg5BlockES3_EN8regalloc13BlockModeInsnEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %16, label %.lr.ph36, label %._crit_edge37

._crit_edge37:                                    ; preds = %57, %2
  %.0.lcssa = phi i64 [ 0, %2 ], [ %.3, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i64 %.0.lcssa

.lr.ph36:                                         ; preds = %2, %57
  %.034 = phi i64 [ %.3, %57 ], [ 0, %2 ]
  %17 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKS0_IPN3cfg5BlockES3_EN8regalloc13BlockModeInsnEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %17, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %17, i64 16
  %22 = getelementptr inbounds i8, ptr %17, i64 72
  %23 = load i32, ptr %22, align 8, !tbaa !21
  switch i32 %23, label %57 [
    i32 1, label %24
    i32 0, label %45
  ]

24:                                               ; preds = %.lr.ph36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN3cfg5Block14get_first_insnEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(104) %20)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind nonnull writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %6, ptr noundef nonnull align 8 dereferenceable(104) %20, ptr noundef nonnull align 8 dereferenceable(8) %5, i1 noundef zeroext false)
  %25 = call noundef zeroext i1 @_ZNK3cfg23InstructionIteratorImplILb0EE15is_end_in_blockEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  br i1 %25, label %34, label %26

26:                                               ; preds = %24
  %27 = call noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %28 = getelementptr inbounds i8, ptr %27, i64 24
  %29 = load ptr, ptr %28, align 8, !tbaa !22
  %30 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %29)
  %31 = icmp eq i16 %30, 7
  br i1 %31, label %32, label %34

32:                                               ; preds = %26
  %33 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3cfg23InstructionIteratorImplILb0EE18move_next_in_blockEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  br label %34

34:                                               ; preds = %32, %26, %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %35 = call ptr @_Z17UnorderedIterableI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRKSA_(ptr noundef nonnull align 8 dereferenceable(56) %21)
  store ptr %35, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %36 = call ptr @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  store ptr %36, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %37 = call ptr @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  store ptr %37, ptr %9, align 8
  %38 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP13IRInstructionLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br i1 %38, label %.lr.ph31, label %._crit_edge32

._crit_edge32:                                    ; preds = %.lr.ph31, %34
  %.1.lcssa = phi i64 [ %.034, %34 ], [ %42, %.lr.ph31 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %57

.lr.ph31:                                         ; preds = %34, %.lr.ph31
  %.129 = phi i64 [ %42, %.lr.ph31 ], [ %.034, %34 ]
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail20_Node_const_iteratorIP13IRInstructionLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %41 = call noundef zeroext i1 @_ZN3cfg16ControlFlowGraph13insert_beforeERKNS_23InstructionIteratorImplILb0EEEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %40)
  %42 = add i64 %.129, 1
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorIP13IRInstructionLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %44 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP13IRInstructionLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br i1 %44, label %.lr.ph31, label %._crit_edge32

45:                                               ; preds = %.lr.ph36
  %46 = call noundef ptr @_ZN3cfg16ControlFlowGraph12create_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %47 = call ptr @_Z17UnorderedIterableI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRKSA_(ptr noundef nonnull align 8 dereferenceable(56) %21)
  store ptr %47, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %48 = call ptr @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  store ptr %48, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %49 = call ptr @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  store ptr %49, ptr %12, align 8
  %50 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP13IRInstructionLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %50, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %45
  %.2.lcssa = phi i64 [ %.034, %45 ], [ %54, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @_ZN3cfg16ControlFlowGraph12insert_blockEPNS_5BlockES2_S2_(ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef %18, ptr noundef %20, ptr noundef %46)
  br label %57

.lr.ph:                                           ; preds = %45, %.lr.ph
  %.228 = phi i64 [ %54, %.lr.ph ], [ %.034, %45 ]
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail20_Node_const_iteratorIP13IRInstructionLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %53 = call noundef zeroext i1 @_ZN3cfg5Block9push_backEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(104) %46, ptr noundef %52)
  %54 = add i64 %.228, 1
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorIP13IRInstructionLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %56 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP13IRInstructionLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %56, label %.lr.ph, label %._crit_edge

57:                                               ; preds = %.lr.ph36, %._crit_edge, %._crit_edge32
  %.3 = phi i64 [ %.1.lcssa, %._crit_edge32 ], [ %.2.lcssa, %._crit_edge ], [ %.034, %.lr.ph36 ]
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKS0_IPN3cfg5BlockES3_EN8regalloc13BlockModeInsnEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %59 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKS0_IPN3cfg5BlockES3_EN8regalloc13BlockModeInsnEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %59, label %.lr.ph36, label %._crit_edge37
}

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef ptr @_ZN3cfg16ControlFlowGraph12create_blockEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN3cfg5Block9push_backEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #2

declare void @_ZN3cfg16ControlFlowGraph12insert_blockEPNS_5BlockES2_S2_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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, !8, i64 0}
!6 = !{!"_ZTSSt4pairIKS_IPN3cfg5BlockES2_EN8regalloc13BlockModeInsnEE", !7, i64 0, !11, i64 16}
!7 = !{!"_ZTSSt4pairIPN3cfg5BlockES2_E", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN8regalloc13BlockModeInsnE", !12, i64 0, !19, i64 56}
!12 = !{!"_ZTS12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt13unordered_setIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIP13IRInstructionS1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb0ELb1ELb1EEEE", !8, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !8, i64 48}
!15 = !{!"long", !9, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !9, i64 0}
!19 = !{!"_ZTSN8regalloc9BlockModeE", !9, i64 0}
!20 = !{!6, !8, i64 8}
!21 = !{!6, !19, i64 72}
!22 = !{!9, !9, i64 0}
!23 = !{!8, !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass