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

; 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__._ZNK3HIR12ConstGenericeqERKS0_ = external hidden unnamed_addr constant [63 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 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 uwtable
define dso_local noundef zeroext i1 @_ZNK3HIR12ConstGenericeqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #3 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %struct.EncodedLiteralSlice, align 8
  %23 = alloca %struct.EncodedLiteralSlice, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8
  %25 = call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %28 = icmp ne i32 %25, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %172

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  store i8 1, ptr %6, align 1, !tbaa !9
  br label %31

31:                                               ; preds = %168, %30
  %32 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %33 = trunc i8 %32 to i1
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  store i32 2, ptr %7, align 4
  br label %169

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr %24, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %36, ptr %9, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %164, %35
  %38 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %39 = trunc i8 %38 to i1
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 5, ptr %7, align 4
  br label %165

41:                                               ; preds = %37
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  switch i32 %43, label %163 [
    i32 0, label %44
    i32 1, label %45
    i32 2, label %77
    i32 3, label %105
    i32 4, label %133
  ]

44:                                               ; preds = %41
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 61, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR12ConstGenericeqERKS0_) #7
  unreachable

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 1, ptr %10, align 1, !tbaa !9
  br label %46

46:                                               ; preds = %73, %45
  %47 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %48 = trunc i8 %47 to i1
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  store i32 9, ptr %7, align 4
  br label %74

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %51)
  store ptr %52, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  store ptr %54, ptr %12, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %69, %50
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %59 = trunc i8 %58 to i1
  br i1 %59, label %61, label %60

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

61:                                               ; preds = %55
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.HIR::ConstGeneric::InferData", ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 4, !tbaa !13
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.HIR::ConstGeneric::InferData", ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 4, !tbaa !13
  %68 = icmp eq i32 %64, %67
  store i1 %68, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %70

69:                                               ; No predecessors!
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %55, !llvm.loop !16

70:                                               ; preds = %61, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %71 = load i32, ptr %7, align 4
  switch i32 %71, label %74 [
    i32 12, label %72
  ]

72:                                               ; preds = %70
  br label %73

73:                                               ; preds = %72
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %46, !llvm.loop !18

74:                                               ; preds = %70, %49
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  %75 = load i32, ptr %7, align 4
  switch i32 %75, label %165 [
    i32 9, label %76
  ]

76:                                               ; preds = %74
  br label %163

77:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  store i8 1, ptr %13, align 1, !tbaa !9
  br label %78

78:                                               ; preds = %101, %77
  %79 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %80 = trunc i8 %79 to i1
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 15, ptr %7, align 4
  br label %102

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %83)
  store ptr %84, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %85)
  store ptr %86, ptr %15, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %97, %82
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %91 = trunc i8 %90 to i1
  br i1 %91, label %93, label %92

92:                                               ; preds = %87
  store i32 18, ptr %7, align 4
  br label %98

93:                                               ; preds = %87
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = call noundef zeroext i1 @_ZSteqIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_ES1_S3_EbRKSt10unique_ptrIT_T0_ERKS4_IT1_T2_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull align 8 dereferenceable(8) %95)
  store i1 %96, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %98

97:                                               ; No predecessors!
  store i8 0, ptr %13, align 1, !tbaa !9
  br label %87, !llvm.loop !19

98:                                               ; preds = %93, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %99 = load i32, ptr %7, align 4
  switch i32 %99, label %102 [
    i32 18, label %100
  ]

100:                                              ; preds = %98
  br label %101

101:                                              ; preds = %100
  store i8 0, ptr %13, align 1, !tbaa !9
  br label %78, !llvm.loop !20

102:                                              ; preds = %98, %81
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  %103 = load i32, ptr %7, align 4
  switch i32 %103, label %165 [
    i32 15, label %104
  ]

104:                                              ; preds = %102
  br label %163

105:                                              ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %106

106:                                              ; preds = %129, %105
  %107 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %108 = trunc i8 %107 to i1
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 21, ptr %7, align 4
  br label %130

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %111)
  store ptr %112, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %113)
  store ptr %114, ptr %18, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %125, %110
  %116 = load ptr, ptr %17, align 8, !tbaa !5
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  %118 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %119 = trunc i8 %118 to i1
  br i1 %119, label %121, label %120

120:                                              ; preds = %115
  store i32 24, ptr %7, align 4
  br label %126

121:                                              ; preds = %115
  %122 = load ptr, ptr %17, align 8, !tbaa !5
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = call noundef zeroext i1 @_ZNK3HIR10GenericRefeqERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %122, ptr noundef nonnull align 8 dereferenceable(12) %123)
  store i1 %124, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %126

125:                                              ; No predecessors!
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %115, !llvm.loop !21

126:                                              ; preds = %121, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %127 = load i32, ptr %7, align 4
  switch i32 %127, label %130 [
    i32 24, label %128
  ]

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %106, !llvm.loop !22

130:                                              ; preds = %126, %109
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  %131 = load i32, ptr %7, align 4
  switch i32 %131, label %165 [
    i32 21, label %132
  ]

132:                                              ; preds = %130
  br label %163

133:                                              ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 1, ptr %19, align 1, !tbaa !9
  br label %134

134:                                              ; preds = %159, %133
  %135 = load i8, ptr %19, align 1, !tbaa !9, !range !11, !noundef !12
  %136 = trunc i8 %135 to i1
  br i1 %136, label %138, label %137

137:                                              ; preds = %134
  store i32 27, ptr %7, align 4
  br label %160

138:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %139)
  store ptr %140, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %141)
  store ptr %142, ptr %21, align 8, !tbaa !5
  br label %143

143:                                              ; preds = %155, %138
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = load i8, ptr %19, align 1, !tbaa !9, !range !11, !noundef !12
  %147 = trunc i8 %146 to i1
  br i1 %147, label %149, label %148

148:                                              ; preds = %143
  store i32 30, ptr %7, align 4
  br label %156

149:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  %150 = load ptr, ptr %20, align 8, !tbaa !5
  %151 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3HIR17EncodedLiteralPtrdeEv(ptr noundef nonnull align 8 dereferenceable(8) %150)
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(48) %151)
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  %153 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3HIR17EncodedLiteralPtrdeEv(ptr noundef nonnull align 8 dereferenceable(8) %152)
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(48) %153)
  %154 = call noundef zeroext i1 @_ZNK19EncodedLiteralSliceeqERKS_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
  store i1 %154, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  store i32 1, ptr %7, align 4
  br label %156

155:                                              ; No predecessors!
  store i8 0, ptr %19, align 1, !tbaa !9
  br label %143, !llvm.loop !23

156:                                              ; preds = %149, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %157 = load i32, ptr %7, align 4
  switch i32 %157, label %160 [
    i32 30, label %158
  ]

158:                                              ; preds = %156
  br label %159

159:                                              ; preds = %158
  store i8 0, ptr %19, align 1, !tbaa !9
  br label %134, !llvm.loop !24

160:                                              ; preds = %156, %137
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  %161 = load i32, ptr %7, align 4
  switch i32 %161, label %165 [
    i32 27, label %162
  ]

162:                                              ; preds = %160
  br label %163

163:                                              ; preds = %162, %132, %104, %76, %41
  br label %164

164:                                              ; preds = %163
  store i8 0, ptr %6, align 1, !tbaa !9
  br label %37, !llvm.loop !25

165:                                              ; preds = %160, %130, %102, %74, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %166 = load i32, ptr %7, align 4
  switch i32 %166, label %169 [
    i32 5, label %167
  ]

167:                                              ; preds = %165
  br label %168

168:                                              ; preds = %167
  store i8 0, ptr %6, align 1, !tbaa !9
  br label %31, !llvm.loop !26

169:                                              ; preds = %165, %34
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  %170 = load i32, ptr %7, align 4
  switch i32 %170, label %174 [
    i32 2, label %171
    i32 1, label %172
  ]

171:                                              ; preds = %169
  store i1 true, ptr %3, align 1
  br label %172

172:                                              ; preds = %171, %169, %29
  %173 = load i1, ptr %3, align 1
  ret i1 %173

174:                                              ; preds = %169
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3HIR10GenericRefeqERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #3 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

declare noundef zeroext i1 @_ZNK19EncodedLiteralSliceeqERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

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 = { "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 #6 = { nounwind }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN3HIR12ConstGeneric9InferDataE", !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


; 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__._ZNK3HIR12ConstGenericeqERKS0_ = external hidden unnamed_addr constant [63 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 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 uwtable
define dso_local noundef zeroext i1 @_ZNK3HIR12ConstGenericeqERKS0_(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)
  %.not = icmp eq i32 %5, %6
  br i1 %.not, label %.preheader, label %.thread

.preheader:                                       ; preds = %2
  %7 = tail call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  switch i32 %7, label %.thread [
    i32 0, label %.split.us
    i32 1, label %.split82.us
    i32 2, label %.split84.us
    i32 3, label %.split87.us
    i32 4, label %.split90.us
  ], !llvm.loop !5

.split.us:                                        ; preds = %.preheader
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 61, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR12ConstGenericeqERKS0_) #6
  unreachable

.split82.us:                                      ; preds = %.preheader
  %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %9 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %10 = load i32, ptr %8, align 4, !tbaa !7
  %11 = load i32, ptr %9, align 4, !tbaa !7
  %12 = icmp eq i32 %10, %11
  br label %.thread

.split84.us:                                      ; preds = %.preheader
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %15 = tail call noundef zeroext i1 @_ZSteqIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_ES1_S3_EbRKSt10unique_ptrIT_T0_ERKS4_IT1_T2_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  br label %.thread

.split87.us:                                      ; preds = %.preheader
  %16 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %17 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %18 = tail call noundef zeroext i1 @_ZNK3HIR10GenericRefeqERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(12) %17)
  br label %.thread

.split90.us:                                      ; preds = %.preheader
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %20 = 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) #7
  %21 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3HIR17EncodedLiteralPtrdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(48) %21)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  %22 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3HIR17EncodedLiteralPtrdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(48) %22)
  %23 = call noundef zeroext i1 @_ZNK19EncodedLiteralSliceeqERKS_(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) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %.thread

.thread:                                          ; preds = %.preheader, %.split90.us, %.split87.us, %.split84.us, %.split82.us, %2
  %.17 = phi i1 [ false, %2 ], [ %23, %.split90.us ], [ %18, %.split87.us ], [ %15, %.split84.us ], [ %12, %.split82.us ], [ true, %.preheader ]
  ret i1 %.17
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3HIR10GenericRefeqERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 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

declare noundef zeroext i1 @_ZNK19EncodedLiteralSliceeqERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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


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