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

; 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.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

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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2Ev(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 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 uwtable
define dso_local void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(176) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %16 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %17 = load i32, ptr %16, align 8, !tbaa !9
  store i32 %17, ptr %6, align 4, !tbaa !29
  br label %18

18:                                               ; preds = %136, %134, %2
  %19 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 6
  %22 = load i32, ptr %21, align 4, !tbaa !30
  %23 = icmp slt i32 %20, %22
  br i1 %23, label %24, label %138

24:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %25 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 4
  %26 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %27 = load i32, ptr %26, align 8, !tbaa !9
  %28 = invoke noundef i32 @_ZN2ts7Scanner11codePointAtERNS_11safe_stringEi(ptr noundef nonnull align 8 dereferenceable(176) %15, ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef %27)
          to label %29 unwind label %42

29:                                               ; preds = %24
  store i32 %28, ptr %7, align 4, !tbaa !31
  %30 = load i32, ptr %7, align 4, !tbaa !31
  %31 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 1
  %32 = load i32, ptr %31, align 4, !tbaa !33
  %33 = invoke noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176) %15, i32 noundef %30, i32 noundef %32, i32 noundef 0)
          to label %34 unwind label %42

34:                                               ; preds = %29
  br i1 %33, label %35, label %46

35:                                               ; preds = %34
  %36 = load i32, ptr %7, align 4, !tbaa !31
  %37 = invoke noundef i32 @_ZN2ts7Scanner8charSizeE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176) %15, i32 noundef %36)
          to label %38 unwind label %42

38:                                               ; preds = %35
  %39 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %40 = load i32, ptr %39, align 8, !tbaa !9
  %41 = add nsw i32 %40, %37
  store i32 %41, ptr %39, align 8, !tbaa !9
  br label %133

42:                                               ; preds = %93, %86, %81, %60, %54, %49, %35, %29, %24
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %8, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %9, align 4
  br label %137

46:                                               ; preds = %34
  %47 = load i32, ptr %7, align 4, !tbaa !31
  %48 = icmp eq i32 %47, 92
  br i1 %48, label %49, label %131

49:                                               ; preds = %46
  %50 = invoke noundef i32 @_ZN2ts7Scanner25peekExtendedUnicodeEscapeEv(ptr noundef nonnull align 8 dereferenceable(176) %15)
          to label %51 unwind label %42

51:                                               ; preds = %49
  store i32 %50, ptr %7, align 4, !tbaa !31
  %52 = load i32, ptr %7, align 4, !tbaa !31
  %53 = icmp sge i32 %52, 0
  br i1 %53, label %54, label %81

54:                                               ; preds = %51
  %55 = load i32, ptr %7, align 4, !tbaa !31
  %56 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !33
  %58 = invoke noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176) %15, i32 noundef %55, i32 noundef %57, i32 noundef 0)
          to label %59 unwind label %42

59:                                               ; preds = %54
  br i1 %58, label %60, label %81

60:                                               ; preds = %59
  %61 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %62 = load i32, ptr %61, align 8, !tbaa !9
  %63 = add nsw i32 %62, 3
  store i32 %63, ptr %61, align 8, !tbaa !9
  %64 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 11
  %65 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %64, i32 noundef 8)
          to label %66 unwind label %42

66:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #4
  invoke void @_ZN2ts7Scanner25scanExtendedUnicodeEscapeB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(176) %15)
          to label %67 unwind label %72

67:                                               ; preds = %66
  %68 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %69 unwind label %76

69:                                               ; preds = %67
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #4
  %70 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %71 = load i32, ptr %70, align 8, !tbaa !9
  store i32 %71, ptr %6, align 4, !tbaa !29
  store i32 2, ptr %11, align 4
  br label %134, !llvm.loop !34

72:                                               ; preds = %66
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  br label %80

76:                                               ; preds = %67
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %8, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #4
  br label %80

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #4
  br label %137

81:                                               ; preds = %59, %51
  %82 = invoke noundef i32 @_ZN2ts7Scanner17peekUnicodeEscapeEv(ptr noundef nonnull align 8 dereferenceable(176) %15)
          to label %83 unwind label %42

83:                                               ; preds = %81
  store i32 %82, ptr %7, align 4, !tbaa !31
  %84 = load i32, ptr %7, align 4, !tbaa !31
  %85 = icmp sge i32 %84, 0
  br i1 %85, label %86, label %92

86:                                               ; preds = %83
  %87 = load i32, ptr %7, align 4, !tbaa !31
  %88 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !33
  %90 = invoke noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176) %15, i32 noundef %87, i32 noundef %89, i32 noundef 0)
          to label %91 unwind label %42

91:                                               ; preds = %86
  br i1 %90, label %93, label %92

92:                                               ; preds = %91, %83
  store i32 3, ptr %11, align 4
  br label %134

93:                                               ; preds = %91
  %94 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 11
  %95 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %94, i32 noundef 1024)
          to label %96 unwind label %42

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  %97 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 4
  %98 = load i32, ptr %6, align 4, !tbaa !29
  %99 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %100 = load i32, ptr %99, align 8, !tbaa !9
  invoke void @_ZN2ts11safe_string9substringB5cxx11Eii(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %97, i32 noundef %98, i32 noundef %100)
          to label %101 unwind label %113

101:                                              ; preds = %96
  %102 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %103 unwind label %117

103:                                              ; preds = %101
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  %104 = load i32, ptr %7, align 4, !tbaa !31
  invoke void @_ZN2ts7Scanner19utf16EncodeAsStringB5cxx11E14CharacterCodes(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(176) %15, i32 noundef %104)
          to label %105 unwind label %122

105:                                              ; preds = %103
  %106 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %107 unwind label %126

107:                                              ; preds = %105
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  %108 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %109 = load i32, ptr %108, align 8, !tbaa !9
  %110 = add nsw i32 %109, 6
  store i32 %110, ptr %108, align 8, !tbaa !9
  %111 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %112 = load i32, ptr %111, align 8, !tbaa !9
  store i32 %112, ptr %6, align 4, !tbaa !29
  br label %132

113:                                              ; preds = %96
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %8, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %9, align 4
  br label %121

117:                                              ; preds = %101
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %8, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  br label %121

121:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  br label %137

122:                                              ; preds = %103
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %8, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %9, align 4
  br label %130

126:                                              ; preds = %105
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %8, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %130

130:                                              ; preds = %126, %122
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  br label %137

131:                                              ; preds = %46
  store i32 3, ptr %11, align 4
  br label %134

132:                                              ; preds = %107
  br label %133

133:                                              ; preds = %132, %38
  store i32 0, ptr %11, align 4
  br label %134

134:                                              ; preds = %133, %131, %92, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %135 = load i32, ptr %11, align 4
  switch i32 %135, label %164 [
    i32 0, label %136
    i32 2, label %18
    i32 3, label %138
  ]

136:                                              ; preds = %134
  br label %18, !llvm.loop !34

137:                                              ; preds = %130, %121, %80, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %156

138:                                              ; preds = %134, %18
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  %139 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 4
  %140 = load i32, ptr %6, align 4, !tbaa !29
  %141 = getelementptr inbounds %"class.ts::Scanner", ptr %15, i32 0, i32 5
  %142 = load i32, ptr %141, align 8, !tbaa !9
  invoke void @_ZN2ts11safe_string9substringB5cxx11Eii(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %139, i32 noundef %140, i32 noundef %142)
          to label %143 unwind label %147

143:                                              ; preds = %138
  %144 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %145 unwind label %151

145:                                              ; preds = %143
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %146 = load i1, ptr %5, align 1
  br i1 %146, label %158, label %157

147:                                              ; preds = %138
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %8, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %9, align 4
  br label %155

151:                                              ; preds = %143
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %8, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  br label %156

156:                                              ; preds = %155, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  br label %159

157:                                              ; preds = %145
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  br label %158

158:                                              ; preds = %157, %145
  ret void

159:                                              ; preds = %156
  %160 = load ptr, ptr %8, align 8
  %161 = load i32, ptr %9, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163

164:                                              ; preds = %134
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts7Scanner19utf16EncodeAsStringB5cxx11E14CharacterCodes(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) #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

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 = { 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 = !{!19, !19, i64 0}
!30 = !{!10, !19, i64 52}
!31 = !{!32, !32, i64 0}
!32 = !{!"_ZTS14CharacterCodes", !7, i64 0}
!33 = !{!10, !12, i64 4}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"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] }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2Ev(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 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 uwtable
define dso_local void @_ZN2ts7Scanner19scanIdentifierPartsB5cxx11Ev(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(176) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %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
  tail call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  %7 = getelementptr inbounds i8, ptr %1, i64 48
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 52
  %10 = load i32, ptr %9, align 4, !tbaa !28
  %11 = icmp slt i32 %8, %10
  br i1 %11, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %2
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = getelementptr inbounds i8, ptr %1, i64 4
  %14 = getelementptr inbounds i8, ptr %1, i64 104
  br label %15

15:                                               ; preds = %.lr.ph, %81
  %16 = phi i32 [ %8, %.lr.ph ], [ %82, %81 ]
  %.02148 = phi i32 [ %8, %.lr.ph ], [ %.223, %81 ]
  %17 = invoke noundef i32 @_ZN2ts7Scanner11codePointAtERNS_11safe_stringEi(ptr noundef nonnull align 8 dereferenceable(176) %1, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef %16)
          to label %18 unwind label %26

18:                                               ; preds = %15
  %19 = load i32, ptr %13, align 4, !tbaa !29
  %20 = invoke noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %17, i32 noundef %19, i32 noundef 0)
          to label %21 unwind label %26

21:                                               ; preds = %18
  br i1 %20, label %22, label %28

22:                                               ; preds = %21
  %23 = call noundef i32 @_ZN2ts7Scanner8charSizeE14CharacterCodes(ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %17)
  %24 = load i32, ptr %7, align 8, !tbaa !5
  %25 = add nsw i32 %24, %23
  br label %80

26:                                               ; preds = %55, %51, %34, %30, %18, %15
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %95

28:                                               ; preds = %21
  %29 = icmp eq i32 %17, 92
  br i1 %29, label %30, label %.thread.loopexit

30:                                               ; preds = %28
  %31 = invoke noundef i32 @_ZN2ts7Scanner25peekExtendedUnicodeEscapeEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %32 unwind label %26

32:                                               ; preds = %30
  %33 = icmp sgt i32 %31, -1
  br i1 %33, label %34, label %51

34:                                               ; preds = %32
  %35 = load i32, ptr %13, align 4, !tbaa !29
  %36 = invoke noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %31, i32 noundef %35, i32 noundef 0)
          to label %37 unwind label %26

37:                                               ; preds = %34
  br i1 %36, label %38, label %51

38:                                               ; preds = %37
  %39 = load i32, ptr %7, align 8, !tbaa !5
  %40 = add nsw i32 %39, 3
  store i32 %40, ptr %7, align 8, !tbaa !5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  invoke void @_ZN2ts7Scanner25scanExtendedUnicodeEscapeB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %42 unwind label %46

42:                                               ; preds = %38
  %43 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %44 unwind label %48

44:                                               ; preds = %42
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  %45 = load i32, ptr %7, align 8, !tbaa !5
  br label %81, !llvm.loop !30

46:                                               ; preds = %38
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %42
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %50

50:                                               ; preds = %48, %46
  %.pn31 = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  br label %95

51:                                               ; preds = %37, %32
  %52 = invoke noundef i32 @_ZN2ts7Scanner17peekUnicodeEscapeEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %53 unwind label %26

53:                                               ; preds = %51
  %54 = icmp sgt i32 %52, -1
  br i1 %54, label %55, label %.thread.loopexit

55:                                               ; preds = %53
  %56 = load i32, ptr %13, align 4, !tbaa !29
  %57 = invoke noundef zeroext i1 @_ZN2ts7Scanner16isIdentifierPartE14CharacterCodesNS_12ScriptTargetENS_15LanguageVariantE(ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %52, i32 noundef %56, i32 noundef 0)
          to label %58 unwind label %26

58:                                               ; preds = %55
  br i1 %57, label %59, label %.thread.loopexit

59:                                               ; preds = %58
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_10TokenFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 1024)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  %61 = load i32, ptr %7, align 8, !tbaa !5
  invoke void @_ZN2ts11safe_string9substringB5cxx11Eii(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef %.02148, i32 noundef %61)
          to label %62 unwind label %70

62:                                               ; preds = %59
  %63 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %64 unwind label %72

64:                                               ; preds = %62
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  invoke void @_ZN2ts7Scanner19utf16EncodeAsStringB5cxx11E14CharacterCodes(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %52)
          to label %65 unwind label %75

65:                                               ; preds = %64
  %66 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %67 unwind label %77

67:                                               ; preds = %65
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  %68 = load i32, ptr %7, align 8, !tbaa !5
  %69 = add nsw i32 %68, 6
  br label %80

70:                                               ; preds = %59
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

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

74:                                               ; preds = %72, %70
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  br label %95

75:                                               ; preds = %64
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %65
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %79

79:                                               ; preds = %77, %75
  %.pn29 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %95

80:                                               ; preds = %67, %22
  %storemerge = phi i32 [ %69, %67 ], [ %25, %22 ]
  %.122 = phi i32 [ %69, %67 ], [ %.02148, %22 ]
  store i32 %storemerge, ptr %7, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %80, %44
  %82 = phi i32 [ %storemerge, %80 ], [ %45, %44 ]
  %.223 = phi i32 [ %.122, %80 ], [ %45, %44 ]
  %83 = load i32, ptr %9, align 4, !tbaa !28
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %15, label %.thread.loopexit

.thread.loopexit:                                 ; preds = %28, %53, %58, %81
  %.021.lcssa.ph = phi i32 [ %.223, %81 ], [ %.02148, %58 ], [ %.02148, %53 ], [ %.02148, %28 ]
  %.pre = load i32, ptr %7, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.loopexit, %2
  %85 = phi i32 [ %8, %2 ], [ %.pre, %.thread.loopexit ]
  %.021.lcssa = phi i32 [ %8, %2 ], [ %.021.lcssa.ph, %.thread.loopexit ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  %86 = getelementptr inbounds i8, ptr %1, i64 16
  invoke void @_ZN2ts11safe_string9substringB5cxx11Eii(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %86, i32 noundef %.021.lcssa, i32 noundef %85)
          to label %87 unwind label %90

87:                                               ; preds = %.thread
  %88 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %89 unwind label %92

89:                                               ; preds = %87
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  ret void

90:                                               ; preds = %.thread
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %87
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br label %94

94:                                               ; preds = %92, %90
  %.pn34 = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %95

95:                                               ; preds = %26, %50, %74, %79, %94
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %94 ], [ %.pn31, %50 ], [ %.pn29, %79 ], [ %.pn, %74 ], [ %27, %26 ]
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  resume { ptr, i32 } %.pn34.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts7Scanner19utf16EncodeAsStringB5cxx11E14CharacterCodes(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) local_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

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 = { 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 52}
!29 = !{!6, !10, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass