; LLVM IR from ThePhysicsGuys/Physics3D :: graphics/legacy (shaderParser)

; 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.P3D::Graphics::TokenStack" = type { i8, %"class.std::vector", %"class.__gnu_cxx::__normal_iterator" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.P3D::Graphics::Token" = type { %"struct.P3D::Graphics::TokenType", %"class.std::__cxx11::basic_string" }
%"struct.P3D::Graphics::TokenType" = type <{ i8, [7 x i8], %"class.std::__cxx11::basic_regex", i8, i8, [6 x i8] }>
%"class.std::__cxx11::basic_regex" = type { i32, %"class.std::locale", %"class.std::shared_ptr" }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"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] }

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

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) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics9nextScopeERNS0_10TokenStackERKNS0_9TokenType4TypeES6_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::TokenStack") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 1 dereferenceable(1) %3) #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.P3D::Graphics::Token", align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 -1, ptr %9, align 4, !tbaa !9
  store i1 false, ptr %10, align 1
  call void @_ZN3P3D8Graphics10TokenStackC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #5
  br label %15

15:                                               ; preds = %68, %66, %4
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = invoke noundef zeroext i1 @_ZNK3P3D8Graphics10TokenStack9availableEm(ptr noundef nonnull align 8 dereferenceable(40) %16, i64 noundef 0)
          to label %18 unwind label %32

18:                                               ; preds = %15
  br i1 %17, label %19, label %70

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics10TokenStack3popEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Token") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %21 unwind label %36

21:                                               ; preds = %19
  %22 = getelementptr inbounds %"struct.P3D::Graphics::Token", ptr %13, i32 0, i32 0
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load i8, ptr %23, align 1, !tbaa !11
  %25 = invoke noundef zeroext i1 @_ZNK3P3D8Graphics9TokenTypeeqENS1_4TypeE(ptr noundef nonnull align 8 dereferenceable(42) %22, i8 noundef signext %24)
          to label %26 unwind label %40

26:                                               ; preds = %21
  br i1 %25, label %27, label %45

27:                                               ; preds = %26
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %9, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %44

31:                                               ; preds = %27
  store i32 2, ptr %14, align 4
  br label %66, !llvm.loop !13

32:                                               ; preds = %70, %15
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %11, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %12, align 4
  br label %75

36:                                               ; preds = %19
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %11, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %12, align 4
  br label %69

40:                                               ; preds = %64, %45, %21
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %11, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %12, align 4
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #5
  br label %69

44:                                               ; preds = %27
  br label %64

45:                                               ; preds = %26
  %46 = getelementptr inbounds %"struct.P3D::Graphics::Token", ptr %13, i32 0, i32 0
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = invoke noundef zeroext i1 @_ZNK3P3D8Graphics9TokenTypeeqENS1_4TypeE(ptr noundef nonnull align 8 dereferenceable(42) %46, i8 noundef signext %48)
          to label %50 unwind label %40

50:                                               ; preds = %45
  br i1 %49, label %51, label %63

51:                                               ; preds = %50
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  store i32 3, ptr %14, align 4
  br label %66

55:                                               ; preds = %51
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %55
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %9, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %58, %55
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62, %50
  br label %64

64:                                               ; preds = %63, %44
  invoke void @_ZN3P3D8Graphics10TokenStack3addERKNS0_5TokenE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %65 unwind label %40

65:                                               ; preds = %64
  store i32 0, ptr %14, align 4
  br label %66

66:                                               ; preds = %65, %54, %31
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  %67 = load i32, ptr %14, align 4
  switch i32 %67, label %81 [
    i32 0, label %68
    i32 2, label %15
    i32 3, label %70
  ]

68:                                               ; preds = %66
  br label %15, !llvm.loop !13

69:                                               ; preds = %40, %36
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  br label %75

70:                                               ; preds = %66, %18
  invoke void @_ZN3P3D8Graphics10TokenStack4flipEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %71 unwind label %32

71:                                               ; preds = %70
  store i1 true, ptr %10, align 1
  store i32 1, ptr %14, align 4
  %72 = load i1, ptr %10, align 1
  br i1 %72, label %74, label %73

73:                                               ; preds = %71
  call void @_ZN3P3D8Graphics10TokenStackD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #5
  br label %74

74:                                               ; preds = %73, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void

75:                                               ; preds = %69, %32
  call void @_ZN3P3D8Graphics10TokenStackD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %11, align 8
  %78 = load i32, ptr %12, align 4
  %79 = insertvalue { ptr, i32 } poison, ptr %77, 0
  %80 = insertvalue { ptr, i32 } %79, i32 %78, 1
  resume { ptr, i32 } %80

81:                                               ; preds = %66
  unreachable
}

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

declare noundef zeroext i1 @_ZNK3P3D8Graphics10TokenStack9availableEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #3

declare void @_ZN3P3D8Graphics10TokenStack3popEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Token") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3P3D8Graphics9TokenTypeeqENS1_4TypeE(ptr noundef nonnull align 8 dereferenceable(42), i8 noundef signext) #4 align 2

declare void @_ZN3P3D8Graphics10TokenStack3addERKNS0_5TokenE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) #3

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

declare void @_ZN3P3D8Graphics10TokenStack4flipEv(ptr noundef nonnull align 8 dereferenceable(40)) #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3P3D8Graphics9TokenType4TypeE", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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.P3D::Graphics::TokenStack" = type { i8, %"class.std::vector", %"class.__gnu_cxx::__normal_iterator" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.P3D::Graphics::Token" = type { %"struct.P3D::Graphics::TokenType", %"class.std::__cxx11::basic_string" }
%"struct.P3D::Graphics::TokenType" = type <{ i8, [7 x i8], %"class.std::__cxx11::basic_regex", i8, i8, [6 x i8] }>
%"class.std::__cxx11::basic_regex" = type { i32, %"class.std::locale", %"class.std::shared_ptr" }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"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] }

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

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) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics9nextScopeERNS0_10TokenStackERKNS0_9TokenType4TypeES6_(ptr dead_on_unwind noalias nonnull writable sret(%"struct.P3D::Graphics::TokenStack") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr nocapture noundef nonnull readonly align 1 dereferenceable(1) %2, ptr nocapture noundef nonnull readonly align 1 dereferenceable(1) %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.P3D::Graphics::Token", align 8
  tail call void @_ZN3P3D8Graphics10TokenStackC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #5
  br label %6

6:                                                ; preds = %29, %4
  %.014 = phi i32 [ -1, %4 ], [ %.2, %29 ]
  %7 = invoke noundef zeroext i1 @_ZNK3P3D8Graphics10TokenStack9availableEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 0)
          to label %8 unwind label %.loopexit

8:                                                ; preds = %6
  br i1 %7, label %9, label %.loopexit25

9:                                                ; preds = %8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #5
  invoke void @_ZN3P3D8Graphics10TokenStack3popEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Token") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %10 unwind label %16

10:                                               ; preds = %9
  %11 = load i8, ptr %2, align 1, !tbaa !5
  %12 = call noundef zeroext i1 @_ZNK3P3D8Graphics9TokenTypeeqENS1_4TypeE(ptr noundef nonnull align 8 dereferenceable(42) %5, i8 noundef signext %11)
  br i1 %12, label %13, label %20

13:                                               ; preds = %10
  %14 = add nsw i32 %.014, 1
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %29, label %28, !llvm.loop !9

.loopexit:                                        ; preds = %6
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %32

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

16:                                               ; preds = %9
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %30

18:                                               ; preds = %28
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  br label %30

20:                                               ; preds = %10
  %21 = load i8, ptr %3, align 1, !tbaa !5
  %22 = call noundef zeroext i1 @_ZNK3P3D8Graphics9TokenTypeeqENS1_4TypeE(ptr noundef nonnull align 8 dereferenceable(42) %5, i8 noundef signext %21)
  br i1 %22, label %23, label %28

23:                                               ; preds = %20
  %24 = icmp eq i32 %.014, 0
  br i1 %24, label %.thread, label %25

.thread:                                          ; preds = %23
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #5
  br label %.loopexit25

25:                                               ; preds = %23
  %26 = icmp sgt i32 %.014, 0
  %27 = sext i1 %26 to i32
  %spec.select = add nsw i32 %.014, %27
  br label %28

28:                                               ; preds = %25, %20, %13
  %.115 = phi i32 [ %14, %13 ], [ %.014, %20 ], [ %spec.select, %25 ]
  invoke void @_ZN3P3D8Graphics10TokenStack3addERKNS0_5TokenE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %29 unwind label %18

29:                                               ; preds = %28, %13
  %.2 = phi i32 [ 0, %13 ], [ %.115, %28 ]
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #5
  br label %6

30:                                               ; preds = %18, %16
  %.pn = phi { ptr, i32 } [ %19, %18 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #5
  br label %32

.loopexit25:                                      ; preds = %8, %.thread
  invoke void @_ZN3P3D8Graphics10TokenStack4flipEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %31 unwind label %.loopexit.split-lp

31:                                               ; preds = %.loopexit25
  ret void

32:                                               ; preds = %.loopexit, %.loopexit.split-lp, %30
  %.pn19 = phi { ptr, i32 } [ %.pn, %30 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN3P3D8Graphics10TokenStackD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #5
  resume { ptr, i32 } %.pn19
}

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

declare noundef zeroext i1 @_ZNK3P3D8Graphics10TokenStack9availableEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #3

declare void @_ZN3P3D8Graphics10TokenStack3popEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Token") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3P3D8Graphics9TokenTypeeqENS1_4TypeE(ptr noundef nonnull align 8 dereferenceable(42), i8 noundef signext) local_unnamed_addr #4 align 2

declare void @_ZN3P3D8Graphics10TokenStack3addERKNS0_5TokenE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3

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

declare void @_ZN3P3D8Graphics10TokenStack4flipEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

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

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


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