; LLVM IR from facebook/redex :: service/regalloc-fast (LinearScan)

; 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"

%"struct.fastregalloc::IRInstructionShape" = type { i16, %union.anon.147 }
%union.anon.147 = type { i64 }
%"struct.std::_Rb_tree_const_iterator.154" = type { ptr }
%"class.fastregalloc::LinearScanAllocator" = type <{ %"class.cfg::ScopedCFG", i8, [7 x i8], %"class.std::vector", %class.UnorderedMap, %class.UnorderedSet, %class.UnorderedMap.19, %"class.std::vector.39", %"class.std::optional", %"class.std::priority_queue", i32, [4 x i8] }>
%"class.cfg::ScopedCFG" = type <{ ptr, i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<fastregalloc::VRegLiveInterval, std::allocator<fastregalloc::VRegLiveInterval>>::_Vector_impl" }
%"struct.std::_Vector_base<fastregalloc::VRegLiveInterval, std::allocator<fastregalloc::VRegLiveInterval>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastregalloc::VRegLiveInterval, std::allocator<fastregalloc::VRegLiveInterval>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastregalloc::VRegLiveInterval, std::allocator<fastregalloc::VRegLiveInterval>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.6" }
%"class.std::_Hashtable.6" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedMap.19 = type { %"class.std::unordered_map.21" }
%"class.std::unordered_map.21" = type { %"class.std::_Hashtable.22" }
%"class.std::_Hashtable.22" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<fastregalloc::LiveIntervalPoint, std::allocator<fastregalloc::LiveIntervalPoint>>::_Vector_impl" }
%"struct.std::_Vector_base<fastregalloc::LiveIntervalPoint, std::allocator<fastregalloc::LiveIntervalPoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastregalloc::LiveIntervalPoint, std::allocator<fastregalloc::LiveIntervalPoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastregalloc::LiveIntervalPoint, std::allocator<fastregalloc::LiveIntervalPoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [3 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<unsigned int>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned int>::_Storage" = type { i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector.44", [8 x i8] }>
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<fastregalloc::ActiveInterval, std::allocator<fastregalloc::ActiveInterval>>::_Vector_impl" }
%"struct.std::_Vector_base<fastregalloc::ActiveInterval, std::allocator<fastregalloc::ActiveInterval>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastregalloc::ActiveInterval, std::allocator<fastregalloc::ActiveInterval>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastregalloc::ActiveInterval, std::allocator<fastregalloc::ActiveInterval>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.6 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._ZN12fastregalloc19LinearScanAllocator17allocate_registerEjj = external hidden unnamed_addr constant [76 x i8], align 1

; 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
define dso_local noundef i32 @_ZN12fastregalloc19LinearScanAllocator17allocate_registerEjj(ptr noundef nonnull align 8 dereferenceable(288) %0, i32 noundef %1, i32 noundef %2) #1 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i16, align 2
  %10 = alloca %"struct.fastregalloc::IRInstructionShape", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %13 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %17 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %21 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %22 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %23 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %25 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %26 = getelementptr inbounds %"class.fastregalloc::LinearScanAllocator", ptr %25, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #6
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = trunc i32 %27 to i16
  store i16 %28, ptr %9, align 2, !tbaa !11
  %29 = call noundef i64 @_ZNK12UnorderedSetItSt4hashItESt8equal_toItEE5countERKt(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 2 dereferenceable(2) %9)
  %30 = icmp ne i64 %29, 0
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #6
  %31 = zext i1 %30 to i8
  store i8 %31, ptr %8, align 1, !tbaa !13
  %32 = getelementptr inbounds %"class.fastregalloc::LinearScanAllocator", ptr %25, i32 0, i32 8
  %33 = call noundef zeroext i1 @_ZNKSt8optionalIjEcvbEv(ptr noundef nonnull align 4 dereferenceable(8) %32) #6
  br i1 %33, label %34, label %40

34:                                               ; preds = %3
  %35 = getelementptr inbounds %"class.fastregalloc::LinearScanAllocator", ptr %25, i32 0, i32 8
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %35) #6
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = icmp ne i32 %37, %38
  br i1 %39, label %40, label %124

40:                                               ; preds = %34, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %41 = getelementptr inbounds %"class.fastregalloc::LinearScanAllocator", ptr %25, i32 0, i32 7
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12fastregalloc17LiveIntervalPointESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43)
  %45 = call { i16, i64 } @_ZN12fastregalloc18IRInstructionShape3getERKNS_17LiveIntervalPointE(ptr noundef nonnull align 8 dereferenceable(16) %44)
  %46 = getelementptr inbounds { i16, i64 }, ptr %10, i32 0, i32 0
  %47 = extractvalue { i16, i64 } %45, 0
  store i16 %47, ptr %46, align 8
  %48 = getelementptr inbounds { i16, i64 }, ptr %10, i32 0, i32 1
  %49 = extractvalue { i16, i64 } %45, 1
  store i64 %49, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %50 = getelementptr inbounds %"class.fastregalloc::LinearScanAllocator", ptr %25, i32 0, i32 6
  %51 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN12UnorderedMapIN12fastregalloc18IRInstructionShapeESt3setIjSt4lessIjESaIjEENS0_24IRInstructionShapeHasherESt8equal_toIS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %50, ptr noundef nonnull align 8 dereferenceable(16) %10)
  store ptr %51, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %52) #6
  %54 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %12, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  br label %55

55:                                               ; preds = %115, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %56) #6
  %58 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %13, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  %59 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIjES2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  store i32 2, ptr %14, align 4
  br label %118

61:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %63 = load i32, ptr %62, align 4, !tbaa !9
  store i32 %63, ptr %15, align 4, !tbaa !9
  %64 = load i8, ptr %8, align 1, !tbaa !13, !range !15, !noundef !16
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %88

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !17
  %67 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %17, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  %69 = call ptr @_ZSt4nextISt23_Rb_tree_const_iteratorIjEET_S2_NSt15iterator_traitsIS2_E15difference_typeE(ptr %68, i64 noundef 1)
  %70 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %16, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %71) #6
  %73 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %18, i32 0, i32 0
  store ptr %72, ptr %73, align 8
  %74 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIjES2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %74, label %81, label %75

75:                                               ; preds = %66
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = add i32 %78, 1
  %80 = icmp ne i32 %77, %79
  br label %81

81:                                               ; preds = %75, %66
  %82 = phi i1 [ true, %66 ], [ %80, %75 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br i1 %82, label %83, label %84

83:                                               ; preds = %81
  store i32 4, ptr %14, align 4
  br label %85

84:                                               ; preds = %81
  store i32 0, ptr %14, align 4
  br label %85

85:                                               ; preds = %84, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %86 = load i32, ptr %14, align 4
  switch i32 %86, label %113 [
    i32 0, label %87
  ]

87:                                               ; preds = %85
  br label %88

88:                                               ; preds = %87, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !17
  %90 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %20, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8
  %92 = call ptr @_ZNSt3setIjSt4lessIjESaIjEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIjE(ptr noundef nonnull align 8 dereferenceable(48) %89, ptr %91)
  %93 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %19, i32 0, i32 0
  store ptr %92, ptr %93, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %19, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %94 = load i8, ptr %8, align 1, !tbaa !13, !range !15, !noundef !16
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %111

96:                                               ; preds = %88
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = add i32 %99, 1
  %101 = icmp eq i32 %98, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %96
  br label %105

103:                                              ; preds = %96
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.10, ptr noundef @.str.6, i32 noundef 133, ptr noundef @__PRETTY_FUNCTION__._ZN12fastregalloc19LinearScanAllocator17allocate_registerEjj, i32 noundef 2, ptr noundef @.str.7) #7
  unreachable

104:                                              ; No predecessors!
  br label %105

105:                                              ; preds = %104, %102
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !17
  %107 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %21, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = call ptr @_ZNSt3setIjSt4lessIjESaIjEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIjE(ptr noundef nonnull align 8 dereferenceable(48) %106, ptr %108)
  %110 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %22, i32 0, i32 0
  store ptr %109, ptr %110, align 8
  br label %111

111:                                              ; preds = %105, %88
  %112 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %112, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %113

113:                                              ; preds = %111, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %114 = load i32, ptr %14, align 4
  switch i32 %114, label %118 [
    i32 4, label %115
  ]

115:                                              ; preds = %113
  %116 = call ptr @_ZNSt23_Rb_tree_const_iteratorIjEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #6
  %117 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.154", ptr %23, i32 0, i32 0
  store ptr %116, ptr %117, align 8
  br label %55, !llvm.loop !18

118:                                              ; preds = %113, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %119 = load i32, ptr %14, align 4
  switch i32 %119, label %121 [
    i32 2, label %120
  ]

120:                                              ; preds = %118
  store i32 0, ptr %14, align 4
  br label %121

121:                                              ; preds = %120, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  %122 = load i32, ptr %14, align 4
  switch i32 %122, label %135 [
    i32 0, label %123
  ]

123:                                              ; preds = %121
  br label %124

124:                                              ; preds = %123, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %125 = getelementptr inbounds %"class.fastregalloc::LinearScanAllocator", ptr %25, i32 0, i32 10
  %126 = load i32, ptr %125, align 8, !tbaa !20
  store i32 %126, ptr %24, align 4, !tbaa !9
  %127 = load i8, ptr %8, align 1, !tbaa !13, !range !15, !noundef !16
  %128 = trunc i8 %127 to i1
  %129 = zext i1 %128 to i64
  %130 = select i1 %128, i32 2, i32 1
  %131 = getelementptr inbounds %"class.fastregalloc::LinearScanAllocator", ptr %25, i32 0, i32 10
  %132 = load i32, ptr %131, align 8, !tbaa !20
  %133 = add i32 %132, %130
  store i32 %133, ptr %131, align 8, !tbaa !20
  %134 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %134, ptr %4, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %135

135:                                              ; preds = %124, %121
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  %136 = load i32, ptr %4, align 4
  ret i32 %136
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i16, i64 } @_ZN12fastregalloc18IRInstructionShape3getERKNS_17LiveIntervalPointE(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4nextISt23_Rb_tree_const_iteratorIjEET_S2_NSt15iterator_traitsIS2_E15difference_typeE(ptr, i64 noundef) #5

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{i64 0, i64 8, !5}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !10, i64 280}
!21 = !{!"_ZTSN12fastregalloc19LinearScanAllocatorE", !22, i64 0, !14, i64 16, !23, i64 24, !27, i64 48, !34, i64 104, !37, i64 160, !40, i64 216, !44, i64 240, !48, i64 248, !10, i64 280}
!22 = !{!"_ZTSN3cfg9ScopedCFGE", !6, i64 0, !14, i64 8}
!23 = !{!"_ZTSSt6vectorIN12fastregalloc16VRegLiveIntervalESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN12fastregalloc16VRegLiveIntervalESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc16VRegLiveIntervalESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc16VRegLiveIntervalESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTS12UnorderedMapItSt4pairISt6vectorIP13IRInstructionSaIS3_EES1_IN10live_range3UseESaIS7_EEESt4hashItESt8equal_toItEE", !28, i64 0}
!28 = !{!"_ZTSSt13unordered_mapItSt4pairISt6vectorIP13IRInstructionSaIS3_EES1_IN10live_range3UseESaIS7_EEESt4hashItESt8equal_toItESaIS0_IKtSA_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_HashtableItSt4pairIKtS0_ISt6vectorIP13IRInstructionSaIS4_EES2_IN10live_range3UseESaIS8_EEEESaISC_ENSt8__detail10_Select1stESt8equal_toItESt4hashItENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !30, i64 8, !31, i64 16, !30, i64 24, !32, i64 32, !6, i64 48}
!30 = !{!"long", !7, i64 0}
!31 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!32 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !33, i64 0, !30, i64 8}
!33 = !{!"float", !7, i64 0}
!34 = !{!"_ZTS12UnorderedSetItSt4hashItESt8equal_toItEE", !35, i64 0}
!35 = !{!"_ZTSSt13unordered_setItSt4hashItESt8equal_toItESaItEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableIttSaItENSt8__detail9_IdentityESt8equal_toItESt4hashItENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !30, i64 8, !31, i64 16, !30, i64 24, !32, i64 32, !6, i64 48}
!37 = !{!"_ZTS12UnorderedMapIN12fastregalloc18IRInstructionShapeESt3setIjSt4lessIjESaIjEENS0_24IRInstructionShapeHasherESt8equal_toIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt13unordered_mapIN12fastregalloc18IRInstructionShapeESt3setIjSt4lessIjESaIjEENS0_24IRInstructionShapeHasherESt8equal_toIS1_ESaISt4pairIKS1_S6_EEE", !39, i64 0}
!39 = !{!"_ZTSSt10_HashtableIN12fastregalloc18IRInstructionShapeESt4pairIKS1_St3setIjSt4lessIjESaIjEEESaIS9_ENSt8__detail10_Select1stESt8equal_toIS1_ENS0_24IRInstructionShapeHasherENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !30, i64 8, !31, i64 16, !30, i64 24, !32, i64 32, !6, i64 48}
!40 = !{!"_ZTSSt6vectorIN12fastregalloc17LiveIntervalPointESaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIN12fastregalloc17LiveIntervalPointESaIS1_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc17LiveIntervalPointESaIS1_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc17LiveIntervalPointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"_ZTSSt8optionalIjE", !45, i64 0}
!45 = !{!"_ZTSSt14_Optional_baseIjLb1ELb1EE", !46, i64 0}
!46 = !{!"_ZTSSt17_Optional_payloadIjLb1ELb1ELb1EE", !47, i64 0}
!47 = !{!"_ZTSSt22_Optional_payload_baseIjE", !7, i64 0, !14, i64 4}
!48 = !{!"_ZTSSt14priority_queueIN12fastregalloc14ActiveIntervalESt6vectorIS1_SaIS1_EESt4lessIS1_EE", !49, i64 0, !53, i64 24}
!49 = !{!"_ZTSSt6vectorIN12fastregalloc14ActiveIntervalESaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIN12fastregalloc14ActiveIntervalESaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc14ActiveIntervalESaIS1_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc14ActiveIntervalESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSSt4lessIN12fastregalloc14ActiveIntervalEE"}


; 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"

%"struct.fastregalloc::IRInstructionShape" = type { i16, %union.anon.147 }
%union.anon.147 = type { i64 }
%"struct.std::_Rb_tree_const_iterator.154" = type { ptr }

@.str.6 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._ZN12fastregalloc19LinearScanAllocator17allocate_registerEjj = external hidden unnamed_addr constant [76 x i8], align 1

; 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
define dso_local noundef i32 @_ZN12fastregalloc19LinearScanAllocator17allocate_registerEjj(ptr noundef nonnull align 8 dereferenceable(288) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca i16, align 2
  %5 = alloca %"struct.fastregalloc::IRInstructionShape", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator.154", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 104
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #5
  %11 = trunc i32 %1 to i16
  store i16 %11, ptr %4, align 2, !tbaa !5
  %12 = call noundef i64 @_ZNK12UnorderedSetItSt4hashItESt8equal_toItEE5countERKt(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 2 dereferenceable(2) %4)
  %.not = icmp eq i64 %12, 0
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 240
  %14 = call noundef zeroext i1 @_ZNKSt8optionalIjEcvbEv(ptr noundef nonnull align 4 dereferenceable(8) %13) #5
  br i1 %14, label %15, label %18

15:                                               ; preds = %3
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %13) #5
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %.not31 = icmp eq i32 %17, %1
  br i1 %.not31, label %54, label %18

18:                                               ; preds = %15, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 216
  %20 = zext i32 %2 to i64
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12fastregalloc17LiveIntervalPointESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %20)
  %22 = call { i16, i64 } @_ZN12fastregalloc18IRInstructionShape3getERKNS_17LiveIntervalPointE(ptr noundef nonnull align 8 dereferenceable(16) %21)
  %23 = extractvalue { i16, i64 } %22, 0
  store i16 %23, ptr %5, align 8
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  %25 = extractvalue { i16, i64 } %22, 1
  store i64 %25, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %0, i64 160
  %27 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN12UnorderedMapIN12fastregalloc18IRInstructionShapeESt3setIjSt4lessIjESaIjEENS0_24IRInstructionShapeHasherESt8equal_toIS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %28 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %27) #5
  store ptr %28, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %29 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %27) #5
  store ptr %29, ptr %7, align 8
  %30 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIjES2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %18
  br i1 %.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %32 = load i32, ptr %31, align 4, !tbaa !9
  br label %.thread48

.lr.ph.split:                                     ; preds = %.lr.ph, %48
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %34 = load i32, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %.sroa.08.0.copyload = load ptr, ptr %6, align 8, !tbaa !11
  %35 = call ptr @_ZSt4nextISt23_Rb_tree_const_iteratorIjEET_S2_NSt15iterator_traitsIS2_E15difference_typeE(ptr %.sroa.08.0.copyload, i64 noundef 1)
  store ptr %35, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %36 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %27) #5
  store ptr %36, ptr %9, align 8
  %37 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIjES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %37, label %.thread42, label %38

.thread42:                                        ; preds = %.lr.ph.split
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %48

38:                                               ; preds = %.lr.ph.split
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = add i32 %34, 1
  %.not32 = icmp eq i32 %40, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %.not32, label %42, label %48

42:                                               ; preds = %38
  %.sroa.06.0.copyload = load ptr, ptr %6, align 8, !tbaa !11
  %43 = call ptr @_ZNSt3setIjSt4lessIjESaIjEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIjE(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr %.sroa.06.0.copyload)
  store ptr %43, ptr %6, align 8, !tbaa !11
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = icmp eq i32 %45, %40
  br i1 %46, label %.thread48, label %47

47:                                               ; preds = %42
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.6, i32 noundef 133, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12fastregalloc19LinearScanAllocator17allocate_registerEjj, i32 noundef 2, ptr noundef nonnull @.str.7) #6
  unreachable

48:                                               ; preds = %38, %.thread42
  %49 = call ptr @_ZNSt23_Rb_tree_const_iteratorIjEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %50 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %27) #5
  store ptr %50, ptr %7, align 8
  %51 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIjES2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br i1 %51, label %.lr.ph.split, label %._crit_edge, !llvm.loop !13

.thread48:                                        ; preds = %42, %.lr.ph.split.us
  %52 = phi i32 [ %32, %.lr.ph.split.us ], [ %34, %42 ]
  %.sroa.06.0.copyload.c.sink = load ptr, ptr %6, align 8, !tbaa !11
  %53 = call ptr @_ZNSt3setIjSt4lessIjESaIjEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIjE(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr %.sroa.06.0.copyload.c.sink)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %59

._crit_edge:                                      ; preds = %48, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %54

54:                                               ; preds = %._crit_edge, %15
  %55 = getelementptr inbounds i8, ptr %0, i64 280
  %56 = load i32, ptr %55, align 8, !tbaa !15
  %57 = select i1 %.not, i32 1, i32 2
  %58 = add i32 %56, %57
  store i32 %58, ptr %55, align 8, !tbaa !15
  br label %59

59:                                               ; preds = %.thread48, %54
  %.3 = phi i32 [ %56, %54 ], [ %52, %.thread48 ]
  ret i32 %.3
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i16, i64 } @_ZN12fastregalloc18IRInstructionShape3getERKNS_17LiveIntervalPointE(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(16) ptr @_ZNSt6vectorIN12fastregalloc17LiveIntervalPointESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4nextISt23_Rb_tree_const_iteratorIjEET_S2_NSt15iterator_traitsIS2_E15difference_typeE(ptr, i64 noundef) local_unnamed_addr #4

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

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

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

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

!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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 280}
!16 = !{!"_ZTSN12fastregalloc19LinearScanAllocatorE", !17, i64 0, !18, i64 16, !19, i64 24, !23, i64 48, !30, i64 104, !33, i64 160, !36, i64 216, !40, i64 240, !44, i64 248, !10, i64 280}
!17 = !{!"_ZTSN3cfg9ScopedCFGE", !12, i64 0, !18, i64 8}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIN12fastregalloc16VRegLiveIntervalESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN12fastregalloc16VRegLiveIntervalESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc16VRegLiveIntervalESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc16VRegLiveIntervalESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!"_ZTS12UnorderedMapItSt4pairISt6vectorIP13IRInstructionSaIS3_EES1_IN10live_range3UseESaIS7_EEESt4hashItESt8equal_toItEE", !24, i64 0}
!24 = !{!"_ZTSSt13unordered_mapItSt4pairISt6vectorIP13IRInstructionSaIS3_EES1_IN10live_range3UseESaIS7_EEESt4hashItESt8equal_toItESaIS0_IKtSA_EEE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableItSt4pairIKtS0_ISt6vectorIP13IRInstructionSaIS4_EES2_IN10live_range3UseESaIS8_EEEESaISC_ENSt8__detail10_Select1stESt8equal_toItESt4hashItENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !26, i64 8, !27, i64 16, !26, i64 24, !28, i64 32, !12, i64 48}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!28 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !29, i64 0, !26, i64 8}
!29 = !{!"float", !7, i64 0}
!30 = !{!"_ZTS12UnorderedSetItSt4hashItESt8equal_toItEE", !31, i64 0}
!31 = !{!"_ZTSSt13unordered_setItSt4hashItESt8equal_toItESaItEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIttSaItENSt8__detail9_IdentityESt8equal_toItESt4hashItENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !12, i64 0, !26, i64 8, !27, i64 16, !26, i64 24, !28, i64 32, !12, i64 48}
!33 = !{!"_ZTS12UnorderedMapIN12fastregalloc18IRInstructionShapeESt3setIjSt4lessIjESaIjEENS0_24IRInstructionShapeHasherESt8equal_toIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt13unordered_mapIN12fastregalloc18IRInstructionShapeESt3setIjSt4lessIjESaIjEENS0_24IRInstructionShapeHasherESt8equal_toIS1_ESaISt4pairIKS1_S6_EEE", !35, i64 0}
!35 = !{!"_ZTSSt10_HashtableIN12fastregalloc18IRInstructionShapeESt4pairIKS1_St3setIjSt4lessIjESaIjEEESaIS9_ENSt8__detail10_Select1stESt8equal_toIS1_ENS0_24IRInstructionShapeHasherENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE", !12, i64 0, !26, i64 8, !27, i64 16, !26, i64 24, !28, i64 32, !12, i64 48}
!36 = !{!"_ZTSSt6vectorIN12fastregalloc17LiveIntervalPointESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN12fastregalloc17LiveIntervalPointESaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc17LiveIntervalPointESaIS1_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc17LiveIntervalPointESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!40 = !{!"_ZTSSt8optionalIjE", !41, i64 0}
!41 = !{!"_ZTSSt14_Optional_baseIjLb1ELb1EE", !42, i64 0}
!42 = !{!"_ZTSSt17_Optional_payloadIjLb1ELb1ELb1EE", !43, i64 0}
!43 = !{!"_ZTSSt22_Optional_payload_baseIjE", !7, i64 0, !18, i64 4}
!44 = !{!"_ZTSSt14priority_queueIN12fastregalloc14ActiveIntervalESt6vectorIS1_SaIS1_EESt4lessIS1_EE", !45, i64 0, !49, i64 24}
!45 = !{!"_ZTSSt6vectorIN12fastregalloc14ActiveIntervalESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIN12fastregalloc14ActiveIntervalESaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc14ActiveIntervalESaIS1_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIN12fastregalloc14ActiveIntervalESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!49 = !{!"_ZTSSt4lessIN12fastregalloc14ActiveIntervalEE"}


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