; LLVM IR from thepowersgang/mrustc :: src/hir/path.ll (ZNK3HIR4Path3ordERKS0_)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.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.5" }
%"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 }
%"struct.HIR::PathParams" = type { %class.ThinVector.0, %class.ThinVector.1, %class.ThinVector.2 }
%class.ThinVector.0 = type { ptr }
%class.ThinVector.1 = type { ptr }
%class.ThinVector.2 = type { ptr }
%"class.std::unique_ptr.5" = type { %"struct.std::__uniq_ptr_data.6" }
%"struct.std::__uniq_ptr_data.6" = type { %"class.std::__uniq_ptr_impl.7" }
%"class.std::__uniq_ptr_impl.7" = type { %"class.std::tuple.8" }
%"class.std::tuple.8" = type { %"struct.std::_Tuple_impl.9" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"struct.HIR::Path::Data::Data_UfcsInherent" = type { %"class.HIR::TypeRef", %class.RcString, %"struct.HIR::PathParams", %"struct.HIR::PathParams" }
%"struct.HIR::Path::Data::Data_UfcsUnknown" = type { %"class.HIR::TypeRef", %class.RcString, %"struct.HIR::PathParams" }

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [71 x i8], align 1
@_ZTIPKc = external constant ptr
@__PRETTY_FUNCTION__._ZNK3HIR4Path3ordERKS0_ = external hidden unnamed_addr constant [51 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 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)) #3

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3HIR4Path3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %1) #3 align 2 {
  %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 ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %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
  %23 = load ptr, ptr %4, align 8
  br label %24

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

33:                                               ; preds = %24
  %34 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %34, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %36

35:                                               ; preds = %24
  store i32 0, ptr %7, align 4
  br label %36

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

38:                                               ; preds = %36
  br label %39

39:                                               ; preds = %38
  %40 = getelementptr inbounds %"class.HIR::Path", ptr %23, i32 0, i32 0
  %41 = call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %40)
  switch i32 %41, label %208 [
    i32 0, label %42
    i32 1, label %43
    i32 2, label %54
    i32 3, label %100
    i32 4, label %162
  ]

42:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef 568, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR4Path3ordERKS0_) #6
  unreachable

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %44 = getelementptr inbounds %"class.HIR::Path", ptr %23, i32 0, i32 0
  %45 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %44)
  store ptr %45, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.HIR::Path", ptr %47, i32 0, i32 0
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %48)
  store ptr %49, ptr %9, align 8, !tbaa !5
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = call noundef i32 @_Z3ordIN3HIR11GenericPathEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %52)
  store i32 %53, ptr %3, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %210

54:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %55 = getelementptr inbounds %"class.HIR::Path", ptr %23, i32 0, i32 0
  %56 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %55)
  store ptr %56, ptr %10, align 8, !tbaa !5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.HIR::Path", ptr %58, i32 0, i32 0
  %60 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %59)
  store ptr %60, ptr %11, align 8, !tbaa !5
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %65, i32 0, i32 0
  %67 = call noundef i32 @_Z3ordIN3HIR7TypeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull align 8 dereferenceable(8) %66)
  store i32 %67, ptr %12, align 4, !tbaa !9
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %62
  %71 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %71, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %73

72:                                               ; preds = %62
  store i32 0, ptr %7, align 4
  br label %73

73:                                               ; preds = %72, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %74 = load i32, ptr %7, align 4
  switch i32 %74, label %99 [
    i32 0, label %75
  ]

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %81, i32 0, i32 1
  %83 = call noundef i32 @_Z3ordI8RcStringE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 8 dereferenceable(8) %82)
  store i32 %83, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %88

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

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

89:                                               ; preds = %88, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %90 = load i32, ptr %7, align 4
  switch i32 %90, label %99 [
    i32 0, label %91
  ]

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %96, i32 0, i32 2
  %98 = call noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 8 dereferenceable(24) %97)
  store i32 %98, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %99

99:                                               ; preds = %93, %89, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %210

100:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %101 = getelementptr inbounds %"class.HIR::Path", ptr %23, i32 0, i32 0
  %102 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %101)
  store ptr %102, ptr %14, align 8, !tbaa !5
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.HIR::Path", ptr %104, i32 0, i32 0
  %106 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %105)
  store ptr %106, ptr %15, align 8, !tbaa !5
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %111, i32 0, i32 0
  %113 = call noundef i32 @_Z3ordIN3HIR7TypeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 8 dereferenceable(8) %112)
  store i32 %113, ptr %16, align 4, !tbaa !9
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %108
  %117 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %117, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %119

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

119:                                              ; preds = %118, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %120 = load i32, ptr %7, align 4
  switch i32 %120, label %161 [
    i32 0, label %121
  ]

121:                                              ; preds = %119
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %127, i32 0, i32 1
  %129 = call noundef i32 @_Z3ordIN3HIR11GenericPathEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(32) %126, ptr noundef nonnull align 8 dereferenceable(32) %128)
  store i32 %129, ptr %17, align 4, !tbaa !9
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %124
  %133 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %133, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %135

134:                                              ; preds = %124
  store i32 0, ptr %7, align 4
  br label %135

135:                                              ; preds = %134, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  %136 = load i32, ptr %7, align 4
  switch i32 %136, label %161 [
    i32 0, label %137
  ]

137:                                              ; preds = %135
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %141, i32 0, i32 2
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %143, i32 0, i32 2
  %145 = call noundef i32 @_Z3ordI8RcStringE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull align 8 dereferenceable(8) %144)
  store i32 %145, ptr %18, align 4, !tbaa !9
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %150

148:                                              ; preds = %140
  %149 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %149, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %151

150:                                              ; preds = %140
  store i32 0, ptr %7, align 4
  br label %151

151:                                              ; preds = %150, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %152 = load i32, ptr %7, align 4
  switch i32 %152, label %161 [
    i32 0, label %153
  ]

153:                                              ; preds = %151
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %156, i32 0, i32 3
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %158, i32 0, i32 3
  %160 = call noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 8 dereferenceable(24) %159)
  store i32 %160, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %161

161:                                              ; preds = %155, %151, %135, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %210

162:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %163 = getelementptr inbounds %"class.HIR::Path", ptr %23, i32 0, i32 0
  %164 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %163)
  store ptr %164, ptr %19, align 8, !tbaa !5
  %165 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = getelementptr inbounds %"class.HIR::Path", ptr %166, i32 0, i32 0
  %168 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %167)
  store ptr %168, ptr %20, align 8, !tbaa !5
  %169 = load ptr, ptr %20, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %171 = load ptr, ptr %19, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsUnknown", ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %20, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsUnknown", ptr %173, i32 0, i32 0
  %175 = call noundef i32 @_Z3ordIN3HIR7TypeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef nonnull align 8 dereferenceable(8) %174)
  store i32 %175, ptr %21, align 4, !tbaa !9
  %176 = load i32, ptr %21, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %180

178:                                              ; preds = %170
  %179 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %179, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %181

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

181:                                              ; preds = %180, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %182 = load i32, ptr %7, align 4
  switch i32 %182, label %207 [
    i32 0, label %183
  ]

183:                                              ; preds = %181
  br label %184

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %187 = load ptr, ptr %19, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsUnknown", ptr %187, i32 0, i32 1
  %189 = load ptr, ptr %20, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsUnknown", ptr %189, i32 0, i32 1
  %191 = call noundef i32 @_Z3ordI8RcStringE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull align 8 dereferenceable(8) %190)
  store i32 %191, ptr %22, align 4, !tbaa !9
  %192 = load i32, ptr %22, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %196

194:                                              ; preds = %186
  %195 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %195, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %197

196:                                              ; preds = %186
  store i32 0, ptr %7, align 4
  br label %197

197:                                              ; preds = %196, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %198 = load i32, ptr %7, align 4
  switch i32 %198, label %207 [
    i32 0, label %199
  ]

199:                                              ; preds = %197
  br label %200

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200
  %202 = load ptr, ptr %19, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsUnknown", ptr %202, i32 0, i32 2
  %204 = load ptr, ptr %20, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsUnknown", ptr %204, i32 0, i32 2
  %206 = call noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24) %203, ptr noundef nonnull align 8 dereferenceable(24) %205)
  store i32 %206, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %207

207:                                              ; preds = %201, %197, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %210

208:                                              ; preds = %39
  %209 = call ptr @__cxa_allocate_exception(i64 8) #5
  store ptr @.str, ptr %209, align 16, !tbaa !5
  call void @__cxa_throw(ptr %209, ptr @_ZTIPKc, ptr null) #7
  unreachable

210:                                              ; preds = %207, %161, %99, %43, %36
  %211 = load i32, ptr %3, align 4
  ret i32 %211

212:                                              ; preds = %36
  unreachable
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #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 = { 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 = { nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_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 [1 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [71 x i8], align 1
@_ZTIPKc = external constant ptr
@__PRETTY_FUNCTION__._ZNK3HIR4Path3ordERKS0_ = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88)) 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 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #0 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 #2

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3HIR4Path3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %1) local_unnamed_addr #2 align 2 {
  %3 = tail call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %4 = tail call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %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 %6, label %55

6:                                                ; preds = %2
  %7 = tail call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  switch i32 %7, label %53 [
    i32 0, label %8
    i32 1, label %9
    i32 2, label %13
    i32 3, label %25
    i32 4, label %41
  ]

8:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, i32 noundef 568, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR4Path3ordERKS0_) #4
  unreachable

9:                                                ; preds = %6
  %10 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %11 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %12 = tail call noundef i32 @_Z3ordIN3HIR11GenericPathEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %11)
  br label %55

13:                                               ; preds = %6
  %14 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %15 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %16 = tail call noundef i32 @_Z3ordIN3HIR7TypeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %.not85 = icmp eq i32 %16, 0
  br i1 %.not85, label %17, label %55

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %14, i64 8
  %19 = getelementptr inbounds i8, ptr %15, i64 8
  %20 = tail call noundef i32 @_Z3ordI8RcStringE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %.not86 = icmp eq i32 %20, 0
  br i1 %.not86, label %21, label %55

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %14, i64 16
  %23 = getelementptr inbounds i8, ptr %15, i64 16
  %24 = tail call noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
  br label %55

25:                                               ; preds = %6
  %26 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %27 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %28 = tail call noundef i32 @_Z3ordIN3HIR7TypeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %.not82 = icmp eq i32 %28, 0
  br i1 %.not82, label %29, label %55

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %26, i64 8
  %31 = getelementptr inbounds i8, ptr %27, i64 8
  %32 = tail call noundef i32 @_Z3ordIN3HIR11GenericPathEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %31)
  %.not83 = icmp eq i32 %32, 0
  br i1 %.not83, label %33, label %55

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %26, i64 40
  %35 = getelementptr inbounds i8, ptr %27, i64 40
  %36 = tail call noundef i32 @_Z3ordI8RcStringE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35)
  %.not84 = icmp eq i32 %36, 0
  br i1 %.not84, label %37, label %55

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %26, i64 48
  %39 = getelementptr inbounds i8, ptr %27, i64 48
  %40 = tail call noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %39)
  br label %55

41:                                               ; preds = %6
  %42 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %43 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %44 = tail call noundef i32 @_Z3ordIN3HIR7TypeRefEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43)
  %.not80 = icmp eq i32 %44, 0
  br i1 %.not80, label %45, label %55

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %42, i64 8
  %47 = getelementptr inbounds i8, ptr %43, i64 8
  %48 = tail call noundef i32 @_Z3ordI8RcStringE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %47)
  %.not81 = icmp eq i32 %48, 0
  br i1 %.not81, label %49, label %55

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %42, i64 16
  %51 = getelementptr inbounds i8, ptr %43, i64 16
  %52 = tail call noundef i32 @_Z3ordIN3HIR10PathParamsEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(24) %51)
  br label %55

53:                                               ; preds = %6
  %54 = tail call ptr @__cxa_allocate_exception(i64 8) #5
  store ptr @.str, ptr %54, align 16, !tbaa !5
  tail call void @__cxa_throw(ptr nonnull %54, ptr nonnull @_ZTIPKc, ptr null) #6
  unreachable

55:                                               ; preds = %2, %49, %41, %45, %37, %25, %29, %33, %21, %13, %17, %9
  %.11 = phi i32 [ %5, %2 ], [ %12, %9 ], [ %24, %21 ], [ %20, %17 ], [ %16, %13 ], [ %40, %37 ], [ %36, %33 ], [ %32, %29 ], [ %28, %25 ], [ %52, %49 ], [ %48, %45 ], [ %44, %41 ]
  ret i32 %.11
}

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

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

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

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 = { 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 #4 = { noreturn nounwind }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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