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

; 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.std::pair.184" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator.187" = type { ptr }
%"struct.std::pair.188" = type { %"struct.fastregalloc::LiveIntervalPoint", %"struct.fastregalloc::LiveIntervalPoint" }
%"struct.fastregalloc::LiveIntervalPoint" = type { i8, %union.anon.173 }
%union.anon.173 = type { ptr }

@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__._ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE = external hidden unnamed_addr constant [125 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 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 i64 @_ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #1 {
  %3 = alloca %"struct.std::pair.184", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.187", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.187", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call noundef zeroext i1 @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %15)
  br i1 %16, label %18, label %17

17:                                               ; preds = %2
  br label %20

18:                                               ; preds = %2
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 71, ptr noundef @__PRETTY_FUNCTION__._ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE, i32 noundef 2, ptr noundef @.str.9) #5
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = call noundef i64 @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %21)
  %23 = sub i64 %22, 1
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %25 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %25, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %26, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = call ptr @_ZNKSt6vectorISt4pairIN12fastregalloc17LiveIntervalPointES2_ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.187", ptr %10, i32 0, i32 0
  store ptr %28, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call ptr @_ZNKSt6vectorISt4pairIN12fastregalloc17LiveIntervalPointES2_ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.187", ptr %11, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  br label %33

33:                                               ; preds = %66, %20
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIN12fastregalloc17LiveIntervalPointES3_ESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %34, label %36, label %35

35:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %68

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIN12fastregalloc17LiveIntervalPointES3_ESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  store ptr %37, ptr %12, align 8, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.std::pair.188", ptr %38, i32 0, i32 0
  %40 = call noundef zeroext i1 @_ZNK12fastregalloc17LiveIntervalPoint10is_missingEv(ptr noundef nonnull align 8 dereferenceable(16) %39)
  br i1 %40, label %42, label %41

41:                                               ; preds = %36
  br label %44

42:                                               ; preds = %36
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.10, ptr noundef @.str.8, i32 noundef 76, ptr noundef @__PRETTY_FUNCTION__._ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE, i32 noundef 2, ptr noundef @.str.9) #5
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.std::pair.188", ptr %46, i32 0, i32 0
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %45, ptr noundef nonnull align 8 dereferenceable(16) %47)
  %49 = load i32, ptr %48, align 4, !tbaa !9
  store i32 %49, ptr %13, align 4, !tbaa !9
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %51 = load i32, ptr %50, align 4, !tbaa !9
  store i32 %51, ptr %7, align 4, !tbaa !9
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.std::pair.188", ptr %52, i32 0, i32 1
  %54 = call noundef zeroext i1 @_ZNK12fastregalloc17LiveIntervalPoint10is_missingEv(ptr noundef nonnull align 8 dereferenceable(16) %53)
  br i1 %54, label %55, label %57

55:                                               ; preds = %44
  %56 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %56, ptr %8, align 4, !tbaa !9
  br label %65

57:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.std::pair.188", ptr %59, i32 0, i32 1
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %58, ptr noundef nonnull align 8 dereferenceable(16) %60)
  %62 = load i32, ptr %61, align 4, !tbaa !9
  store i32 %62, ptr %14, align 4, !tbaa !9
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %64 = load i32, ptr %63, align 4, !tbaa !9
  store i32 %64, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %65

65:                                               ; preds = %57, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %66

66:                                               ; preds = %65
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIN12fastregalloc17LiveIntervalPointES3_ESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %33

68:                                               ; preds = %35
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = icmp ule i32 %69, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  br label %75

73:                                               ; preds = %68
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.11, ptr noundef @.str.8, i32 noundef 88, ptr noundef @__PRETTY_FUNCTION__._ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE, i32 noundef 2, ptr noundef @.str.9) #5
  unreachable

74:                                               ; No predecessors!
  br label %75

75:                                               ; preds = %74, %72
  %76 = call i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i64 %76, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %77 = load i64, ptr %3, align 4
  ret i64 %77
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56)) #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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

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

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

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

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

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

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator.187" = type { ptr }

@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__._ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE = external hidden unnamed_addr constant [125 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 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 i64 @_ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.187", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.187", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = tail call noundef zeroext i1 @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  br i1 %9, label %10, label %11

10:                                               ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef 71, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE, i32 noundef 2, ptr noundef nonnull @.str.9) #5
  unreachable

11:                                               ; preds = %2
  %12 = tail call noundef i64 @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %13 = trunc i64 %12 to i32
  %14 = add i32 %13, -1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 %14, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %15 = tail call ptr @_ZNKSt6vectorISt4pairIN12fastregalloc17LiveIntervalPointES2_ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %15, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %16 = tail call ptr @_ZNKSt6vectorISt4pairIN12fastregalloc17LiveIntervalPointES2_ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %16, ptr %6, align 8
  %17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIN12fastregalloc17LiveIntervalPointES3_ESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %35
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  %.pre12 = load i32, ptr %4, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %11
  %18 = phi i32 [ %.pre12, %._crit_edge.loopexit ], [ 0, %11 ]
  %19 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %14, %11 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %.not = icmp ugt i32 %19, %18
  br i1 %.not, label %38, label %39

.lr.ph:                                           ; preds = %11, %35
  %20 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIN12fastregalloc17LiveIntervalPointES3_ESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %21 = call noundef zeroext i1 @_ZNK12fastregalloc17LiveIntervalPoint10is_missingEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  br i1 %21, label %22, label %23

22:                                               ; preds = %.lr.ph
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.8, i32 noundef 76, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE, i32 noundef 2, ptr noundef nonnull @.str.9) #5
  unreachable

23:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %25 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %25, ptr %7, align 4, !tbaa !5
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %27 = load i32, ptr %26, align 4, !tbaa !5
  store i32 %27, ptr %3, align 4, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %20, i64 16
  %29 = call noundef zeroext i1 @_ZNK12fastregalloc17LiveIntervalPoint10is_missingEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  br i1 %29, label %35, label %30

30:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %32 = load i32, ptr %31, align 4, !tbaa !5
  store i32 %32, ptr %8, align 4, !tbaa !5
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %34 = load i32, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %35

35:                                               ; preds = %23, %30
  %.sink = phi i32 [ %34, %30 ], [ %14, %23 ]
  store i32 %.sink, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIN12fastregalloc17LiveIntervalPointES3_ESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIN12fastregalloc17LiveIntervalPointES3_ESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %37, label %.lr.ph, label %._crit_edge.loopexit

38:                                               ; preds = %._crit_edge
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.8, i32 noundef 88, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12fastregalloc23calculate_live_intervalERKSt6vectorISt4pairINS_17LiveIntervalPointES2_ESaIS3_EERK12UnorderedMapIS2_jNS2_6HasherESt8equal_toIS2_EE, i32 noundef 2, ptr noundef nonnull @.str.9) #5
  unreachable

39:                                               ; preds = %._crit_edge
  %40 = call i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret i64 %40
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56)) 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK12UnorderedMapIN12fastregalloc17LiveIntervalPointEjNS1_6HasherESt8equal_toIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

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


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