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

; 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.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.60 = type { ptr }
%"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_UfcsUnknown" = type { %"class.HIR::TypeRef", %class.RcString, %"struct.HIR::PathParams" }
%"struct.HIR::Path::Data::Data_UfcsInherent" = type { %"class.HIR::TypeRef", %class.RcString, %"struct.HIR::PathParams", %"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__._ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE = external hidden unnamed_addr constant [105 x i8], align 1
@__func__._ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8RcStringneERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %struct.Span, align 8
  %22 = alloca %"class.std::function", align 8
  %23 = alloca %class.anon.60, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i8, align 1
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i8, align 1
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8
  %35 = getelementptr inbounds %"class.HIR::Path", ptr %34, i32 0, i32 0
  %36 = call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %35)
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.HIR::Path", ptr %37, i32 0, i32 0
  %39 = call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %38)
  %40 = icmp ne i32 %36, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %4
  store i32 2, ptr %5, align 4
  br label %281

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

43:                                               ; preds = %276, %42
  %44 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %45 = trunc i8 %44 to i1
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  store i32 2, ptr %11, align 4
  br label %277

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %48 = getelementptr inbounds %"class.HIR::Path", ptr %34, i32 0, i32 0
  store ptr %48, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.HIR::Path", ptr %49, i32 0, i32 0
  store ptr %50, ptr %13, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %272, %47
  %52 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %53 = trunc i8 %52 to i1
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  store i32 5, ptr %11, align 4
  br label %273

55:                                               ; preds = %51
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %56)
  switch i32 %57, label %271 [
    i32 0, label %58
    i32 1, label %59
    i32 4, label %89
    i32 2, label %138
    i32 3, label %198
  ]

58:                                               ; preds = %55
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef 513, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE) #7
  unreachable

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

60:                                               ; preds = %85, %59
  %61 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %62 = trunc i8 %61 to i1
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 9, ptr %11, align 4
  br label %86

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %65)
  store ptr %66, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %67)
  store ptr %68, ptr %16, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %81, %64
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %73 = trunc i8 %72 to i1
  br i1 %73, label %75, label %74

74:                                               ; preds = %69
  store i32 12, ptr %11, align 4
  br label %82

75:                                               ; preds = %69
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = call noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR11GenericPathES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef nonnull align 8 dereferenceable(32) %78, ptr noundef nonnull align 8 dereferenceable(8) %79)
  store i32 %80, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %82

81:                                               ; No predecessors!
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %69, !llvm.loop !13

82:                                               ; preds = %75, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %83 = load i32, ptr %11, align 4
  switch i32 %83, label %86 [
    i32 12, label %84
  ]

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %60, !llvm.loop !15

86:                                               ; preds = %82, %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  %87 = load i32, ptr %11, align 4
  switch i32 %87, label %273 [
    i32 9, label %88
  ]

88:                                               ; preds = %86
  br label %271

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

90:                                               ; preds = %134, %89
  %91 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %92 = trunc i8 %91 to i1
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  store i32 15, ptr %11, align 4
  br label %135

94:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %95)
  store ptr %96, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %97)
  store ptr %98, ptr %19, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %130, %94
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %103 = trunc i8 %102 to i1
  br i1 %103, label %105, label %104

104:                                              ; preds = %99
  store i32 18, ptr %11, align 4
  br label %131

105:                                              ; preds = %99
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsUnknown", ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsUnknown", ptr %108, i32 0, i32 1
  %110 = call noundef zeroext i1 @_ZNK8RcStringneERKS_(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull align 8 dereferenceable(8) %109)
  br i1 %110, label %111, label %112

111:                                              ; preds = %105
  store i32 2, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %131

112:                                              ; preds = %105
  br label %113

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store ptr @__func__._ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %114)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %115 = getelementptr inbounds %class.anon.60, ptr %23, i32 0, i32 0
  store ptr %20, ptr %115, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS5_RKNS4_19ResolvePlaceholdersEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef %22)
          to label %116 unwind label %119

116:                                              ; preds = %113
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %117 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %117, ptr noundef @.str.21)
          to label %118 unwind label %123

118:                                              ; preds = %116
  call void @__cxa_throw(ptr %117, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
  unreachable

119:                                              ; preds = %113
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %24, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %25, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %127

123:                                              ; preds = %116
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %24, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %25, align 4
  call void @__cxa_free_exception(ptr %117) #6
  br label %127

127:                                              ; preds = %123, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %283

128:                                              ; No predecessors!
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  store i8 0, ptr %17, align 1, !tbaa !9
  br label %99, !llvm.loop !16

131:                                              ; preds = %111, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %132 = load i32, ptr %11, align 4
  switch i32 %132, label %135 [
    i32 18, label %133
  ]

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133
  store i8 0, ptr %17, align 1, !tbaa !9
  br label %90, !llvm.loop !17

135:                                              ; preds = %131, %93
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  %136 = load i32, ptr %11, align 4
  switch i32 %136, label %273 [
    i32 15, label %137
  ]

137:                                              ; preds = %135
  br label %271

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

139:                                              ; preds = %194, %138
  %140 = load i8, ptr %26, align 1, !tbaa !9, !range !11, !noundef !12
  %141 = trunc i8 %140 to i1
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  store i32 23, ptr %11, align 4
  br label %195

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %144)
  store ptr %145, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %146)
  store ptr %147, ptr %28, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %190, %143
  %149 = load ptr, ptr %27, align 8, !tbaa !5
  %150 = load ptr, ptr %28, align 8, !tbaa !5
  %151 = load i8, ptr %26, align 1, !tbaa !9, !range !11, !noundef !12
  %152 = trunc i8 %151 to i1
  br i1 %152, label %154, label %153

153:                                              ; preds = %148
  store i32 26, ptr %11, align 4
  br label %191

154:                                              ; preds = %148
  %155 = load ptr, ptr %27, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %155, i32 0, i32 1
  %157 = load ptr, ptr %28, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %157, i32 0, i32 1
  %159 = call noundef zeroext i1 @_ZNK8RcStringneERKS_(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef nonnull align 8 dereferenceable(8) %158)
  br i1 %159, label %160, label %161

160:                                              ; preds = %154
  store i32 2, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %191

161:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !18
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %27, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load ptr, ptr %28, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %166, i32 0, i32 0
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = call noundef i32 @_ZNK3HIR7TypeRef25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull align 8 dereferenceable(8) %168)
  switch i32 %169, label %172 [
    i32 2, label %170
    i32 1, label %171
    i32 0, label %172
  ]

170:                                              ; preds = %162
  store i32 2, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %189

171:                                              ; preds = %162
  store i32 1, ptr %29, align 4, !tbaa !18
  br label %172

172:                                              ; preds = %171, %162, %162
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = load ptr, ptr %27, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %177, i32 0, i32 2
  %179 = load ptr, ptr %28, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %179, i32 0, i32 2
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = call noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR10PathParamsES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef nonnull align 8 dereferenceable(24) %178, ptr noundef nonnull align 8 dereferenceable(24) %180, ptr noundef nonnull align 8 dereferenceable(8) %181)
  switch i32 %182, label %185 [
    i32 2, label %183
    i32 1, label %184
    i32 0, label %185
  ]

183:                                              ; preds = %175
  store i32 2, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %189

184:                                              ; preds = %175
  store i32 1, ptr %29, align 4, !tbaa !18
  br label %185

185:                                              ; preds = %184, %175, %175
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %29, align 4, !tbaa !18
  store i32 %188, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %189

189:                                              ; preds = %187, %183, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %191

190:                                              ; No predecessors!
  store i8 0, ptr %26, align 1, !tbaa !9
  br label %148, !llvm.loop !20

191:                                              ; preds = %189, %160, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  %192 = load i32, ptr %11, align 4
  switch i32 %192, label %195 [
    i32 26, label %193
  ]

193:                                              ; preds = %191
  br label %194

194:                                              ; preds = %193
  store i8 0, ptr %26, align 1, !tbaa !9
  br label %139, !llvm.loop !21

195:                                              ; preds = %191, %142
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  %196 = load i32, ptr %11, align 4
  switch i32 %196, label %273 [
    i32 23, label %197
  ]

197:                                              ; preds = %195
  br label %271

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

199:                                              ; preds = %267, %198
  %200 = load i8, ptr %30, align 1, !tbaa !9, !range !11, !noundef !12
  %201 = trunc i8 %200 to i1
  br i1 %201, label %203, label %202

202:                                              ; preds = %199
  store i32 35, ptr %11, align 4
  br label %268

203:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %204)
  store ptr %205, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %206)
  store ptr %207, ptr %32, align 8, !tbaa !5
  br label %208

208:                                              ; preds = %263, %203
  %209 = load ptr, ptr %31, align 8, !tbaa !5
  %210 = load ptr, ptr %32, align 8, !tbaa !5
  %211 = load i8, ptr %30, align 1, !tbaa !9, !range !11, !noundef !12
  %212 = trunc i8 %211 to i1
  br i1 %212, label %214, label %213

213:                                              ; preds = %208
  store i32 38, ptr %11, align 4
  br label %264

214:                                              ; preds = %208
  %215 = load ptr, ptr %31, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %215, i32 0, i32 2
  %217 = load ptr, ptr %32, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %217, i32 0, i32 2
  %219 = call noundef zeroext i1 @_ZNK8RcStringneERKS_(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef nonnull align 8 dereferenceable(8) %218)
  br i1 %219, label %220, label %221

220:                                              ; preds = %214
  store i32 2, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %264

221:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !18
  br label %222

222:                                              ; preds = %221
  %223 = load ptr, ptr %31, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %223, i32 0, i32 0
  %225 = load ptr, ptr %7, align 8, !tbaa !5
  %226 = load ptr, ptr %32, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %226, i32 0, i32 0
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = call noundef i32 @_ZNK3HIR7TypeRef25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef nonnull align 8 dereferenceable(8) %225, ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef nonnull align 8 dereferenceable(8) %228)
  switch i32 %229, label %232 [
    i32 2, label %230
    i32 1, label %231
    i32 0, label %232
  ]

230:                                              ; preds = %222
  store i32 2, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %262

231:                                              ; preds = %222
  store i32 1, ptr %33, align 4, !tbaa !18
  br label %232

232:                                              ; preds = %231, %222, %222
  br label %233

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233
  br label %235

235:                                              ; preds = %234
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = load ptr, ptr %31, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %237, i32 0, i32 1
  %239 = load ptr, ptr %32, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %239, i32 0, i32 1
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = call noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR11GenericPathES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef nonnull align 8 dereferenceable(32) %238, ptr noundef nonnull align 8 dereferenceable(32) %240, ptr noundef nonnull align 8 dereferenceable(8) %241)
  switch i32 %242, label %245 [
    i32 2, label %243
    i32 1, label %244
    i32 0, label %245
  ]

243:                                              ; preds = %235
  store i32 2, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %262

244:                                              ; preds = %235
  store i32 1, ptr %33, align 4, !tbaa !18
  br label %245

245:                                              ; preds = %244, %235, %235
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246
  br label %248

248:                                              ; preds = %247
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = load ptr, ptr %31, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %250, i32 0, i32 3
  %252 = load ptr, ptr %32, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %252, i32 0, i32 3
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = call noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR10PathParamsES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %249, ptr noundef nonnull align 8 dereferenceable(24) %251, ptr noundef nonnull align 8 dereferenceable(24) %253, ptr noundef nonnull align 8 dereferenceable(8) %254)
  switch i32 %255, label %258 [
    i32 2, label %256
    i32 1, label %257
    i32 0, label %258
  ]

256:                                              ; preds = %248
  store i32 2, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %262

257:                                              ; preds = %248
  store i32 1, ptr %33, align 4, !tbaa !18
  br label %258

258:                                              ; preds = %257, %248, %248
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %33, align 4, !tbaa !18
  store i32 %261, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %262

262:                                              ; preds = %260, %256, %243, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %264

263:                                              ; No predecessors!
  store i8 0, ptr %30, align 1, !tbaa !9
  br label %208, !llvm.loop !22

264:                                              ; preds = %262, %220, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  %265 = load i32, ptr %11, align 4
  switch i32 %265, label %268 [
    i32 38, label %266
  ]

266:                                              ; preds = %264
  br label %267

267:                                              ; preds = %266
  store i8 0, ptr %30, align 1, !tbaa !9
  br label %199, !llvm.loop !23

268:                                              ; preds = %264, %202
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  %269 = load i32, ptr %11, align 4
  switch i32 %269, label %273 [
    i32 35, label %270
  ]

270:                                              ; preds = %268
  br label %271

271:                                              ; preds = %270, %197, %137, %88, %55
  br label %272

272:                                              ; preds = %271
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %51, !llvm.loop !24

273:                                              ; preds = %268, %195, %135, %86, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %274 = load i32, ptr %11, align 4
  switch i32 %274, label %277 [
    i32 5, label %275
  ]

275:                                              ; preds = %273
  br label %276

276:                                              ; preds = %275
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %43, !llvm.loop !25

277:                                              ; preds = %273, %46
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  %278 = load i32, ptr %11, align 4
  switch i32 %278, label %288 [
    i32 2, label %279
    i32 1, label %281
  ]

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

281:                                              ; preds = %277, %41
  %282 = load i32, ptr %5, align 4
  ret i32 %282

283:                                              ; preds = %127
  %284 = load ptr, ptr %24, align 8
  %285 = load i32, ptr %25, align 4
  %286 = insertvalue { ptr, i32 } poison, ptr %284, 0
  %287 = insertvalue { ptr, i32 } %286, i32 %285, 1
  resume { ptr, i32 } %287

288:                                              ; preds = %277
  unreachable
}

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

declare void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS5_RKNS4_19ResolvePlaceholdersEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #4

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR10PathParamsES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), 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 = { "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 "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 }
attributes #8 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTSN3HIR7CompareE", !7, i64 0}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}


; 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.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.60 = type { ptr }

@.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__._ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE = external hidden unnamed_addr constant [105 x i8], align 1
@__func__._ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; 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 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)) 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 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #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)) local_unnamed_addr #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)) local_unnamed_addr #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)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca %struct.Span, align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.60, align 8
  %9 = tail call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %10 = tail call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %.not = icmp eq i32 %9, %10
  br i1 %.not, label %.preheader, label %59

.preheader:                                       ; preds = %4
  %11 = tail call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  switch i32 %11, label %.loopexit [
    i32 0, label %.split.us
    i32 1, label %.split119.us
    i32 4, label %.split121.us
    i32 2, label %.split123.us
    i32 3, label %.split125.us
  ], !llvm.loop !5

.split.us:                                        ; preds = %.preheader
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, i32 noundef 513, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE) #6
  unreachable

.split119.us:                                     ; preds = %.preheader
  %12 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %13 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %14 = tail call noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR11GenericPathES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %3)
  br label %59

.split121.us:                                     ; preds = %.preheader
  %15 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %16 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %17 = getelementptr inbounds i8, ptr %15, i64 8
  %18 = getelementptr inbounds i8, ptr %16, i64 8
  %19 = tail call noundef zeroext i1 @_ZNK8RcStringneERKS_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  br i1 %19, label %59, label %20

20:                                               ; preds = %.split121.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store ptr @__func__._ZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE, ptr %5, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store ptr %5, ptr %8, align 8, !tbaa !7
  call void @"_ZNSt8functionIFvRSoEEC2IZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS5_RKNS4_19ResolvePlaceholdersEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %7)
          to label %21 unwind label %24

21:                                               ; preds = %20
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %22 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull @.str.21)
          to label %23 unwind label %26

23:                                               ; preds = %21
  call void @__cxa_throw(ptr nonnull %22, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

24:                                               ; preds = %20
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %28

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %22) #7
  br label %28

28:                                               ; preds = %26, %24
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn

.split123.us:                                     ; preds = %.preheader
  %29 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %30 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %31 = getelementptr inbounds i8, ptr %29, i64 8
  %32 = getelementptr inbounds i8, ptr %30, i64 8
  %33 = tail call noundef zeroext i1 @_ZNK8RcStringneERKS_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
  br i1 %33, label %59, label %34

34:                                               ; preds = %.split123.us
  %35 = tail call noundef i32 @_ZNK3HIR7TypeRef25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %3)
  switch i32 %35, label %37 [
    i32 2, label %59
    i32 1, label %36
  ]

36:                                               ; preds = %34
  br label %37

37:                                               ; preds = %34, %36
  %.089 = phi i32 [ 0, %34 ], [ 1, %36 ]
  %38 = getelementptr inbounds i8, ptr %29, i64 16
  %39 = getelementptr inbounds i8, ptr %30, i64 16
  %40 = tail call noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR10PathParamsES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %.off = add i32 %40, -1
  %switch = icmp ult i32 %.off, 2
  %spec.select = select i1 %switch, i32 %40, i32 %.089
  br label %59

.split125.us:                                     ; preds = %.preheader
  %41 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %42 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %43 = getelementptr inbounds i8, ptr %41, i64 40
  %44 = getelementptr inbounds i8, ptr %42, i64 40
  %45 = tail call noundef zeroext i1 @_ZNK8RcStringneERKS_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44)
  br i1 %45, label %59, label %46

46:                                               ; preds = %.split125.us
  %47 = tail call noundef i32 @_ZNK3HIR7TypeRef25compare_with_placeholdersERK4SpanRKS0_RKNS_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %3)
  switch i32 %47, label %49 [
    i32 2, label %59
    i32 1, label %48
  ]

48:                                               ; preds = %46
  br label %49

49:                                               ; preds = %46, %48
  %.0 = phi i32 [ 0, %46 ], [ 1, %48 ]
  %50 = getelementptr inbounds i8, ptr %41, i64 8
  %51 = getelementptr inbounds i8, ptr %42, i64 8
  %52 = tail call noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR11GenericPathES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(8) %3)
  switch i32 %52, label %54 [
    i32 2, label %59
    i32 1, label %53
  ]

53:                                               ; preds = %49
  br label %54

54:                                               ; preds = %49, %53
  %.1 = phi i32 [ %.0, %49 ], [ 1, %53 ]
  %55 = getelementptr inbounds i8, ptr %41, i64 48
  %56 = getelementptr inbounds i8, ptr %42, i64 48
  %57 = tail call noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR10PathParamsES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %.off131 = add i32 %57, -1
  %switch132 = icmp ult i32 %.off131, 2
  %spec.select133 = select i1 %switch132, i32 %57, i32 %.1
  br label %59

.loopexit:                                        ; preds = %.preheader
  %58 = tail call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str, ptr %58, align 16, !tbaa !7
  tail call void @__cxa_throw(ptr nonnull %58, ptr nonnull @_ZTIPKc, ptr null) #8
  unreachable

59:                                               ; preds = %54, %37, %.split119.us, %.split121.us, %.split123.us, %34, %.split125.us, %49, %46, %4
  %.19 = phi i32 [ 2, %4 ], [ %52, %49 ], [ %47, %46 ], [ 2, %.split125.us ], [ %35, %34 ], [ 2, %.split123.us ], [ 2, %.split121.us ], [ %14, %.split119.us ], [ %spec.select, %37 ], [ %spec.select133, %54 ]
  ret i32 %.19
}

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

declare void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK3HIR4Path25compare_with_placeholdersERK4SpanRKS5_RKNS4_19ResolvePlaceholdersEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #4

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_125compare_with_placeholdersERK4SpanRKN3HIR10PathParamsES6_RKNS3_19ResolvePlaceholdersE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) 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 = { "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 "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 }
attributes #8 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}


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