; LLVM IR from thepowersgang/mrustc :: src/hir/type.ll (Z3ordRKN3HIR25TypeData_ErasedType_InnerES2_)

; 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::TypeData_ErasedType_Inner::Data_Alias" = type { %"struct.HIR::PathParams", %"class.std::shared_ptr" }
%"struct.HIR::PathParams" = type { %class.ThinVector.22, %class.ThinVector.23, %class.ThinVector.24 }
%class.ThinVector.22 = type { ptr }
%class.ThinVector.23 = type { ptr }
%class.ThinVector.24 = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.HIR::TypeData_ErasedType_Inner::Data_Fcn" = type <{ %"class.HIR::Path", i32, [4 x i8] }>
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.25" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"class.std::unique_ptr.25" = type { %"struct.std::__uniq_ptr_data.26" }
%"struct.std::__uniq_ptr_data.26" = type { %"class.std::__uniq_ptr_impl.27" }
%"class.std::__uniq_ptr_impl.27" = type { %"class.std::tuple.28" }
%"class.std::tuple.28" = type { %"struct.std::_Tuple_impl.29" }
%"struct.std::_Tuple_impl.29" = type { %"struct.std::_Head_base.32" }
%"struct.std::_Head_base.32" = type { ptr }

@.str.18 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [39 x i8], align 1
@__PRETTY_FUNCTION__._Z3ordRKN3HIR25TypeData_ErasedType_InnerES2_ = external hidden unnamed_addr constant [93 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL3ordjj(i32 noundef, i32 noundef) #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3ordRKN3HIR25TypeData_ErasedType_InnerES2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(104) %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call noundef i32 @_ZNK3HIR25TypeData_ErasedType_Inner3tagEv(ptr noundef nonnull align 8 dereferenceable(104) %24)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK3HIR25TypeData_ErasedType_Inner3tagEv(ptr noundef nonnull align 8 dereferenceable(104) %26)
  %28 = call noundef i32 @_ZL3ordjj(i32 noundef %25, i32 noundef %27)
  store i32 %28, ptr %6, align 4, !tbaa !9
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %23
  %32 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %32, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %34

33:                                               ; preds = %23
  store i32 0, ptr %7, align 4
  br label %34

34:                                               ; preds = %33, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %35 = load i32, ptr %7, align 4
  switch i32 %35, label %212 [
    i32 0, label %36
    i32 1, label %210
  ]

36:                                               ; preds = %34
  br label %37

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  store i8 1, ptr %8, align 1, !tbaa !11
  br label %38

38:                                               ; preds = %206, %37
  %39 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %40 = trunc i8 %39 to i1
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  store i32 4, ptr %7, align 4
  br label %207

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %43, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %44, ptr %10, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %202, %42
  %46 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %47 = trunc i8 %46 to i1
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 7, ptr %7, align 4
  br label %203

49:                                               ; preds = %45
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = call noundef i32 @_ZNK3HIR25TypeData_ErasedType_Inner3tagEv(ptr noundef nonnull align 8 dereferenceable(104) %50)
  switch i32 %51, label %201 [
    i32 0, label %52
    i32 2, label %53
    i32 3, label %81
    i32 1, label %142
  ]

52:                                               ; preds = %49
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.18, i32 noundef 488, ptr noundef @__PRETTY_FUNCTION__._Z3ordRKN3HIR25TypeData_ErasedType_InnerES2_) #6
  unreachable

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %54

54:                                               ; preds = %77, %53
  %55 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %56 = trunc i8 %55 to i1
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  store i32 11, ptr %7, align 4
  br label %78

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR25TypeData_ErasedType_Inner8as_KnownEv(ptr noundef nonnull align 8 dereferenceable(104) %59)
  store ptr %60, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR25TypeData_ErasedType_Inner8as_KnownEv(ptr noundef nonnull align 8 dereferenceable(104) %61)
  store ptr %62, ptr %13, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %73, %58
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %69, label %68

68:                                               ; preds = %63
  store i32 14, ptr %7, align 4
  br label %74

69:                                               ; preds = %63
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71)
  store i32 %72, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %74

73:                                               ; No predecessors!
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %63, !llvm.loop !15

74:                                               ; preds = %69, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %75 = load i32, ptr %7, align 4
  switch i32 %75, label %78 [
    i32 14, label %76
  ]

76:                                               ; preds = %74
  br label %77

77:                                               ; preds = %76
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %54, !llvm.loop !17

78:                                               ; preds = %74, %57
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  %79 = load i32, ptr %7, align 4
  switch i32 %79, label %203 [
    i32 11, label %80
  ]

80:                                               ; preds = %78
  br label %201

81:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  store i8 1, ptr %14, align 1, !tbaa !11
  br label %82

82:                                               ; preds = %138, %81
  %83 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %84 = trunc i8 %83 to i1
  br i1 %84, label %86, label %85

85:                                               ; preds = %82
  store i32 17, ptr %7, align 4
  br label %139

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR25TypeData_ErasedType_Inner8as_AliasEv(ptr noundef nonnull align 8 dereferenceable(104) %87)
  store ptr %88, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR25TypeData_ErasedType_Inner8as_AliasEv(ptr noundef nonnull align 8 dereferenceable(104) %89)
  store ptr %90, ptr %16, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %134, %86
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %95 = trunc i8 %94 to i1
  br i1 %95, label %97, label %96

96:                                               ; preds = %91
  store i32 20, ptr %7, align 4
  br label %135

97:                                               ; preds = %91
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Alias", ptr %98, i32 0, i32 1
  %100 = call noundef ptr @_ZNKSt12__shared_ptrIN3HIR30TypeData_ErasedType_AliasInnerELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %99) #5
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Alias", ptr %101, i32 0, i32 1
  %103 = call noundef ptr @_ZNKSt12__shared_ptrIN3HIR30TypeData_ErasedType_AliasInnerELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %102) #5
  %104 = icmp ne ptr %100, %103
  br i1 %104, label %105, label %117

105:                                              ; preds = %97
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Alias", ptr %106, i32 0, i32 1
  %108 = call noundef ptr @_ZNKSt12__shared_ptrIN3HIR30TypeData_ErasedType_AliasInnerELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %107) #5
  %109 = ptrtoint ptr %108 to i64
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Alias", ptr %110, i32 0, i32 1
  %112 = call noundef ptr @_ZNKSt12__shared_ptrIN3HIR30TypeData_ErasedType_AliasInnerELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %111) #5
  %113 = ptrtoint ptr %112 to i64
  %114 = icmp ult i64 %109, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %105
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %135

116:                                              ; preds = %105
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %135

117:                                              ; preds = %97
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %119 = load ptr, ptr %15, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Alias", ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Alias", ptr %121, i32 0, i32 0
  %123 = call noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 8 dereferenceable(24) %122)
  store i32 %123, ptr %17, align 4, !tbaa !9
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %128

126:                                              ; preds = %118
  %127 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %127, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %129

128:                                              ; preds = %118
  store i32 0, ptr %7, align 4
  br label %129

129:                                              ; preds = %128, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  %130 = load i32, ptr %7, align 4
  switch i32 %130, label %135 [
    i32 0, label %131
  ]

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %91, !llvm.loop !18

135:                                              ; preds = %129, %116, %115, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %136 = load i32, ptr %7, align 4
  switch i32 %136, label %139 [
    i32 20, label %137
  ]

137:                                              ; preds = %135
  br label %138

138:                                              ; preds = %137
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %82, !llvm.loop !19

139:                                              ; preds = %135, %85
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  %140 = load i32, ptr %7, align 4
  switch i32 %140, label %203 [
    i32 17, label %141
  ]

141:                                              ; preds = %139
  br label %201

142:                                              ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  store i8 1, ptr %18, align 1, !tbaa !11
  br label %143

143:                                              ; preds = %197, %142
  %144 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %145 = trunc i8 %144 to i1
  br i1 %145, label %147, label %146

146:                                              ; preds = %143
  store i32 25, ptr %7, align 4
  br label %198

147:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = call noundef nonnull align 8 dereferenceable(92) ptr @_ZNK3HIR25TypeData_ErasedType_Inner6as_FcnEv(ptr noundef nonnull align 8 dereferenceable(104) %148)
  store ptr %149, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = call noundef nonnull align 8 dereferenceable(92) ptr @_ZNK3HIR25TypeData_ErasedType_Inner6as_FcnEv(ptr noundef nonnull align 8 dereferenceable(104) %150)
  store ptr %151, ptr %20, align 8, !tbaa !5
  br label %152

152:                                              ; preds = %193, %147
  %153 = load ptr, ptr %19, align 8, !tbaa !5
  %154 = load ptr, ptr %20, align 8, !tbaa !5
  %155 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %156 = trunc i8 %155 to i1
  br i1 %156, label %158, label %157

157:                                              ; preds = %152
  store i32 28, ptr %7, align 4
  br label %194

158:                                              ; preds = %152
  br label %159

159:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Fcn", ptr %160, i32 0, i32 0
  %162 = load ptr, ptr %20, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Fcn", ptr %162, i32 0, i32 0
  %164 = call noundef i32 @_Z3ordIN3HIR4PathEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(88) %161, ptr noundef nonnull align 8 dereferenceable(88) %163)
  store i32 %164, ptr %21, align 4, !tbaa !9
  %165 = load i32, ptr %21, align 4, !tbaa !9
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %169

167:                                              ; preds = %159
  %168 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %168, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %170

169:                                              ; preds = %159
  store i32 0, ptr %7, align 4
  br label %170

170:                                              ; preds = %169, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %171 = load i32, ptr %7, align 4
  switch i32 %171, label %194 [
    i32 0, label %172
  ]

172:                                              ; preds = %170
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Fcn", ptr %176, i32 0, i32 1
  %178 = load i32, ptr %177, align 8, !tbaa !20
  %179 = load ptr, ptr %20, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.HIR::TypeData_ErasedType_Inner::Data_Fcn", ptr %179, i32 0, i32 1
  %181 = load i32, ptr %180, align 8, !tbaa !20
  %182 = call noundef i32 @_ZL3ordjj(i32 noundef %178, i32 noundef %181)
  store i32 %182, ptr %22, align 4, !tbaa !9
  %183 = load i32, ptr %22, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %187

185:                                              ; preds = %175
  %186 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %186, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %188

187:                                              ; preds = %175
  store i32 0, ptr %7, align 4
  br label %188

188:                                              ; preds = %187, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %189 = load i32, ptr %7, align 4
  switch i32 %189, label %194 [
    i32 0, label %190
  ]

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %152, !llvm.loop !26

194:                                              ; preds = %188, %170, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %195 = load i32, ptr %7, align 4
  switch i32 %195, label %198 [
    i32 28, label %196
  ]

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %196
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %143, !llvm.loop !27

198:                                              ; preds = %194, %146
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  %199 = load i32, ptr %7, align 4
  switch i32 %199, label %203 [
    i32 25, label %200
  ]

200:                                              ; preds = %198
  br label %201

201:                                              ; preds = %200, %141, %80, %49
  br label %202

202:                                              ; preds = %201
  store i8 0, ptr %8, align 1, !tbaa !11
  br label %45, !llvm.loop !28

203:                                              ; preds = %198, %139, %78, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %204 = load i32, ptr %7, align 4
  switch i32 %204, label %207 [
    i32 7, label %205
  ]

205:                                              ; preds = %203
  br label %206

206:                                              ; preds = %205
  store i8 0, ptr %8, align 1, !tbaa !11
  br label %38, !llvm.loop !29

207:                                              ; preds = %203, %41
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  %208 = load i32, ptr %7, align 4
  switch i32 %208, label %212 [
    i32 4, label %209
    i32 1, label %210
  ]

209:                                              ; preds = %207
  store i32 0, ptr %3, align 4
  br label %210

210:                                              ; preds = %209, %207, %34
  %211 = load i32, ptr %3, align 4
  ret i32 %211

212:                                              ; preds = %207, %34
  unreachable
}

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 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}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!21, !25, i64 88}
!21 = !{!"_ZTSN3HIR25TypeData_ErasedType_Inner8Data_FcnE", !22, i64 0, !25, i64 88}
!22 = !{!"_ZTSN3HIR4PathE", !23, i64 0}
!23 = !{!"_ZTSN3HIR4Path4DataE", !24, i64 0, !7, i64 8}
!24 = !{!"_ZTSN3HIR4Path4Data3TagE", !7, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}


; 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.18 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [39 x i8], align 1
@__PRETTY_FUNCTION__._Z3ordRKN3HIR25TypeData_ErasedType_InnerES2_ = external hidden unnamed_addr constant [93 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL3ordjj(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3ordRKN3HIR25TypeData_ErasedType_InnerES2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(104) %1) local_unnamed_addr #3 {
  %3 = tail call noundef i32 @_ZNK3HIR25TypeData_ErasedType_Inner3tagEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %4 = tail call noundef i32 @_ZNK3HIR25TypeData_ErasedType_Inner3tagEv(ptr noundef nonnull align 8 dereferenceable(104) %1)
  %5 = tail call noundef i32 @_ZL3ordjj(i32 noundef %3, i32 noundef %4)
  %.not.not = icmp eq i32 %5, 0
  br i1 %.not.not, label %.lr.ph.split, label %.thread107

.lr.ph.split:                                     ; preds = %2
  %6 = tail call noundef i32 @_ZNK3HIR25TypeData_ErasedType_Inner3tagEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  switch i32 %6, label %.thread107 [
    i32 0, label %.split140
    i32 2, label %.split142
    i32 3, label %.preheader.split
    i32 1, label %.preheader113.split
  ]

.preheader113.split:                              ; preds = %.lr.ph.split
  %7 = tail call noundef nonnull align 8 dereferenceable(92) ptr @_ZNK3HIR25TypeData_ErasedType_Inner6as_FcnEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %8 = tail call noundef nonnull align 8 dereferenceable(92) ptr @_ZNK3HIR25TypeData_ErasedType_Inner6as_FcnEv(ptr noundef nonnull align 8 dereferenceable(104) %1)
  %9 = tail call noundef i32 @_Z3ordIN3HIR4PathEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(88) %7, ptr noundef nonnull align 8 dereferenceable(88) %8)
  %.not87 = icmp eq i32 %9, 0
  br i1 %.not87, label %24, label %.thread107

.preheader.split:                                 ; preds = %.lr.ph.split
  %10 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR25TypeData_ErasedType_Inner8as_AliasEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %11 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR25TypeData_ErasedType_Inner8as_AliasEv(ptr noundef nonnull align 8 dereferenceable(104) %1)
  %12 = getelementptr inbounds i8, ptr %10, i64 24
  %13 = getelementptr inbounds i8, ptr %11, i64 24
  %14 = tail call noundef ptr @_ZNKSt12__shared_ptrIN3HIR30TypeData_ErasedType_AliasInnerELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  %15 = tail call noundef ptr @_ZNKSt12__shared_ptrIN3HIR30TypeData_ErasedType_AliasInnerELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  %.not89 = icmp eq ptr %14, %15
  br i1 %.not89, label %22, label %.split

.split140:                                        ; preds = %.lr.ph.split
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.18, i32 noundef 488, ptr noundef nonnull @__PRETTY_FUNCTION__._Z3ordRKN3HIR25TypeData_ErasedType_InnerES2_) #5
  unreachable

.split142:                                        ; preds = %.lr.ph.split
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR25TypeData_ErasedType_Inner8as_KnownEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR25TypeData_ErasedType_Inner8as_KnownEv(ptr noundef nonnull align 8 dereferenceable(104) %1)
  %18 = tail call noundef i32 @_ZNK3HIR7TypeRef3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  br label %.thread107

.split:                                           ; preds = %.preheader.split
  %19 = tail call noundef ptr @_ZNKSt12__shared_ptrIN3HIR30TypeData_ErasedType_AliasInnerELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  %20 = tail call noundef ptr @_ZNKSt12__shared_ptrIN3HIR30TypeData_ErasedType_AliasInnerELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  %21 = icmp ult ptr %19, %20
  %. = select i1 %21, i32 -1, i32 1
  br label %.thread107

22:                                               ; preds = %.preheader.split
  %23 = tail call noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
  br label %.thread107, !llvm.loop !5

24:                                               ; preds = %.preheader113.split
  %25 = getelementptr inbounds i8, ptr %8, i64 88
  %26 = getelementptr inbounds i8, ptr %7, i64 88
  %27 = load i32, ptr %26, align 8, !tbaa !7
  %28 = load i32, ptr %25, align 8, !tbaa !7
  %29 = tail call noundef i32 @_ZL3ordjj(i32 noundef %27, i32 noundef %28)
  br label %.thread107, !llvm.loop !15

.thread107:                                       ; preds = %24, %22, %.preheader113.split, %.lr.ph.split, %.split142, %.split, %2
  %.20 = phi i32 [ %5, %2 ], [ %18, %.split142 ], [ %., %.split ], [ 0, %.lr.ph.split ], [ %9, %.preheader113.split ], [ %23, %22 ], [ %29, %24 ]
  ret i32 %.20
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ordIN3HIR4PathEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !14, i64 88}
!8 = !{!"_ZTSN3HIR25TypeData_ErasedType_Inner8Data_FcnE", !9, i64 0, !14, i64 88}
!9 = !{!"_ZTSN3HIR4PathE", !10, i64 0}
!10 = !{!"_ZTSN3HIR4Path4DataE", !11, i64 0, !12, i64 8}
!11 = !{!"_ZTSN3HIR4Path4Data3TagE", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"int", !12, i64 0}
!15 = distinct !{!15, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass