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

; 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::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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::basic_ios" = type { %"class.std::ios_base", ptr, i32, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.ts::safe_string" = type { %"class.std::__cxx11::basic_string" }

@.str.5960 = external hidden unnamed_addr constant [6 x i32], align 4
@.str.6003 = external hidden unnamed_addr constant [5 x i32], align 4
@.str.6009 = external hidden unnamed_addr constant [8 x i32], align 4
@.str.6446 = external hidden unnamed_addr constant [24 x i32], align 4
@.str.6447 = external hidden unnamed_addr constant [23 x i32], align 4
@.str.6448 = external hidden unnamed_addr constant [25 x i32], align 4

; 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 dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ts7Scanner33computePositionOfLineAndCharacterESt6vectorIiSaIiEEiiNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEEb(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i1 noundef zeroext %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector.35", align 8
  %18 = alloca i1, align 1
  %19 = alloca %"struct.ts::safe_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca i1, align 1
  %22 = alloca i1, align 1
  %23 = alloca i1, align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  %27 = zext i1 %5 to i8
  store i8 %27, ptr %13, align 1, !tbaa !11
  %28 = load ptr, ptr %8, align 8
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = icmp slt i32 %29, 0
  br i1 %30, label %36, label %31

31:                                               ; preds = %6
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %35 = icmp uge i64 %33, %34
  br i1 %35, label %36, label %142

36:                                               ; preds = %31, %6
  %37 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %59

39:                                               ; preds = %36
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  br label %56

43:                                               ; preds = %39
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %47 = icmp uge i64 %45, %46
  br i1 %47, label %48, label %51

48:                                               ; preds = %43
  %49 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %50 = sub i64 %49, 1
  br label %54

51:                                               ; preds = %43
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  br label %54

54:                                               ; preds = %51, %48
  %55 = phi i64 [ %50, %48 ], [ %53, %51 ]
  br label %56

56:                                               ; preds = %54, %42
  %57 = phi i64 [ 0, %42 ], [ %55, %54 ]
  %58 = trunc i64 %57 to i32
  store i32 %58, ptr %10, align 4, !tbaa !9
  br label %141

59:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 392, ptr %14) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %14)
  %60 = getelementptr inbounds i8, ptr %14, i64 16
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef @.str.6446)
          to label %62 unwind label %101

62:                                               ; preds = %59
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi(ptr noundef nonnull align 8 dereferenceable(8) %61, i32 noundef %63)
          to label %65 unwind label %101

65:                                               ; preds = %62
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef @.str.6447)
          to label %67 unwind label %101

67:                                               ; preds = %65
  %68 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEm(ptr noundef nonnull align 8 dereferenceable(8) %66, i64 noundef %68)
          to label %70 unwind label %101

70:                                               ; preds = %67
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef @.str.6448)
          to label %72 unwind label %101

72:                                               ; preds = %70
  %73 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  store i1 false, ptr %18, align 1
  store i1 false, ptr %21, align 1
  store i1 false, ptr %22, align 1
  store i1 false, ptr %23, align 1
  br i1 %73, label %82, label %74

74:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  store i1 true, ptr %18, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %75 unwind label %105

75:                                               ; preds = %74
  store i1 true, ptr %21, align 1
  invoke void @_ZN2ts11safe_stringC2ENSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef %20)
          to label %76 unwind label %109

76:                                               ; preds = %75
  store i1 true, ptr %22, align 1
  invoke void @_ZN2ts7Scanner17computeLineStartsENS_11safe_stringE(ptr dead_on_unwind writable sret(%"class.std::vector.35") align 8 %17, ptr noundef nonnull align 8 dereferenceable(176) %28, ptr noundef %19)
          to label %77 unwind label %113

77:                                               ; preds = %76
  store i1 true, ptr %23, align 1
  %78 = invoke noundef zeroext i1 @_ZN2ts11arraysEqualIiEEbRKSt6vectorIT_SaIS2_EES6_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %79 unwind label %117

79:                                               ; preds = %77
  %80 = zext i1 %78 to i64
  %81 = select i1 %78, ptr @.str.6003, ptr @.str.5960
  br label %83

82:                                               ; preds = %72
  br label %83

83:                                               ; preds = %82, %79
  %84 = phi ptr [ %81, %79 ], [ @.str.6009, %82 ]
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef %84)
          to label %86 unwind label %117

86:                                               ; preds = %83
  %87 = load i1, ptr %23, align 1
  br i1 %87, label %88, label %89

88:                                               ; preds = %86
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  br label %89

89:                                               ; preds = %88, %86
  %90 = load i1, ptr %22, align 1
  br i1 %90, label %91, label %92

91:                                               ; preds = %89
  call void @_ZN2ts11safe_stringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %92

92:                                               ; preds = %91, %89
  %93 = load i1, ptr %21, align 1
  br i1 %93, label %94, label %95

94:                                               ; preds = %92
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %95

95:                                               ; preds = %94, %92
  %96 = load i1, ptr %18, align 1
  br i1 %96, label %97, label %98

97:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %98

98:                                               ; preds = %97, %95
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 8 dereferenceable(128) %14)
          to label %99 unwind label %101

99:                                               ; preds = %98
  invoke void @_ZN2tsL5debugENSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE(ptr noundef %24)
          to label %100 unwind label %136

100:                                              ; preds = %99
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %14) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %14) #6
  br label %141

101:                                              ; preds = %98, %70, %67, %65, %62, %59
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %15, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %16, align 4
  br label %140

105:                                              ; preds = %74
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %15, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %16, align 4
  br label %132

109:                                              ; preds = %75
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %15, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %16, align 4
  br label %128

113:                                              ; preds = %76
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %15, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %16, align 4
  br label %124

117:                                              ; preds = %83, %77
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %15, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %16, align 4
  %121 = load i1, ptr %23, align 1
  br i1 %121, label %122, label %123

122:                                              ; preds = %117
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  br label %123

123:                                              ; preds = %122, %117
  br label %124

124:                                              ; preds = %123, %113
  %125 = load i1, ptr %22, align 1
  br i1 %125, label %126, label %127

126:                                              ; preds = %124
  call void @_ZN2ts11safe_stringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %127

127:                                              ; preds = %126, %124
  br label %128

128:                                              ; preds = %127, %109
  %129 = load i1, ptr %21, align 1
  br i1 %129, label %130, label %131

130:                                              ; preds = %128
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %131

131:                                              ; preds = %130, %128
  br label %132

132:                                              ; preds = %131, %105
  %133 = load i1, ptr %18, align 1
  br i1 %133, label %134, label %135

134:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %135

135:                                              ; preds = %134, %132
  br label %140

136:                                              ; preds = %99
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %15, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %140

140:                                              ; preds = %136, %135, %101
  call void @_ZNSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %14) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %14) #6
  br label %209

141:                                              ; preds = %100, %56
  br label %142

142:                                              ; preds = %141, %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %144) #6
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = add nsw i32 %146, %147
  store i32 %148, ptr %25, align 4, !tbaa !9
  %149 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %183

151:                                              ; preds = %142
  %152 = load i32, ptr %25, align 4, !tbaa !9
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %155) #6
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = icmp sgt i32 %152, %157
  br i1 %158, label %159, label %166

159:                                              ; preds = %151
  %160 = load i32, ptr %10, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %162) #6
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  br label %180

166:                                              ; preds = %151
  %167 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br i1 %167, label %175, label %168

168:                                              ; preds = %166
  %169 = load i32, ptr %25, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %172 = icmp ugt i64 %170, %171
  br i1 %172, label %173, label %175

173:                                              ; preds = %168
  %174 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %178

175:                                              ; preds = %168, %166
  %176 = load i32, ptr %25, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  br label %178

178:                                              ; preds = %175, %173
  %179 = phi i64 [ %174, %173 ], [ %177, %175 ]
  br label %180

180:                                              ; preds = %178, %159
  %181 = phi i64 [ %165, %159 ], [ %179, %178 ]
  %182 = trunc i64 %181 to i32
  store i32 %182, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %207

183:                                              ; preds = %142
  %184 = load i32, ptr %10, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %187 = sub i64 %186, 1
  %188 = icmp ult i64 %185, %187
  br i1 %188, label %189, label %197

189:                                              ; preds = %183
  %190 = load i32, ptr %25, align 4, !tbaa !9
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = add nsw i32 %191, 1
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %193) #6
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = icmp slt i32 %190, %195
  call void @_ZN2tsL5debugEb(i1 noundef zeroext %196)
  br label %205

197:                                              ; preds = %183
  %198 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br i1 %198, label %204, label %199

199:                                              ; preds = %197
  %200 = load i32, ptr %25, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %203 = icmp ule i64 %201, %202
  call void @_ZN2tsL5debugEb(i1 noundef zeroext %203)
  br label %204

204:                                              ; preds = %199, %197
  br label %205

205:                                              ; preds = %204, %189
  %206 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %206, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %207

207:                                              ; preds = %205, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  %208 = load i32, ptr %7, align 4
  ret i32 %208

209:                                              ; preds = %140
  %210 = load ptr, ptr %15, align 8
  %211 = load i32, ptr %16, align 4
  %212 = insertvalue { ptr, i32 } poison, ptr %210, 0
  %213 = insertvalue { ptr, i32 } %212, i32 %211, 1
  resume { ptr, i32 } %213
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2ts11arraysEqualIiEEbRKSt6vectorIT_SaIS2_EES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN2tsL5debugENSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE(ptr noundef) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN2tsL5debugEb(i1 noundef zeroext) #1

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 = { "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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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::basic_ios" = type { %"class.std::ios_base", ptr, i32, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.ts::safe_string" = type { %"class.std::__cxx11::basic_string" }

@.str.5960 = external hidden unnamed_addr constant [6 x i32], align 4
@.str.6003 = external hidden unnamed_addr constant [5 x i32], align 4
@.str.6009 = external hidden unnamed_addr constant [8 x i32], align 4
@.str.6446 = external hidden unnamed_addr constant [24 x i32], align 4
@.str.6447 = external hidden unnamed_addr constant [23 x i32], align 4
@.str.6448 = external hidden unnamed_addr constant [25 x i32], align 4

; 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 dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ts7Scanner33computePositionOfLineAndCharacterESt6vectorIiSaIiEEiiNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEEb(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i1 noundef zeroext %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %8 = alloca %"class.std::vector.35", align 8
  %9 = alloca %"struct.ts::safe_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = icmp slt i32 %2, 0
  br i1 %12, label %16, label %13

13:                                               ; preds = %6
  %14 = zext nneg i32 %2 to i64
  %15 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not = icmp ugt i64 %15, %14
  br i1 %.not, label %66, label %.thread

16:                                               ; preds = %6
  br i1 %5, label %66, label %23

.thread:                                          ; preds = %13
  br i1 %5, label %17, label %23

17:                                               ; preds = %.thread
  %18 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not56 = icmp ugt i64 %18, %14
  br i1 %.not56, label %66, label %19

19:                                               ; preds = %17
  %20 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %21 = trunc i64 %20 to i32
  %22 = add i32 %21, -1
  br label %66

23:                                               ; preds = %.thread, %16
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %7) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7)
  %24 = getelementptr inbounds i8, ptr %7, i64 16
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.6446)
          to label %26 unwind label %49

26:                                               ; preds = %23
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef %2)
          to label %28 unwind label %49

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.6447)
          to label %30 unwind label %49

30:                                               ; preds = %28
  %31 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEm(ptr noundef nonnull align 8 dereferenceable(8) %29, i64 noundef %31)
          to label %33 unwind label %49

33:                                               ; preds = %30
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.6448)
          to label %35 unwind label %49

35:                                               ; preds = %33
  %36 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br i1 %36, label %43, label %37

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %38 unwind label %51

38:                                               ; preds = %37
  invoke void @_ZN2ts11safe_stringC2ENSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull %10)
          to label %39 unwind label %53

39:                                               ; preds = %38
  invoke void @_ZN2ts7Scanner17computeLineStartsENS_11safe_stringE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.35") align 8 %8, ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull %9)
          to label %40 unwind label %55

40:                                               ; preds = %39
  %41 = call noundef zeroext i1 @_ZN2ts11arraysEqualIiEEbRKSt6vectorIT_SaIS2_EES6_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %8)
  %42 = select i1 %41, ptr @.str.6003, ptr @.str.5960
  br label %43

43:                                               ; preds = %35, %40
  %44 = phi ptr [ @.str.6009, %35 ], [ %42, %40 ]
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull %44)
          to label %46 unwind label %57

46:                                               ; preds = %43
  br i1 %36, label %.critedge58, label %.critedge

.critedge:                                        ; preds = %46
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @_ZN2ts11safe_stringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %.critedge58

.critedge58:                                      ; preds = %46, %.critedge
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(128) %7)
          to label %47 unwind label %49

47:                                               ; preds = %.critedge58
  invoke void @_ZN2tsL5debugENSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE(ptr noundef nonnull %11)
          to label %48 unwind label %63

48:                                               ; preds = %47
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %7) #6
  br label %66

49:                                               ; preds = %.critedge58, %33, %30, %28, %26, %23
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %65

51:                                               ; preds = %37
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %62

53:                                               ; preds = %38
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %61

55:                                               ; preds = %39
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %60

57:                                               ; preds = %43
  %58 = landingpad { ptr, i32 }
          cleanup
  br i1 %36, label %65, label %59

59:                                               ; preds = %57
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %60

60:                                               ; preds = %59, %55
  %.pn.ph = phi { ptr, i32 } [ %56, %55 ], [ %58, %59 ]
  call void @_ZN2ts11safe_stringD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %61

61:                                               ; preds = %60, %53
  %.pn.pn.ph = phi { ptr, i32 } [ %54, %53 ], [ %.pn.ph, %60 ]
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %62

62:                                               ; preds = %61, %51
  %.pn.pn.pn.ph = phi { ptr, i32 } [ %52, %51 ], [ %.pn.pn.ph, %61 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %65

63:                                               ; preds = %47
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %65

65:                                               ; preds = %57, %62, %63, %49
  %.pn54 = phi { ptr, i32 } [ %64, %63 ], [ %50, %49 ], [ %.pn.pn.pn.ph, %62 ], [ %58, %57 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn54

66:                                               ; preds = %16, %19, %17, %48, %13
  %.046 = phi i32 [ %2, %48 ], [ %2, %13 ], [ %22, %19 ], [ %2, %17 ], [ 0, %16 ]
  %67 = sext i32 %.046 to i64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %67) #6
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = add nsw i32 %69, %3
  br i1 %5, label %71, label %89

71:                                               ; preds = %66
  %72 = add nsw i32 %.046, 1
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %73) #6
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = icmp sgt i32 %70, %75
  br i1 %76, label %77, label %80

77:                                               ; preds = %71
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %73) #6
  %79 = load i32, ptr %78, align 4, !tbaa !5
  br label %105

80:                                               ; preds = %71
  %81 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br i1 %81, label %105, label %82

82:                                               ; preds = %80
  %83 = sext i32 %70 to i64
  %84 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %85 = icmp ult i64 %84, %83
  br i1 %85, label %86, label %105

86:                                               ; preds = %82
  %87 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %88 = trunc i64 %87 to i32
  br label %105

89:                                               ; preds = %66
  %90 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %91 = add i64 %90, -1
  %92 = icmp ugt i64 %91, %67
  br i1 %92, label %93, label %99

93:                                               ; preds = %89
  %94 = add nsw i32 %.046, 1
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %95) #6
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = icmp slt i32 %70, %97
  call void @_ZN2tsL5debugEb(i1 noundef zeroext %98)
  br label %105

99:                                               ; preds = %89
  %100 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br i1 %100, label %105, label %101

101:                                              ; preds = %99
  %102 = sext i32 %70 to i64
  %103 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %104 = icmp uge i64 %103, %102
  call void @_ZN2tsL5debugEb(i1 noundef zeroext %104)
  br label %105

105:                                              ; preds = %93, %101, %99, %77, %86, %82, %80
  %.0 = phi i32 [ %79, %77 ], [ %88, %86 ], [ %70, %82 ], [ %70, %80 ], [ %70, %99 ], [ %70, %101 ], [ %70, %93 ]
  ret i32 %.0
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIwSt11char_traitsIwESaIwEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIwSt11char_traitsIwEERSt13basic_ostreamIT_T0_ES6_PKS3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN2tsL5debugENSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN2tsL5debugEb(i1 noundef zeroext) local_unnamed_addr #1

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 = { "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 #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass