; LLVM IR from thepowersgang/mrustc :: src/macro_rules/eval.ll (ZN18MacroPatternStream4nextEv)

; 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.SimplePatEnt = type { i32, %"union.SimplePatEnt::DataUnion" }
%"union.SimplePatEnt::DataUnion" = type { %class.Token }
%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.42 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.42 = 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.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"struct.SimplePatEnt::Data_End" = type { i8 }
%"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.53 = type { i8 }
%"struct.std::pair.57" = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.54" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.MacroPatternStream = type { ptr, i64, i8, i8, %"class.std::vector.33", ptr, i64, %"class.std::vector", %"class.std::vector", %"class.std::map", i8, ptr }
%"class.std::vector.33" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, std::map<std::vector<unsigned int>, unsigned int>>, std::_Select1st<std::pair<const unsigned int, std::map<std::vector<unsigned int>, unsigned int>>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, std::map<std::vector<unsigned int>, unsigned int>>, std::_Select1st<std::pair<const unsigned int, std::map<std::vector<unsigned int>, unsigned int>>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.SimplePatEnt::Data_If" = type { i8, i64, %"class.std::vector.43" }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = type { %"struct.std::_Vector_base<SimplePatIfCheck, std::allocator<SimplePatIfCheck>>::_Vector_impl" }
%"struct.std::_Vector_base<SimplePatIfCheck, std::allocator<SimplePatIfCheck>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimplePatIfCheck, std::allocator<SimplePatIfCheck>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimplePatIfCheck, std::allocator<SimplePatIfCheck>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.SimplePatEnt::Data_Jump" = type { i64 }
%"struct.SimplePatEnt::Data_LoopStart" = type { i32 }

@__dso_handle = external hidden global i8
@.str.4 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZZN18MacroPatternStream4nextEvE3END = external hidden global %class.SimplePatEnt, align 8
@_ZGVZN18MacroPatternStream4nextEvE3END = external hidden global i64, align 8
@__PRETTY_FUNCTION__._ZN18MacroPatternStream4nextEv = external hidden unnamed_addr constant [47 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; 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: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZN18MacroPatternStream4nextEv(ptr noundef nonnull align 8 dereferenceable(192) %0) #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.SimplePatEnt::Data_End", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca %struct.Span, align 8
  %14 = alloca %"class.std::function", align 8
  %15 = alloca %class.anon.53, align 1
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca ptr, align 8
  %23 = alloca i8, align 1
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::pair.57", align 8
  %28 = alloca %"struct.std::pair.54", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8
  %30 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 10
  %31 = load i8, ptr %30, align 8, !tbaa !9, !range !32, !noundef !33
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %37

33:                                               ; preds = %1
  %34 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 10
  store i8 0, ptr %34, align 8, !tbaa !9
  %35 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 11
  %36 = load ptr, ptr %35, align 8, !tbaa !34
  store ptr %36, ptr %2, align 8
  br label %299

37:                                               ; preds = %1
  br label %38

38:                                               ; preds = %298, %296, %37
  %39 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 5
  %40 = load ptr, ptr %39, align 8, !tbaa !35
  %41 = icmp ne ptr %40, null
  br i1 %41, label %51, label %42

42:                                               ; preds = %38
  %43 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 2
  %44 = load i8, ptr %43, align 8, !tbaa !36, !range !32, !noundef !33
  %45 = trunc i8 %44 to i1
  br i1 %45, label %46, label %51

46:                                               ; preds = %42
  %47 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 4
  %48 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 3
  %49 = load i8, ptr %48, align 1, !tbaa !37, !range !32, !noundef !33
  %50 = trunc i8 %49 to i1
  call void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %47, i1 noundef zeroext %50)
  br label %51

51:                                               ; preds = %46, %42, %38
  %52 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 2
  store i8 0, ptr %52, align 8, !tbaa !36
  %53 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !38
  %55 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !39
  %57 = call noundef i64 @_ZNKSt6vectorI12SimplePatEntSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #0
  %58 = icmp eq i64 %54, %57
  br i1 %58, label %59, label %73

59:                                               ; preds = %51
  %60 = load atomic i8, ptr @_ZGVZN18MacroPatternStream4nextEvE3END acquire, align 8
  %61 = icmp eq i8 %60, 0
  br i1 %61, label %62, label %68, !prof !40

62:                                               ; preds = %59
  %63 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN18MacroPatternStream4nextEvE3END) #0
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %62
  invoke void @_ZN12SimplePatEnt8make_EndENS_8Data_EndE(ptr dead_on_unwind writable sret(%class.SimplePatEnt) align 8 @_ZZN18MacroPatternStream4nextEvE3END)
          to label %66 unwind label %69

66:                                               ; preds = %65
  %67 = call i32 @__cxa_atexit(ptr @_ZN12SimplePatEntD2Ev, ptr @_ZZN18MacroPatternStream4nextEvE3END, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN18MacroPatternStream4nextEvE3END) #0
  br label %68

68:                                               ; preds = %66, %62, %59
  store ptr @_ZZN18MacroPatternStream4nextEvE3END, ptr %2, align 8
  br label %299

69:                                               ; preds = %65
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %5, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %6, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZN18MacroPatternStream4nextEvE3END) #0
  br label %301

73:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #0
  %74 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !39
  %76 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !38
  %78 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI12SimplePatEntSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77) #0
  store ptr %78, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 5
  %80 = load ptr, ptr %79, align 8, !tbaa !35
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %103

82:                                               ; preds = %73
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = call noundef zeroext i1 @_ZNK12SimplePatEnt5is_IfEv(ptr noundef nonnull align 8 dereferenceable(96) %83)
  br i1 %84, label %85, label %103

85:                                               ; preds = %82
  %86 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 5
  %87 = load ptr, ptr %86, align 8, !tbaa !35
  %88 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 6
  %89 = load i64, ptr %88, align 8, !tbaa !41
  %90 = add i64 %89, 1
  store i64 %90, ptr %88, align 8, !tbaa !41
  %91 = call noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %87, i64 noundef %89)
  br i1 %91, label %92, label %98

92:                                               ; preds = %85
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK12SimplePatEnt5as_IfEv(ptr noundef nonnull align 8 dereferenceable(96) %93)
  %95 = getelementptr inbounds %"struct.SimplePatEnt::Data_If", ptr %94, i32 0, i32 1
  %96 = load i64, ptr %95, align 8, !tbaa !42
  %97 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 1
  store i64 %96, ptr %97, align 8, !tbaa !38
  br label %102

98:                                               ; preds = %85
  %99 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 1
  %100 = load i64, ptr %99, align 8, !tbaa !38
  %101 = add i64 %100, 1
  store i64 %101, ptr %99, align 8, !tbaa !38
  br label %102

102:                                              ; preds = %98, %92
  store i32 3, ptr %8, align 4
  br label %296, !llvm.loop !48

103:                                              ; preds = %82, %73
  %104 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 1
  %105 = load i64, ptr %104, align 8, !tbaa !38
  %106 = add i64 %105, 1
  store i64 %106, ptr %104, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #0
  store i8 1, ptr %9, align 1, !tbaa !50
  br label %107

107:                                              ; preds = %292, %103
  %108 = load i8, ptr %9, align 1, !tbaa !50, !range !32, !noundef !33
  %109 = trunc i8 %108 to i1
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  store i32 4, ptr %8, align 4
  br label %293

111:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #0
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %112, ptr %10, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %287, %111
  %114 = load i8, ptr %9, align 1, !tbaa !50, !range !32, !noundef !33
  %115 = trunc i8 %114 to i1
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  store i32 7, ptr %8, align 4
  br label %288

117:                                              ; preds = %113
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = call noundef i32 @_ZNK12SimplePatEnt3tagEv(ptr noundef nonnull align 8 dereferenceable(96) %118)
  switch i32 %119, label %121 [
    i32 0, label %120
    i32 1, label %129
    i32 5, label %162
    i32 2, label %184
    i32 3, label %206
    i32 4, label %228
  ]

120:                                              ; preds = %117
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.4, i32 noundef 375, ptr noundef @__PRETTY_FUNCTION__._ZN18MacroPatternStream4nextEv) #8
  unreachable

121:                                              ; preds = %117
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = call noundef zeroext i1 @_ZNK12SimplePatEnt5is_IfEv(ptr noundef nonnull align 8 dereferenceable(96) %122)
  br i1 %123, label %124, label %127

124:                                              ; preds = %121
  %125 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 2
  store i8 1, ptr %125, align 8, !tbaa !36
  %126 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 3
  store i8 0, ptr %126, align 1, !tbaa !37
  br label %127

127:                                              ; preds = %124, %121
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %128, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %288

129:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #0
  store i8 1, ptr %11, align 1, !tbaa !50
  br label %130

130:                                              ; preds = %160, %129
  %131 = load i8, ptr %11, align 1, !tbaa !50, !range !32, !noundef !33
  %132 = trunc i8 %131 to i1
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  br label %161

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #0
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK12SimplePatEnt6as_EndEv(ptr noundef nonnull align 8 dereferenceable(96) %135)
  store ptr %136, ptr %12, align 8, !tbaa !5
  br label %137

137:                                              ; preds = %157, %134
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = load i8, ptr %11, align 1, !tbaa !50, !range !32, !noundef !33
  %140 = trunc i8 %139 to i1
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #0
  br label %159

142:                                              ; preds = %137
  br label %143

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #0
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #0
  call void @"_ZNSt8functionIFvRSoEEC2IZN18MacroPatternStream4nextEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 1 dereferenceable(1) %15) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %14)
          to label %144 unwind label %147

144:                                              ; preds = %143
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  %145 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %145, ptr noundef @.str.8)
          to label %146 unwind label %151

146:                                              ; preds = %144
  call void @__cxa_throw(ptr %145, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

147:                                              ; preds = %143
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %5, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  br label %158

151:                                              ; preds = %144
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %5, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %6, align 4
  call void @__cxa_free_exception(ptr %145) #0
  br label %158

155:                                              ; No predecessors!
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  store i8 0, ptr %11, align 1, !tbaa !50
  br label %137, !llvm.loop !51

158:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  br label %290

159:                                              ; preds = %141
  br label %160

160:                                              ; preds = %159
  store i8 0, ptr %11, align 1, !tbaa !50
  br label %130, !llvm.loop !52

161:                                              ; preds = %133
  br label %286

162:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #0
  store i8 1, ptr %16, align 1, !tbaa !50
  br label %163

163:                                              ; preds = %182, %162
  %164 = load i8, ptr %16, align 1, !tbaa !50, !range !32, !noundef !33
  %165 = trunc i8 %164 to i1
  br i1 %165, label %167, label %166

166:                                              ; preds = %163
  store i32 19, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #0
  br label %183

167:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #0
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK12SimplePatEnt7as_JumpEv(ptr noundef nonnull align 8 dereferenceable(96) %168)
  store ptr %169, ptr %17, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %180, %167
  %171 = load ptr, ptr %17, align 8, !tbaa !5
  %172 = load i8, ptr %16, align 1, !tbaa !50, !range !32, !noundef !33
  %173 = trunc i8 %172 to i1
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  store i32 22, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #0
  br label %181

175:                                              ; preds = %170
  %176 = load ptr, ptr %17, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.SimplePatEnt::Data_Jump", ptr %176, i32 0, i32 0
  %178 = load i64, ptr %177, align 8, !tbaa !53
  %179 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 1
  store i64 %178, ptr %179, align 8, !tbaa !38
  br label %180

180:                                              ; preds = %175
  store i8 0, ptr %16, align 1, !tbaa !50
  br label %170, !llvm.loop !55

181:                                              ; preds = %174
  br label %182

182:                                              ; preds = %181
  store i8 0, ptr %16, align 1, !tbaa !50
  br label %163, !llvm.loop !56

183:                                              ; preds = %166
  br label %286

184:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #0
  store i8 1, ptr %18, align 1, !tbaa !50
  br label %185

185:                                              ; preds = %204, %184
  %186 = load i8, ptr %18, align 1, !tbaa !50, !range !32, !noundef !33
  %187 = trunc i8 %186 to i1
  br i1 %187, label %189, label %188

188:                                              ; preds = %185
  store i32 25, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #0
  br label %205

189:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #0
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12SimplePatEnt12as_LoopStartEv(ptr noundef nonnull align 8 dereferenceable(96) %190)
  store ptr %191, ptr %19, align 8, !tbaa !5
  br label %192

192:                                              ; preds = %202, %189
  %193 = load ptr, ptr %19, align 8, !tbaa !5
  %194 = load i8, ptr %18, align 1, !tbaa !50, !range !32, !noundef !33
  %195 = trunc i8 %194 to i1
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 28, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #0
  br label %203

197:                                              ; preds = %192
  %198 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 7
  %199 = load ptr, ptr %19, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.SimplePatEnt::Data_LoopStart", ptr %199, i32 0, i32 0
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %198, ptr noundef nonnull align 4 dereferenceable(4) %200)
  %201 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #0
  store i32 0, ptr %20, align 4, !tbaa !57
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %201, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #0
  br label %202

202:                                              ; preds = %197
  store i8 0, ptr %18, align 1, !tbaa !50
  br label %192, !llvm.loop !58

203:                                              ; preds = %196
  br label %204

204:                                              ; preds = %203
  store i8 0, ptr %18, align 1, !tbaa !50
  br label %185, !llvm.loop !59

205:                                              ; preds = %188
  br label %286

206:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #0
  store i8 1, ptr %21, align 1, !tbaa !50
  br label %207

207:                                              ; preds = %226, %206
  %208 = load i8, ptr %21, align 1, !tbaa !50, !range !32, !noundef !33
  %209 = trunc i8 %208 to i1
  br i1 %209, label %211, label %210

210:                                              ; preds = %207
  store i32 31, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #0
  br label %227

211:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #0
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  %213 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK12SimplePatEnt11as_LoopNextEv(ptr noundef nonnull align 8 dereferenceable(96) %212)
  store ptr %213, ptr %22, align 8, !tbaa !5
  br label %214

214:                                              ; preds = %224, %211
  %215 = load ptr, ptr %22, align 8, !tbaa !5
  %216 = load i8, ptr %21, align 1, !tbaa !50, !range !32, !noundef !33
  %217 = trunc i8 %216 to i1
  br i1 %217, label %219, label %218

218:                                              ; preds = %214
  store i32 34, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #0
  br label %225

219:                                              ; preds = %214
  %220 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 8
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %220) #0
  %222 = load i32, ptr %221, align 4, !tbaa !57
  %223 = add i32 %222, 1
  store i32 %223, ptr %221, align 4, !tbaa !57
  br label %224

224:                                              ; preds = %219
  store i8 0, ptr %21, align 1, !tbaa !50
  br label %214, !llvm.loop !60

225:                                              ; preds = %218
  br label %226

226:                                              ; preds = %225
  store i8 0, ptr %21, align 1, !tbaa !50
  br label %207, !llvm.loop !61

227:                                              ; preds = %210
  br label %286

228:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #0
  store i8 1, ptr %23, align 1, !tbaa !50
  br label %229

229:                                              ; preds = %284, %228
  %230 = load i8, ptr %23, align 1, !tbaa !50, !range !32, !noundef !33
  %231 = trunc i8 %230 to i1
  br i1 %231, label %233, label %232

232:                                              ; preds = %229
  store i32 37, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #0
  br label %285

233:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #0
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK12SimplePatEnt10as_LoopEndEv(ptr noundef nonnull align 8 dereferenceable(96) %234)
  store ptr %235, ptr %24, align 8, !tbaa !5
  br label %236

236:                                              ; preds = %282, %233
  %237 = load ptr, ptr %24, align 8, !tbaa !5
  %238 = load i8, ptr %23, align 1, !tbaa !50, !range !32, !noundef !33
  %239 = trunc i8 %238 to i1
  br i1 %239, label %241, label %240

240:                                              ; preds = %236
  store i32 40, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #0
  br label %283

241:                                              ; preds = %236
  %242 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 8
  %243 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %242) #0
  %244 = xor i1 %243, true
  br i1 %244, label %245, label %246

245:                                              ; preds = %241
  br label %248

246:                                              ; preds = %241
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.4, i32 noundef 395, ptr noundef @__PRETTY_FUNCTION__._ZN18MacroPatternStream4nextEv) #8
  unreachable

247:                                              ; No predecessors!
  br label %248

248:                                              ; preds = %247, %245
  %249 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 7
  %250 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %249) #0
  %251 = xor i1 %250, true
  br i1 %251, label %252, label %253

252:                                              ; preds = %248
  br label %255

253:                                              ; preds = %248
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.4, i32 noundef 396, ptr noundef @__PRETTY_FUNCTION__._ZN18MacroPatternStream4nextEv) #8
  unreachable

254:                                              ; No predecessors!
  br label %255

255:                                              ; preds = %254, %252
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #0
  %256 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 7
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %256) #0
  %258 = load i32, ptr %257, align 4, !tbaa !57
  store i32 %258, ptr %25, align 4, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #0
  %259 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 8
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %259) #0
  %261 = load i32, ptr %260, align 4, !tbaa !57
  store i32 %261, ptr %26, align 4, !tbaa !57
  %262 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 8
  call void @_ZNSt6vectorIjSaIjEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %262) #0
  %263 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 7
  call void @_ZNSt6vectorIjSaIjEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %263) #0
  %264 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 5
  %265 = load ptr, ptr %264, align 8, !tbaa !35
  %266 = icmp ne ptr %265, null
  br i1 %266, label %267, label %281

267:                                              ; preds = %255
  %268 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 9
  %269 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIjS_ISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEES3_IjESaIS5_IKjS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %268, ptr noundef nonnull align 4 dereferenceable(4) %25)
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #0
  %270 = getelementptr inbounds %class.MacroPatternStream, ptr %29, i32 0, i32 8
  call void @_ZSt9make_pairIRSt6vectorIjSaIjEERjESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind writable sret(%"struct.std::pair.57") align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %270, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %271 = invoke { ptr, i8 } @_ZNSt3mapISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEE6insertIS5_IS2_jEEENSt9enable_ifIXsr16is_constructibleIS7_T_EE5valueES5_ISt17_Rb_tree_iteratorIS7_EbEE4typeEOSD_(ptr noundef nonnull align 8 dereferenceable(48) %269, ptr noundef nonnull align 8 dereferenceable(28) %27)
          to label %272 unwind label %277

272:                                              ; preds = %267
  %273 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %274 = extractvalue { ptr, i8 } %271, 0
  store ptr %274, ptr %273, align 8
  %275 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %276 = extractvalue { ptr, i8 } %271, 1
  store i8 %276, ptr %275, align 8
  call void @_ZNSt4pairISt6vectorIjSaIjEEjED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %27) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #0
  br label %281

277:                                              ; preds = %267
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %5, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %6, align 4
  call void @_ZNSt4pairISt6vectorIjSaIjEEjED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %27) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #0
  br label %290

281:                                              ; preds = %272, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #0
  br label %282

282:                                              ; preds = %281
  store i8 0, ptr %23, align 1, !tbaa !50
  br label %236, !llvm.loop !62

283:                                              ; preds = %240
  br label %284

284:                                              ; preds = %283
  store i8 0, ptr %23, align 1, !tbaa !50
  br label %229, !llvm.loop !63

285:                                              ; preds = %232
  br label %286

286:                                              ; preds = %285, %227, %205, %183, %161
  br label %287

287:                                              ; preds = %286
  store i8 0, ptr %9, align 1, !tbaa !50
  br label %113, !llvm.loop !64

288:                                              ; preds = %127, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  %289 = load i32, ptr %8, align 4
  switch i32 %289, label %293 [
    i32 7, label %291
  ]

290:                                              ; preds = %277, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #0
  br label %301

291:                                              ; preds = %288
  br label %292

292:                                              ; preds = %291
  store i8 0, ptr %9, align 1, !tbaa !50
  br label %107, !llvm.loop !65

293:                                              ; preds = %288, %110
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #0
  %294 = load i32, ptr %8, align 4
  switch i32 %294, label %296 [
    i32 4, label %295
  ]

295:                                              ; preds = %293
  store i32 0, ptr %8, align 4
  br label %296

296:                                              ; preds = %295, %293, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #0
  %297 = load i32, ptr %8, align 4
  switch i32 %297, label %306 [
    i32 0, label %298
    i32 3, label %38
    i32 1, label %299
  ]

298:                                              ; preds = %296
  br label %38, !llvm.loop !48

299:                                              ; preds = %296, %68, %33
  %300 = load ptr, ptr %2, align 8
  ret ptr %300

301:                                              ; preds = %290, %69
  %302 = load ptr, ptr %5, align 8
  %303 = load i32, ptr %6, align 4
  %304 = insertvalue { ptr, i32 } poison, ptr %302, 0
  %305 = insertvalue { ptr, i32 } %304, i32 %303, 1
  resume { ptr, i32 } %305

306:                                              ; preds = %296
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #6 align 2

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

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12SimplePatEnt8make_EndENS_8Data_EndE(ptr dead_on_unwind noalias writable sret(%class.SimplePatEnt) align 8) #6 align 2

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

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI12SimplePatEntSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK12SimplePatEnt5as_IfEv(ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN18MacroPatternStream4nextEvE3$_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 dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK12SimplePatEnt7as_JumpEv(ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12SimplePatEnt12as_LoopStartEv(ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIjS_ISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEES3_IjESaIS5_IKjS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEE6insertIS5_IS2_jEEENSt9enable_ifIXsr16is_constructibleIS7_T_EE5valueES5_ISt17_Rb_tree_iteratorIS7_EbEE4typeEOSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(28)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRSt6vectorIjSaIjEERjESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.57") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #6

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

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { "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 = { 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 #7 = { 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 #8 = { noreturn nounwind }
attributes #9 = { 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, !12, i64 176}
!10 = !{!"_ZTS18MacroPatternStream", !6, i64 0, !11, i64 8, !12, i64 16, !12, i64 17, !13, i64 24, !6, i64 64, !11, i64 72, !20, i64 80, !20, i64 104, !24, i64 128, !12, i64 176, !6, i64 184}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIbSaIbEE", !14, i64 0}
!14 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !15, i64 0}
!15 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !17, i64 0, !17, i64 16, !6, i64 32}
!17 = !{!"_ZTSSt13_Bit_iterator", !18, i64 0}
!18 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !19, i64 8}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt3mapIjS_ISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEES3_IjESaIS5_IKjS9_EEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjSt3mapISt6vectorIjSaIjEEjSt4lessIS5_ESaIS0_IKS5_jEEEESt10_Select1stISC_ES6_IjESaISC_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjSt3mapISt6vectorIjSaIjEEjSt4lessIS5_ESaIS0_IKS5_jEEEESt10_Select1stISC_ES6_IjESaISC_EE13_Rb_tree_implISF_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessIjE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !11, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!10, !6, i64 184}
!35 = !{!10, !6, i64 64}
!36 = !{!10, !12, i64 16}
!37 = !{!10, !12, i64 17}
!38 = !{!10, !11, i64 8}
!39 = !{!10, !6, i64 0}
!40 = !{!"branch_weights", i32 1, i32 1048575}
!41 = !{!10, !11, i64 72}
!42 = !{!43, !11, i64 8}
!43 = !{!"_ZTSN12SimplePatEnt7Data_IfE", !12, i64 0, !11, i64 8, !44, i64 16}
!44 = !{!"_ZTSSt6vectorI16SimplePatIfCheckSaIS0_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseI16SimplePatIfCheckSaIS0_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseI16SimplePatIfCheckSaIS0_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseI16SimplePatIfCheckSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
!50 = !{!12, !12, i64 0}
!51 = distinct !{!51, !49}
!52 = distinct !{!52, !49}
!53 = !{!54, !11, i64 0}
!54 = !{!"_ZTSN12SimplePatEnt9Data_JumpE", !11, i64 0}
!55 = distinct !{!55, !49}
!56 = distinct !{!56, !49}
!57 = !{!19, !19, i64 0}
!58 = distinct !{!58, !49}
!59 = distinct !{!59, !49}
!60 = distinct !{!60, !49}
!61 = distinct !{!61, !49}
!62 = distinct !{!62, !49}
!63 = distinct !{!63, !49}
!64 = distinct !{!64, !49}
!65 = distinct !{!65, !49}


; 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.SimplePatEnt = type { i32, %"union.SimplePatEnt::DataUnion" }
%"union.SimplePatEnt::DataUnion" = type { %class.Token }
%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.42 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.42 = 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.38" }
%"struct.std::_Head_base.38" = 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.53 = type { i8 }
%"struct.std::pair.57" = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@__dso_handle = external hidden global i8
@.str.4 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZZN18MacroPatternStream4nextEvE3END = external hidden global %class.SimplePatEnt, align 8
@_ZGVZN18MacroPatternStream4nextEvE3END = external hidden global i64, align 8
@__PRETTY_FUNCTION__._ZN18MacroPatternStream4nextEv = external hidden unnamed_addr constant [47 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) 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 #3 align 2

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZN18MacroPatternStream4nextEv(ptr noundef nonnull align 8 dereferenceable(192) %0) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.Span, align 8
  %3 = alloca %"class.std::function", align 8
  %4 = alloca %class.anon.53, align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair.57", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 176
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !31, !noundef !32
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %21, label %.preheader92.split

.preheader92.split:                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = getelementptr inbounds i8, ptr %0, i64 17
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  %18 = getelementptr inbounds i8, ptr %0, i64 104
  %19 = getelementptr inbounds i8, ptr %0, i64 80
  %20 = getelementptr inbounds i8, ptr %0, i64 128
  br label %.loopexit91

21:                                               ; preds = %1
  store i8 0, ptr %9, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 184
  %23 = load ptr, ptr %22, align 8, !tbaa !33
  br label %.thread74

.loopexit91:                                      ; preds = %.loopexit91.backedge, %.preheader92.split
  %24 = load ptr, ptr %12, align 8, !tbaa !34
  %.not = icmp eq ptr %24, null
  br i1 %.not, label %25, label %31

25:                                               ; preds = %.loopexit91
  %26 = load i8, ptr %13, align 8, !tbaa !35, !range !31, !noundef !32
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %31

28:                                               ; preds = %25
  %29 = load i8, ptr %15, align 1, !tbaa !36, !range !31, !noundef !32
  %30 = trunc nuw i8 %29 to i1
  call void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %14, i1 noundef zeroext %30)
  br label %31

31:                                               ; preds = %28, %25, %.loopexit91
  store i8 0, ptr %13, align 8, !tbaa !35
  %32 = load i64, ptr %16, align 8, !tbaa !37
  %33 = load ptr, ptr %0, align 8, !tbaa !38
  %34 = call noundef i64 @_ZNKSt6vectorI12SimplePatEntSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  %35 = icmp eq i64 %32, %34
  br i1 %35, label %36, label %46

36:                                               ; preds = %31
  %37 = load atomic i8, ptr @_ZGVZN18MacroPatternStream4nextEvE3END acquire, align 8
  %38 = icmp eq i8 %37, 0
  br i1 %38, label %39, label %.thread74, !prof !39

39:                                               ; preds = %36
  %40 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN18MacroPatternStream4nextEvE3END) #8
  %.not62 = icmp eq i32 %40, 0
  br i1 %.not62, label %.thread74, label %41

41:                                               ; preds = %39
  invoke void @_ZN12SimplePatEnt8make_EndENS_8Data_EndE(ptr dead_on_unwind nonnull writable sret(%class.SimplePatEnt) align 8 @_ZZN18MacroPatternStream4nextEvE3END)
          to label %42 unwind label %44

42:                                               ; preds = %41
  %43 = call i32 @__cxa_atexit(ptr nonnull @_ZN12SimplePatEntD2Ev, ptr nonnull @_ZZN18MacroPatternStream4nextEvE3END, ptr nonnull @__dso_handle) #8
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN18MacroPatternStream4nextEvE3END) #8
  br label %.thread74

44:                                               ; preds = %41
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN18MacroPatternStream4nextEvE3END) #8
  br label %104

46:                                               ; preds = %31
  %47 = load ptr, ptr %0, align 8, !tbaa !38
  %48 = load i64, ptr %16, align 8, !tbaa !37
  %49 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI12SimplePatEntSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48) #8
  %50 = load ptr, ptr %12, align 8, !tbaa !34
  %.not57 = icmp eq ptr %50, null
  br i1 %.not57, label %.lr.ph, label %51

51:                                               ; preds = %46
  %52 = call noundef zeroext i1 @_ZNK12SimplePatEnt5is_IfEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  br i1 %52, label %53, label %.lr.ph

53:                                               ; preds = %51
  %54 = load ptr, ptr %12, align 8, !tbaa !34
  %55 = load i64, ptr %17, align 8, !tbaa !40
  %56 = add i64 %55, 1
  store i64 %56, ptr %17, align 8, !tbaa !40
  %57 = call noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %54, i64 noundef %55)
  br i1 %57, label %58, label %62

58:                                               ; preds = %53
  %59 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK12SimplePatEnt5as_IfEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = load i64, ptr %60, align 8, !tbaa !41
  br label %65

62:                                               ; preds = %53
  %63 = load i64, ptr %16, align 8, !tbaa !37
  %64 = add i64 %63, 1
  br label %65

65:                                               ; preds = %62, %58
  %storemerge = phi i64 [ %64, %62 ], [ %61, %58 ]
  store i64 %storemerge, ptr %16, align 8, !tbaa !37
  br label %.loopexit91.backedge

.lr.ph:                                           ; preds = %46, %51
  %66 = load i64, ptr %16, align 8, !tbaa !37
  %67 = add i64 %66, 1
  store i64 %67, ptr %16, align 8, !tbaa !37
  %68 = call noundef i32 @_ZNK12SimplePatEnt3tagEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  switch i32 %68, label %79 [
    i32 0, label %78
    i32 1, label %82
    i32 5, label %.preheader
    i32 2, label %.preheader83
    i32 3, label %.preheader85
    i32 4, label %.preheader87
  ]

.preheader87:                                     ; preds = %.lr.ph
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK12SimplePatEnt10as_LoopEndEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  %70 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br i1 %70, label %.split, label %91

.preheader85:                                     ; preds = %.lr.ph
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK12SimplePatEnt11as_LoopNextEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %73 = load i32, ptr %72, align 4, !tbaa !47
  %74 = add i32 %73, 1
  store i32 %74, ptr %72, align 4, !tbaa !47
  br label %.loopexit91.backedge

.preheader83:                                     ; preds = %.lr.ph
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12SimplePatEnt12as_LoopStartEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(4) %75)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store i32 0, ptr %5, align 4, !tbaa !47
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %.loopexit91.backedge

.preheader:                                       ; preds = %.lr.ph
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK12SimplePatEnt7as_JumpEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  %77 = load i64, ptr %76, align 8, !tbaa !48
  store i64 %77, ptr %16, align 8, !tbaa !37
  br label %.loopexit91.backedge

78:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.4, i32 noundef 375, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18MacroPatternStream4nextEv) #9
  unreachable

79:                                               ; preds = %.lr.ph
  %80 = call noundef zeroext i1 @_ZNK12SimplePatEnt5is_IfEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  br i1 %80, label %81, label %.thread74

81:                                               ; preds = %79
  store i8 1, ptr %13, align 8, !tbaa !35
  store i8 0, ptr %15, align 1, !tbaa !36
  br label %.thread74

82:                                               ; preds = %.lr.ph
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK12SimplePatEnt6as_EndEv(ptr noundef nonnull align 8 dereferenceable(96) %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @"_ZNSt8functionIFvRSoEEC2IZN18MacroPatternStream4nextEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %3)
          to label %84 unwind label %87

84:                                               ; preds = %82
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %85 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %85, ptr noundef nonnull @.str.8)
          to label %86 unwind label %89

86:                                               ; preds = %84
  call void @__cxa_throw(ptr nonnull %85, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
  unreachable

87:                                               ; preds = %82
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %104

89:                                               ; preds = %84
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %85) #8
  br label %104

.split:                                           ; preds = %.preheader87
  call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.4, i32 noundef 395, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18MacroPatternStream4nextEv) #9
  unreachable

91:                                               ; preds = %.preheader87
  %92 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br i1 %92, label %.split106, label %93

.split106:                                        ; preds = %91
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.4, i32 noundef 396, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18MacroPatternStream4nextEv) #9
  unreachable

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  %95 = load i32, ptr %94, align 4, !tbaa !47
  store i32 %95, ptr %6, align 4, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %97 = load i32, ptr %96, align 4, !tbaa !47
  store i32 %97, ptr %7, align 4, !tbaa !47
  call void @_ZNSt6vectorIjSaIjEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @_ZNSt6vectorIjSaIjEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  %98 = load ptr, ptr %12, align 8, !tbaa !34
  %.not58 = icmp eq ptr %98, null
  br i1 %.not58, label %..loopexit81_crit_edge, label %99

99:                                               ; preds = %93
  %100 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIjS_ISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEES3_IjESaIS5_IKjS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @_ZSt9make_pairIRSt6vectorIjSaIjEERjESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.57") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %101 = invoke { ptr, i8 } @_ZNSt3mapISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEE6insertIS5_IS2_jEEENSt9enable_ifIXsr16is_constructibleIS7_T_EE5valueES5_ISt17_Rb_tree_iteratorIS7_EbEE4typeEOSD_(ptr noundef nonnull align 8 dereferenceable(48) %100, ptr noundef nonnull align 8 dereferenceable(28) %8)
          to label %102 unwind label %.split108.split

102:                                              ; preds = %99
  call void @_ZNSt4pairISt6vectorIjSaIjEEjED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %..loopexit81_crit_edge

.split108.split:                                  ; preds = %99
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairISt6vectorIjSaIjEEjED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %104

..loopexit81_crit_edge:                           ; preds = %102, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %.loopexit91.backedge

.loopexit91.backedge:                             ; preds = %..loopexit81_crit_edge, %.preheader85, %.preheader83, %.preheader, %65
  br label %.loopexit91, !llvm.loop !50

.thread74:                                        ; preds = %81, %79, %36, %39, %42, %21
  %.5 = phi ptr [ %23, %21 ], [ @_ZZN18MacroPatternStream4nextEvE3END, %42 ], [ @_ZZN18MacroPatternStream4nextEvE3END, %39 ], [ @_ZZN18MacroPatternStream4nextEvE3END, %36 ], [ %49, %79 ], [ %49, %81 ]
  ret ptr %.5

104:                                              ; preds = %.split108.split, %89, %87, %44
  %.pn63 = phi { ptr, i32 } [ %45, %44 ], [ %103, %.split108.split ], [ %90, %89 ], [ %88, %87 ]
  resume { ptr, i32 } %.pn63
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #6 align 2

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12SimplePatEnt8make_EndENS_8Data_EndE(ptr dead_on_unwind noalias writable sret(%class.SimplePatEnt) align 8) local_unnamed_addr #6 align 2

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI12SimplePatEntSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK12SimplePatEnt5as_IfEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN18MacroPatternStream4nextEvE3$_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 dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK12SimplePatEnt7as_JumpEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12SimplePatEnt12as_LoopStartEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIjS_ISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEES3_IjESaIS5_IKjS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEE6insertIS5_IS2_jEEENSt9enable_ifIXsr16is_constructibleIS7_T_EE5valueES5_ISt17_Rb_tree_iteratorIS7_EbEE4typeEOSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRSt6vectorIjSaIjEERjESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.57") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

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

attributes #0 = { nofree nounwind }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { "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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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, !11, i64 176}
!6 = !{!"_ZTS18MacroPatternStream", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 17, !12, i64 24, !7, i64 64, !10, i64 72, !19, i64 80, !19, i64 104, !23, i64 128, !11, i64 176, !7, i64 184}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIbSaIbEE", !13, i64 0}
!13 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !14, i64 0}
!14 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !16, i64 0, !16, i64 16, !7, i64 32}
!16 = !{!"_ZTSSt13_Bit_iterator", !17, i64 0}
!17 = !{!"_ZTSSt18_Bit_iterator_base", !7, i64 0, !18, i64 8}
!18 = !{!"int", !8, i64 0}
!19 = !{!"_ZTSSt6vectorIjSaIjEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!23 = !{!"_ZTSSt3mapIjS_ISt6vectorIjSaIjEEjSt4lessIS2_ESaISt4pairIKS2_jEEES3_IjESaIS5_IKjS9_EEE", !24, i64 0}
!24 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjSt3mapISt6vectorIjSaIjEEjSt4lessIS5_ESaIS0_IKS5_jEEEESt10_Select1stISC_ES6_IjESaISC_EE", !25, i64 0}
!25 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjSt3mapISt6vectorIjSaIjEEjSt4lessIS5_ESaIS0_IKS5_jEEEESt10_Select1stISC_ES6_IjESaISC_EE13_Rb_tree_implISF_Lb1EEE", !26, i64 0, !28, i64 8}
!26 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !27, i64 0}
!27 = !{!"_ZTSSt4lessIjE"}
!28 = !{!"_ZTSSt15_Rb_tree_header", !29, i64 0, !10, i64 32}
!29 = !{!"_ZTSSt18_Rb_tree_node_base", !30, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!30 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!6, !7, i64 184}
!34 = !{!6, !7, i64 64}
!35 = !{!6, !11, i64 16}
!36 = !{!6, !11, i64 17}
!37 = !{!6, !10, i64 8}
!38 = !{!6, !7, i64 0}
!39 = !{!"branch_weights", i32 1, i32 1048575}
!40 = !{!6, !10, i64 72}
!41 = !{!42, !10, i64 8}
!42 = !{!"_ZTSN12SimplePatEnt7Data_IfE", !11, i64 0, !10, i64 8, !43, i64 16}
!43 = !{!"_ZTSSt6vectorI16SimplePatIfCheckSaIS0_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseI16SimplePatIfCheckSaIS0_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseI16SimplePatIfCheckSaIS0_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseI16SimplePatIfCheckSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!47 = !{!18, !18, i64 0}
!48 = !{!49, !10, i64 0}
!49 = !{!"_ZTSN12SimplePatEnt9Data_JumpE", !10, i64 0}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}


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