; LLVM IR from DionysiosB/CodeForces :: 1500-1599 (1509D-BinaryLiterature)

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %22

22:                                               ; preds = %331, %0
  %23 = load i64, ptr %2, align 8, !tbaa !5
  %24 = add nsw i64 %23, -1
  store i64 %24, ptr %2, align 8, !tbaa !5
  %25 = icmp ne i64 %23, 0
  br i1 %25, label %26, label %339

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %29 unwind label %55

29:                                               ; preds = %26
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %31 unwind label %55

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %33 unwind label %55

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %34 unwind label %59

34:                                               ; preds = %33
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %139, %34
  %36 = load i64, ptr %14, align 8, !tbaa !5
  %37 = load i64, ptr %3, align 8, !tbaa !5
  %38 = mul nsw i64 3, %37
  %39 = icmp slt i64 %36, %38
  br i1 %39, label %40, label %52

40:                                               ; preds = %35
  %41 = load i64, ptr %9, align 8, !tbaa !5
  %42 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %44, label %52

44:                                               ; preds = %40
  %45 = load i64, ptr %10, align 8, !tbaa !5
  %46 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %47 = icmp ult i64 %45, %46
  br i1 %47, label %48, label %52

48:                                               ; preds = %44
  %49 = load i64, ptr %11, align 8, !tbaa !5
  %50 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %51 = icmp ult i64 %49, %50
  br label %52

52:                                               ; preds = %48, %44, %40, %35
  %53 = phi i1 [ false, %44 ], [ false, %40 ], [ false, %35 ], [ %51, %48 ]
  br i1 %53, label %63, label %54

54:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %142

55:                                               ; preds = %31, %29, %26
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %7, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %8, align 4
  br label %338

59:                                               ; preds = %33
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %337

63:                                               ; preds = %52
  %64 = load i64, ptr %9, align 8, !tbaa !5
  %65 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %64)
          to label %66 unwind label %86

66:                                               ; preds = %63
  %67 = load i8, ptr %65, align 1, !tbaa !9
  %68 = sext i8 %67 to i32
  %69 = load i64, ptr %10, align 8, !tbaa !5
  %70 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %69)
          to label %71 unwind label %86

71:                                               ; preds = %66
  %72 = load i8, ptr %70, align 1, !tbaa !9
  %73 = sext i8 %72 to i32
  %74 = icmp eq i32 %68, %73
  br i1 %74, label %75, label %90

75:                                               ; preds = %71
  %76 = load i64, ptr %9, align 8, !tbaa !5
  %77 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %76)
          to label %78 unwind label %86

78:                                               ; preds = %75
  %79 = load i8, ptr %77, align 1, !tbaa !9
  %80 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %79)
          to label %81 unwind label %86

81:                                               ; preds = %78
  %82 = load i64, ptr %9, align 8, !tbaa !5
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %9, align 8, !tbaa !5
  %84 = load i64, ptr %10, align 8, !tbaa !5
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %10, align 8, !tbaa !5
  br label %138

86:                                               ; preds = %128, %125, %116, %113, %105, %102, %93, %90, %78, %75, %66, %63
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %336

90:                                               ; preds = %71
  %91 = load i64, ptr %9, align 8, !tbaa !5
  %92 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %91)
          to label %93 unwind label %86

93:                                               ; preds = %90
  %94 = load i8, ptr %92, align 1, !tbaa !9
  %95 = sext i8 %94 to i32
  %96 = load i64, ptr %11, align 8, !tbaa !5
  %97 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %96)
          to label %98 unwind label %86

98:                                               ; preds = %93
  %99 = load i8, ptr %97, align 1, !tbaa !9
  %100 = sext i8 %99 to i32
  %101 = icmp eq i32 %95, %100
  br i1 %101, label %102, label %113

102:                                              ; preds = %98
  %103 = load i64, ptr %9, align 8, !tbaa !5
  %104 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %103)
          to label %105 unwind label %86

105:                                              ; preds = %102
  %106 = load i8, ptr %104, align 1, !tbaa !9
  %107 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %106)
          to label %108 unwind label %86

108:                                              ; preds = %105
  %109 = load i64, ptr %9, align 8, !tbaa !5
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %9, align 8, !tbaa !5
  %111 = load i64, ptr %11, align 8, !tbaa !5
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %11, align 8, !tbaa !5
  br label %137

113:                                              ; preds = %98
  %114 = load i64, ptr %10, align 8, !tbaa !5
  %115 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %114)
          to label %116 unwind label %86

116:                                              ; preds = %113
  %117 = load i8, ptr %115, align 1, !tbaa !9
  %118 = sext i8 %117 to i32
  %119 = load i64, ptr %11, align 8, !tbaa !5
  %120 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %119)
          to label %121 unwind label %86

121:                                              ; preds = %116
  %122 = load i8, ptr %120, align 1, !tbaa !9
  %123 = sext i8 %122 to i32
  %124 = icmp eq i32 %118, %123
  br i1 %124, label %125, label %136

125:                                              ; preds = %121
  %126 = load i64, ptr %10, align 8, !tbaa !5
  %127 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %126)
          to label %128 unwind label %86

128:                                              ; preds = %125
  %129 = load i8, ptr %127, align 1, !tbaa !9
  %130 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %129)
          to label %131 unwind label %86

131:                                              ; preds = %128
  %132 = load i64, ptr %10, align 8, !tbaa !5
  %133 = add nsw i64 %132, 1
  store i64 %133, ptr %10, align 8, !tbaa !5
  %134 = load i64, ptr %11, align 8, !tbaa !5
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %11, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %131, %121
  br label %137

137:                                              ; preds = %136, %108
  br label %138

138:                                              ; preds = %137, %81
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %14, align 8, !tbaa !5
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %14, align 8, !tbaa !5
  br label %35, !llvm.loop !10

142:                                              ; preds = %54
  %143 = load i64, ptr %9, align 8, !tbaa !5
  %144 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %145 = icmp eq i64 %143, %144
  br i1 %145, label %146, label %172

146:                                              ; preds = %142
  %147 = load i64, ptr %10, align 8, !tbaa !5
  %148 = load i64, ptr %11, align 8, !tbaa !5
  %149 = icmp sle i64 %147, %148
  br i1 %149, label %150, label %172

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %151 = load i64, ptr %11, align 8, !tbaa !5
  store i64 %151, ptr %15, align 8, !tbaa !5
  br label %152

152:                                              ; preds = %164, %150
  %153 = load i64, ptr %15, align 8, !tbaa !5
  %154 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %155 = icmp ult i64 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %171

157:                                              ; preds = %152
  %158 = load i64, ptr %15, align 8, !tbaa !5
  %159 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %158)
          to label %160 unwind label %167

160:                                              ; preds = %157
  %161 = load i8, ptr %159, align 1, !tbaa !9
  %162 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %161)
          to label %163 unwind label %167

163:                                              ; preds = %160
  br label %164

164:                                              ; preds = %163
  %165 = load i64, ptr %15, align 8, !tbaa !5
  %166 = add nsw i64 %165, 1
  store i64 %166, ptr %15, align 8, !tbaa !5
  br label %152, !llvm.loop !12

167:                                              ; preds = %160, %157
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %7, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %336

171:                                              ; preds = %156
  br label %327

172:                                              ; preds = %146, %142
  %173 = load i64, ptr %9, align 8, !tbaa !5
  %174 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %175 = icmp eq i64 %173, %174
  br i1 %175, label %176, label %202

176:                                              ; preds = %172
  %177 = load i64, ptr %11, align 8, !tbaa !5
  %178 = load i64, ptr %10, align 8, !tbaa !5
  %179 = icmp sle i64 %177, %178
  br i1 %179, label %180, label %202

180:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %181 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %181, ptr %16, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %194, %180
  %183 = load i64, ptr %16, align 8, !tbaa !5
  %184 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %185 = icmp ult i64 %183, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %201

187:                                              ; preds = %182
  %188 = load i64, ptr %16, align 8, !tbaa !5
  %189 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %188)
          to label %190 unwind label %197

190:                                              ; preds = %187
  %191 = load i8, ptr %189, align 1, !tbaa !9
  %192 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %191)
          to label %193 unwind label %197

193:                                              ; preds = %190
  br label %194

194:                                              ; preds = %193
  %195 = load i64, ptr %16, align 8, !tbaa !5
  %196 = add nsw i64 %195, 1
  store i64 %196, ptr %16, align 8, !tbaa !5
  br label %182, !llvm.loop !13

197:                                              ; preds = %190, %187
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %7, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %336

201:                                              ; preds = %186
  br label %326

202:                                              ; preds = %176, %172
  %203 = load i64, ptr %10, align 8, !tbaa !5
  %204 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %205 = icmp eq i64 %203, %204
  br i1 %205, label %206, label %232

206:                                              ; preds = %202
  %207 = load i64, ptr %9, align 8, !tbaa !5
  %208 = load i64, ptr %11, align 8, !tbaa !5
  %209 = icmp sle i64 %207, %208
  br i1 %209, label %210, label %232

210:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %211 = load i64, ptr %11, align 8, !tbaa !5
  store i64 %211, ptr %17, align 8, !tbaa !5
  br label %212

212:                                              ; preds = %224, %210
  %213 = load i64, ptr %17, align 8, !tbaa !5
  %214 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %215 = icmp ult i64 %213, %214
  br i1 %215, label %217, label %216

216:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %231

217:                                              ; preds = %212
  %218 = load i64, ptr %17, align 8, !tbaa !5
  %219 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %218)
          to label %220 unwind label %227

220:                                              ; preds = %217
  %221 = load i8, ptr %219, align 1, !tbaa !9
  %222 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %221)
          to label %223 unwind label %227

223:                                              ; preds = %220
  br label %224

224:                                              ; preds = %223
  %225 = load i64, ptr %17, align 8, !tbaa !5
  %226 = add nsw i64 %225, 1
  store i64 %226, ptr %17, align 8, !tbaa !5
  br label %212, !llvm.loop !14

227:                                              ; preds = %220, %217
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %7, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %336

231:                                              ; preds = %216
  br label %325

232:                                              ; preds = %206, %202
  %233 = load i64, ptr %10, align 8, !tbaa !5
  %234 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %235 = icmp eq i64 %233, %234
  br i1 %235, label %236, label %262

236:                                              ; preds = %232
  %237 = load i64, ptr %11, align 8, !tbaa !5
  %238 = load i64, ptr %9, align 8, !tbaa !5
  %239 = icmp sle i64 %237, %238
  br i1 %239, label %240, label %262

240:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %241 = load i64, ptr %9, align 8, !tbaa !5
  store i64 %241, ptr %18, align 8, !tbaa !5
  br label %242

242:                                              ; preds = %254, %240
  %243 = load i64, ptr %18, align 8, !tbaa !5
  %244 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %245 = icmp ult i64 %243, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %261

247:                                              ; preds = %242
  %248 = load i64, ptr %18, align 8, !tbaa !5
  %249 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %248)
          to label %250 unwind label %257

250:                                              ; preds = %247
  %251 = load i8, ptr %249, align 1, !tbaa !9
  %252 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %251)
          to label %253 unwind label %257

253:                                              ; preds = %250
  br label %254

254:                                              ; preds = %253
  %255 = load i64, ptr %18, align 8, !tbaa !5
  %256 = add nsw i64 %255, 1
  store i64 %256, ptr %18, align 8, !tbaa !5
  br label %242, !llvm.loop !15

257:                                              ; preds = %250, %247
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %7, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %336

261:                                              ; preds = %246
  br label %324

262:                                              ; preds = %236, %232
  %263 = load i64, ptr %11, align 8, !tbaa !5
  %264 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %265 = icmp eq i64 %263, %264
  br i1 %265, label %266, label %292

266:                                              ; preds = %262
  %267 = load i64, ptr %9, align 8, !tbaa !5
  %268 = load i64, ptr %10, align 8, !tbaa !5
  %269 = icmp sle i64 %267, %268
  br i1 %269, label %270, label %292

270:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %271 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %271, ptr %19, align 8, !tbaa !5
  br label %272

272:                                              ; preds = %284, %270
  %273 = load i64, ptr %19, align 8, !tbaa !5
  %274 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %275 = icmp ult i64 %273, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %291

277:                                              ; preds = %272
  %278 = load i64, ptr %19, align 8, !tbaa !5
  %279 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %278)
          to label %280 unwind label %287

280:                                              ; preds = %277
  %281 = load i8, ptr %279, align 1, !tbaa !9
  %282 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %281)
          to label %283 unwind label %287

283:                                              ; preds = %280
  br label %284

284:                                              ; preds = %283
  %285 = load i64, ptr %19, align 8, !tbaa !5
  %286 = add nsw i64 %285, 1
  store i64 %286, ptr %19, align 8, !tbaa !5
  br label %272, !llvm.loop !16

287:                                              ; preds = %280, %277
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %7, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %336

291:                                              ; preds = %276
  br label %323

292:                                              ; preds = %266, %262
  %293 = load i64, ptr %11, align 8, !tbaa !5
  %294 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %295 = icmp eq i64 %293, %294
  br i1 %295, label %296, label %322

296:                                              ; preds = %292
  %297 = load i64, ptr %10, align 8, !tbaa !5
  %298 = load i64, ptr %9, align 8, !tbaa !5
  %299 = icmp sle i64 %297, %298
  br i1 %299, label %300, label %322

300:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %301 = load i64, ptr %9, align 8, !tbaa !5
  store i64 %301, ptr %20, align 8, !tbaa !5
  br label %302

302:                                              ; preds = %314, %300
  %303 = load i64, ptr %20, align 8, !tbaa !5
  %304 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %305 = icmp ult i64 %303, %304
  br i1 %305, label %307, label %306

306:                                              ; preds = %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %321

307:                                              ; preds = %302
  %308 = load i64, ptr %20, align 8, !tbaa !5
  %309 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %308)
          to label %310 unwind label %317

310:                                              ; preds = %307
  %311 = load i8, ptr %309, align 1, !tbaa !9
  %312 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext %311)
          to label %313 unwind label %317

313:                                              ; preds = %310
  br label %314

314:                                              ; preds = %313
  %315 = load i64, ptr %20, align 8, !tbaa !5
  %316 = add nsw i64 %315, 1
  store i64 %316, ptr %20, align 8, !tbaa !5
  br label %302, !llvm.loop !17

317:                                              ; preds = %310, %307
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %7, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %336

321:                                              ; preds = %306
  br label %322

322:                                              ; preds = %321, %296, %292
  br label %323

323:                                              ; preds = %322, %291
  br label %324

324:                                              ; preds = %323, %261
  br label %325

325:                                              ; preds = %324, %231
  br label %326

326:                                              ; preds = %325, %201
  br label %327

327:                                              ; preds = %326, %171
  %328 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %329 unwind label %332

329:                                              ; preds = %327
  %330 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %328, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %331 unwind label %332

331:                                              ; preds = %329
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %22, !llvm.loop !18

332:                                              ; preds = %329, %327
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %7, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %8, align 4
  br label %336

336:                                              ; preds = %332, %317, %287, %257, %227, %197, %167, %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %337

337:                                              ; preds = %336, %59
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %338

338:                                              ; preds = %337, %55
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %341

339:                                              ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %340 = load i32, ptr %1, align 4
  ret i32 %340

341:                                              ; preds = %338
  %342 = load ptr, ptr %7, align 8
  %343 = load i32, ptr %8, align 4
  %344 = insertvalue { ptr, i32 } poison, ptr %342, 0
  %345 = insertvalue { ptr, i32 } %344, i32 %343, 1
  resume { ptr, i32 } %345
}

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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


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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = add nsw i64 %9, -1
  store i64 %10, ptr %1, align 8, !tbaa !5
  %.not137 = icmp eq i64 %9, 0
  br i1 %.not137, label %._crit_edge, label %.lr.ph138

.lr.ph138:                                        ; preds = %0, %162
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %12 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %13 unwind label %33

13:                                               ; preds = %.lr.ph138
  %14 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %15 unwind label %33

15:                                               ; preds = %13
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %17 unwind label %33

17:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %18 unwind label %35

18:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  %19 = load i64, ptr %2, align 8, !tbaa !5
  %20 = icmp sgt i64 %19, 0
  br i1 %20, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %18, %76
  %.069110 = phi i64 [ %77, %76 ], [ 0, %18 ]
  %.070109 = phi i64 [ %.1, %76 ], [ 0, %18 ]
  %.071108 = phi i64 [ %.172, %76 ], [ 0, %18 ]
  %.073107 = phi i64 [ %.174, %76 ], [ 0, %18 ]
  %21 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %22 = icmp ult i64 %.073107, %21
  br i1 %22, label %23, label %.critedge

23:                                               ; preds = %.lr.ph
  %24 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %25 = icmp ult i64 %.071108, %24
  br i1 %25, label %26, label %.critedge

26:                                               ; preds = %23
  %27 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %28 = icmp ult i64 %.070109, %27
  br i1 %28, label %37, label %.critedge

.critedge:                                        ; preds = %26, %76, %.lr.ph, %23, %18
  %.073.lcssa = phi i64 [ 0, %18 ], [ %.073107, %23 ], [ %.073107, %.lr.ph ], [ %.174, %76 ], [ %.073107, %26 ]
  %.071.lcssa = phi i64 [ 0, %18 ], [ %.071108, %23 ], [ %.071108, %.lr.ph ], [ %.172, %76 ], [ %.071108, %26 ]
  %.070.lcssa = phi i64 [ 0, %18 ], [ %.070109, %23 ], [ %.070109, %.lr.ph ], [ %.1, %76 ], [ %.070109, %26 ]
  %29 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %30 = icmp ne i64 %.073.lcssa, %29
  %.not80 = icmp sgt i64 %.071.lcssa, %.070.lcssa
  %or.cond = select i1 %30, i1 true, i1 %.not80
  br i1 %or.cond, label %90, label %.preheader102

.preheader102:                                    ; preds = %.critedge
  %31 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %32 = icmp ult i64 %.070.lcssa, %31
  br i1 %32, label %.lr.ph126, label %.loopexit

33:                                               ; preds = %15, %13, %.lr.ph138
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %169

35:                                               ; preds = %17
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  br label %168

37:                                               ; preds = %26
  %38 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.073107)
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.071108)
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = icmp eq i8 %39, %41
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.073107)
  %44 = load i8, ptr %43, align 1, !tbaa !9
  br i1 %42, label %45, label %52

45:                                               ; preds = %37
  %46 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %44)
          to label %47 unwind label %50

47:                                               ; preds = %45
  %48 = add nuw nsw i64 %.073107, 1
  %49 = add nuw nsw i64 %.071108, 1
  br label %76

50:                                               ; preds = %69, %56, %45
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %167

52:                                               ; preds = %37
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.070109)
  %54 = load i8, ptr %53, align 1, !tbaa !9
  %55 = icmp eq i8 %44, %54
  br i1 %55, label %56, label %63

56:                                               ; preds = %52
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.073107)
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %58)
          to label %60 unwind label %50

60:                                               ; preds = %56
  %61 = add nuw nsw i64 %.073107, 1
  %62 = add nuw nsw i64 %.070109, 1
  br label %76

63:                                               ; preds = %52
  %64 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.071108)
  %65 = load i8, ptr %64, align 1, !tbaa !9
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.070109)
  %67 = load i8, ptr %66, align 1, !tbaa !9
  %68 = icmp eq i8 %65, %67
  br i1 %68, label %69, label %76

69:                                               ; preds = %63
  %70 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.071108)
  %71 = load i8, ptr %70, align 1, !tbaa !9
  %72 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %71)
          to label %73 unwind label %50

73:                                               ; preds = %69
  %74 = add nuw nsw i64 %.071108, 1
  %75 = add nuw nsw i64 %.070109, 1
  br label %76

76:                                               ; preds = %47, %63, %73, %60
  %.174 = phi i64 [ %48, %47 ], [ %61, %60 ], [ %.073107, %73 ], [ %.073107, %63 ]
  %.172 = phi i64 [ %49, %47 ], [ %.071108, %60 ], [ %74, %73 ], [ %.071108, %63 ]
  %.1 = phi i64 [ %.070109, %47 ], [ %62, %60 ], [ %75, %73 ], [ %.070109, %63 ]
  %77 = add nuw nsw i64 %.069110, 1
  %78 = load i64, ptr %2, align 8, !tbaa !5
  %79 = mul nsw i64 %78, 3
  %80 = icmp slt i64 %77, %79
  br i1 %80, label %.lr.ph, label %.critedge, !llvm.loop !10

.lr.ph126:                                        ; preds = %.preheader102, %84
  %.068125 = phi i64 [ %85, %84 ], [ %.070.lcssa, %.preheader102 ]
  %81 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.068125)
  %82 = load i8, ptr %81, align 1, !tbaa !9
  %83 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %82)
          to label %84 unwind label %88

84:                                               ; preds = %.lr.ph126
  %85 = add nuw nsw i64 %.068125, 1
  %86 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %87 = icmp ult i64 %85, %86
  br i1 %87, label %.lr.ph126, label %.loopexit, !llvm.loop !12

88:                                               ; preds = %.lr.ph126
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %167

90:                                               ; preds = %.critedge
  %91 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %92 = icmp ne i64 %.073.lcssa, %91
  %.not81 = icmp sgt i64 %.070.lcssa, %.071.lcssa
  %or.cond89 = select i1 %92, i1 true, i1 %.not81
  %93 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br i1 %or.cond89, label %104, label %.preheader100

.preheader100:                                    ; preds = %90
  %94 = icmp ult i64 %.071.lcssa, %93
  br i1 %94, label %.lr.ph128, label %.loopexit

.lr.ph128:                                        ; preds = %.preheader100, %98
  %.067127 = phi i64 [ %99, %98 ], [ %.071.lcssa, %.preheader100 ]
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.067127)
  %96 = load i8, ptr %95, align 1, !tbaa !9
  %97 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %96)
          to label %98 unwind label %102

98:                                               ; preds = %.lr.ph128
  %99 = add nuw nsw i64 %.067127, 1
  %100 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %101 = icmp ult i64 %99, %100
  br i1 %101, label %.lr.ph128, label %.loopexit, !llvm.loop !13

102:                                              ; preds = %.lr.ph128
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %167

104:                                              ; preds = %90
  %105 = icmp ne i64 %.071.lcssa, %93
  %.not82 = icmp sgt i64 %.073.lcssa, %.070.lcssa
  %or.cond90 = select i1 %105, i1 true, i1 %.not82
  br i1 %or.cond90, label %117, label %.preheader98

.preheader98:                                     ; preds = %104
  %106 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %107 = icmp ult i64 %.070.lcssa, %106
  br i1 %107, label %.lr.ph130, label %.loopexit

.lr.ph130:                                        ; preds = %.preheader98, %111
  %.066129 = phi i64 [ %112, %111 ], [ %.070.lcssa, %.preheader98 ]
  %108 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.066129)
  %109 = load i8, ptr %108, align 1, !tbaa !9
  %110 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %109)
          to label %111 unwind label %115

111:                                              ; preds = %.lr.ph130
  %112 = add nuw nsw i64 %.066129, 1
  %113 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %114 = icmp ult i64 %112, %113
  br i1 %114, label %.lr.ph130, label %.loopexit, !llvm.loop !14

115:                                              ; preds = %.lr.ph130
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %167

117:                                              ; preds = %104
  %118 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %119 = icmp ne i64 %.071.lcssa, %118
  %.not83 = icmp sgt i64 %.070.lcssa, %.073.lcssa
  %or.cond91 = select i1 %119, i1 true, i1 %.not83
  br i1 %or.cond91, label %131, label %.preheader96

.preheader96:                                     ; preds = %117
  %120 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %121 = icmp ult i64 %.073.lcssa, %120
  br i1 %121, label %.lr.ph132, label %.loopexit

.lr.ph132:                                        ; preds = %.preheader96, %125
  %.065131 = phi i64 [ %126, %125 ], [ %.073.lcssa, %.preheader96 ]
  %122 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.065131)
  %123 = load i8, ptr %122, align 1, !tbaa !9
  %124 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %123)
          to label %125 unwind label %129

125:                                              ; preds = %.lr.ph132
  %126 = add nuw nsw i64 %.065131, 1
  %127 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %128 = icmp ult i64 %126, %127
  br i1 %128, label %.lr.ph132, label %.loopexit, !llvm.loop !15

129:                                              ; preds = %.lr.ph132
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %167

131:                                              ; preds = %117
  %132 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %133 = icmp ne i64 %.070.lcssa, %132
  %.not84 = icmp sgt i64 %.073.lcssa, %.071.lcssa
  %or.cond92 = select i1 %133, i1 true, i1 %.not84
  br i1 %or.cond92, label %145, label %.preheader94

.preheader94:                                     ; preds = %131
  %134 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %135 = icmp ult i64 %.071.lcssa, %134
  br i1 %135, label %.lr.ph134, label %.loopexit

.lr.ph134:                                        ; preds = %.preheader94, %139
  %.064133 = phi i64 [ %140, %139 ], [ %.071.lcssa, %.preheader94 ]
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.064133)
  %137 = load i8, ptr %136, align 1, !tbaa !9
  %138 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %137)
          to label %139 unwind label %143

139:                                              ; preds = %.lr.ph134
  %140 = add nuw nsw i64 %.064133, 1
  %141 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %142 = icmp ult i64 %140, %141
  br i1 %142, label %.lr.ph134, label %.loopexit, !llvm.loop !16

143:                                              ; preds = %.lr.ph134
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %167

145:                                              ; preds = %131
  %146 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %147 = icmp ne i64 %.070.lcssa, %146
  %.not85 = icmp sgt i64 %.071.lcssa, %.073.lcssa
  %or.cond93 = select i1 %147, i1 true, i1 %.not85
  br i1 %or.cond93, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %145
  %148 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %149 = icmp ult i64 %.073.lcssa, %148
  br i1 %149, label %.lr.ph136, label %.loopexit

.lr.ph136:                                        ; preds = %.preheader, %153
  %.0135 = phi i64 [ %154, %153 ], [ %.073.lcssa, %.preheader ]
  %150 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.0135)
  %151 = load i8, ptr %150, align 1, !tbaa !9
  %152 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %151)
          to label %153 unwind label %157

153:                                              ; preds = %.lr.ph136
  %154 = add nuw nsw i64 %.0135, 1
  %155 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %156 = icmp ult i64 %154, %155
  br i1 %156, label %.lr.ph136, label %.loopexit, !llvm.loop !17

157:                                              ; preds = %.lr.ph136
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %167

.loopexit:                                        ; preds = %84, %98, %111, %125, %139, %153, %.preheader102, %.preheader100, %.preheader98, %.preheader96, %.preheader94, %.preheader, %145
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %160 unwind label %165

160:                                              ; preds = %.loopexit
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %162 unwind label %165

162:                                              ; preds = %160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %163 = load i64, ptr %1, align 8, !tbaa !5
  %164 = add nsw i64 %163, -1
  store i64 %164, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %163, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph138, !llvm.loop !18

165:                                              ; preds = %160, %.loopexit
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %167

167:                                              ; preds = %165, %157, %143, %129, %115, %102, %88, %50
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %89, %88 ], [ %166, %165 ], [ %103, %102 ], [ %116, %115 ], [ %130, %129 ], [ %144, %143 ], [ %158, %157 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %168

168:                                              ; preds = %167, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %167 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %169

169:                                              ; preds = %168, %33
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %168 ], [ %34, %33 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.pn

._crit_edge:                                      ; preds = %162, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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


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