; LLVM IR from thepowersgang/mrustc :: src/parse/expr.ll (Z8Parse_TTR11TokenStreamb)

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

%class.Token = type { ptr, i32, %"class.Token::Data", %class.Position, %"class.Ident::Hygiene" }
%"class.Token::Data" = type { i32, %"union.Token::Data::DataUnion" }
%"union.Token::Data::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.Position = type { %struct.Span, %class.RcString, i32, i32 }
%struct.Span = type { ptr }
%class.RcString = type { ptr }
%"class.Ident::Hygiene" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%class.TokenTree = type { ptr, i32, %"class.Ident::Hygiene", %class.Token, %"class.std::vector.120" }
%"class.std::vector.120" = type { %"struct.std::_Vector_base.121" }
%"struct.std::_Vector_base.121" = type { %"struct.std::_Vector_base<TokenTree, std::allocator<TokenTree>>::_Vector_impl" }
%"struct.std::_Vector_base<TokenTree, std::allocator<TokenTree>>::_Vector_impl" = type { %"struct.std::_Vector_base<TokenTree, std::allocator<TokenTree>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TokenTree, std::allocator<TokenTree>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"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.195 = type { i8 }
%class.anon.197 = type { ptr }

@g_debug_indent_level = external global i32, align 4
@_ZTIN10ParseError10UnexpectedE = external constant ptr
@__func__._Z8Parse_TTR11TokenStreamb = external hidden unnamed_addr constant [9 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_Z13debug_enabledv() #1

declare void @_ZN11TokenStream8getTokenEv(ptr dead_on_unwind writable sret(%class.Token) align 8, ptr noundef nonnull align 8 dereferenceable(176)) #1

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

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

; Function Attrs: nounwind
declare void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: nounwind
declare void @_ZN10ParseError10UnexpectedD1Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4

declare void @_ZN11TokenStream7putbackE5Token(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2 align 2

declare void @_ZN10ParseError10UnexpectedC1ERK11TokenStreamRK5Token(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8Parse_TTR11TokenStreamb(ptr dead_on_unwind noalias writable sret(%class.TokenTree) align 8 %0, ptr noundef nonnull align 8 dereferenceable(176) %1, i1 noundef zeroext %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i1, align 1
  %8 = alloca %class.TraceLog, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::function", align 8
  %12 = alloca %class.anon.195, align 1
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %class.anon.197, align 8
  %15 = alloca i32, align 4
  %16 = alloca %class.Token, align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.TokenTree, align 8
  %19 = alloca %"class.Ident::Hygiene", align 8
  %20 = alloca %class.Token, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector.120", align 8
  %23 = alloca %class.TokenTree, align 8
  %24 = alloca %"class.Ident::Hygiene", align 8
  %25 = alloca %class.Token, align 8
  %26 = alloca %class.Token, align 8
  %27 = alloca %class.Token, align 8
  %28 = alloca %class.TokenTree, align 8
  %29 = alloca %class.TokenTree, align 8
  %30 = alloca %"class.Ident::Hygiene", align 8
  %31 = alloca %class.Token, align 8
  %32 = alloca %class.TokenTree, align 8
  %33 = alloca %"class.Ident::Hygiene", align 8
  %34 = alloca %"class.std::vector.120", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  %35 = zext i1 %2 to i8
  store i8 %35, ptr %6, align 1, !tbaa !9
  store i1 false, ptr %7, align 1
  call void @_ZN9TokenTreeC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %0)
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #7
  %36 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %37 unwind label %49

37:                                               ; preds = %3
  %38 = zext i1 %36 to i64
  %39 = select i1 %36, ptr @__func__._Z8Parse_TTR11TokenStreamb, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ8Parse_TTR11TokenStreambE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %40 = getelementptr inbounds %class.anon.197, ptr %14, i32 0, i32 0
  store ptr %0, ptr %40, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ8Parse_TTR11TokenStreambE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef %39, ptr noundef %11, ptr noundef %13)
          to label %41 unwind label %53

41:                                               ; preds = %37
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = invoke noundef i32 @_ZNK11TokenStream11get_editionEv(ptr noundef nonnull align 8 dereferenceable(176) %42)
          to label %44 unwind label %57

44:                                               ; preds = %41
  store i32 %43, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 88, ptr %16) #7
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11TokenStream8getTokenEv(ptr dead_on_unwind writable sret(%class.Token) align 8 %16, ptr noundef nonnull align 8 dereferenceable(176) %45)
          to label %46 unwind label %61

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 24, ptr %17, align 4, !tbaa !13
  %47 = invoke noundef i32 @_ZNK5Token4typeEv(ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %48 unwind label %65

48:                                               ; preds = %46
  switch i32 %47, label %80 [
    i32 23, label %69
    i32 29, label %70
    i32 25, label %71
    i32 1, label %72
    i32 0, label %72
    i32 24, label %72
    i32 30, label %72
    i32 26, label %72
  ]

49:                                               ; preds = %3
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %9, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %10, align 4
  br label %287

53:                                               ; preds = %37
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %9, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %287

57:                                               ; preds = %41
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %10, align 4
  br label %286

61:                                               ; preds = %44
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  br label %285

65:                                               ; preds = %98, %96, %94, %91, %88, %75, %46
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %284

69:                                               ; preds = %48
  store i32 24, ptr %17, align 4, !tbaa !13
  br label %123

70:                                               ; preds = %48
  store i32 30, ptr %17, align 4, !tbaa !13
  br label %123

71:                                               ; preds = %48
  store i32 26, ptr %17, align 4, !tbaa !13
  br label %123

72:                                               ; preds = %48, %48, %48, %48, %48
  %73 = call ptr @__cxa_allocate_exception(i64 96) #7
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN10ParseError10UnexpectedC1ERK11TokenStreamRK5Token(ptr noundef nonnull align 8 dereferenceable(96) %73, ptr noundef nonnull align 8 dereferenceable(176) %74, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %75 unwind label %76

75:                                               ; preds = %72
  invoke void @__cxa_throw(ptr %73, ptr @_ZTIN10ParseError10UnexpectedE, ptr @_ZN10ParseError10UnexpectedD1Ev) #8
          to label %295 unwind label %65

76:                                               ; preds = %72
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  call void @__cxa_free_exception(ptr %73) #7
  br label %284

80:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 136, ptr %18) #7
  %81 = load i32, ptr %15, align 4, !tbaa !11
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind writable sret(%"class.Ident::Hygiene") align 8 %19, ptr noundef nonnull align 8 dereferenceable(176) %82)
          to label %83 unwind label %101

83:                                               ; preds = %80
  invoke void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88) %20, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %84 unwind label %105

84:                                               ; preds = %83
  invoke void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneE5Token(ptr noundef nonnull align 8 dereferenceable(136) %18, i32 noundef %81, ptr noundef %19, ptr noundef %20)
          to label %85 unwind label %109

85:                                               ; preds = %84
  %86 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZN9TokenTreeaSEOS_(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(136) %18)
          to label %87 unwind label %113

87:                                               ; preds = %85
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %18) #7
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %20) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr %18) #7
  br label %88

88:                                               ; preds = %87
  %89 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %90 unwind label %65

90:                                               ; preds = %88
  br i1 %89, label %91, label %120

91:                                               ; preds = %90
  %92 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !15
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %92, ptr noundef @__func__._Z8Parse_TTR11TokenStreamb)
          to label %94 unwind label %65

94:                                               ; preds = %91
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull align 8 dereferenceable(136) %0)
          to label %96 unwind label %65

96:                                               ; preds = %94
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @_ZSt3decRSt8ios_base)
          to label %98 unwind label %65

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %100 unwind label %65

100:                                              ; preds = %98
  br label %120

101:                                              ; preds = %80
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %9, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %10, align 4
  br label %119

105:                                              ; preds = %83
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %9, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %10, align 4
  br label %118

109:                                              ; preds = %84
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %9, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %10, align 4
  br label %117

113:                                              ; preds = %85
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %18) #7
  br label %117

117:                                              ; preds = %113, %109
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %20) #7
  br label %118

118:                                              ; preds = %117, %105
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br label %119

119:                                              ; preds = %118, %101
  call void @llvm.lifetime.end.p0(i64 136, ptr %18) #7
  br label %284

120:                                              ; preds = %100, %90
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  store i1 true, ptr %7, align 1
  store i32 1, ptr %21, align 4
  br label %282

123:                                              ; preds = %71, %70, %69
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %124 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %125 = trunc i8 %124 to i1
  br i1 %125, label %152, label %126

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 136, ptr %23) #7
  %127 = load i32, ptr %15, align 4, !tbaa !11
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind writable sret(%"class.Ident::Hygiene") align 8 %24, ptr noundef nonnull align 8 dereferenceable(176) %128)
          to label %129 unwind label %133

129:                                              ; preds = %126
  invoke void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88) %25, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %130 unwind label %137

130:                                              ; preds = %129
  invoke void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneE5Token(ptr noundef nonnull align 8 dereferenceable(136) %23, i32 noundef %127, ptr noundef %24, ptr noundef %25)
          to label %131 unwind label %141

131:                                              ; preds = %130
  invoke void @_ZNSt6vectorI9TokenTreeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(136) %23)
          to label %132 unwind label %145

132:                                              ; preds = %131
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %23) #7
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %25) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr %23) #7
  br label %152

133:                                              ; preds = %126
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %9, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %10, align 4
  br label %151

137:                                              ; preds = %129
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %9, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %10, align 4
  br label %150

141:                                              ; preds = %130
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  br label %149

145:                                              ; preds = %131
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %23) #7
  br label %149

149:                                              ; preds = %145, %141
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %25) #7
  br label %150

150:                                              ; preds = %149, %137
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br label %151

151:                                              ; preds = %150, %133
  call void @llvm.lifetime.end.p0(i64 136, ptr %23) #7
  br label %281

152:                                              ; preds = %132, %123
  br label %153

153:                                              ; preds = %199, %152
  call void @llvm.lifetime.start.p0(i64 88, ptr %26) #7
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11TokenStream8getTokenEv(ptr dead_on_unwind writable sret(%class.Token) align 8 %26, ptr noundef nonnull align 8 dereferenceable(176) %154)
          to label %155 unwind label %176

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN5TokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(88) %16, ptr noundef nonnull align 8 dereferenceable(88) %26)
          to label %157 unwind label %180

157:                                              ; preds = %155
  %158 = invoke noundef i32 @_ZNK5Token4typeEv(ptr noundef nonnull align 8 dereferenceable(88) %156)
          to label %159 unwind label %180

159:                                              ; preds = %157
  %160 = load i32, ptr %17, align 4, !tbaa !13
  %161 = icmp ne i32 %158, %160
  br i1 %161, label %162, label %166

162:                                              ; preds = %159
  %163 = invoke noundef i32 @_ZNK5Token4typeEv(ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %164 unwind label %180

164:                                              ; preds = %162
  %165 = icmp ne i32 %163, 1
  br label %166

166:                                              ; preds = %164, %159
  %167 = phi i1 [ false, %159 ], [ %165, %164 ]
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %26) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %26) #7
  br i1 %167, label %168, label %213

168:                                              ; preds = %166
  %169 = invoke noundef i32 @_ZNK5Token4typeEv(ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %170 unwind label %185

170:                                              ; preds = %168
  %171 = icmp eq i32 %169, 0
  br i1 %171, label %172, label %193

172:                                              ; preds = %170
  %173 = call ptr @__cxa_allocate_exception(i64 96) #7
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN10ParseError10UnexpectedC1ERK11TokenStreamRK5Token(ptr noundef nonnull align 8 dereferenceable(96) %173, ptr noundef nonnull align 8 dereferenceable(176) %174, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %175 unwind label %189

175:                                              ; preds = %172
  invoke void @__cxa_throw(ptr %173, ptr @_ZTIN10ParseError10UnexpectedE, ptr @_ZN10ParseError10UnexpectedD1Ev) #8
          to label %295 unwind label %185

176:                                              ; preds = %153
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %9, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %10, align 4
  br label %184

180:                                              ; preds = %162, %157, %155
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %9, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %10, align 4
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %26) #7
  br label %184

184:                                              ; preds = %180, %176
  call void @llvm.lifetime.end.p0(i64 88, ptr %26) #7
  br label %281

185:                                              ; preds = %261, %259, %257, %254, %251, %193, %175, %168
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %9, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %10, align 4
  br label %281

189:                                              ; preds = %172
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  call void @__cxa_free_exception(ptr %173) #7
  br label %281

193:                                              ; preds = %170
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88) %27, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %195 unwind label %185

195:                                              ; preds = %193
  invoke void @_ZN11TokenStream7putbackE5Token(ptr noundef nonnull align 8 dereferenceable(176) %194, ptr noundef %27)
          to label %196 unwind label %200

196:                                              ; preds = %195
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %27) #7
  call void @llvm.lifetime.start.p0(i64 136, ptr %28) #7
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_Z8Parse_TTR11TokenStreamb(ptr dead_on_unwind writable sret(%class.TokenTree) align 8 %28, ptr noundef nonnull align 8 dereferenceable(176) %197, i1 noundef zeroext false)
          to label %198 unwind label %204

198:                                              ; preds = %196
  invoke void @_ZNSt6vectorI9TokenTreeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(136) %28)
          to label %199 unwind label %208

199:                                              ; preds = %198
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %28) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr %28) #7
  br label %153, !llvm.loop !19

200:                                              ; preds = %195
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %9, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %10, align 4
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %27) #7
  br label %281

204:                                              ; preds = %196
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %9, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %10, align 4
  br label %212

208:                                              ; preds = %198
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %9, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %10, align 4
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %28) #7
  br label %212

212:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 136, ptr %28) #7
  br label %281

213:                                              ; preds = %166
  %214 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %215 = trunc i8 %214 to i1
  br i1 %215, label %244, label %216

216:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 136, ptr %29) #7
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = invoke noundef i32 @_ZNK11TokenStream11get_editionEv(ptr noundef nonnull align 8 dereferenceable(176) %217)
          to label %219 unwind label %225

219:                                              ; preds = %216
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind writable sret(%"class.Ident::Hygiene") align 8 %30, ptr noundef nonnull align 8 dereferenceable(176) %220)
          to label %221 unwind label %225

221:                                              ; preds = %219
  invoke void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88) %31, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %222 unwind label %229

222:                                              ; preds = %221
  invoke void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneE5Token(ptr noundef nonnull align 8 dereferenceable(136) %29, i32 noundef %218, ptr noundef %30, ptr noundef %31)
          to label %223 unwind label %233

223:                                              ; preds = %222
  invoke void @_ZNSt6vectorI9TokenTreeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(136) %29)
          to label %224 unwind label %237

224:                                              ; preds = %223
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %29) #7
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %31) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr %29) #7
  br label %244

225:                                              ; preds = %219, %216
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %9, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %10, align 4
  br label %243

229:                                              ; preds = %221
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %9, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %10, align 4
  br label %242

233:                                              ; preds = %222
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %9, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %10, align 4
  br label %241

237:                                              ; preds = %223
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %9, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %10, align 4
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %29) #7
  br label %241

241:                                              ; preds = %237, %233
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %31) #7
  br label %242

242:                                              ; preds = %241, %229
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  br label %243

243:                                              ; preds = %242, %225
  call void @llvm.lifetime.end.p0(i64 136, ptr %29) #7
  br label %281

244:                                              ; preds = %224, %213
  call void @llvm.lifetime.start.p0(i64 136, ptr %32) #7
  %245 = load i32, ptr %15, align 4, !tbaa !11
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind writable sret(%"class.Ident::Hygiene") align 8 %33, ptr noundef nonnull align 8 dereferenceable(176) %246)
          to label %247 unwind label %264

247:                                              ; preds = %244
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  invoke void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneESt6vectorIS_SaIS_EE(ptr noundef nonnull align 8 dereferenceable(136) %32, i32 noundef %245, ptr noundef %33, ptr noundef %34)
          to label %248 unwind label %268

248:                                              ; preds = %247
  %249 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZN9TokenTreeaSEOS_(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(136) %32)
          to label %250 unwind label %272

250:                                              ; preds = %248
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %32) #7
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr %32) #7
  br label %251

251:                                              ; preds = %250
  %252 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %253 unwind label %185

253:                                              ; preds = %251
  br i1 %252, label %254, label %278

254:                                              ; preds = %253
  %255 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !15
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %255, ptr noundef @__func__._Z8Parse_TTR11TokenStreamb)
          to label %257 unwind label %185

257:                                              ; preds = %254
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef nonnull align 8 dereferenceable(136) %0)
          to label %259 unwind label %185

259:                                              ; preds = %257
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %258, ptr noundef @_ZSt3decRSt8ios_base)
          to label %261 unwind label %185

261:                                              ; preds = %259
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %263 unwind label %185

263:                                              ; preds = %261
  br label %278

264:                                              ; preds = %244
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %9, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %10, align 4
  br label %277

268:                                              ; preds = %247
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %9, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %10, align 4
  br label %276

272:                                              ; preds = %248
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %9, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %10, align 4
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %32) #7
  br label %276

276:                                              ; preds = %272, %268
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br label %277

277:                                              ; preds = %276, %264
  call void @llvm.lifetime.end.p0(i64 136, ptr %32) #7
  br label %281

278:                                              ; preds = %263, %253
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279
  store i1 true, ptr %7, align 1
  store i32 1, ptr %21, align 4
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  br label %282

281:                                              ; preds = %277, %243, %212, %200, %189, %185, %184, %151
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  br label %284

282:                                              ; preds = %280, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  %283 = load i1, ptr %7, align 1
  br i1 %283, label %289, label %288

284:                                              ; preds = %281, %119, %76, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #7
  br label %285

285:                                              ; preds = %284, %61
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #7
  br label %286

286:                                              ; preds = %285, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %287

287:                                              ; preds = %286, %53, %49
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %0) #7
  br label %290

288:                                              ; preds = %282
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %0) #7
  br label %289

289:                                              ; preds = %288, %282
  ret void

290:                                              ; preds = %287
  %291 = load ptr, ptr %9, align 8
  %292 = load i32, ptr %10, align 4
  %293 = insertvalue { ptr, i32 } poison, ptr %291, 0
  %294 = insertvalue { ptr, i32 } %293, i32 %292, 1
  resume { ptr, i32 } %294

295:                                              ; preds = %175, %75
  unreachable
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(136)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9TokenTreeC2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #2 align 2

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

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

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #1

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

declare void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind writable sret(%"class.Ident::Hygiene") align 8, ptr noundef nonnull align 8 dereferenceable(176)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneE5Token(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9TokenTreeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(136)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneESt6vectorIS_SaIS_EE(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint 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 #6 = { 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 #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 = !{!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 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3AST7EditionE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS10eTokenType", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; 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"

%class.Token = type { ptr, i32, %"class.Token::Data", %class.Position, %"class.Ident::Hygiene" }
%"class.Token::Data" = type { i32, %"union.Token::Data::DataUnion" }
%"union.Token::Data::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.Position = type { %struct.Span, %class.RcString, i32, i32 }
%struct.Span = type { ptr }
%class.RcString = type { ptr }
%"class.Ident::Hygiene" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%class.TokenTree = type { ptr, i32, %"class.Ident::Hygiene", %class.Token, %"class.std::vector.120" }
%"class.std::vector.120" = type { %"struct.std::_Vector_base.121" }
%"struct.std::_Vector_base.121" = type { %"struct.std::_Vector_base<TokenTree, std::allocator<TokenTree>>::_Vector_impl" }
%"struct.std::_Vector_base<TokenTree, std::allocator<TokenTree>>::_Vector_impl" = type { %"struct.std::_Vector_base<TokenTree, std::allocator<TokenTree>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TokenTree, std::allocator<TokenTree>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"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.195 = type { i8 }
%class.anon.197 = type { ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@_ZTIN10ParseError10UnexpectedE = external constant ptr
@__func__._Z8Parse_TTR11TokenStreamb = external hidden unnamed_addr constant [9 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

declare void @_ZN11TokenStream8getTokenEv(ptr dead_on_unwind writable sret(%class.Token) align 8, ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #1

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

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

; Function Attrs: nounwind
declare void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZN10ParseError10UnexpectedD1Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #4

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4

declare void @_ZN11TokenStream7putbackE5Token(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2 align 2

declare void @_ZN10ParseError10UnexpectedC1ERK11TokenStreamRK5Token(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8Parse_TTR11TokenStreamb(ptr dead_on_unwind noalias nonnull writable sret(%class.TokenTree) align 8 %0, ptr noundef nonnull align 8 dereferenceable(176) %1, i1 noundef zeroext %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.TraceLog, align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %class.anon.195, align 1
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.197, align 8
  %9 = alloca %class.Token, align 8
  %10 = alloca %class.TokenTree, align 8
  %11 = alloca %"class.Ident::Hygiene", align 8
  %12 = alloca %class.Token, align 8
  %13 = alloca %"class.std::vector.120", align 8
  %14 = alloca %class.TokenTree, align 8
  %15 = alloca %"class.Ident::Hygiene", align 8
  %16 = alloca %class.Token, align 8
  %17 = alloca %class.Token, align 8
  %18 = alloca %class.Token, align 8
  %19 = alloca %class.TokenTree, align 8
  %20 = alloca %class.TokenTree, align 8
  %21 = alloca %"class.Ident::Hygiene", align 8
  %22 = alloca %class.Token, align 8
  %23 = alloca %class.TokenTree, align 8
  %24 = alloca %"class.Ident::Hygiene", align 8
  %25 = alloca %"class.std::vector.120", align 8
  tail call void @_ZN9TokenTreeC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %0)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  %26 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %27 unwind label %33

27:                                               ; preds = %3
  %28 = select i1 %26, ptr @__func__._Z8Parse_TTR11TokenStreamb, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ8Parse_TTR11TokenStreambE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store ptr %0, ptr %8, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ8Parse_TTR11TokenStreambE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef %28, ptr noundef nonnull %5, ptr noundef nonnull %7)
          to label %29 unwind label %35

29:                                               ; preds = %27
  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 @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  %30 = call noundef i32 @_ZNK11TokenStream11get_editionEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %9) #7
  invoke void @_ZN11TokenStream8getTokenEv(ptr dead_on_unwind nonnull writable sret(%class.Token) align 8 %9, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %31 unwind label %37

31:                                               ; preds = %29
  %32 = call noundef i32 @_ZNK5Token4typeEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  switch i32 %32, label %48 [
    i32 23, label %76
    i32 29, label %41
    i32 25, label %42
    i32 1, label %43
    i32 0, label %43
    i32 24, label %43
    i32 30, label %43
    i32 26, label %43
  ]

33:                                               ; preds = %3
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %171

35:                                               ; preds = %27
  %36 = 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 @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %171

37:                                               ; preds = %29
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %170

39:                                               ; preds = %63, %61, %59, %56, %53, %45
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %169

41:                                               ; preds = %31
  br label %76

42:                                               ; preds = %31
  br label %76

43:                                               ; preds = %31, %31, %31, %31, %31
  %44 = call ptr @__cxa_allocate_exception(i64 96) #7
  invoke void @_ZN10ParseError10UnexpectedC1ERK11TokenStreamRK5Token(ptr noundef nonnull align 8 dereferenceable(96) %44, ptr noundef nonnull align 8 dereferenceable(176) %1, ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %45 unwind label %46

45:                                               ; preds = %43
  invoke void @__cxa_throw(ptr nonnull %44, ptr nonnull @_ZTIN10ParseError10UnexpectedE, ptr nonnull @_ZN10ParseError10UnexpectedD1Ev) #8
          to label %172 unwind label %39

46:                                               ; preds = %43
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %44) #7
  br label %169

48:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %10) #7
  invoke void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind nonnull writable sret(%"class.Ident::Hygiene") align 8 %11, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %49 unwind label %65

49:                                               ; preds = %48
  invoke void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88) %12, ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %50 unwind label %67

50:                                               ; preds = %49
  invoke void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneE5Token(ptr noundef nonnull align 8 dereferenceable(136) %10, i32 noundef %30, ptr noundef nonnull %11, ptr noundef nonnull %12)
          to label %51 unwind label %69

51:                                               ; preds = %50
  %52 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZN9TokenTreeaSEOS_(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(136) %10)
          to label %53 unwind label %71

53:                                               ; preds = %51
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %10) #7
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %12) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %10) #7
  %54 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %55 unwind label %39

55:                                               ; preds = %53
  br i1 %54, label %56, label %168

56:                                               ; preds = %55
  %57 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %57, ptr noundef nonnull @__func__._Z8Parse_TTR11TokenStreamb)
          to label %59 unwind label %39

59:                                               ; preds = %56
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(136) %0)
          to label %61 unwind label %39

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %63 unwind label %39

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %168 unwind label %39

65:                                               ; preds = %48
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %75

67:                                               ; preds = %49
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %74

69:                                               ; preds = %50
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %73

71:                                               ; preds = %51
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %10) #7
  br label %73

73:                                               ; preds = %71, %69
  %.pn56 = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %12) #7
  br label %74

74:                                               ; preds = %73, %67
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %73 ], [ %68, %67 ]
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br label %75

75:                                               ; preds = %74, %65
  %.pn56.pn.pn = phi { ptr, i32 } [ %.pn56.pn, %74 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %10) #7
  br label %169

76:                                               ; preds = %31, %42, %41
  %.0 = phi i32 [ 26, %42 ], [ 30, %41 ], [ 24, %31 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br i1 %2, label %.preheader, label %77

.preheader:                                       ; preds = %81, %76
  br label %93

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %14) #7
  invoke void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind nonnull writable sret(%"class.Ident::Hygiene") align 8 %15, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %78 unwind label %82

78:                                               ; preds = %77
  invoke void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88) %16, ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %79 unwind label %84

79:                                               ; preds = %78
  invoke void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneE5Token(ptr noundef nonnull align 8 dereferenceable(136) %14, i32 noundef %30, ptr noundef nonnull %15, ptr noundef nonnull %16)
          to label %80 unwind label %86

80:                                               ; preds = %79
  invoke void @_ZNSt6vectorI9TokenTreeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(136) %14)
          to label %81 unwind label %88

81:                                               ; preds = %80
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %14) #7
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %14) #7
  br label %.preheader

82:                                               ; preds = %77
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %92

84:                                               ; preds = %78
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %91

86:                                               ; preds = %79
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %80
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %14) #7
  br label %90

90:                                               ; preds = %88, %86
  %.pn = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #7
  br label %91

91:                                               ; preds = %90, %84
  %.pn.pn = phi { ptr, i32 } [ %.pn, %90 ], [ %85, %84 ]
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %92

92:                                               ; preds = %91, %82
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %91 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %14) #7
  br label %167

93:                                               ; preds = %.preheader, %117
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %17) #7
  invoke void @_ZN11TokenStream8getTokenEv(ptr dead_on_unwind nonnull writable sret(%class.Token) align 8 %17, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %94 unwind label %106

94:                                               ; preds = %93
  %95 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN5TokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(88) %9, ptr noundef nonnull align 8 dereferenceable(88) %17)
          to label %96 unwind label %108

96:                                               ; preds = %94
  %97 = call noundef i32 @_ZNK5Token4typeEv(ptr noundef nonnull align 8 dereferenceable(88) %95)
  %.not = icmp eq i32 %97, %.0
  br i1 %.not, label %.critedge, label %98

98:                                               ; preds = %96
  %99 = call noundef i32 @_ZNK5Token4typeEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %.not44 = icmp eq i32 %99, 1
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %17) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %17) #7
  br i1 %.not44, label %.loopexit, label %100

100:                                              ; preds = %98
  %101 = call noundef i32 @_ZNK5Token4typeEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %113

103:                                              ; preds = %100
  %104 = call ptr @__cxa_allocate_exception(i64 96) #7
  invoke void @_ZN10ParseError10UnexpectedC1ERK11TokenStreamRK5Token(ptr noundef nonnull align 8 dereferenceable(96) %104, ptr noundef nonnull align 8 dereferenceable(176) %1, ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %105 unwind label %111

105:                                              ; preds = %103
  invoke void @__cxa_throw(ptr nonnull %104, ptr nonnull @_ZTIN10ParseError10UnexpectedE, ptr nonnull @_ZN10ParseError10UnexpectedD1Ev) #8
          to label %172 unwind label %.loopexit.split-lp

106:                                              ; preds = %93
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %110

108:                                              ; preds = %94
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %17) #7
  br label %110

110:                                              ; preds = %108, %106
  %.pn42 = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %17) #7
  br label %167

.loopexit64:                                      ; preds = %113
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %167

.loopexit.split-lp:                               ; preds = %105, %146, %149, %152, %154, %156
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %167

111:                                              ; preds = %103
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %104) #7
  br label %167

113:                                              ; preds = %100
  invoke void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88) %18, ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %114 unwind label %.loopexit64

114:                                              ; preds = %113
  invoke void @_ZN11TokenStream7putbackE5Token(ptr noundef nonnull align 8 dereferenceable(176) %1, ptr noundef nonnull %18)
          to label %115 unwind label %118

115:                                              ; preds = %114
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %18) #7
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %19) #7
  invoke void @_Z8Parse_TTR11TokenStreamb(ptr dead_on_unwind nonnull writable sret(%class.TokenTree) align 8 %19, ptr noundef nonnull align 8 dereferenceable(176) %1, i1 noundef zeroext false)
          to label %116 unwind label %120

116:                                              ; preds = %115
  invoke void @_ZNSt6vectorI9TokenTreeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(136) %19)
          to label %117 unwind label %122

117:                                              ; preds = %116
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %19) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %19) #7
  br label %93, !llvm.loop !11

118:                                              ; preds = %114
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %18) #7
  br label %167

120:                                              ; preds = %115
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %124

122:                                              ; preds = %116
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %19) #7
  br label %124

124:                                              ; preds = %122, %120
  %.pn52 = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %19) #7
  br label %167

.critedge:                                        ; preds = %96
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %17) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %17) #7
  br label %.loopexit

.loopexit:                                        ; preds = %98, %.critedge
  br i1 %2, label %142, label %125

125:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %20) #7
  %126 = call noundef i32 @_ZNK11TokenStream11get_editionEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  invoke void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind nonnull writable sret(%"class.Ident::Hygiene") align 8 %21, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %127 unwind label %131

127:                                              ; preds = %125
  invoke void @_ZN5TokenC2EOS_(ptr noundef nonnull align 8 dereferenceable(88) %22, ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %128 unwind label %133

128:                                              ; preds = %127
  invoke void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneE5Token(ptr noundef nonnull align 8 dereferenceable(136) %20, i32 noundef %126, ptr noundef nonnull %21, ptr noundef nonnull %22)
          to label %129 unwind label %135

129:                                              ; preds = %128
  invoke void @_ZNSt6vectorI9TokenTreeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(136) %20)
          to label %130 unwind label %137

130:                                              ; preds = %129
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %20) #7
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %22) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %20) #7
  br label %142

131:                                              ; preds = %125
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %141

133:                                              ; preds = %127
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %140

135:                                              ; preds = %128
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %139

137:                                              ; preds = %129
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %20) #7
  br label %139

139:                                              ; preds = %137, %135
  %.pn45 = phi { ptr, i32 } [ %138, %137 ], [ %136, %135 ]
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %22) #7
  br label %140

140:                                              ; preds = %139, %133
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %139 ], [ %134, %133 ]
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %141

141:                                              ; preds = %140, %131
  %.pn45.pn.pn = phi { ptr, i32 } [ %.pn45.pn, %140 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %20) #7
  br label %167

142:                                              ; preds = %130, %.loopexit
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %23) #7
  invoke void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind nonnull writable sret(%"class.Ident::Hygiene") align 8 %24, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %143 unwind label %158

143:                                              ; preds = %142
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  invoke void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneESt6vectorIS_SaIS_EE(ptr noundef nonnull align 8 dereferenceable(136) %23, i32 noundef %30, ptr noundef nonnull %24, ptr noundef nonnull %25)
          to label %144 unwind label %160

144:                                              ; preds = %143
  %145 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZN9TokenTreeaSEOS_(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(136) %23)
          to label %146 unwind label %162

146:                                              ; preds = %144
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %23) #7
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %23) #7
  %147 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %148 unwind label %.loopexit.split-lp

148:                                              ; preds = %146
  br i1 %147, label %149, label %166

149:                                              ; preds = %148
  %150 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %150, ptr noundef nonnull @__func__._Z8Parse_TTR11TokenStreamb)
          to label %152 unwind label %.loopexit.split-lp

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull align 8 dereferenceable(136) %0)
          to label %154 unwind label %.loopexit.split-lp

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %156 unwind label %.loopexit.split-lp

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %166 unwind label %.loopexit.split-lp

158:                                              ; preds = %142
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %165

160:                                              ; preds = %143
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %164

162:                                              ; preds = %144
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %23) #7
  br label %164

164:                                              ; preds = %162, %160
  %.pn49 = phi { ptr, i32 } [ %163, %162 ], [ %161, %160 ]
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @_ZN5Ident7HygieneD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br label %165

165:                                              ; preds = %164, %158
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %164 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %23) #7
  br label %167

166:                                              ; preds = %156, %148
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %168

167:                                              ; preds = %.loopexit64, %.loopexit.split-lp, %165, %141, %124, %118, %111, %110, %92
  %.pn54 = phi { ptr, i32 } [ %112, %111 ], [ %.pn52, %124 ], [ %119, %118 ], [ %.pn49.pn, %165 ], [ %.pn45.pn.pn, %141 ], [ %.pn42, %110 ], [ %.pn.pn.pn, %92 ], [ %lpad.loopexit, %.loopexit64 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorI9TokenTreeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %169

168:                                              ; preds = %55, %63, %166
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  ret void

169:                                              ; preds = %167, %75, %46, %39
  %.pn60 = phi { ptr, i32 } [ %40, %39 ], [ %.pn56.pn.pn, %75 ], [ %47, %46 ], [ %.pn54, %167 ]
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #7
  br label %170

170:                                              ; preds = %169, %37
  %.pn60.pn = phi { ptr, i32 } [ %.pn60, %169 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  br label %171

171:                                              ; preds = %170, %35, %33
  %.pn60.pn.pn = phi { ptr, i32 } [ %.pn60.pn, %170 ], [ %36, %35 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %0) #7
  resume { ptr, i32 } %.pn60.pn.pn

172:                                              ; preds = %105, %45
  unreachable
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9TokenTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9TokenTreeC2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #2 align 2

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

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

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #1

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

declare void @_ZNK11TokenStream11get_hygieneEv(ptr dead_on_unwind writable sret(%"class.Ident::Hygiene") align 8, ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneE5Token(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9TokenTreeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9TokenTreeC2EN3AST7EditionEN5Ident7HygieneESt6vectorIS_SaIS_EE(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint 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 #6 = { 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 #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 = !{!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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass