; LLVM IR from thepowersgang/mrustc :: src/ast/ast.ll (ZNK3AST9Attribute22parse_paren_ident_listESt8functionIFvRK4Span8RcStringEE)

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

%struct.ParseState = type { i8, i8, i8, ptr, ptr, ptr }
%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.6" }
%"struct.std::_Head_base.6" = type { ptr }
%class.TTStream = type { %class.TokenStream, %"class.std::vector.21", %struct.Span, i32, ptr }
%class.TokenStream = type { ptr, i8, %class.Token, %"class.Ident::Hygiene", i32, %"class.std::vector.16", %struct.ParseState }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<TokenStream::LookaheadEnt, std::allocator<TokenStream::LookaheadEnt>>::_Vector_impl" }
%"struct.std::_Vector_base<TokenStream::LookaheadEnt, std::allocator<TokenStream::LookaheadEnt>>::_Vector_impl" = type { %"struct.std::_Vector_base<TokenStream::LookaheadEnt, std::allocator<TokenStream::LookaheadEnt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TokenStream::LookaheadEnt, std::allocator<TokenStream::LookaheadEnt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<std::pair<unsigned int, const TokenTree *>, std::allocator<std::pair<unsigned int, const TokenTree *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned int, const TokenTree *>, std::allocator<std::pair<unsigned int, const TokenTree *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned int, const TokenTree *>, std::allocator<std::pair<unsigned int, const TokenTree *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned int, const TokenTree *>, std::allocator<std::pair<unsigned int, const TokenTree *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.AST::Attribute" = type <{ %struct.Span, %"struct.AST::AttributeName", %class.TokenTree, i8, [7 x i8] }>
%"struct.AST::AttributeName" = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TokenTree = type { ptr, i32, %"class.Ident::Hygiene", %class.Token, %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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 }
%struct.Ident = type { %"class.Ident::Hygiene", %class.RcString }

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

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

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

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

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

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

declare void @_ZN8TTStreamC1E4Span10ParseStateRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef, ptr noundef byval(%struct.ParseState) align 8, ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #1

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

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

; Function Attrs: nounwind
declare void @_ZN8TTStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3AST9Attribute22parse_paren_ident_listESt8functionIFvRK4Span8RcStringEE(ptr noundef nonnull align 8 dereferenceable(169) %0, ptr noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.TTStream, align 8
  %6 = alloca %struct.Span, align 8
  %7 = alloca %struct.ParseState, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %class.Token, align 8
  %11 = alloca %struct.Span, align 8
  %12 = alloca %class.RcString, align 8
  %13 = alloca %class.Token, align 8
  %14 = alloca %class.Token, align 8
  %15 = alloca %class.Token, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 224, ptr %5) #5
  %17 = getelementptr inbounds %"class.AST::Attribute", ptr %16, i32 0, i32 0
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %17)
  invoke void @_ZN10ParseStateC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %18 unwind label %39

18:                                               ; preds = %2
  %19 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZNK3AST9Attribute4dataEv(ptr noundef nonnull align 8 dereferenceable(169) %16)
          to label %20 unwind label %39

20:                                               ; preds = %18
  invoke void @_ZN8TTStreamC1E4Span10ParseStateRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef %6, ptr noundef byval(%struct.ParseState) align 8 %7, ptr noundef nonnull align 8 dereferenceable(136) %19)
          to label %21 unwind label %39

21:                                               ; preds = %20
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind writable sret(%class.Token) align 8 %10, ptr noundef nonnull align 8 dereferenceable(176) %5, i32 noundef 23)
          to label %22 unwind label %43

22:                                               ; preds = %21
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %10) #5
  br label %23

23:                                               ; preds = %67, %22
  %24 = invoke noundef i32 @_ZN11TokenStream9lookaheadEj(ptr noundef nonnull align 8 dereferenceable(176) %5, i32 noundef 0)
          to label %25 unwind label %43

25:                                               ; preds = %23
  %26 = icmp ne i32 %24, 24
  br i1 %26, label %27, label %68

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  invoke void @_ZNK11TokenStream10point_spanEv(ptr dead_on_unwind writable sret(%struct.Span) align 8 %11, ptr noundef nonnull align 8 dereferenceable(176) %5)
          to label %28 unwind label %47

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #5
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind writable sret(%class.Token) align 8 %13, ptr noundef nonnull align 8 dereferenceable(176) %5, i32 noundef 14)
          to label %29 unwind label %51

29:                                               ; preds = %28
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5Token5identEv(ptr noundef nonnull align 8 dereferenceable(88) %13)
          to label %31 unwind label %55

31:                                               ; preds = %29
  %32 = getelementptr inbounds %struct.Ident, ptr %30, i32 0, i32 1
  invoke void @_ZN8RcStringC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %33 unwind label %55

33:                                               ; preds = %31
  invoke void @_ZNKSt8functionIFvRK4Span8RcStringEEclES2_S3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %12)
          to label %34 unwind label %59

34:                                               ; preds = %33
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %13) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #5
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %35 = invoke noundef i32 @_ZN11TokenStream9lookaheadEj(ptr noundef nonnull align 8 dereferenceable(176) %5, i32 noundef 0)
          to label %36 unwind label %43

36:                                               ; preds = %34
  %37 = icmp ne i32 %35, 31
  br i1 %37, label %38, label %66

38:                                               ; preds = %36
  br label %68

39:                                               ; preds = %20, %18, %2
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %8, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %9, align 4
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %71

43:                                               ; preds = %68, %66, %34, %23, %21
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %8, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %9, align 4
  br label %70

47:                                               ; preds = %27
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %8, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %9, align 4
  br label %65

51:                                               ; preds = %28
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %8, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %9, align 4
  br label %64

55:                                               ; preds = %31, %29
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %8, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %9, align 4
  br label %63

59:                                               ; preds = %33
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %63

63:                                               ; preds = %59, %55
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %13) #5
  br label %64

64:                                               ; preds = %63, %51
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #5
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %65

65:                                               ; preds = %64, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %70

66:                                               ; preds = %36
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind writable sret(%class.Token) align 8 %14, ptr noundef nonnull align 8 dereferenceable(176) %5, i32 noundef 31)
          to label %67 unwind label %43

67:                                               ; preds = %66
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %14) #5
  br label %23, !llvm.loop !9

68:                                               ; preds = %38, %25
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind writable sret(%class.Token) align 8 %15, ptr noundef nonnull align 8 dereferenceable(176) %5, i32 noundef 24)
          to label %69 unwind label %43

69:                                               ; preds = %68
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %15) #5
  call void @_ZN8TTStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #5
  call void @llvm.lifetime.end.p0(i64 224, ptr %5) #5
  ret void

70:                                               ; preds = %65, %43
  call void @_ZN8TTStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #5
  br label %71

71:                                               ; preds = %70, %39
  call void @llvm.lifetime.end.p0(i64 224, ptr %5) #5
  br label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %8, align 8
  %74 = load i32, ptr %9, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

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

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

declare void @_ZNK11TokenStream10point_spanEv(ptr dead_on_unwind writable sret(%struct.Span) align 8, ptr noundef nonnull align 8 dereferenceable(176)) #1

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

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

; Function Attrs: nounwind
declare void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #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 = { 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 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"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"

%struct.ParseState = type { i8, i8, i8, ptr, ptr, ptr }
%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.6" }
%"struct.std::_Head_base.6" = type { ptr }
%class.TTStream = type { %class.TokenStream, %"class.std::vector.21", %struct.Span, i32, ptr }
%class.TokenStream = type { ptr, i8, %class.Token, %"class.Ident::Hygiene", i32, %"class.std::vector.16", %struct.ParseState }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<TokenStream::LookaheadEnt, std::allocator<TokenStream::LookaheadEnt>>::_Vector_impl" }
%"struct.std::_Vector_base<TokenStream::LookaheadEnt, std::allocator<TokenStream::LookaheadEnt>>::_Vector_impl" = type { %"struct.std::_Vector_base<TokenStream::LookaheadEnt, std::allocator<TokenStream::LookaheadEnt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TokenStream::LookaheadEnt, std::allocator<TokenStream::LookaheadEnt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<std::pair<unsigned int, const TokenTree *>, std::allocator<std::pair<unsigned int, const TokenTree *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned int, const TokenTree *>, std::allocator<std::pair<unsigned int, const TokenTree *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned int, const TokenTree *>, std::allocator<std::pair<unsigned int, const TokenTree *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned int, const TokenTree *>, std::allocator<std::pair<unsigned int, const TokenTree *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(136) ptr @_ZNK3AST9Attribute4dataEv(ptr noundef nonnull align 8 dereferenceable(169)) local_unnamed_addr #3 align 2

declare void @_ZN8TTStreamC1E4Span10ParseStateRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef, ptr noundef byval(%struct.ParseState) align 8, ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #1

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

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

; Function Attrs: nounwind
declare void @_ZN8TTStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3AST9Attribute22parse_paren_ident_listESt8functionIFvRK4Span8RcStringEE(ptr noundef nonnull align 8 dereferenceable(169) %0, ptr noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.TTStream, align 8
  %4 = alloca %struct.Span, align 8
  %5 = alloca %struct.ParseState, align 8
  %6 = alloca %class.Token, align 8
  %7 = alloca %struct.Span, align 8
  %8 = alloca %class.RcString, align 8
  %9 = alloca %class.Token, align 8
  %10 = alloca %class.Token, align 8
  %11 = alloca %class.Token, align 8
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %3) #5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @_ZN10ParseStateC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %12 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNK3AST9Attribute4dataEv(ptr noundef nonnull align 8 dereferenceable(169) %0)
  invoke void @_ZN8TTStreamC1E4Span10ParseStateRK9TokenTree(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull %4, ptr noundef nonnull byval(%struct.ParseState) align 8 %5, ptr noundef nonnull align 8 dereferenceable(136) %12)
          to label %13 unwind label %37

13:                                               ; preds = %2
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind nonnull writable sret(%class.Token) align 8 %6, ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 23)
          to label %.preheader.peel unwind label %.loopexit.split-lp

.preheader.peel:                                  ; preds = %13
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #5
  %14 = invoke noundef i32 @_ZN11TokenStream9lookaheadEj(ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 0)
          to label %15 unwind label %.loopexit.loopexit.split-lp

15:                                               ; preds = %.preheader.peel
  %.not.peel = icmp eq i32 %14, 24
  br i1 %.not.peel, label %.loopexit17, label %16

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  invoke void @_ZNK11TokenStream10point_spanEv(ptr dead_on_unwind nonnull writable sret(%struct.Span) align 8 %7, ptr noundef nonnull align 8 dereferenceable(176) %3)
          to label %17 unwind label %.loopexit.split-lp19

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %9) #5
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind nonnull writable sret(%class.Token) align 8 %9, ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 14)
          to label %18 unwind label %.loopexit.split-lp23

18:                                               ; preds = %17
  %19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5Token5identEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %20 unwind label %.loopexit.split-lp28

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %19, i64 8
  call void @_ZN8RcStringC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %21)
  invoke void @_ZNKSt8functionIFvRK4Span8RcStringEEclES2_S3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %8)
          to label %22 unwind label %.loopexit.split-lp33

22:                                               ; preds = %20
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #5
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %23 = invoke noundef i32 @_ZN11TokenStream9lookaheadEj(ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 0)
          to label %24 unwind label %.loopexit.loopexit.split-lp

24:                                               ; preds = %22
  %.not10.peel = icmp eq i32 %23, 31
  br i1 %.not10.peel, label %25, label %.loopexit17

25:                                               ; preds = %24
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind nonnull writable sret(%class.Token) align 8 %10, ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 31)
          to label %.preheader unwind label %.loopexit.loopexit.split-lp

.preheader:                                       ; preds = %25, %43
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %10) #5
  %26 = invoke noundef i32 @_ZN11TokenStream9lookaheadEj(ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 0)
          to label %27 unwind label %.loopexit.loopexit

27:                                               ; preds = %.preheader
  %.not = icmp eq i32 %26, 24
  br i1 %.not, label %.loopexit17, label %28

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  invoke void @_ZNK11TokenStream10point_spanEv(ptr dead_on_unwind nonnull writable sret(%struct.Span) align 8 %7, ptr noundef nonnull align 8 dereferenceable(176) %3)
          to label %29 unwind label %.loopexit18

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %9) #5
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind nonnull writable sret(%class.Token) align 8 %9, ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 14)
          to label %30 unwind label %.loopexit22

30:                                               ; preds = %29
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5Token5identEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %32 unwind label %.loopexit27

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %31, i64 8
  call void @_ZN8RcStringC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %33)
  invoke void @_ZNKSt8functionIFvRK4Span8RcStringEEclES2_S3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %8)
          to label %34 unwind label %.loopexit32

34:                                               ; preds = %32
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #5
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %35 = invoke noundef i32 @_ZN11TokenStream9lookaheadEj(ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 0)
          to label %36 unwind label %.loopexit.loopexit

36:                                               ; preds = %34
  %.not10 = icmp eq i32 %35, 31
  br i1 %.not10, label %43, label %.loopexit17

37:                                               ; preds = %2
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br label %45

.loopexit.loopexit:                               ; preds = %43, %34, %.preheader
  %lpad.loopexit15 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit.split-lp:                      ; preds = %.preheader.peel, %22, %25
  %lpad.loopexit.split-lp16 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp:                               ; preds = %13, %.loopexit17
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit18:                                      ; preds = %28
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %42

.loopexit.split-lp19:                             ; preds = %16
  %lpad.loopexit.split-lp20 = landingpad { ptr, i32 }
          cleanup
  br label %42

.loopexit22:                                      ; preds = %29
  %lpad.loopexit24 = landingpad { ptr, i32 }
          cleanup
  br label %41

.loopexit.split-lp23:                             ; preds = %17
  %lpad.loopexit.split-lp25 = landingpad { ptr, i32 }
          cleanup
  br label %41

.loopexit27:                                      ; preds = %30
  %lpad.loopexit29 = landingpad { ptr, i32 }
          cleanup
  br label %40

.loopexit.split-lp28:                             ; preds = %18
  %lpad.loopexit.split-lp30 = landingpad { ptr, i32 }
          cleanup
  br label %40

.loopexit32:                                      ; preds = %32
  %lpad.loopexit34 = landingpad { ptr, i32 }
          cleanup
  br label %39

.loopexit.split-lp33:                             ; preds = %20
  %lpad.loopexit.split-lp35 = landingpad { ptr, i32 }
          cleanup
  br label %39

39:                                               ; preds = %.loopexit.split-lp33, %.loopexit32
  %lpad.phi36 = phi { ptr, i32 } [ %lpad.loopexit34, %.loopexit32 ], [ %lpad.loopexit.split-lp35, %.loopexit.split-lp33 ]
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %40

40:                                               ; preds = %.loopexit27, %.loopexit.split-lp28, %39
  %.pn = phi { ptr, i32 } [ %lpad.phi36, %39 ], [ %lpad.loopexit29, %.loopexit27 ], [ %lpad.loopexit.split-lp30, %.loopexit.split-lp28 ]
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #5
  br label %41

41:                                               ; preds = %.loopexit22, %.loopexit.split-lp23, %40
  %.pn.pn = phi { ptr, i32 } [ %.pn, %40 ], [ %lpad.loopexit24, %.loopexit22 ], [ %lpad.loopexit.split-lp25, %.loopexit.split-lp23 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #5
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %42

42:                                               ; preds = %.loopexit18, %.loopexit.split-lp19, %41
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %41 ], [ %lpad.loopexit, %.loopexit18 ], [ %lpad.loopexit.split-lp20, %.loopexit.split-lp19 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %.loopexit

43:                                               ; preds = %36
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind nonnull writable sret(%class.Token) align 8 %10, ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 31)
          to label %.preheader unwind label %.loopexit.loopexit, !llvm.loop !5

.loopexit17:                                      ; preds = %36, %27, %24, %15
  invoke void @_ZN11TokenStream13getTokenCheckE10eTokenType(ptr dead_on_unwind nonnull writable sret(%class.Token) align 8 %11, ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef 24)
          to label %44 unwind label %.loopexit.split-lp

44:                                               ; preds = %.loopexit17
  call void @_ZN5TokenD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #5
  call void @_ZN8TTStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #5
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #5
  ret void

.loopexit:                                        ; preds = %.loopexit.loopexit, %.loopexit.loopexit.split-lp, %.loopexit.split-lp, %42
  %.pn11 = phi { ptr, i32 } [ %.pn.pn.pn, %42 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit15, %.loopexit.loopexit ], [ %lpad.loopexit.split-lp16, %.loopexit.loopexit.split-lp ]
  call void @_ZN8TTStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #5
  br label %45

45:                                               ; preds = %.loopexit, %37
  %.pn11.pn = phi { ptr, i32 } [ %.pn11, %.loopexit ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn11.pn
}

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

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

declare void @_ZNK11TokenStream10point_spanEv(ptr dead_on_unwind writable sret(%struct.Span) 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(16) ptr @_ZNK5Token5identEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4 align 2

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

; Function Attrs: nounwind
declare void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #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 = { 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 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass