; LLVM IR from thepowersgang/mrustc :: src/hir/generic_params.ll (ZNK3HIR12GenericBound3ordERKS0_)

; 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.HIR::GenericBound::Data_Lifetime" = type { %"struct.HIR::LifetimeRef", %"struct.HIR::LifetimeRef" }
%"struct.HIR::LifetimeRef" = type { i32 }
%"struct.HIR::GenericBound::Data_TypeLifetime" = type <{ %"class.HIR::TypeRef", %"struct.HIR::LifetimeRef", [4 x i8] }>
%"class.HIR::TypeRef" = type { ptr }
%"struct.HIR::GenericBound::Data_TraitBound" = type { %"class.std::unique_ptr", %"class.HIR::TypeRef", %"class.HIR::TraitPath" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.HIR::TraitPath" = type { %"class.std::unique_ptr", %"class.HIR::GenericPath", %"class.std::map", %"class.std::map.5", ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.2, %class.ThinVector.3, %class.ThinVector.4 }
%class.ThinVector.2 = type { ptr }
%class.ThinVector.3 = type { ptr }
%class.ThinVector.4 = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.5" = type { %"class.std::_Rb_tree.6" }
%"class.std::_Rb_tree.6" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.HIR::GenericBound::Data_TypeEquality" = type { %"class.HIR::TypeRef", %"class.HIR::TypeRef" }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR12GenericBound3ordERKS0_ = external hidden unnamed_addr constant [65 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3HIR12GenericBound3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(168) %1) #3 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  %20 = call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %21)
  %23 = icmp ne i32 %20, %22
  br i1 %23, label %24, label %31

24:                                               ; preds = %2
  %25 = call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %26)
  %28 = icmp slt i32 %25, %27
  %29 = zext i1 %28 to i64
  %30 = select i1 %28, i32 -1, i32 1
  store i32 %30, ptr %3, align 4
  br label %151

31:                                               ; preds = %2
  %32 = call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  switch i32 %32, label %150 [
    i32 0, label %33
    i32 1, label %34
    i32 2, label %63
    i32 3, label %92
    i32 4, label %121
  ]

33:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 105, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR12GenericBound3ordERKS0_) #5
  unreachable

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %35 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR12GenericBound11as_LifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  store ptr %35, ptr %6, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR12GenericBound11as_LifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %37)
  store ptr %38, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.HIR::GenericBound::Data_Lifetime", ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.HIR::GenericBound::Data_Lifetime", ptr %42, i32 0, i32 0
  %44 = call noundef i32 @_Z3ordIN3HIR11LifetimeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef nonnull align 4 dereferenceable(4) %43)
  store i32 %44, ptr %8, align 4, !tbaa !9
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %49

47:                                               ; preds = %34
  %48 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %48, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %60

49:                                               ; preds = %34
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.HIR::GenericBound::Data_Lifetime", ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.HIR::GenericBound::Data_Lifetime", ptr %52, i32 0, i32 1
  %54 = call noundef i32 @_Z3ordIN3HIR11LifetimeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %53)
  store i32 %54, ptr %8, align 4, !tbaa !9
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %49
  %58 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %58, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %60

59:                                               ; preds = %49
  store i32 0, ptr %9, align 4
  br label %60

60:                                               ; preds = %59, %57, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %61 = load i32, ptr %9, align 4
  switch i32 %61, label %153 [
    i32 0, label %62
    i32 1, label %151
  ]

62:                                               ; preds = %60
  br label %150

63:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %64 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12GenericBound15as_TypeLifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  store ptr %64, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12GenericBound15as_TypeLifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %66)
  store ptr %67, ptr %11, align 8, !tbaa !5
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %71, i32 0, i32 0
  %73 = call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %72)
  store i32 %73, ptr %12, align 4, !tbaa !9
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %63
  %77 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %77, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %89

78:                                               ; preds = %63
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %81, i32 0, i32 1
  %83 = call noundef i32 @_Z3ordIN3HIR11LifetimeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %82)
  store i32 %83, ptr %12, align 4, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %88

86:                                               ; preds = %78
  %87 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %87, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %89

88:                                               ; preds = %78
  store i32 0, ptr %9, align 4
  br label %89

89:                                               ; preds = %88, %86, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %90 = load i32, ptr %9, align 4
  switch i32 %90, label %153 [
    i32 0, label %91
    i32 1, label %151
  ]

91:                                               ; preds = %89
  br label %150

92:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %93 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK3HIR12GenericBound13as_TraitBoundEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  store ptr %93, ptr %13, align 8, !tbaa !5
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK3HIR12GenericBound13as_TraitBoundEv(ptr noundef nonnull align 8 dereferenceable(168) %95)
  store ptr %96, ptr %14, align 8, !tbaa !5
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %98, i32 0, i32 1
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %100, i32 0, i32 1
  %102 = call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull align 8 dereferenceable(8) %101)
  store i32 %102, ptr %15, align 4, !tbaa !9
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %92
  %106 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %106, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %118

107:                                              ; preds = %92
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %110, i32 0, i32 2
  %112 = call noundef i32 @_ZNK3HIR9TraitPath3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %109, ptr noundef nonnull align 8 dereferenceable(144) %111)
  store i32 %112, ptr %15, align 4, !tbaa !9
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %117

115:                                              ; preds = %107
  %116 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %116, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %118

117:                                              ; preds = %107
  store i32 0, ptr %9, align 4
  br label %118

118:                                              ; preds = %117, %115, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %119 = load i32, ptr %9, align 4
  switch i32 %119, label %153 [
    i32 0, label %120
    i32 1, label %151
  ]

120:                                              ; preds = %118
  br label %150

121:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %122 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR12GenericBound15as_TypeEqualityEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  store ptr %122, ptr %16, align 8, !tbaa !5
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR12GenericBound15as_TypeEqualityEv(ptr noundef nonnull align 8 dereferenceable(168) %124)
  store ptr %125, ptr %17, align 8, !tbaa !5
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %129, i32 0, i32 0
  %131 = call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull align 8 dereferenceable(8) %130)
  store i32 %131, ptr %18, align 4, !tbaa !9
  %132 = load i32, ptr %18, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %136

134:                                              ; preds = %121
  %135 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %135, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %147

136:                                              ; preds = %121
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %137, i32 0, i32 1
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %139, i32 0, i32 1
  %141 = call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull align 8 dereferenceable(8) %140)
  store i32 %141, ptr %18, align 4, !tbaa !9
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %146

144:                                              ; preds = %136
  %145 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %145, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %147

146:                                              ; preds = %136
  store i32 0, ptr %9, align 4
  br label %147

147:                                              ; preds = %146, %144, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %148 = load i32, ptr %9, align 4
  switch i32 %148, label %153 [
    i32 0, label %149
    i32 1, label %151
  ]

149:                                              ; preds = %147
  br label %150

150:                                              ; preds = %149, %120, %91, %62, %31
  store i32 0, ptr %3, align 4
  br label %151

151:                                              ; preds = %150, %147, %118, %89, %60, %24
  %152 = load i32, ptr %3, align 4
  ret i32 %152

153:                                              ; preds = %147, %118, %89, %60
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ordIN3HIR11LifetimeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

declare noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

declare noundef i32 @_ZNK3HIR9TraitPath3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(144)) #4

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

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR12GenericBound3ordERKS0_ = external hidden unnamed_addr constant [65 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3HIR12GenericBound3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(168) %1) local_unnamed_addr #2 align 2 {
  %3 = tail call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %0)
  %4 = tail call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  %.not = icmp eq i32 %3, %4
  %5 = tail call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %0)
  br i1 %.not, label %10, label %6

6:                                                ; preds = %2
  %7 = tail call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  %8 = icmp slt i32 %5, %7
  %9 = select i1 %8, i32 -1, i32 1
  br label %.thread

10:                                               ; preds = %2
  switch i32 %5, label %.thread [
    i32 0, label %11
    i32 1, label %12
    i32 2, label %20
    i32 3, label %28
    i32 4, label %38
  ]

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 105, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR12GenericBound3ordERKS0_) #4
  unreachable

12:                                               ; preds = %10
  %13 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR12GenericBound11as_LifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %0)
  %14 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR12GenericBound11as_LifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  %15 = tail call noundef i32 @_Z3ordIN3HIR11LifetimeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %.not69 = icmp eq i32 %15, 0
  br i1 %.not69, label %16, label %.thread

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %13, i64 4
  %18 = getelementptr inbounds i8, ptr %14, i64 4
  %19 = tail call noundef i32 @_Z3ordIN3HIR11LifetimeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  br label %.thread

20:                                               ; preds = %10
  %21 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12GenericBound15as_TypeLifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %0)
  %22 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12GenericBound15as_TypeLifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  %23 = tail call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %.not67 = icmp eq i32 %23, 0
  br i1 %.not67, label %24, label %.thread

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %21, i64 8
  %26 = getelementptr inbounds i8, ptr %22, i64 8
  %27 = tail call noundef i32 @_Z3ordIN3HIR11LifetimeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  br label %.thread

28:                                               ; preds = %10
  %29 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK3HIR12GenericBound13as_TraitBoundEv(ptr noundef nonnull align 8 dereferenceable(168) %0)
  %30 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK3HIR12GenericBound13as_TraitBoundEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  %31 = getelementptr inbounds i8, ptr %29, i64 8
  %32 = getelementptr inbounds i8, ptr %30, i64 8
  %33 = tail call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %.not65 = icmp eq i32 %33, 0
  br i1 %.not65, label %34, label %.thread

34:                                               ; preds = %28
  %35 = getelementptr inbounds i8, ptr %29, i64 16
  %36 = getelementptr inbounds i8, ptr %30, i64 16
  %37 = tail call noundef i32 @_ZNK3HIR9TraitPath3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %35, ptr noundef nonnull align 8 dereferenceable(144) %36)
  br label %.thread

38:                                               ; preds = %10
  %39 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR12GenericBound15as_TypeEqualityEv(ptr noundef nonnull align 8 dereferenceable(168) %0)
  %40 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR12GenericBound15as_TypeEqualityEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  %41 = tail call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40)
  %.not63 = icmp eq i32 %41, 0
  br i1 %.not63, label %42, label %.thread

42:                                               ; preds = %38
  %43 = getelementptr inbounds i8, ptr %39, i64 8
  %44 = getelementptr inbounds i8, ptr %40, i64 8
  %45 = tail call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44)
  br label %.thread

.thread:                                          ; preds = %42, %34, %24, %16, %38, %28, %20, %12, %10, %6
  %.4 = phi i32 [ %9, %6 ], [ 0, %10 ], [ %15, %12 ], [ %23, %20 ], [ %33, %28 ], [ %41, %38 ], [ %19, %16 ], [ %27, %24 ], [ %37, %34 ], [ %45, %42 ]
  ret i32 %.4
}

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

declare noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare noundef i32 @_ZNK3HIR9TraitPath3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #3

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass