; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 10/1941. Scary Martian Word (main)

; 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] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_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 %"class.std::__cxx11::basic_string", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [730000 x i32], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [730000 x i32], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [730000 x i32], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %2)
          to label %26 unwind label %37

26:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 2920000, ptr %5) #5
  %27 = getelementptr inbounds [730000 x i32], ptr %5, i64 0, i64 0
  %28 = getelementptr inbounds [730000 x i32], ptr %5, i64 0, i64 0
  %29 = getelementptr inbounds i32, ptr %28, i64 730000
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %27, ptr noundef %29, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %30 unwind label %41

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %84, %30
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %45, label %36

36:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %101

37:                                               ; preds = %0
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %3, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %4, align 4
  br label %288

41:                                               ; preds = %26
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %3, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %287

45:                                               ; preds = %31
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %49)
          to label %51 unwind label %87

51:                                               ; preds = %45
  %52 = load i8, ptr %50, align 1, !tbaa !9
  %53 = sext i8 %52 to i32
  %54 = sub nsw i32 %53, 33
  store i32 %54, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %55 = load i32, ptr %8, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %57)
          to label %59 unwind label %91

59:                                               ; preds = %51
  %60 = load i8, ptr %58, align 1, !tbaa !9
  %61 = sext i8 %60 to i32
  %62 = sub nsw i32 %61, 33
  store i32 %62, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = add nsw i32 %63, 2
  %65 = sext i32 %64 to i64
  %66 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %65)
          to label %67 unwind label %95

67:                                               ; preds = %59
  %68 = load i8, ptr %66, align 1, !tbaa !9
  %69 = sext i8 %68 to i32
  %70 = sub nsw i32 %69, 33
  store i32 %70, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = mul nsw i32 %71, 90
  %73 = mul nsw i32 %72, 90
  %74 = load i32, ptr %10, align 4, !tbaa !5
  %75 = mul nsw i32 %74, 90
  %76 = add nsw i32 %73, %75
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = add nsw i32 %76, %77
  store i32 %78, ptr %12, align 4, !tbaa !5
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [730000 x i32], ptr %5, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %81, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %84

84:                                               ; preds = %67
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = add nsw i32 %85, 4
  store i32 %86, ptr %8, align 4, !tbaa !5
  br label %31, !llvm.loop !10

87:                                               ; preds = %45
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %3, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %4, align 4
  br label %100

91:                                               ; preds = %51
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %3, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %4, align 4
  br label %99

95:                                               ; preds = %59
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %3, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %99

99:                                               ; preds = %95, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %100

100:                                              ; preds = %99, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %286

101:                                              ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2920000, ptr %14) #5
  %102 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 0
  %103 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 0
  %104 = getelementptr inbounds i32, ptr %103, i64 730000
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %102, ptr noundef %104, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %105 unwind label %110

105:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %128, %105
  %107 = load i32, ptr %16, align 4, !tbaa !5
  %108 = icmp slt i32 %107, 730000
  br i1 %108, label %114, label %109

109:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %131

110:                                              ; preds = %101
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %3, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %285

114:                                              ; preds = %106
  %115 = load i32, ptr %16, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = load i32, ptr %16, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [730000 x i32], ptr %5, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = icmp ne i32 %118, %122
  br i1 %123, label %124, label %127

124:                                              ; preds = %114
  %125 = load i32, ptr %13, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %13, align 4, !tbaa !5
  br label %127

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

128:                                              ; preds = %127
  %129 = load i32, ptr %16, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %16, align 4, !tbaa !5
  br label %106, !llvm.loop !12

131:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2920000, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  %132 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %2)
          to label %133 unwind label %140

133:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %274, %133
  %135 = load i32, ptr %20, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %138 = icmp ult i64 %136, %137
  br i1 %138, label %144, label %139

139:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %279

140:                                              ; preds = %279, %131
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %3, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %4, align 4
  br label %284

144:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %145 = load i32, ptr %20, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %146)
          to label %148 unwind label %192

148:                                              ; preds = %144
  %149 = load i8, ptr %147, align 1, !tbaa !9
  %150 = sext i8 %149 to i32
  %151 = sub nsw i32 %150, 33
  store i32 %151, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %152 = load i32, ptr %20, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  %154 = sext i32 %153 to i64
  %155 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %154)
          to label %156 unwind label %196

156:                                              ; preds = %148
  %157 = load i8, ptr %155, align 1, !tbaa !9
  %158 = sext i8 %157 to i32
  %159 = sub nsw i32 %158, 33
  store i32 %159, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %160 = load i32, ptr %20, align 4, !tbaa !5
  %161 = add nsw i32 %160, 2
  %162 = sext i32 %161 to i64
  %163 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %162)
          to label %164 unwind label %200

164:                                              ; preds = %156
  %165 = load i8, ptr %163, align 1, !tbaa !9
  %166 = sext i8 %165 to i32
  %167 = sub nsw i32 %166, 33
  store i32 %167, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %168 = load i32, ptr %21, align 4, !tbaa !5
  %169 = mul nsw i32 %168, 90
  %170 = mul nsw i32 %169, 90
  %171 = load i32, ptr %22, align 4, !tbaa !5
  %172 = mul nsw i32 %171, 90
  %173 = add nsw i32 %170, %172
  %174 = load i32, ptr %23, align 4, !tbaa !5
  %175 = add nsw i32 %173, %174
  store i32 %175, ptr %24, align 4, !tbaa !5
  %176 = load i32, ptr %24, align 4, !tbaa !5
  %177 = load i32, ptr %17, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [730000 x i32], ptr %18, i64 0, i64 %178
  store i32 %176, ptr %179, align 4, !tbaa !5
  %180 = load i32, ptr %24, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = load i32, ptr %24, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [730000 x i32], ptr %5, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = icmp eq i32 %183, %187
  br i1 %188, label %189, label %204

189:                                              ; preds = %164
  %190 = load i32, ptr %13, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %13, align 4, !tbaa !5
  br label %204

192:                                              ; preds = %144
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %3, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %4, align 4
  br label %278

196:                                              ; preds = %148
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %3, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %4, align 4
  br label %277

200:                                              ; preds = %156
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %3, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %277

204:                                              ; preds = %189, %164
  %205 = load i32, ptr %24, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %207, align 4, !tbaa !5
  %210 = load i32, ptr %24, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = load i32, ptr %24, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [730000 x i32], ptr %5, i64 0, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = icmp eq i32 %213, %217
  br i1 %218, label %219, label %222

219:                                              ; preds = %204
  %220 = load i32, ptr %13, align 4, !tbaa !5
  %221 = add nsw i32 %220, -1
  store i32 %221, ptr %13, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %219, %204
  %223 = load i32, ptr %17, align 4, !tbaa !5
  %224 = load i32, ptr %7, align 4, !tbaa !5
  %225 = sub nsw i32 %223, %224
  %226 = icmp sge i32 %225, 0
  br i1 %226, label %227, label %265

227:                                              ; preds = %222
  %228 = load i32, ptr %17, align 4, !tbaa !5
  %229 = load i32, ptr %7, align 4, !tbaa !5
  %230 = sub nsw i32 %228, %229
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [730000 x i32], ptr %18, i64 0, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !5
  store i32 %233, ptr %24, align 4, !tbaa !5
  %234 = load i32, ptr %24, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = load i32, ptr %24, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [730000 x i32], ptr %5, i64 0, i64 %239
  %241 = load i32, ptr %240, align 4, !tbaa !5
  %242 = icmp eq i32 %237, %241
  br i1 %242, label %243, label %246

243:                                              ; preds = %227
  %244 = load i32, ptr %13, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %13, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %243, %227
  %247 = load i32, ptr %24, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = add nsw i32 %250, -1
  store i32 %251, ptr %249, align 4, !tbaa !5
  %252 = load i32, ptr %24, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [730000 x i32], ptr %14, i64 0, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = load i32, ptr %24, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [730000 x i32], ptr %5, i64 0, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = icmp eq i32 %255, %259
  br i1 %260, label %261, label %264

261:                                              ; preds = %246
  %262 = load i32, ptr %13, align 4, !tbaa !5
  %263 = add nsw i32 %262, -1
  store i32 %263, ptr %13, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %261, %246
  br label %265

265:                                              ; preds = %264, %222
  %266 = load i32, ptr %17, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %17, align 4, !tbaa !5
  %268 = load i32, ptr %13, align 4, !tbaa !5
  %269 = icmp eq i32 %268, 0
  br i1 %269, label %270, label %273

270:                                              ; preds = %265
  %271 = load i32, ptr %19, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %19, align 4, !tbaa !5
  br label %273

273:                                              ; preds = %270, %265
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %20, align 4, !tbaa !5
  %276 = add nsw i32 %275, 4
  store i32 %276, ptr %20, align 4, !tbaa !5
  br label %134, !llvm.loop !13

277:                                              ; preds = %200, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %278

278:                                              ; preds = %277, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %284

279:                                              ; preds = %139
  %280 = load i32, ptr %19, align 4, !tbaa !5
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %280)
          to label %282 unwind label %140

282:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 2920000, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2920000, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 2920000, ptr %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #5
  %283 = load i32, ptr %1, align 4
  ret i32 %283

284:                                              ; preds = %278, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 2920000, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %285

285:                                              ; preds = %284, %110
  call void @llvm.lifetime.end.p0(i64 2920000, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %286

286:                                              ; preds = %285, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %287

287:                                              ; preds = %286, %41
  call void @llvm.lifetime.end.p0(i64 2920000, ptr %5) #5
  br label %288

288:                                              ; preds = %287, %37
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #5
  br label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr %3, align 8
  %291 = load i32, ptr %4, align 4
  %292 = insertvalue { ptr, i32 } poison, ptr %290, 0
  %293 = insertvalue { ptr, i32 } %292, i32 %291, 1
  resume { ptr, i32 } %293
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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)) #2 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) #2 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 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 #3 = { 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 #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 = { 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"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !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] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_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 %"class.std::__cxx11::basic_string", align 8
  %2 = alloca [730000 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca [730000 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca [730000 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %7 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %1)
          to label %8 unwind label %14

8:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 2920000, ptr nonnull %2) #6
  %9 = getelementptr inbounds i8, ptr %2, i64 2920000
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %2, ptr noundef nonnull %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %10 unwind label %16

10:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %11 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %.not83 = icmp eq i64 %11, 0
  br i1 %.not83, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %12 = zext nneg i32 %18 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %10
  %.052.lcssa = phi i64 [ 0, %10 ], [ %12, %._crit_edge.loopexit ]
  call void @llvm.lifetime.start.p0(i64 2920000, ptr nonnull %4) #6
  %13 = getelementptr inbounds i8, ptr %4, i64 2920000
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %4, ptr noundef nonnull %13, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %vector.ph unwind label %64

14:                                               ; preds = %0
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %119

16:                                               ; preds = %8
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %118

.lr.ph:                                           ; preds = %10, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %10 ]
  %.05273 = phi i32 [ %18, %.lr.ph ], [ 0, %10 ]
  %18 = add nuw nsw i32 %.05273, 1
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = sext i8 %20 to i64
  %22 = or disjoint i64 %indvars.iv, 1
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %22)
  %24 = load i8, ptr %23, align 1, !tbaa !9
  %25 = sext i8 %24 to i64
  %26 = or disjoint i64 %indvars.iv, 2
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %26)
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = sext i8 %28 to i64
  %30 = mul nsw i64 %21, 8100
  %31 = mul nsw i64 %25, 90
  %32 = add nsw i64 %30, -270303
  %33 = add nsw i64 %32, %31
  %34 = add nsw i64 %33, %29
  %35 = getelementptr inbounds [730000 x i32], ptr %2, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 4
  %38 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %39 = icmp ugt i64 %38, %indvars.iv.next
  br i1 %39, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !10

vector.ph:                                        ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.1, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %58, %vector.body ]
  %vec.phi96 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %59, %vector.body ]
  %40 = getelementptr inbounds [730000 x i32], ptr %4, i64 0, i64 %index
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %wide.load = load <4 x i32>, ptr %40, align 16, !tbaa !5
  %wide.load97 = load <4 x i32>, ptr %41, align 16, !tbaa !5
  %42 = getelementptr inbounds [730000 x i32], ptr %2, i64 0, i64 %index
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %wide.load98 = load <4 x i32>, ptr %42, align 16, !tbaa !5
  %wide.load99 = load <4 x i32>, ptr %43, align 16, !tbaa !5
  %44 = icmp ne <4 x i32> %wide.load, %wide.load98
  %45 = icmp ne <4 x i32> %wide.load97, %wide.load99
  %46 = zext <4 x i1> %44 to <4 x i32>
  %47 = zext <4 x i1> %45 to <4 x i32>
  %48 = add <4 x i32> %vec.phi, %46
  %49 = add <4 x i32> %vec.phi96, %47
  %index.next = or disjoint i64 %index, 8
  %50 = getelementptr inbounds [730000 x i32], ptr %4, i64 0, i64 %index.next
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  %wide.load.1 = load <4 x i32>, ptr %50, align 16, !tbaa !5
  %wide.load97.1 = load <4 x i32>, ptr %51, align 16, !tbaa !5
  %52 = getelementptr inbounds [730000 x i32], ptr %2, i64 0, i64 %index.next
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %wide.load98.1 = load <4 x i32>, ptr %52, align 16, !tbaa !5
  %wide.load99.1 = load <4 x i32>, ptr %53, align 16, !tbaa !5
  %54 = icmp ne <4 x i32> %wide.load.1, %wide.load98.1
  %55 = icmp ne <4 x i32> %wide.load97.1, %wide.load99.1
  %56 = zext <4 x i1> %54 to <4 x i32>
  %57 = zext <4 x i1> %55 to <4 x i32>
  %58 = add <4 x i32> %48, %56
  %59 = add <4 x i32> %49, %57
  %index.next.1 = add nuw nsw i64 %index, 16
  %60 = icmp eq i64 %index.next.1, 730000
  br i1 %60, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  call void @llvm.lifetime.start.p0(i64 2920000, ptr nonnull %6) #6
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %1)
          to label %.preheader unwind label %67

.preheader:                                       ; preds = %middle.block
  %62 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %.not84 = icmp eq i64 %62, 0
  br i1 %.not84, label %._crit_edge81, label %.lr.ph80.preheader

.lr.ph80.preheader:                               ; preds = %.preheader
  %bin.rdx = add <4 x i32> %59, %58
  %63 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br label %.lr.ph80

64:                                               ; preds = %._crit_edge
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %117

._crit_edge81:                                    ; preds = %111, %.preheader
  %.054.lcssa = phi i32 [ 0, %.preheader ], [ %spec.select70, %111 ]
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.054.lcssa)
          to label %116 unwind label %67

67:                                               ; preds = %._crit_edge81, %middle.block
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2920000, ptr nonnull %6) #6
  br label %117

.lr.ph80:                                         ; preds = %.lr.ph80.preheader, %111
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %111 ], [ 0, %.lr.ph80.preheader ]
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %111 ], [ 0, %.lr.ph80.preheader ]
  %.05478 = phi i32 [ %spec.select70, %111 ], [ 0, %.lr.ph80.preheader ]
  %.26076 = phi i32 [ %.6, %111 ], [ %63, %.lr.ph80.preheader ]
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv89)
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %71 = sext i8 %70 to i32
  %72 = or disjoint i64 %indvars.iv89, 1
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %72)
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %75 = sext i8 %74 to i32
  %76 = or disjoint i64 %indvars.iv89, 2
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %76)
  %78 = load i8, ptr %77, align 1, !tbaa !9
  %79 = sext i8 %78 to i32
  %80 = mul nsw i32 %71, 8100
  %81 = mul nsw i32 %75, 90
  %82 = add nsw i32 %80, -270303
  %83 = add nsw i32 %82, %81
  %84 = add nsw i32 %83, %79
  %85 = getelementptr inbounds [730000 x i32], ptr %6, i64 0, i64 %indvars.iv91
  store i32 %84, ptr %85, align 4, !tbaa !5
  %86 = sext i32 %84 to i64
  %87 = getelementptr inbounds [730000 x i32], ptr %4, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = getelementptr inbounds [730000 x i32], ptr %2, i64 0, i64 %86
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = icmp eq i32 %88, %90
  %92 = zext i1 %91 to i32
  %spec.select68 = add nsw i32 %.26076, %92
  %93 = add nsw i32 %88, 1
  store i32 %93, ptr %87, align 4, !tbaa !5
  %94 = icmp eq i32 %93, %90
  %95 = sext i1 %94 to i32
  %.4 = add nsw i32 %spec.select68, %95
  %96 = sub nsw i64 %indvars.iv91, %.052.lcssa
  %97 = icmp sgt i64 %96, -1
  br i1 %97, label %98, label %111

98:                                               ; preds = %.lr.ph80
  %99 = getelementptr inbounds [730000 x i32], ptr %6, i64 0, i64 %96
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [730000 x i32], ptr %4, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = getelementptr inbounds [730000 x i32], ptr %2, i64 0, i64 %101
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = icmp eq i32 %103, %105
  %107 = zext i1 %106 to i32
  %spec.select69 = add nsw i32 %.4, %107
  %108 = add nsw i32 %103, -1
  store i32 %108, ptr %102, align 4, !tbaa !5
  %109 = icmp eq i32 %108, %105
  %110 = sext i1 %109 to i32
  %spec.select71 = add nsw i32 %spec.select69, %110
  br label %111

111:                                              ; preds = %98, %.lr.ph80
  %.6 = phi i32 [ %.4, %.lr.ph80 ], [ %spec.select71, %98 ]
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %112 = icmp eq i32 %.6, 0
  %113 = zext i1 %112 to i32
  %spec.select70 = add nuw nsw i32 %.05478, %113
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 4
  %114 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %115 = icmp ugt i64 %114, %indvars.iv.next90
  br i1 %115, label %.lr.ph80, label %._crit_edge81, !llvm.loop !15

116:                                              ; preds = %._crit_edge81
  call void @llvm.lifetime.end.p0(i64 2920000, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 2920000, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 2920000, ptr nonnull %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret i32 0

117:                                              ; preds = %67, %64
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 2920000, ptr nonnull %4) #6
  br label %118

118:                                              ; preds = %117, %16
  %.pn.pn = phi { ptr, i32 } [ %.pn, %117 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 2920000, ptr nonnull %2) #6
  br label %119

119:                                              ; preds = %118, %14
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %118 ], [ %15, %14 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.pn
}

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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 #3

declare i32 @__gxx_personality_v0(...)

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

; 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 #2 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 #2 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

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 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 #3 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass