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

; 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.UnorderedMap.256 = type { %"class.std::unordered_map.258" }
%"class.std::unordered_map.258" = type { %"class.std::_Hashtable.259" }
%"class.std::_Hashtable.259" = 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.193" = type { %"struct.std::_Vector_base.194" }
%"struct.std::_Vector_base.194" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::sub_range" = type { %"class.boost::range_detail::sub_range_base" }
%"class.boost::range_detail::sub_range_base" = type { %"class.boost::range_detail::sub_range_base.274" }
%"class.boost::range_detail::sub_range_base.274" = type { %"class.boost::iterator_range.275" }
%"class.boost::iterator_range.275" = type { %"class.boost::iterator_range_detail::iterator_range_base.276" }
%"class.boost::iterator_range_detail::iterator_range_base.276" = type { %"class.boost::iterator_range_detail::iterator_range_base.277" }
%"class.boost::iterator_range_detail::iterator_range_base.277" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.IRInstruction::reg_range" = type { %"class.boost::iterator_range" }
%"class.boost::iterator_range" = type { %"class.boost::iterator_range_detail::iterator_range_base" }
%"class.boost::iterator_range_detail::iterator_range_base" = type { %"class.boost::iterator_range_detail::iterator_range_base.272" }
%"class.boost::iterator_range_detail::iterator_range_base.272" = type { %"class.boost::iterator_range_detail::iterator_range_base.273" }
%"class.boost::iterator_range_detail::iterator_range_base.273" = type { ptr, ptr }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.33 }
%"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.33 = type { ptr }
%"struct.regalloc::graph_coloring::RegisterTransform" = type <{ %class.UnorderedMap.74, i16, [6 x i8] }>
%class.UnorderedMap.74 = type { %"class.std::unordered_map.76" }
%"class.std::unordered_map.76" = type { %"class.std::_Hashtable.77" }
%"class.std::_Hashtable.77" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8regalloc12interference5Graph8get_nodeEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8regalloc14graph_coloring12_GLOBAL__N_113mark_adjacentERKNS_12interference5GraphEjRK12UnorderedMapIjjSt4hashIjESt8equal_toIjEEPNS_20VirtualRegistersFileE(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK8regalloc12interference4Node5widthEv(ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i16 @_ZN8regalloc14graph_coloring12_GLOBAL__N_119find_best_range_fitERKNS_12interference5GraphERKN5boost14iterator_rangeIPKjEEttRK12UnorderedMapIjNS_20VirtualRegistersFileESt4hashIjESt8equal_toIjEERKSD_IjjSG_SI_E(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(16), i16 noundef zeroext, i16 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8regalloc14graph_coloring9Allocator13select_paramsERKN3cfg16ControlFlowGraphERKNS_12interference5GraphEPNS0_17RegisterTransformEPNS0_9SpillPlanE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull align 8 dereferenceable(168) %2, ptr noundef %3, ptr noundef %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.UnorderedMap.256, align 8
  %12 = alloca %"class.std::vector.193", align 8
  %13 = alloca %"class.boost::sub_range", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.ir_list::InstructionIterableImpl", align 8
  %19 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %20 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca i16, align 2
  %27 = alloca %"class.IRInstruction::reg_range", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #6
  call void @_ZN12UnorderedMapIjN8regalloc20VirtualRegistersFileESt4hashIjESt8equal_toIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8 %13, ptr noundef nonnull align 8 dereferenceable(160) %29)
          to label %30 unwind label %40

30:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  invoke void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIterableImpl") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %31 unwind label %44

31:                                               ; preds = %30
  store ptr %18, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %33 unwind label %48

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %34 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %35 unwind label %52

35:                                               ; preds = %33
  br label %36

36:                                               ; preds = %86, %35
  %37 = invoke noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb0EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %38 unwind label %52

38:                                               ; preds = %36
  br i1 %37, label %56, label %39

39:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %109

40:                                               ; preds = %5
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %14, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %15, align 4
  br label %152

44:                                               ; preds = %30
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %14, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %15, align 4
  br label %108

48:                                               ; preds = %31
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %14, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %15, align 4
  br label %107

52:                                               ; preds = %84, %36, %33
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %14, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %15, align 4
  br label %106

56:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %57 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7ir_list23InstructionIteratorImplILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %58 unwind label %87

58:                                               ; preds = %56
  store ptr %57, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %59 = load ptr, ptr %21, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.MethodItemEntry, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = invoke noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %61)
          to label %63 unwind label %91

63:                                               ; preds = %58
  store i32 %62, ptr %22, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i32, ptr %22, align 4, !tbaa !12
  %66 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8regalloc12interference5Graph8get_nodeEj(ptr noundef nonnull align 8 dereferenceable(168) %64, i32 noundef %65)
          to label %67 unwind label %95

67:                                               ; preds = %63
  store ptr %66, ptr %23, align 8, !tbaa !5
  %68 = load ptr, ptr %23, align 8, !tbaa !5
  %69 = invoke noundef zeroext i8 @_ZNK8regalloc12interference4Node5widthEv(ptr noundef nonnull align 8 dereferenceable(56) %68)
          to label %70 unwind label %95

70:                                               ; preds = %67
  %71 = zext i8 %69 to i64
  %72 = load i64, ptr %16, align 8, !tbaa !9
  %73 = add i64 %72, %71
  store i64 %73, ptr %16, align 8, !tbaa !9
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE12emplace_backIJRjEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %75 unwind label %95

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %76 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN12UnorderedMapIjN8regalloc20VirtualRegistersFileESt4hashIjESt8equal_toIjEEixERKj(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %77 unwind label %99

77:                                               ; preds = %75
  store ptr %76, ptr %24, align 8, !tbaa !5
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = load i32, ptr %22, align 4, !tbaa !12
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.regalloc::graph_coloring::RegisterTransform", ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %24, align 8, !tbaa !5
  invoke void @_ZN8regalloc14graph_coloring12_GLOBAL__N_113mark_adjacentERKNS_12interference5GraphEjRK12UnorderedMapIjjSt4hashIjESt8equal_toIjEEPNS_20VirtualRegistersFileE(ptr noundef nonnull align 8 dereferenceable(168) %78, i32 noundef %79, ptr noundef nonnull align 8 dereferenceable(56) %81, ptr noundef %82)
          to label %83 unwind label %99

83:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %84

84:                                               ; preds = %83
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %86 unwind label %52

86:                                               ; preds = %84
  br label %36

87:                                               ; preds = %56
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %14, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %15, align 4
  br label %105

91:                                               ; preds = %58
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %14, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %15, align 4
  br label %104

95:                                               ; preds = %70, %67, %63
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %14, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %15, align 4
  br label %103

99:                                               ; preds = %77, %75
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %14, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %103

103:                                              ; preds = %99, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %104

104:                                              ; preds = %103, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %105

105:                                              ; preds = %104, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %106

106:                                              ; preds = %105, %52
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %107

107:                                              ; preds = %106, %48
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %108

108:                                              ; preds = %107, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %151

109:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.regalloc::graph_coloring::RegisterTransform", ptr %110, i32 0, i32 1
  %112 = load i16, ptr %111, align 8, !tbaa !14
  %113 = zext i16 %112 to i64
  %114 = load i64, ptr %16, align 8, !tbaa !9
  %115 = icmp ult i64 %113, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %109
  br label %124

117:                                              ; preds = %109
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.regalloc::graph_coloring::RegisterTransform", ptr %118, i32 0, i32 1
  %120 = load i16, ptr %119, align 8, !tbaa !14
  %121 = zext i16 %120 to i64
  %122 = load i64, ptr %16, align 8, !tbaa !9
  %123 = sub i64 %121, %122
  br label %124

124:                                              ; preds = %117, %116
  %125 = phi i64 [ 0, %116 ], [ %123, %117 ]
  store i64 %125, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #6
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  invoke void @_ZN13IRInstruction9reg_rangeC2ERKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %127 unwind label %142

127:                                              ; preds = %124
  %128 = load i64, ptr %25, align 8, !tbaa !9
  %129 = trunc i64 %128 to i16
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.regalloc::graph_coloring::RegisterTransform", ptr %130, i32 0, i32 1
  %132 = load i16, ptr %131, align 8, !tbaa !14
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.regalloc::graph_coloring::RegisterTransform", ptr %133, i32 0, i32 0
  %135 = invoke noundef zeroext i16 @_ZN8regalloc14graph_coloring12_GLOBAL__N_119find_best_range_fitERKNS_12interference5GraphERKN5boost14iterator_rangeIPKjEEttRK12UnorderedMapIjNS_20VirtualRegistersFileESt4hashIjESt8equal_toIjEERKSD_IjjSG_SI_E(ptr noundef nonnull align 8 dereferenceable(168) %126, ptr noundef nonnull align 8 dereferenceable(16) %27, i16 noundef zeroext %129, i16 noundef zeroext %132, ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(56) %134)
          to label %136 unwind label %142

136:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  store i16 %135, ptr %26, align 2, !tbaa !23
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load i16, ptr %26, align 2, !tbaa !23
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN8regalloc14graph_coloring12_GLOBAL__N_110fit_paramsERKNS_12interference5GraphERKN5boost9sub_rangeI6IRListEEtRK12UnorderedMapIjNS_20VirtualRegistersFileESt4hashIjESt8equal_toIjEEPNS0_17RegisterTransformEPNS0_9SpillPlanE(ptr noundef nonnull align 8 dereferenceable(168) %137, ptr noundef nonnull align 8 dereferenceable(16) %13, i16 noundef zeroext %138, ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef %139, ptr noundef %140)
          to label %141 unwind label %146

141:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZN12UnorderedMapIjN8regalloc20VirtualRegistersFileESt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #6
  ret void

142:                                              ; preds = %127, %124
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %14, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %150

146:                                              ; preds = %136
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %14, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %15, align 4
  br label %150

150:                                              ; preds = %146, %142
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %151

151:                                              ; preds = %150, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %152

152:                                              ; preds = %151, %40
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZN12UnorderedMapIjN8regalloc20VirtualRegistersFileESt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #6
  br label %153

153:                                              ; preds = %152
  %154 = load ptr, ptr %14, align 8
  %155 = load i32, ptr %15, align 4
  %156 = insertvalue { ptr, i32 } poison, ptr %154, 0
  %157 = insertvalue { ptr, i32 } %156, i32 %155, 1
  resume { ptr, i32 } %157
}

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

declare void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8, ptr noundef nonnull align 8 dereferenceable(160)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIterableImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8regalloc14graph_coloring12_GLOBAL__N_110fit_paramsERKNS_12interference5GraphERKN5boost9sub_rangeI6IRListEEtRK12UnorderedMapIjNS_20VirtualRegistersFileESt4hashIjESt8equal_toIjEEPNS0_17RegisterTransformEPNS0_9SpillPlanE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(16), i16 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !22, i64 56}
!15 = !{!"_ZTSN8regalloc14graph_coloring17RegisterTransformE", !16, i64 0, !22, i64 56}
!16 = !{!"_ZTS12UnorderedMapIjjSt4hashIjESt8equal_toIjEE", !17, i64 0}
!17 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !10, i64 8, !19, i64 16, !10, i64 24, !20, i64 32, !6, i64 48}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !21, i64 0, !10, i64 8}
!21 = !{!"float", !7, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = !{!22, !22, 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.UnorderedMap.256 = type { %"class.std::unordered_map.258" }
%"class.std::unordered_map.258" = type { %"class.std::_Hashtable.259" }
%"class.std::_Hashtable.259" = 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.193" = type { %"struct.std::_Vector_base.194" }
%"struct.std::_Vector_base.194" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::sub_range" = type { %"class.boost::range_detail::sub_range_base" }
%"class.boost::range_detail::sub_range_base" = type { %"class.boost::range_detail::sub_range_base.274" }
%"class.boost::range_detail::sub_range_base.274" = type { %"class.boost::iterator_range.275" }
%"class.boost::iterator_range.275" = type { %"class.boost::iterator_range_detail::iterator_range_base.276" }
%"class.boost::iterator_range_detail::iterator_range_base.276" = type { %"class.boost::iterator_range_detail::iterator_range_base.277" }
%"class.boost::iterator_range_detail::iterator_range_base.277" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.IRInstruction::reg_range" = type { %"class.boost::iterator_range" }
%"class.boost::iterator_range" = type { %"class.boost::iterator_range_detail::iterator_range_base" }
%"class.boost::iterator_range_detail::iterator_range_base" = type { %"class.boost::iterator_range_detail::iterator_range_base.272" }
%"class.boost::iterator_range_detail::iterator_range_base.272" = type { %"class.boost::iterator_range_detail::iterator_range_base.273" }
%"class.boost::iterator_range_detail::iterator_range_base.273" = type { ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8regalloc12interference5Graph8get_nodeEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8regalloc14graph_coloring12_GLOBAL__N_113mark_adjacentERKNS_12interference5GraphEjRK12UnorderedMapIjjSt4hashIjESt8equal_toIjEEPNS_20VirtualRegistersFileE(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK8regalloc12interference4Node5widthEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i16 @_ZN8regalloc14graph_coloring12_GLOBAL__N_119find_best_range_fitERKNS_12interference5GraphERKN5boost14iterator_rangeIPKjEEttRK12UnorderedMapIjNS_20VirtualRegistersFileESt4hashIjESt8equal_toIjEERKSD_IjjSG_SI_E(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(16), i16 noundef zeroext, i16 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8regalloc14graph_coloring9Allocator13select_paramsERKN3cfg16ControlFlowGraphERKNS_12interference5GraphEPNS0_17RegisterTransformEPNS0_9SpillPlanE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull align 8 dereferenceable(168) %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.UnorderedMap.256, align 8
  %7 = alloca %"class.std::vector.193", align 8
  %8 = alloca %"class.boost::sub_range", align 8
  %9 = alloca %"class.ir_list::InstructionIterableImpl", align 8
  %10 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %11 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.IRInstruction::reg_range", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %6) #6
  call void @_ZN12UnorderedMapIjN8regalloc20VirtualRegistersFileESt4hashIjESt8equal_toIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  invoke void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::sub_range") align 8 %8, ptr noundef nonnull align 8 dereferenceable(160) %1)
          to label %14 unwind label %22

14:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  invoke void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIterableImpl") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %15 unwind label %24

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  invoke void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %16 unwind label %26

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %16, %45
  %.033 = phi i64 [ %39, %45 ], [ 0, %16 ]
  %17 = invoke noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb0EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %18 unwind label %.loopexit

18:                                               ; preds = %.preheader
  br i1 %17, label %28, label %19

19:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  %20 = getelementptr inbounds i8, ptr %3, i64 56
  %21 = load i16, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  invoke void @_ZN13IRInstruction9reg_rangeC2ERKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %58 unwind label %68

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

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

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

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

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

28:                                               ; preds = %18
  %29 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7ir_list23InstructionIteratorImplILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %30 unwind label %47

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %31 = getelementptr inbounds i8, ptr %29, i64 24
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = invoke noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %34 unwind label %49

34:                                               ; preds = %30
  store i32 %33, ptr %12, align 4, !tbaa !19
  %35 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8regalloc12interference5Graph8get_nodeEj(ptr noundef nonnull align 8 dereferenceable(168) %2, i32 noundef %33)
          to label %36 unwind label %51

36:                                               ; preds = %34
  %37 = call noundef zeroext i8 @_ZNK8regalloc12interference4Node5widthEv(ptr noundef nonnull align 8 dereferenceable(56) %35)
  %38 = zext i8 %37 to i64
  %39 = add i64 %.033, %38
  %40 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE12emplace_backIJRjEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %41 unwind label %51

41:                                               ; preds = %36
  %42 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN12UnorderedMapIjN8regalloc20VirtualRegistersFileESt4hashIjESt8equal_toIjEEixERKj(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %43 unwind label %53

43:                                               ; preds = %41
  %44 = load i32, ptr %12, align 4, !tbaa !19
  invoke void @_ZN8regalloc14graph_coloring12_GLOBAL__N_113mark_adjacentERKNS_12interference5GraphEjRK12UnorderedMapIjjSt4hashIjESt8equal_toIjEEPNS_20VirtualRegistersFileE(ptr noundef nonnull align 8 dereferenceable(168) %2, i32 noundef %44, ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull %42)
          to label %45 unwind label %53

45:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %.preheader unwind label %.loopexit

47:                                               ; preds = %28
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %56

49:                                               ; preds = %30
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %55

51:                                               ; preds = %36, %34
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %43, %41
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %55

55:                                               ; preds = %51, %53, %49
  %.pn36.pn = phi { ptr, i32 } [ %50, %49 ], [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  br label %56

56:                                               ; preds = %.loopexit, %.loopexit.split-lp, %47, %55
  %.pn40 = phi { ptr, i32 } [ %.pn36.pn, %55 ], [ %48, %47 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %57

57:                                               ; preds = %56, %26
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %56 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %72

58:                                               ; preds = %19
  %59 = zext i16 %21 to i64
  %60 = icmp ugt i64 %.033, %59
  %61 = trunc i64 %.033 to i16
  %62 = sub i16 %21, %61
  %63 = select i1 %60, i16 0, i16 %62
  %64 = load i16, ptr %20, align 8, !tbaa !5
  %65 = invoke noundef zeroext i16 @_ZN8regalloc14graph_coloring12_GLOBAL__N_119find_best_range_fitERKNS_12interference5GraphERKN5boost14iterator_rangeIPKjEEttRK12UnorderedMapIjNS_20VirtualRegistersFileESt4hashIjESt8equal_toIjEERKSD_IjjSG_SI_E(ptr noundef nonnull align 8 dereferenceable(168) %2, ptr noundef nonnull align 8 dereferenceable(16) %13, i16 noundef zeroext %63, i16 noundef zeroext %64, ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %66 unwind label %68

66:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  invoke void @_ZN8regalloc14graph_coloring12_GLOBAL__N_110fit_paramsERKNS_12interference5GraphERKN5boost9sub_rangeI6IRListEEtRK12UnorderedMapIjNS_20VirtualRegistersFileESt4hashIjESt8equal_toIjEEPNS0_17RegisterTransformEPNS0_9SpillPlanE(ptr noundef nonnull align 8 dereferenceable(168) %2, ptr noundef nonnull align 8 dereferenceable(16) %8, i16 noundef zeroext %65, ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull %3, ptr noundef %4)
          to label %67 unwind label %70

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN12UnorderedMapIjN8regalloc20VirtualRegistersFileESt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #6
  ret void

68:                                               ; preds = %58, %19
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %72

70:                                               ; preds = %66
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %72

72:                                               ; preds = %57, %24, %70, %68, %22
  %.pn40.pn.pn.pn.pn = phi { ptr, i32 } [ %23, %22 ], [ %.pn40.pn, %57 ], [ %25, %24 ], [ %71, %70 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN12UnorderedMapIjN8regalloc20VirtualRegistersFileESt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn40.pn.pn.pn.pn
}

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

declare void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8, ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIterableImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8regalloc14graph_coloring12_GLOBAL__N_110fit_paramsERKNS_12interference5GraphERKN5boost9sub_rangeI6IRListEEtRK12UnorderedMapIjNS_20VirtualRegistersFileESt4hashIjESt8equal_toIjEEPNS0_17RegisterTransformEPNS0_9SpillPlanE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(16), i16 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !17, i64 56}
!6 = !{!"_ZTSN8regalloc14graph_coloring17RegisterTransformE", !7, i64 0, !17, i64 56}
!7 = !{!"_ZTS12UnorderedMapIjjSt4hashIjESt8equal_toIjEE", !8, i64 0}
!8 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !9, i64 0}
!9 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !10, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !10, i64 48}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !10, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !11, i64 0}
!17 = !{!"short", !11, i64 0}
!18 = !{!11, !11, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass