; LLVM IR from ThePhysicsGuys/Physics3D :: graphics/shader/lexer.ll (ZN3P3D8Graphics5Lexer4nextEv)

; 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::Lexer::Token" = type { i8, %"struct.P3D::Graphics::Lexer::Range" }
%"struct.P3D::Graphics::Lexer::Range" = type { i64, i64 }
%"class.P3D::Graphics::Lexer" = type { i64, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isSpaceEc(i8 noundef signext) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZNK3P3D8Graphics5Lexer8peekCharEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN3P3D8Graphics5Lexer7popCharEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  br label %7

7:                                                ; preds = %10, %2
  %8 = call noundef signext i8 @_ZNK3P3D8Graphics5Lexer8peekCharEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 0) #3
  %9 = call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isSpaceEc(i8 noundef signext %8) #3
  br i1 %9, label %10, label %12

10:                                               ; preds = %7
  %11 = call noundef signext i8 @_ZN3P3D8Graphics5Lexer7popCharEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #3
  br label %7, !llvm.loop !9

12:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #3
  %13 = call noundef signext i8 @_ZNK3P3D8Graphics5Lexer8peekCharEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 0) #3
  store i8 %13, ptr %4, align 1, !tbaa !11
  %14 = load i8, ptr %4, align 1, !tbaa !11
  %15 = sext i8 %14 to i32
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %23

17:                                               ; preds = %12
  %18 = getelementptr inbounds %"class.P3D::Graphics::Lexer", ptr %6, i32 0, i32 0
  %19 = load i64, ptr %18, align 8, !tbaa !12
  %20 = getelementptr inbounds %"class.P3D::Graphics::Lexer", ptr %6, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !12
  invoke void @_ZN3P3D8Graphics5Lexer5TokenC2ENS2_4TypeEmm(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 28, i64 noundef %19, i64 noundef %21)
          to label %22 unwind label %55

22:                                               ; preds = %17
  store i32 1, ptr %5, align 4
  br label %54

23:                                               ; preds = %12
  %24 = load i8, ptr %4, align 1, !tbaa !11
  %25 = call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer18isIdentifierPrefixEc(i8 noundef signext %24) #3
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  call void @_ZN3P3D8Graphics5Lexer13lexIdentifierEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6) #3
  store i32 1, ptr %5, align 4
  br label %54

27:                                               ; preds = %23
  %28 = load i8, ptr %4, align 1, !tbaa !11
  %29 = call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isDigitEc(i8 noundef signext %28) #3
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  call void @_ZN3P3D8Graphics5Lexer9lexNumberEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6) #3
  store i32 1, ptr %5, align 4
  br label %54

31:                                               ; preds = %27
  %32 = load i8, ptr %4, align 1, !tbaa !11
  %33 = call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer10isOperatorEc(i8 noundef signext %32) #3
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  call void @_ZN3P3D8Graphics5Lexer20lexOperatorOrCommentEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6) #3
  store i32 1, ptr %5, align 4
  br label %54

35:                                               ; preds = %31
  %36 = load i8, ptr %4, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  switch i32 %37, label %53 [
    i32 0, label %38
    i32 35, label %39
    i32 58, label %40
    i32 61, label %41
    i32 40, label %42
    i32 41, label %43
    i32 123, label %44
    i32 125, label %45
    i32 91, label %46
    i32 93, label %47
    i32 39, label %48
    i32 34, label %49
    i32 46, label %50
    i32 44, label %51
    i32 59, label %52
  ]

38:                                               ; preds = %35
  call void @_ZNK3P3D8Graphics5Lexer6lexEndEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6) #3
  store i32 1, ptr %5, align 4
  br label %54

39:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer24lexVersionOrPreprocessorEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6) #3
  store i32 1, ptr %5, align 4
  br label %54

40:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 3) #3
  store i32 1, ptr %5, align 4
  br label %54

41:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 6) #3
  store i32 1, ptr %5, align 4
  br label %54

42:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 4) #3
  store i32 1, ptr %5, align 4
  br label %54

43:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 5) #3
  store i32 1, ptr %5, align 4
  br label %54

44:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 17) #3
  store i32 1, ptr %5, align 4
  br label %54

45:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 18) #3
  store i32 1, ptr %5, align 4
  br label %54

46:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 19) #3
  store i32 1, ptr %5, align 4
  br label %54

47:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 20) #3
  store i32 1, ptr %5, align 4
  br label %54

48:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 24) #3
  store i32 1, ptr %5, align 4
  br label %54

49:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer9lexStringEc(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 34) #3
  store i32 1, ptr %5, align 4
  br label %54

50:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 7) #3
  store i32 1, ptr %5, align 4
  br label %54

51:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 1) #3
  store i32 1, ptr %5, align 4
  br label %54

52:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 2) #3
  store i32 1, ptr %5, align 4
  br label %54

53:                                               ; preds = %35
  call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, i8 noundef signext 0) #3
  store i32 1, ptr %5, align 4
  br label %54

54:                                               ; preds = %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %34, %30, %26, %22
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #3
  ret void

55:                                               ; preds = %17
  %56 = landingpad { ptr, i32 }
          catch ptr null
  %57 = extractvalue { ptr, i32 } %56, 0
  call void @__clang_call_terminate(ptr %57) #4
  unreachable
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer5TokenC2ENS2_4TypeEmm(ptr noundef nonnull align 8 dereferenceable(24), i8 noundef signext, i64 noundef, i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D8Graphics5Lexer18isIdentifierPrefixEc(i8 noundef signext) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer13lexIdentifierEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isDigitEc(i8 noundef signext) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer9lexNumberEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D8Graphics5Lexer10isOperatorEc(i8 noundef signext) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer20lexOperatorOrCommentEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D8Graphics5Lexer6lexEndEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer24lexVersionOrPreprocessorEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer9lexStringEc(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noinline noreturn nounwind uwtable "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 = { nounwind }
attributes #4 = { noreturn 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"}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN3P3D8Graphics5LexerE", !14, i64 0, !6, i64 8}
!14 = !{!"long", !7, i64 0}


; 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::Lexer::Token" = type { i8, %"struct.P3D::Graphics::Lexer::Range" }
%"struct.P3D::Graphics::Lexer::Range" = type { i64, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isSpaceEc(i8 noundef signext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZNK3P3D8Graphics5Lexer8peekCharEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN3P3D8Graphics5Lexer7popCharEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3P3D8Graphics5Lexer4nextEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = tail call noundef signext i8 @_ZNK3P3D8Graphics5Lexer8peekCharEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef 0) #1
  %4 = tail call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isSpaceEc(i8 noundef signext %3) #1
  br i1 %4, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %.lr.ph
  %5 = tail call noundef signext i8 @_ZN3P3D8Graphics5Lexer7popCharEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #1
  %6 = tail call noundef signext i8 @_ZNK3P3D8Graphics5Lexer8peekCharEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef 0) #1
  %7 = tail call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isSpaceEc(i8 noundef signext %6) #1
  br i1 %7, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %2
  %8 = tail call noundef signext i8 @_ZNK3P3D8Graphics5Lexer8peekCharEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef 0) #1
  %9 = icmp eq i8 %8, 0
  br i1 %9, label %10, label %12

10:                                               ; preds = %._crit_edge
  %11 = load i64, ptr %1, align 8, !tbaa !7
  tail call void @_ZN3P3D8Graphics5Lexer5TokenC2ENS2_4TypeEmm(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 noundef signext 28, i64 noundef %11, i64 noundef %11)
  br label %37

12:                                               ; preds = %._crit_edge
  %13 = tail call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer18isIdentifierPrefixEc(i8 noundef signext %8) #1
  br i1 %13, label %14, label %15

14:                                               ; preds = %12
  tail call void @_ZN3P3D8Graphics5Lexer13lexIdentifierEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #1
  br label %37

15:                                               ; preds = %12
  %16 = tail call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isDigitEc(i8 noundef signext %8) #1
  br i1 %16, label %17, label %18

17:                                               ; preds = %15
  tail call void @_ZN3P3D8Graphics5Lexer9lexNumberEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #1
  br label %37

18:                                               ; preds = %15
  %19 = tail call noundef zeroext i1 @_ZN3P3D8Graphics5Lexer10isOperatorEc(i8 noundef signext %8) #1
  br i1 %19, label %20, label %21

20:                                               ; preds = %18
  tail call void @_ZN3P3D8Graphics5Lexer20lexOperatorOrCommentEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #1
  br label %37

21:                                               ; preds = %18
  switch i8 %8, label %36 [
    i8 59, label %35
    i8 35, label %22
    i8 58, label %23
    i8 61, label %24
    i8 40, label %25
    i8 41, label %26
    i8 123, label %27
    i8 125, label %28
    i8 91, label %29
    i8 93, label %30
    i8 39, label %31
    i8 34, label %32
    i8 46, label %33
    i8 44, label %34
  ]

22:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer24lexVersionOrPreprocessorEv(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #1
  br label %37

23:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 3) #1
  br label %37

24:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 6) #1
  br label %37

25:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 4) #1
  br label %37

26:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 5) #1
  br label %37

27:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 17) #1
  br label %37

28:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 18) #1
  br label %37

29:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 19) #1
  br label %37

30:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 20) #1
  br label %37

31:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 24) #1
  br label %37

32:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer9lexStringEc(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 34) #1
  br label %37

33:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 7) #1
  br label %37

34:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 1) #1
  br label %37

35:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 2) #1
  br label %37

36:                                               ; preds = %21
  tail call void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 0) #1
  br label %37

37:                                               ; preds = %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %20, %17, %14, %10
  ret void
}

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer5TokenC2ENS2_4TypeEmm(ptr noundef nonnull align 8 dereferenceable(24), i8 noundef signext, i64 noundef, i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D8Graphics5Lexer18isIdentifierPrefixEc(i8 noundef signext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer13lexIdentifierEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D8Graphics5Lexer7isDigitEc(i8 noundef signext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer9lexNumberEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D8Graphics5Lexer10isOperatorEc(i8 noundef signext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer20lexOperatorOrCommentEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer24lexVersionOrPreprocessorEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer7lexCharENS1_5Token4TypeE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5Lexer9lexStringEc(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::Lexer::Token") align 8, ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"_ZTSN3P3D8Graphics5LexerE", !9, i64 0, !12, i64 8}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}


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