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

; 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.EncodedLiteralSlice = type { ptr, i64, i64 }
%"struct.HIR::ConstGeneric::InferData" = type { i32 }

@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR12ConstGeneric3ordERKS0_ = external hidden unnamed_addr constant [60 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24)) #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 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; 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 nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3HIR12ConstGeneric3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %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 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 i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %struct.EncodedLiteralSlice, align 8
  %27 = alloca %struct.EncodedLiteralSlice, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %29 = call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
  %32 = call noundef i32 @_ZL3ordii(i32 noundef %29, i32 noundef %31)
  store i32 %32, ptr %6, align 4, !tbaa !9
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %2
  %36 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %36, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %38

37:                                               ; preds = %2
  store i32 0, ptr %7, align 4
  br label %38

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

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

41:                                               ; preds = %204, %40
  %42 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %43 = trunc i8 %42 to i1
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 2, ptr %7, align 4
  br label %205

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr %28, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %46, ptr %10, align 8, !tbaa !5
  br label %47

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

50:                                               ; preds = %47
  store i32 5, ptr %7, align 4
  br label %201

51:                                               ; preds = %47
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %52)
  switch i32 %53, label %199 [
    i32 0, label %54
    i32 1, label %55
    i32 2, label %95
    i32 3, label %125
    i32 4, label %161
  ]

54:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 73, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR12ConstGeneric3ordERKS0_) #6
  unreachable

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

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

59:                                               ; preds = %56
  store i32 9, ptr %7, align 4
  br label %92

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  store ptr %62, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %63)
  store ptr %64, ptr %13, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %87, %60
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %69 = trunc i8 %68 to i1
  br i1 %69, label %71, label %70

70:                                               ; preds = %65
  store i32 12, ptr %7, align 4
  br label %88

71:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.HIR::ConstGeneric::InferData", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 4, !tbaa !15
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.HIR::ConstGeneric::InferData", ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !15
  %78 = call noundef i32 @_ZL3ordjj(i32 noundef %74, i32 noundef %77)
  store i32 %78, ptr %14, align 4, !tbaa !9
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %71
  %82 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %82, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

83:                                               ; preds = %71
  store i32 0, ptr %7, align 4
  br label %84

84:                                               ; preds = %83, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %85 = load i32, ptr %7, align 4
  switch i32 %85, label %88 [
    i32 0, label %86
  ]

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %65, !llvm.loop !18

88:                                               ; preds = %84, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %89 = load i32, ptr %7, align 4
  switch i32 %89, label %92 [
    i32 12, label %90
  ]

90:                                               ; preds = %88
  br label %91

91:                                               ; preds = %90
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %56, !llvm.loop !20

92:                                               ; preds = %88, %59
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  %93 = load i32, ptr %7, align 4
  switch i32 %93, label %201 [
    i32 9, label %94
  ]

94:                                               ; preds = %92
  br label %199

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

96:                                               ; preds = %121, %95
  %97 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %98 = trunc i8 %97 to i1
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  store i32 15, ptr %7, align 4
  br label %122

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %101)
  store ptr %102, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %103)
  store ptr %104, ptr %17, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %117, %100
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %109 = trunc i8 %108 to i1
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  store i32 18, ptr %7, align 4
  br label %118

111:                                              ; preds = %105
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %112) #5
  %114 = load ptr, ptr %17, align 8, !tbaa !5
  %115 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %114) #5
  %116 = call noundef i32 @_ZNK3HIR24ConstGeneric_Unevaluated3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %113, ptr noundef nonnull align 8 dereferenceable(64) %115)
  store i32 %116, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %118

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

118:                                              ; preds = %111, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %119 = load i32, ptr %7, align 4
  switch i32 %119, label %122 [
    i32 18, label %120
  ]

120:                                              ; preds = %118
  br label %121

121:                                              ; preds = %120
  store i8 0, ptr %15, align 1, !tbaa !11
  br label %96, !llvm.loop !22

122:                                              ; preds = %118, %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  %123 = load i32, ptr %7, align 4
  switch i32 %123, label %201 [
    i32 15, label %124
  ]

124:                                              ; preds = %122
  br label %199

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

126:                                              ; preds = %157, %125
  %127 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %128 = trunc i8 %127 to i1
  br i1 %128, label %130, label %129

129:                                              ; preds = %126
  store i32 21, ptr %7, align 4
  br label %158

130:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %131)
  store ptr %132, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %133)
  store ptr %134, ptr %20, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %153, %130
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = load ptr, ptr %20, align 8, !tbaa !5
  %138 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %139 = trunc i8 %138 to i1
  br i1 %139, label %141, label %140

140:                                              ; preds = %135
  store i32 24, ptr %7, align 4
  br label %154

141:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %142 = load ptr, ptr %19, align 8, !tbaa !5
  %143 = load ptr, ptr %20, align 8, !tbaa !5
  %144 = call noundef i32 @_Z3ordIN3HIR10GenericRefEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(12) %142, ptr noundef nonnull align 8 dereferenceable(12) %143)
  store i32 %144, ptr %21, align 4, !tbaa !9
  %145 = load i32, ptr %21, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %149

147:                                              ; preds = %141
  %148 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %148, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

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

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

152:                                              ; preds = %150
  br label %153

153:                                              ; preds = %152
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %135, !llvm.loop !23

154:                                              ; preds = %150, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %155 = load i32, ptr %7, align 4
  switch i32 %155, label %158 [
    i32 24, label %156
  ]

156:                                              ; preds = %154
  br label %157

157:                                              ; preds = %156
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %126, !llvm.loop !24

158:                                              ; preds = %154, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  %159 = load i32, ptr %7, align 4
  switch i32 %159, label %201 [
    i32 21, label %160
  ]

160:                                              ; preds = %158
  br label %199

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

162:                                              ; preds = %195, %161
  %163 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %164 = trunc i8 %163 to i1
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  store i32 27, ptr %7, align 4
  br label %196

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %167)
  store ptr %168, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %169)
  store ptr %170, ptr %24, align 8, !tbaa !5
  br label %171

171:                                              ; preds = %191, %166
  %172 = load ptr, ptr %23, align 8, !tbaa !5
  %173 = load ptr, ptr %24, align 8, !tbaa !5
  %174 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %175 = trunc i8 %174 to i1
  br i1 %175, label %177, label %176

176:                                              ; preds = %171
  store i32 30, ptr %7, align 4
  br label %192

177:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #5
  %178 = load ptr, ptr %23, align 8, !tbaa !5
  %179 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3HIR17EncodedLiteralPtrdeEv(ptr noundef nonnull align 8 dereferenceable(8) %178)
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(48) %179)
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #5
  %180 = load ptr, ptr %24, align 8, !tbaa !5
  %181 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3HIR17EncodedLiteralPtrdeEv(ptr noundef nonnull align 8 dereferenceable(8) %180)
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(48) %181)
  %182 = call noundef i32 @_Z3ordI19EncodedLiteralSliceE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #5
  store i32 %182, ptr %25, align 4, !tbaa !9
  %183 = load i32, ptr %25, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %187

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

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

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

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190
  store i8 0, ptr %22, align 1, !tbaa !11
  br label %171, !llvm.loop !25

192:                                              ; preds = %188, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  %193 = load i32, ptr %7, align 4
  switch i32 %193, label %196 [
    i32 30, label %194
  ]

194:                                              ; preds = %192
  br label %195

195:                                              ; preds = %194
  store i8 0, ptr %22, align 1, !tbaa !11
  br label %162, !llvm.loop !26

196:                                              ; preds = %192, %165
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  %197 = load i32, ptr %7, align 4
  switch i32 %197, label %201 [
    i32 27, label %198
  ]

198:                                              ; preds = %196
  br label %199

199:                                              ; preds = %198, %160, %124, %94, %51
  br label %200

200:                                              ; preds = %199
  store i8 0, ptr %8, align 1, !tbaa !11
  br label %47, !llvm.loop !27

201:                                              ; preds = %196, %158, %122, %92, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %202 = load i32, ptr %7, align 4
  switch i32 %202, label %205 [
    i32 5, label %203
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  store i8 0, ptr %8, align 1, !tbaa !11
  br label %41, !llvm.loop !28

205:                                              ; preds = %201, %44
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  %206 = load i32, ptr %7, align 4
  switch i32 %206, label %210 [
    i32 2, label %207
    i32 1, label %208
  ]

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

208:                                              ; preds = %207, %205, %38
  %209 = load i32, ptr %3, align 4
  ret i32 %209

210:                                              ; preds = %205, %38
  unreachable
}

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

; 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 @_ZNK3HIR24ConstGeneric_Unevaluated3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ordI19EncodedLiteralSliceE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #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 }

!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 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN3HIR12ConstGeneric9InferDataE", !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}


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

%struct.EncodedLiteralSlice = type { ptr, i64, i64 }

@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR12ConstGeneric3ordERKS0_ = external hidden unnamed_addr constant [60 x i8], align 1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3HIR12ConstGeneric3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %struct.EncodedLiteralSlice, align 8
  %4 = alloca %struct.EncodedLiteralSlice, align 8
  %5 = tail call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %6 = tail call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %7 = tail call noundef i32 @_ZL3ordii(i32 noundef %5, i32 noundef %6)
  %.not.not = icmp eq i32 %7, 0
  br i1 %.not.not, label %.lr.ph, label %.thread120

.lr.ph:                                           ; preds = %2
  %8 = tail call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  switch i32 %8, label %.thread120 [
    i32 0, label %22
    i32 1, label %.preheader.split
    i32 2, label %23
    i32 3, label %.preheader128.split
    i32 4, label %.preheader130.split
  ]

.preheader130.split:                              ; preds = %.lr.ph
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %11 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3HIR17EncodedLiteralPtrdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(48) %11)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  %12 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3HIR17EncodedLiteralPtrdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(48) %12)
  %13 = call noundef i32 @_Z3ordI19EncodedLiteralSliceE8OrderingRKT_S4_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  br label %.thread120, !llvm.loop !5

.preheader128.split:                              ; preds = %.lr.ph
  %14 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %15 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %16 = tail call noundef i32 @_Z3ordIN3HIR10GenericRefEE8OrderingRKT_S5_(ptr noundef nonnull align 8 dereferenceable(12) %14, ptr noundef nonnull align 8 dereferenceable(12) %15)
  br label %.thread120, !llvm.loop !7

.preheader.split:                                 ; preds = %.lr.ph
  %17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %19 = load i32, ptr %17, align 4, !tbaa !8
  %20 = load i32, ptr %18, align 4, !tbaa !8
  %21 = tail call noundef i32 @_ZL3ordjj(i32 noundef %19, i32 noundef %20)
  br label %.thread120, !llvm.loop !13

22:                                               ; preds = %.lr.ph
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 73, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR12ConstGeneric3ordERKS0_) #6
  unreachable

23:                                               ; preds = %.lr.ph
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %26 = tail call noundef ptr @_ZNKSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  %27 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  %28 = tail call noundef i32 @_ZNK3HIR24ConstGeneric_Unevaluated3ordERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %26, ptr noundef nonnull align 8 dereferenceable(64) %27)
  br label %.thread120

.thread120:                                       ; preds = %.preheader.split, %.preheader128.split, %.preheader130.split, %.lr.ph, %23, %2
  %.24 = phi i32 [ %7, %2 ], [ %28, %23 ], [ 0, %.lr.ph ], [ %21, %.preheader.split ], [ %16, %.preheader128.split ], [ %13, %.preheader130.split ]
  ret i32 %.24
}

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

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

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

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

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

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

attributes #0 = { mustprogress 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 }

!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 = distinct !{!7, !6}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN3HIR12ConstGeneric9InferDataE", !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = distinct !{!13, !6}


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