; LLVM IR from ASDAlexander77/TypeScriptCompiler :: tsc/tsc-new-parser/scanner.ll (ZN2ts7Scanner14scanJsDocTokenEv)

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<wchar_t>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<wchar_t>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.ts::Scanner" = type { i32, i32, i8, i32, %"struct.ts::safe_string", i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", i32, %"class.std::vector.41", i32, i32, %"class.std::function" }
%"struct.ts::safe_string" = type { %"class.std::__cxx11::basic_string" }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<ptr<ts::data::CommentDirective>, std::allocator<ptr<ts::data::CommentDirective>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::CommentDirective>, std::allocator<ptr<ts::data::CommentDirective>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::CommentDirective>, std::allocator<ptr<ts::data::CommentDirective>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::CommentDirective>, std::allocator<ptr<ts::data::CommentDirective>>>::_Vector_impl_data" = type { ptr, ptr, 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 } }

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIwEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 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) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts11safe_string9substringB5cxx11Eii(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2ts7Scanner22isWhiteSpaceSingleLineE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2ts7Scanner17isIdentifierStartE14CharacterCodesNS_12ScriptTargetE(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN2ts7Scanner11codePointAtERNS_11safe_stringEi(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(176)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2IS3_EEmwRKS3_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i32 noundef signext, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts7Scanner25scanExtendedUnicodeEscapeB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(176)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIwSt11char_traitsIwESaIwEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ts7Scanner14scanJsDocTokenEv(ptr noundef nonnull align 8 dereferenceable(176) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.0", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8
  %21 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %22 = load i32, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 8
  store i32 %22, ptr %23, align 4, !tbaa !29
  %24 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 7
  store i32 %22, ptr %24, align 8, !tbaa !30
  %25 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 11
  store i32 0, ptr %25, align 8, !tbaa !31
  %26 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %27 = load i32, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 6
  %29 = load i32, ptr %28, align 4, !tbaa !32
  %30 = icmp sge i32 %27, %29
  br i1 %30, label %31, label %33

31:                                               ; preds = %1
  %32 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 1, ptr %32, align 8, !tbaa !33
  store i32 1, ptr %2, align 4
  br label %244

33:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %34 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 4
  %35 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %36 = load i32, ptr %35, align 8, !tbaa !9
  %37 = call noundef i32 @_ZN2ts7Scanner11codePointAtERNS_11safe_stringEi(ptr noundef nonnull align 8 dereferenceable(176) %20, ptr noundef nonnull align 8 dereferenceable(32) %34, i32 noundef %36)
  store i32 %37, ptr %4, align 4, !tbaa !34
  %38 = load i32, ptr %4, align 4, !tbaa !34
  %39 = call noundef i32 @_ZN2ts7Scanner8charSizeE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176) %20, i32 noundef %38)
  %40 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = add nsw i32 %41, %39
  store i32 %42, ptr %40, align 8, !tbaa !9
  %43 = load i32, ptr %4, align 4, !tbaa !34
  switch i32 %43, label %184 [
    i32 9, label %44
    i32 11, label %44
    i32 12, label %44
    i32 32, label %44
    i32 64, label %65
    i32 13, label %67
    i32 10, label %78
    i32 42, label %82
    i32 123, label %84
    i32 125, label %86
    i32 91, label %88
    i32 93, label %90
    i32 60, label %92
    i32 62, label %94
    i32 61, label %96
    i32 44, label %98
    i32 46, label %100
    i32 96, label %102
    i32 35, label %104
    i32 92, label %106
  ]

44:                                               ; preds = %33, %33, %33, %33
  br label %45

45:                                               ; preds = %59, %44
  %46 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 6
  %49 = load i32, ptr %48, align 4, !tbaa !32
  %50 = icmp slt i32 %47, %49
  br i1 %50, label %51, label %57

51:                                               ; preds = %45
  %52 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 4
  %53 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %54 = load i32, ptr %53, align 8, !tbaa !9
  %55 = call noundef i32 @_ZN2ts11safe_stringixEi(ptr noundef nonnull align 8 dereferenceable(32) %52, i32 noundef %54)
  %56 = call noundef zeroext i1 @_ZN2ts7Scanner22isWhiteSpaceSingleLineE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176) %20, i32 noundef %55)
  br label %57

57:                                               ; preds = %51, %45
  %58 = phi i1 [ false, %45 ], [ %56, %51 ]
  br i1 %58, label %59, label %63

59:                                               ; preds = %57
  %60 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %61 = load i32, ptr %60, align 8, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 8, !tbaa !9
  br label %45, !llvm.loop !36

63:                                               ; preds = %57
  %64 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 5, ptr %64, align 8, !tbaa !33
  store i32 5, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

65:                                               ; preds = %33
  %66 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 60, ptr %66, align 8, !tbaa !33
  store i32 60, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

67:                                               ; preds = %33
  %68 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 4
  %69 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %70 = load i32, ptr %69, align 8, !tbaa !9
  %71 = call noundef i32 @_ZN2ts11safe_stringixEi(ptr noundef nonnull align 8 dereferenceable(32) %68, i32 noundef %70)
  %72 = icmp eq i32 %71, 10
  br i1 %72, label %73, label %77

73:                                               ; preds = %67
  %74 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %75 = load i32, ptr %74, align 8, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %74, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %73, %67
  br label %78

78:                                               ; preds = %77, %33
  %79 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 11
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %79, i32 noundef 1)
  %81 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 4, ptr %81, align 8, !tbaa !33
  store i32 4, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

82:                                               ; preds = %33
  %83 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 42, ptr %83, align 8, !tbaa !33
  store i32 42, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

84:                                               ; preds = %33
  %85 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 19, ptr %85, align 8, !tbaa !33
  store i32 19, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

86:                                               ; preds = %33
  %87 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 20, ptr %87, align 8, !tbaa !33
  store i32 20, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

88:                                               ; preds = %33
  %89 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 23, ptr %89, align 8, !tbaa !33
  store i32 23, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

90:                                               ; preds = %33
  %91 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 24, ptr %91, align 8, !tbaa !33
  store i32 24, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

92:                                               ; preds = %33
  %93 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 30, ptr %93, align 8, !tbaa !33
  store i32 30, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

94:                                               ; preds = %33
  %95 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 32, ptr %95, align 8, !tbaa !33
  store i32 32, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

96:                                               ; preds = %33
  %97 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 64, ptr %97, align 8, !tbaa !33
  store i32 64, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

98:                                               ; preds = %33
  %99 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 28, ptr %99, align 8, !tbaa !33
  store i32 28, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

100:                                              ; preds = %33
  %101 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 25, ptr %101, align 8, !tbaa !33
  store i32 25, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

102:                                              ; preds = %33
  %103 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 62, ptr %103, align 8, !tbaa !33
  store i32 62, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

104:                                              ; preds = %33
  %105 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 63, ptr %105, align 8, !tbaa !33
  store i32 63, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

106:                                              ; preds = %33
  %107 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %108 = load i32, ptr %107, align 8, !tbaa !9
  %109 = add nsw i32 %108, -1
  store i32 %109, ptr %107, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %110 = call noundef i32 @_ZN2ts7Scanner25peekExtendedUnicodeEscapeEv(ptr noundef nonnull align 8 dereferenceable(176) %20)
  store i32 %110, ptr %6, align 4, !tbaa !34
  %111 = load i32, ptr %6, align 4, !tbaa !34
  %112 = icmp sge i32 %111, 0
  br i1 %112, label %113, label %139

113:                                              ; preds = %106
  %114 = load i32, ptr %6, align 4, !tbaa !34
  %115 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !38
  %117 = call noundef zeroext i1 @_ZN2ts7Scanner17isIdentifierStartE14CharacterCodesNS_12ScriptTargetE(ptr noundef nonnull align 8 dereferenceable(176) %20, i32 noundef %114, i32 noundef %116)
  br i1 %117, label %118, label %139

118:                                              ; preds = %113
  %119 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %120 = load i32, ptr %119, align 8, !tbaa !9
  %121 = add nsw i32 %120, 3
  store i32 %121, ptr %119, align 8, !tbaa !9
  %122 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 11
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %122, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  call void @_ZN2ts7Scanner25scanExtendedUnicodeEscapeB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(176) %20)
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  invoke void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(176) %20)
          to label %124 unwind label %130

124:                                              ; preds = %118
  invoke void @_ZStplIwSt11char_traitsIwESaIwEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %125 unwind label %134

125:                                              ; preds = %124
  %126 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 10
  %127 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %126, ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  %128 = call noundef i32 @_ZN2ts7Scanner18getIdentifierTokenEv(ptr noundef nonnull align 8 dereferenceable(176) %20)
  %129 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 %128, ptr %129, align 8, !tbaa !33
  store i32 %128, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %182

130:                                              ; preds = %118
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %10, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %11, align 4
  br label %138

134:                                              ; preds = %124
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %10, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %138

138:                                              ; preds = %134, %130
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  br label %183

139:                                              ; preds = %113, %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %140 = call noundef i32 @_ZN2ts7Scanner17peekUnicodeEscapeEv(ptr noundef nonnull align 8 dereferenceable(176) %20)
  store i32 %140, ptr %12, align 4, !tbaa !34
  %141 = load i32, ptr %12, align 4, !tbaa !34
  %142 = icmp sge i32 %141, 0
  br i1 %142, label %143, label %176

143:                                              ; preds = %139
  %144 = load i32, ptr %12, align 4, !tbaa !34
  %145 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !38
  %147 = call noundef zeroext i1 @_ZN2ts7Scanner17isIdentifierStartE14CharacterCodesNS_12ScriptTargetE(ptr noundef nonnull align 8 dereferenceable(176) %20, i32 noundef %144, i32 noundef %146)
  br i1 %147, label %148, label %176

148:                                              ; preds = %143
  %149 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %150 = load i32, ptr %149, align 8, !tbaa !9
  %151 = add nsw i32 %150, 6
  store i32 %151, ptr %149, align 8, !tbaa !9
  %152 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 11
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %152, i32 noundef 1024)
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  %154 = load i32, ptr %12, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @_ZNSaIwEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  invoke void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2IS3_EEmwRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef 1, i32 noundef signext %154, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %155 unwind label %162

155:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  invoke void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(176) %20)
          to label %156 unwind label %166

156:                                              ; preds = %155
  invoke void @_ZStplIwSt11char_traitsIwESaIwEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %157 unwind label %170

157:                                              ; preds = %156
  %158 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 10
  %159 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %158, ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @_ZNSt15__new_allocatorIwED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  %160 = call noundef i32 @_ZN2ts7Scanner18getIdentifierTokenEv(ptr noundef nonnull align 8 dereferenceable(176) %20)
  %161 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 %160, ptr %161, align 8, !tbaa !33
  store i32 %160, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %181

162:                                              ; preds = %148
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %10, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %11, align 4
  br label %175

166:                                              ; preds = %155
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %10, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %11, align 4
  br label %174

170:                                              ; preds = %156
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %10, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %174

174:                                              ; preds = %170, %166
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %175

175:                                              ; preds = %174, %162
  call void @_ZNSt15__new_allocatorIwED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %183

176:                                              ; preds = %143, %139
  %177 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %178 = load i32, ptr %177, align 8, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %177, align 8, !tbaa !9
  %180 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 0, ptr %180, align 8, !tbaa !33
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %181

181:                                              ; preds = %176, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %182

182:                                              ; preds = %181, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %242

183:                                              ; preds = %175, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %243

184:                                              ; preds = %33
  %185 = load i32, ptr %4, align 4, !tbaa !34
  %186 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !38
  %188 = call noundef zeroext i1 @_ZN2ts7Scanner17isIdentifierStartE14CharacterCodesNS_12ScriptTargetE(ptr noundef nonnull align 8 dereferenceable(176) %20, i32 noundef %185, i32 noundef %187)
  br i1 %188, label %189, label %240

189:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %190 = load i32, ptr %4, align 4, !tbaa !34
  store i32 %190, ptr %17, align 4, !tbaa !34
  br label %191

191:                                              ; preds = %213, %189
  %192 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %193 = load i32, ptr %192, align 8, !tbaa !9
  %194 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 6
  %195 = load i32, ptr %194, align 4, !tbaa !32
  %196 = icmp slt i32 %193, %195
  br i1 %196, label %197, label %205

197:                                              ; preds = %191
  %198 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 4
  %199 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %200 = load i32, ptr %199, align 8, !tbaa !9
  %201 = call noundef i32 @_ZN2ts7Scanner11codePointAtERNS_11safe_stringEi(ptr noundef nonnull align 8 dereferenceable(176) %20, ptr noundef nonnull align 8 dereferenceable(32) %198, i32 noundef %200)
  store i32 %201, ptr %17, align 4, !tbaa !34
  %202 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 1
  %203 = load i32, ptr %202, align 4, !tbaa !38
  %204 = call noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176) %20, i32 noundef %201, i32 noundef %203, i32 noundef 0)
  br i1 %204, label %211, label %205

205:                                              ; preds = %197, %191
  %206 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 4
  %207 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %208 = load i32, ptr %207, align 8, !tbaa !9
  %209 = call noundef i32 @_ZN2ts11safe_stringixEi(ptr noundef nonnull align 8 dereferenceable(32) %206, i32 noundef %208)
  %210 = icmp eq i32 %209, 45
  br label %211

211:                                              ; preds = %205, %197
  %212 = phi i1 [ true, %197 ], [ %210, %205 ]
  br i1 %212, label %213, label %219

213:                                              ; preds = %211
  %214 = load i32, ptr %17, align 4, !tbaa !34
  %215 = call noundef i32 @_ZN2ts7Scanner8charSizeE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176) %20, i32 noundef %214)
  %216 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %217 = load i32, ptr %216, align 8, !tbaa !9
  %218 = add nsw i32 %217, %215
  store i32 %218, ptr %216, align 8, !tbaa !9
  br label %191, !llvm.loop !39

219:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #5
  %220 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 4
  %221 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 8
  %222 = load i32, ptr %221, align 4, !tbaa !29
  %223 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 5
  %224 = load i32, ptr %223, align 8, !tbaa !9
  call void @_ZN2ts11safe_string9substringB5cxx11Eii(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %220, i32 noundef %222, i32 noundef %224)
  %225 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 10
  %226 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %225, ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  %227 = load i32, ptr %17, align 4, !tbaa !34
  %228 = icmp eq i32 %227, 92
  br i1 %228, label %229, label %237

229:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  call void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(176) %20)
  %230 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 10
  %231 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %230, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %232 unwind label %233

232:                                              ; preds = %229
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  br label %237

233:                                              ; preds = %229
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %10, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %243

237:                                              ; preds = %232, %219
  %238 = call noundef i32 @_ZN2ts7Scanner18getIdentifierTokenEv(ptr noundef nonnull align 8 dereferenceable(176) %20)
  %239 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 %238, ptr %239, align 8, !tbaa !33
  store i32 %238, ptr %2, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %242

240:                                              ; preds = %184
  %241 = getelementptr inbounds %"class.ts::Scanner", ptr %20, i32 0, i32 9
  store i32 0, ptr %241, align 8, !tbaa !33
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %242

242:                                              ; preds = %240, %237, %182, %104, %102, %100, %98, %96, %94, %92, %90, %88, %86, %84, %82, %78, %65, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %244

243:                                              ; preds = %233, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %246

244:                                              ; preds = %242, %31
  %245 = load i32, ptr %2, align 4
  ret i32 %245

246:                                              ; preds = %243
  %247 = load ptr, ptr %10, align 8
  %248 = load i32, ptr %11, align 4
  %249 = insertvalue { ptr, i32 } poison, ptr %247, 0
  %250 = insertvalue { ptr, i32 } %249, i32 %248, 1
  resume { ptr, i32 } %250
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !19, i64 48}
!10 = !{!"_ZTSN2ts7ScannerE", !11, i64 0, !12, i64 4, !13, i64 8, !14, i64 12, !15, i64 16, !19, i64 48, !19, i64 52, !19, i64 56, !19, i64 60, !20, i64 64, !16, i64 72, !21, i64 104, !22, i64 112, !19, i64 136, !26, i64 140, !27, i64 144}
!11 = !{!"_ZTSN2ts10ScriptKindE", !7, i64 0}
!12 = !{!"_ZTSN2ts12ScriptTargetE", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN2ts15LanguageVariantE", !7, i64 0}
!15 = !{!"_ZTSN2ts11safe_stringE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTS10SyntaxKind", !7, i64 0}
!21 = !{!"_ZTSN2ts10TokenFlagsE", !7, i64 0}
!22 = !{!"_ZTSSt6vectorI3ptrIN2ts4data16CommentDirectiveEESaIS4_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data16CommentDirectiveEESaIS4_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data16CommentDirectiveEESaIS4_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data16CommentDirectiveEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN2ts16JSDocParsingModeE", !7, i64 0}
!27 = !{!"_ZTSSt8functionIFv3ptrIN2ts4data17DiagnosticMessageEEiNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEEEE", !28, i64 0, !6, i64 24}
!28 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!29 = !{!10, !19, i64 60}
!30 = !{!10, !19, i64 56}
!31 = !{!10, !21, i64 104}
!32 = !{!10, !19, i64 52}
!33 = !{!10, !20, i64 64}
!34 = !{!35, !35, i64 0}
!35 = !{!"_ZTS14CharacterCodes", !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!10, !12, i64 4}
!39 = distinct !{!39, !37}


; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<wchar_t>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<wchar_t>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }

; 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 nounwind uwtable
declare void @_ZNSaIwEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 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) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts11safe_string9substringB5cxx11Eii(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2ts7Scanner22isWhiteSpaceSingleLineE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2ts7Scanner17isIdentifierStartE14CharacterCodesNS_12ScriptTargetE(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN2ts7Scanner11codePointAtERNS_11safe_stringEi(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2IS3_EEmwRKS3_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i32 noundef signext, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts7Scanner25scanExtendedUnicodeEscapeB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIwSt11char_traitsIwESaIwEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ts7Scanner14scanJsDocTokenEv(ptr noundef nonnull align 8 dereferenceable(176) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %12, ptr %13, align 4, !tbaa !28
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %12, ptr %14, align 8, !tbaa !29
  %15 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 0, ptr %15, align 8, !tbaa !30
  %16 = getelementptr inbounds i8, ptr %0, i64 52
  %17 = load i32, ptr %16, align 4, !tbaa !31
  %.not = icmp slt i32 %12, %17
  br i1 %.not, label %18, label %.critedge

18:                                               ; preds = %1
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = tail call noundef i32 @_ZN2ts7Scanner11codePointAtERNS_11safe_stringEi(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %12)
  %21 = tail call noundef i32 @_ZN2ts7Scanner8charSizeE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %20)
  %22 = load i32, ptr %11, align 8, !tbaa !5
  %23 = add nsw i32 %22, %21
  store i32 %23, ptr %11, align 8, !tbaa !5
  switch i32 %20, label %105 [
    i32 9, label %24
    i32 11, label %24
    i32 12, label %24
    i32 32, label %24
    i32 64, label %.critedge
    i32 13, label %35
    i32 10, label %41
    i32 42, label %43
    i32 123, label %44
    i32 125, label %45
    i32 91, label %46
    i32 93, label %47
    i32 60, label %48
    i32 62, label %49
    i32 61, label %50
    i32 44, label %51
    i32 46, label %52
    i32 96, label %53
    i32 35, label %54
    i32 92, label %55
  ]

24:                                               ; preds = %18, %18, %18, %18
  %25 = load i32, ptr %16, align 4, !tbaa !31
  %26 = icmp slt i32 %23, %25
  br i1 %26, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %24, %30
  %27 = phi i32 [ %32, %30 ], [ %23, %24 ]
  %28 = tail call noundef i32 @_ZN2ts11safe_stringixEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %27)
  %29 = tail call noundef zeroext i1 @_ZN2ts7Scanner22isWhiteSpaceSingleLineE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %28)
  br i1 %29, label %30, label %.critedge

30:                                               ; preds = %.lr.ph
  %31 = load i32, ptr %11, align 8, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %11, align 8, !tbaa !5
  %33 = load i32, ptr %16, align 4, !tbaa !31
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %.lr.ph, label %.critedge, !llvm.loop !32

35:                                               ; preds = %18
  %36 = tail call noundef i32 @_ZN2ts11safe_stringixEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %23)
  %37 = icmp eq i32 %36, 10
  br i1 %37, label %38, label %41

38:                                               ; preds = %35
  %39 = load i32, ptr %11, align 8, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %11, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %35, %38, %18
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 1)
  br label %.critedge

43:                                               ; preds = %18
  br label %.critedge

44:                                               ; preds = %18
  br label %.critedge

45:                                               ; preds = %18
  br label %.critedge

46:                                               ; preds = %18
  br label %.critedge

47:                                               ; preds = %18
  br label %.critedge

48:                                               ; preds = %18
  br label %.critedge

49:                                               ; preds = %18
  br label %.critedge

50:                                               ; preds = %18
  br label %.critedge

51:                                               ; preds = %18
  br label %.critedge

52:                                               ; preds = %18
  br label %.critedge

53:                                               ; preds = %18
  br label %.critedge

54:                                               ; preds = %18
  br label %.critedge

55:                                               ; preds = %18
  %56 = add nsw i32 %23, -1
  store i32 %56, ptr %11, align 8, !tbaa !5
  %57 = tail call noundef i32 @_ZN2ts7Scanner25peekExtendedUnicodeEscapeEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %58 = icmp sgt i32 %57, -1
  br i1 %58, label %59, label %77

59:                                               ; preds = %55
  %60 = getelementptr inbounds i8, ptr %0, i64 4
  %61 = load i32, ptr %60, align 4, !tbaa !34
  %62 = tail call noundef zeroext i1 @_ZN2ts7Scanner17isIdentifierStartE14CharacterCodesNS_12ScriptTargetE(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %57, i32 noundef %61)
  br i1 %62, label %63, label %77

63:                                               ; preds = %59
  %64 = load i32, ptr %11, align 8, !tbaa !5
  %65 = add nsw i32 %64, 3
  store i32 %65, ptr %11, align 8, !tbaa !5
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @_ZN2ts7Scanner25scanExtendedUnicodeEscapeB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull align 8 dereferenceable(176) %0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  invoke void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(176) %0)
          to label %67 unwind label %72

67:                                               ; preds = %63
  invoke void @_ZStplIwSt11char_traitsIwESaIwEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %68 unwind label %74

68:                                               ; preds = %67
  %69 = getelementptr inbounds i8, ptr %0, i64 72
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  %71 = call noundef i32 @_ZN2ts7Scanner18getIdentifierTokenEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
  br label %.critedge

72:                                               ; preds = %63
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %67
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %76

76:                                               ; preds = %74, %72
  %.pn35 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br label %136

77:                                               ; preds = %59, %55
  %78 = tail call noundef i32 @_ZN2ts7Scanner17peekUnicodeEscapeEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %79 = icmp sgt i32 %78, -1
  br i1 %79, label %80, label %102

80:                                               ; preds = %77
  %81 = getelementptr inbounds i8, ptr %0, i64 4
  %82 = load i32, ptr %81, align 4, !tbaa !34
  %83 = tail call noundef zeroext i1 @_ZN2ts7Scanner17isIdentifierStartE14CharacterCodesNS_12ScriptTargetE(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %78, i32 noundef %82)
  br i1 %83, label %84, label %102

84:                                               ; preds = %80
  %85 = load i32, ptr %11, align 8, !tbaa !5
  %86 = add nsw i32 %85, 6
  store i32 %86, ptr %11, align 8, !tbaa !5
  %87 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 1024)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaIwEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2IS3_EEmwRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef 1, i32 noundef signext %78, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %88 unwind label %94

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  invoke void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(176) %0)
          to label %89 unwind label %96

89:                                               ; preds = %88
  invoke void @_ZStplIwSt11char_traitsIwESaIwEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %90 unwind label %98

90:                                               ; preds = %89
  %91 = getelementptr inbounds i8, ptr %0, i64 72
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZNSt15__new_allocatorIwED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  %93 = call noundef i32 @_ZN2ts7Scanner18getIdentifierTokenEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
  br label %.critedge

94:                                               ; preds = %84
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %101

96:                                               ; preds = %88
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %100

98:                                               ; preds = %89
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %100

100:                                              ; preds = %98, %96
  %.pn = phi { ptr, i32 } [ %99, %98 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %101

101:                                              ; preds = %100, %94
  %.pn.pn = phi { ptr, i32 } [ %.pn, %100 ], [ %95, %94 ]
  call void @_ZNSt15__new_allocatorIwED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %136

102:                                              ; preds = %80, %77
  %103 = load i32, ptr %11, align 8, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %11, align 8, !tbaa !5
  br label %.critedge

105:                                              ; preds = %18
  %106 = getelementptr inbounds i8, ptr %0, i64 4
  %107 = load i32, ptr %106, align 4, !tbaa !34
  %108 = tail call noundef zeroext i1 @_ZN2ts7Scanner17isIdentifierStartE14CharacterCodesNS_12ScriptTargetE(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %20, i32 noundef %107)
  br i1 %108, label %.preheader.preheader, label %.critedge

.preheader.preheader:                             ; preds = %105
  %.pre = load i32, ptr %11, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.critedge2
  %109 = phi i32 [ %122, %.critedge2 ], [ %.pre, %.preheader.preheader ]
  %.0 = phi i32 [ %.2, %.critedge2 ], [ %20, %.preheader.preheader ]
  %110 = load i32, ptr %16, align 4, !tbaa !31
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %112, label %116

112:                                              ; preds = %.preheader
  %113 = tail call noundef i32 @_ZN2ts7Scanner11codePointAtERNS_11safe_stringEi(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %109)
  %114 = load i32, ptr %106, align 4, !tbaa !34
  %115 = tail call noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %113, i32 noundef %114, i32 noundef 0)
  br i1 %115, label %.critedge2, label %._crit_edge

._crit_edge:                                      ; preds = %112
  %.pre41 = load i32, ptr %11, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %._crit_edge, %.preheader
  %117 = phi i32 [ %.pre41, %._crit_edge ], [ %109, %.preheader ]
  %.1 = phi i32 [ %113, %._crit_edge ], [ %.0, %.preheader ]
  %118 = tail call noundef i32 @_ZN2ts11safe_stringixEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %117)
  %119 = icmp eq i32 %118, 45
  br i1 %119, label %.critedge2, label %123

.critedge2:                                       ; preds = %112, %116
  %.2 = phi i32 [ %113, %112 ], [ %.1, %116 ]
  %120 = tail call noundef i32 @_ZN2ts7Scanner8charSizeE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %.2)
  %121 = load i32, ptr %11, align 8, !tbaa !5
  %122 = add nsw i32 %121, %120
  store i32 %122, ptr %11, align 8, !tbaa !5
  br label %.preheader, !llvm.loop !35

123:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %124 = load i32, ptr %13, align 4, !tbaa !28
  %125 = load i32, ptr %11, align 8, !tbaa !5
  call void @_ZN2ts11safe_string9substringB5cxx11Eii(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %124, i32 noundef %125)
  %126 = getelementptr inbounds i8, ptr %0, i64 72
  %127 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %126, ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  %128 = icmp eq i32 %.1, 92
  br i1 %128, label %129, label %134

129:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(176) %0)
  %130 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %126, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %131 unwind label %132

131:                                              ; preds = %129
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %134

132:                                              ; preds = %129
  %133 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %136

134:                                              ; preds = %131, %123
  %135 = call noundef i32 @_ZN2ts7Scanner18getIdentifierTokenEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
  br label %.critedge

136:                                              ; preds = %76, %101, %132
  %.pn38 = phi { ptr, i32 } [ %133, %132 ], [ %.pn35, %76 ], [ %.pn.pn, %101 ]
  resume { ptr, i32 } %.pn38

.critedge:                                        ; preds = %30, %.lr.ph, %105, %18, %24, %1, %41, %43, %44, %45, %46, %47, %48, %49, %50, %51, %52, %53, %54, %134, %90, %102, %68
  %.sink = phi i32 [ 4, %41 ], [ 42, %43 ], [ 19, %44 ], [ 20, %45 ], [ 23, %46 ], [ 24, %47 ], [ 30, %48 ], [ 32, %49 ], [ 64, %50 ], [ 28, %51 ], [ 25, %52 ], [ 62, %53 ], [ 63, %54 ], [ %135, %134 ], [ %93, %90 ], [ 0, %102 ], [ %71, %68 ], [ 1, %1 ], [ 5, %24 ], [ 60, %18 ], [ 0, %105 ], [ 5, %.lr.ph ], [ 5, %30 ]
  %137 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %.sink, ptr %137, align 8, !tbaa !36
  ret i32 %.sink
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !18, i64 48}
!6 = !{!"_ZTSN2ts7ScannerE", !7, i64 0, !10, i64 4, !11, i64 8, !12, i64 12, !13, i64 16, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !19, i64 64, !14, i64 72, !20, i64 104, !21, i64 112, !18, i64 136, !25, i64 140, !26, i64 144}
!7 = !{!"_ZTSN2ts10ScriptKindE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2ts12ScriptTargetE", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN2ts15LanguageVariantE", !8, i64 0}
!13 = !{!"_ZTSN2ts11safe_stringE", !14, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE", !15, i64 0, !17, i64 8, !8, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE12_Alloc_hiderE", !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = !{!"_ZTS10SyntaxKind", !8, i64 0}
!20 = !{!"_ZTSN2ts10TokenFlagsE", !8, i64 0}
!21 = !{!"_ZTSSt6vectorI3ptrIN2ts4data16CommentDirectiveEESaIS4_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data16CommentDirectiveEESaIS4_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data16CommentDirectiveEESaIS4_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data16CommentDirectiveEESaIS4_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!25 = !{!"_ZTSN2ts16JSDocParsingModeE", !8, i64 0}
!26 = !{!"_ZTSSt8functionIFv3ptrIN2ts4data17DiagnosticMessageEEiNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEEEE", !27, i64 0, !16, i64 24}
!27 = !{!"_ZTSSt14_Function_base", !8, i64 0, !16, i64 16}
!28 = !{!6, !18, i64 60}
!29 = !{!6, !18, i64 56}
!30 = !{!6, !20, i64 104}
!31 = !{!6, !18, i64 52}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!6, !10, i64 4}
!35 = distinct !{!35, !33}
!36 = !{!6, !19, i64 64}


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