; LLVM IR from ravireddy07/cpp-book :: src/Code-Chef/APR2021-Long/MEXSTR.ll (Z5harryv)

; 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.9" = type { i8 }

@dp1 = external dso_local global [1000002 x i32], align 16
@dp2 = external dso_local global [1000002 x i32], align 16
@ar1 = external dso_local global [1000000 x i32], align 16
@ar2 = external dso_local global [1000000 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5harryv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.9", align 1
  %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 i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %19 = 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) %1)
          to label %20 unwind label %30

20:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %21 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %23 unwind label %34

23:                                               ; preds = %20
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 -1, 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 %24

24:                                               ; preds = %69, %23
  %25 = load i32, ptr %8, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %38, label %29

29:                                               ; preds = %24
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %72

30:                                               ; preds = %0
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %2, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %3, align 4
  br label %379

34:                                               ; preds = %20
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %2, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %3, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  br label %378

38:                                               ; preds = %24
  %39 = load i32, ptr %8, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %40)
          to label %42 unwind label %54

42:                                               ; preds = %38
  %43 = load i8, ptr %41, align 1, !tbaa !9
  %44 = sext i8 %43 to i32
  %45 = icmp eq i32 %44, 48
  br i1 %45, label %46, label %68

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %10, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %63, %46
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = icmp sle i32 %50, %51
  br i1 %52, label %58, label %53

53:                                               ; preds = %49
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %66

54:                                               ; preds = %38
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %2, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %377

58:                                               ; preds = %49
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %61
  store i32 %59, ptr %62, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %58
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %10, align 4, !tbaa !5
  br label %49, !llvm.loop !10

66:                                               ; preds = %53
  %67 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %67, ptr %7, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %66, %42
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !5
  br label %24, !llvm.loop !12

72:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %11, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %86, %72
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %79 = icmp ult i64 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %89

81:                                               ; preds = %75
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %84
  store i32 %82, ptr %85, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %81
  %87 = load i32, ptr %11, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %11, align 4, !tbaa !5
  br label %75, !llvm.loop !13

89:                                               ; preds = %80
  store i32 -1, ptr %7, align 4, !tbaa !5
  %90 = load i32, ptr @ar1, align 16, !tbaa !5
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = icmp eq i32 %90, %91
  br i1 %92, label %93, label %100

93:                                               ; preds = %89
  %94 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %95 unwind label %96

95:                                               ; preds = %93
  store i32 1, ptr %9, align 4
  br label %376

96:                                               ; preds = %93
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %2, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %3, align 4
  br label %377

100:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %138, %100
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %105 = icmp ult i64 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %101
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %141

107:                                              ; preds = %101
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %109)
          to label %111 unwind label %123

111:                                              ; preds = %107
  %112 = load i8, ptr %110, align 1, !tbaa !9
  %113 = sext i8 %112 to i32
  %114 = icmp eq i32 %113, 49
  br i1 %114, label %115, label %137

115:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %13, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %132, %115
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = load i32, ptr %12, align 4, !tbaa !5
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %127, label %122

122:                                              ; preds = %118
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %135

123:                                              ; preds = %107
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %2, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %377

127:                                              ; preds = %118
  %128 = load i32, ptr %12, align 4, !tbaa !5
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %130
  store i32 %128, ptr %131, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %127
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %13, align 4, !tbaa !5
  br label %118, !llvm.loop !14

135:                                              ; preds = %122
  %136 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %136, ptr %7, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %135, %111
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %12, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %12, align 4, !tbaa !5
  br label %101, !llvm.loop !15

141:                                              ; preds = %106
  %142 = load i32, ptr %4, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %144
  store i32 0, ptr %145, align 4, !tbaa !5
  %146 = load i32, ptr %4, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %147
  store i32 0, ptr %148, align 4, !tbaa !5
  %149 = load i32, ptr %4, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %151
  store i32 0, ptr %152, align 4, !tbaa !5
  %153 = load i32, ptr %4, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %154
  store i32 0, ptr %155, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %156 = load i32, ptr %7, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %14, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %169, %141
  %159 = load i32, ptr %14, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %162 = icmp ult i64 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %158
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %172

164:                                              ; preds = %158
  %165 = load i32, ptr %4, align 4, !tbaa !5
  %166 = load i32, ptr %14, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %167
  store i32 %165, ptr %168, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %164
  %170 = load i32, ptr %14, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %14, align 4, !tbaa !5
  br label %158, !llvm.loop !16

172:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %173 = load i32, ptr %4, align 4, !tbaa !5
  %174 = sub nsw i32 %173, 1
  store i32 %174, ptr %15, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %291, %172
  %176 = load i32, ptr %15, align 4, !tbaa !5
  %177 = icmp sge i32 %176, 0
  br i1 %177, label %179, label %178

178:                                              ; preds = %175
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %294

179:                                              ; preds = %175
  %180 = load i32, ptr %15, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = load i32, ptr %15, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %186
  store i32 %184, ptr %187, align 4, !tbaa !5
  %188 = load i32, ptr %15, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %189)
          to label %191 unwind label %220

191:                                              ; preds = %179
  %192 = load i8, ptr %190, align 1, !tbaa !9
  %193 = sext i8 %192 to i32
  %194 = icmp eq i32 %193, 49
  br i1 %194, label %195, label %224

195:                                              ; preds = %191
  %196 = load i32, ptr %15, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = load i32, ptr %4, align 4, !tbaa !5
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %202, label %224

202:                                              ; preds = %195
  %203 = load i32, ptr %15, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %204
  %206 = load i32, ptr %15, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  %215 = invoke noundef i32 @_Z4amaxIiiET_RS0_T0_(ptr noundef nonnull align 4 dereferenceable(4) %205, i32 noundef %214)
          to label %216 unwind label %220

216:                                              ; preds = %202
  %217 = load i32, ptr %15, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %218
  store i32 %215, ptr %219, align 4, !tbaa !5
  br label %224

220:                                              ; preds = %272, %239, %224, %202, %179
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %2, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %377

224:                                              ; preds = %216, %195, %191
  %225 = load i32, ptr %15, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %226)
          to label %228 unwind label %220

228:                                              ; preds = %224
  %229 = load i8, ptr %227, align 1, !tbaa !9
  %230 = sext i8 %229 to i32
  %231 = icmp eq i32 %230, 48
  br i1 %231, label %232, label %257

232:                                              ; preds = %228
  %233 = load i32, ptr %15, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %234
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = load i32, ptr %4, align 4, !tbaa !5
  %238 = icmp slt i32 %236, %237
  br i1 %238, label %239, label %257

239:                                              ; preds = %232
  %240 = load i32, ptr %15, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %241
  %243 = load i32, ptr %15, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = add nsw i32 %246, 1
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = add nsw i32 %250, 1
  %252 = invoke noundef i32 @_Z4amaxIiiET_RS0_T0_(ptr noundef nonnull align 4 dereferenceable(4) %242, i32 noundef %251)
          to label %253 unwind label %220

253:                                              ; preds = %239
  %254 = load i32, ptr %15, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %255
  store i32 %252, ptr %256, align 4, !tbaa !5
  br label %257

257:                                              ; preds = %253, %232, %228
  %258 = load i32, ptr %15, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = load i32, ptr %15, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %264
  store i32 %262, ptr %265, align 4, !tbaa !5
  %266 = load i32, ptr %15, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = load i32, ptr %4, align 4, !tbaa !5
  %271 = icmp slt i32 %269, %270
  br i1 %271, label %272, label %290

272:                                              ; preds = %257
  %273 = load i32, ptr %15, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %274
  %276 = load i32, ptr %15, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %277
  %279 = load i32, ptr %278, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  %285 = invoke noundef i32 @_Z4amaxIiiET_RS0_T0_(ptr noundef nonnull align 4 dereferenceable(4) %275, i32 noundef %284)
          to label %286 unwind label %220

286:                                              ; preds = %272
  %287 = load i32, ptr %15, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %288
  store i32 %285, ptr %289, align 4, !tbaa !5
  br label %290

290:                                              ; preds = %286, %257
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %15, align 4, !tbaa !5
  %293 = add nsw i32 %292, -1
  store i32 %293, ptr %15, align 4, !tbaa !5
  br label %175, !llvm.loop !17

294:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %295 = load i32, ptr @dp2, align 16, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %297 = load i32, ptr @ar2, align 16, !tbaa !5
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %299

299:                                              ; preds = %363, %294
  %300 = load i32, ptr %18, align 4, !tbaa !5
  %301 = load i32, ptr %16, align 4, !tbaa !5
  %302 = icmp slt i32 %300, %301
  br i1 %302, label %304, label %303

303:                                              ; preds = %299
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %366

304:                                              ; preds = %299
  %305 = load i32, ptr %17, align 4, !tbaa !5
  %306 = load i32, ptr %4, align 4, !tbaa !5
  %307 = icmp sge i32 %305, %306
  br i1 %307, label %308, label %315

308:                                              ; preds = %304
  %309 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext 48)
          to label %310 unwind label %311

310:                                              ; preds = %308
  br label %362

311:                                              ; preds = %352, %344, %322, %308
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %2, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %375

315:                                              ; preds = %304
  %316 = load i32, ptr %17, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %317
  %319 = load i32, ptr %318, align 4, !tbaa !5
  %320 = load i32, ptr %4, align 4, !tbaa !5
  %321 = icmp sge i32 %319, %320
  br i1 %321, label %322, label %330

322:                                              ; preds = %315
  %323 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext 48)
          to label %324 unwind label %311

324:                                              ; preds = %322
  %325 = load i32, ptr %17, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %326
  %328 = load i32, ptr %327, align 4, !tbaa !5
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %17, align 4, !tbaa !5
  br label %361

330:                                              ; preds = %315
  %331 = load i32, ptr %17, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %332
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = add nsw i32 %334, 1
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %336
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %339 = load i32, ptr %16, align 4, !tbaa !5
  %340 = load i32, ptr %18, align 4, !tbaa !5
  %341 = sub nsw i32 %339, %340
  %342 = sub nsw i32 %341, 1
  %343 = icmp slt i32 %338, %342
  br i1 %343, label %344, label %352

344:                                              ; preds = %330
  %345 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext 48)
          to label %346 unwind label %311

346:                                              ; preds = %344
  %347 = load i32, ptr %17, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %348
  %350 = load i32, ptr %349, align 4, !tbaa !5
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %17, align 4, !tbaa !5
  br label %360

352:                                              ; preds = %330
  %353 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext 49)
          to label %354 unwind label %311

354:                                              ; preds = %352
  %355 = load i32, ptr %17, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %356
  %358 = load i32, ptr %357, align 4, !tbaa !5
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %17, align 4, !tbaa !5
  br label %360

360:                                              ; preds = %354, %346
  br label %361

361:                                              ; preds = %360, %324
  br label %362

362:                                              ; preds = %361, %310
  br label %363

363:                                              ; preds = %362
  %364 = load i32, ptr %18, align 4, !tbaa !5
  %365 = add nsw i32 %364, 1
  store i32 %365, ptr %18, align 4, !tbaa !5
  br label %299, !llvm.loop !18

366:                                              ; preds = %303
  %367 = 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) %5)
          to label %368 unwind label %371

368:                                              ; preds = %366
  %369 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %367, ptr noundef @.str.2)
          to label %370 unwind label %371

370:                                              ; preds = %368
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %376

371:                                              ; preds = %368, %366
  %372 = landingpad { ptr, i32 }
          cleanup
  %373 = extractvalue { ptr, i32 } %372, 0
  store ptr %373, ptr %2, align 8
  %374 = extractvalue { ptr, i32 } %372, 1
  store i32 %374, ptr %3, align 4
  br label %375

375:                                              ; preds = %371, %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %377

376:                                              ; preds = %370, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #5
  ret void

377:                                              ; preds = %375, %220, %123, %96, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %378

378:                                              ; preds = %377, %34
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %379

379:                                              ; preds = %378, %30
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #5
  br label %380

380:                                              ; preds = %379
  %381 = load ptr, ptr %2, align 8
  %382 = load i32, ptr %3, align 4
  %383 = insertvalue { ptr, i32 } poison, ptr %381, 0
  %384 = insertvalue { ptr, i32 } %383, i32 %382, 1
  resume { ptr, i32 } %384
}

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

; 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 void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #1 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 i32 @printf(ptr noundef, ...) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4amaxIiiET_RS0_T0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #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) #1 align 2

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

; 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)) #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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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}
!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.9" = type { i8 }

@dp1 = external dso_local global [1000002 x i32], align 16
@dp2 = external dso_local global [1000002 x i32], align 16
@ar1 = external dso_local local_unnamed_addr global [1000000 x i32], align 16
@ar2 = external dso_local local_unnamed_addr global [1000000 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5harryv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator.9", align 1
  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
  %4 = 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) %1)
          to label %5 unwind label %14

5:                                                ; preds = %0
  %6 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %7 = trunc i64 %6 to i32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %8 unwind label %16

8:                                                ; preds = %5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %9 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %.not143 = icmp eq i64 %9, 0
  br i1 %.not143, label %.preheader109, label %.lr.ph116

.preheader109.loopexit:                           ; preds = %.loopexit111
  %10 = add i32 %.184, 1
  %11 = sext i32 %10 to i64
  br label %.preheader109

.preheader109:                                    ; preds = %.preheader109.loopexit, %8
  %.083.lcssa = phi i64 [ 0, %8 ], [ %11, %.preheader109.loopexit ]
  %12 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %13 = icmp ugt i64 %12, %.083.lcssa
  br i1 %13, label %.lr.ph119, label %._crit_edge

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

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

.lr.ph116:                                        ; preds = %8, %.loopexit111
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.loopexit111 ], [ 0, %8 ]
  %.083114 = phi i32 [ %.184, %.loopexit111 ], [ -1, %8 ]
  %18 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv146)
  %19 = load i8, ptr %18, align 1, !tbaa !5
  %20 = icmp eq i8 %19, 48
  br i1 %20, label %.preheader110, label %.loopexit111

.preheader110:                                    ; preds = %.lr.ph116
  %21 = sext i32 %.083114 to i64
  %.not106.not112 = icmp sgt i64 %indvars.iv146, %21
  %22 = trunc nuw nsw i64 %indvars.iv146 to i32
  br i1 %.not106.not112, label %.lr.ph.preheader, label %.loopexit111

.lr.ph.preheader:                                 ; preds = %.preheader110
  %23 = sub i64 %indvars.iv146, %21
  %min.iters.check = icmp ult i64 %23, 8
  br i1 %min.iters.check, label %.lr.ph.preheader183, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %23, -8
  %ind.end = add i64 %n.vec, %21
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %22, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %index, %21
  %24 = add nsw i64 %offset.idx, 1
  %25 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %24
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <4 x i32> %broadcast.splat, ptr %25, align 4, !tbaa !8
  store <4 x i32> %broadcast.splat, ptr %26, align 4, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %27 = icmp eq i64 %index.next, %n.vec
  br i1 %27, label %middle.block, label %vector.body, !llvm.loop !10

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %23, %n.vec
  br i1 %cmp.n, label %.loopexit111, label %.lr.ph.preheader183

.lr.ph.preheader183:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ %21, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader183, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader183 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %28 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %indvars.iv.next
  store i32 %22, ptr %28, align 4, !tbaa !8
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv146
  br i1 %exitcond.not, label %.loopexit111, label %.lr.ph, !llvm.loop !14

.loopexit111:                                     ; preds = %.lr.ph, %middle.block, %.preheader110, %.lr.ph116
  %.184 = phi i32 [ %.083114, %.lr.ph116 ], [ %22, %.preheader110 ], [ %22, %middle.block ], [ %22, %.lr.ph ]
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %29 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %30 = icmp ugt i64 %29, %indvars.iv.next147
  br i1 %30, label %.lr.ph116, label %.preheader109.loopexit, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph119, %.preheader109
  %31 = load i32, ptr @ar1, align 16, !tbaa !8
  %32 = icmp eq i32 %31, %7
  br i1 %32, label %37, label %.preheader108

.preheader108:                                    ; preds = %._crit_edge
  %33 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %.not144 = icmp eq i64 %33, 0
  br i1 %.not144, label %._crit_edge126, label %.lr.ph125

.lr.ph119:                                        ; preds = %.preheader109, %.lr.ph119
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %.lr.ph119 ], [ %.083.lcssa, %.preheader109 ]
  %34 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %indvars.iv149
  store i32 %7, ptr %34, align 4, !tbaa !8
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %35 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %36 = icmp ugt i64 %35, %indvars.iv.next150
  br i1 %36, label %.lr.ph119, label %._crit_edge, !llvm.loop !16

37:                                               ; preds = %._crit_edge
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %149

._crit_edge126.loopexit:                          ; preds = %.loopexit
  %39 = add i32 %.3, 1
  %40 = sext i32 %39 to i64
  br label %._crit_edge126

._crit_edge126:                                   ; preds = %._crit_edge126.loopexit, %.preheader108
  %.285.lcssa = phi i64 [ 0, %.preheader108 ], [ %40, %._crit_edge126.loopexit ]
  %41 = shl i64 %6, 32
  %sext = add i64 %41, 4294967296
  %42 = ashr exact i64 %sext, 32
  %43 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %42
  store i32 0, ptr %43, align 4, !tbaa !8
  %44 = ashr exact i64 %41, 32
  %45 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %44
  store i32 0, ptr %45, align 4, !tbaa !8
  %46 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %42
  store i32 0, ptr %46, align 4, !tbaa !8
  %47 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %44
  store i32 0, ptr %47, align 4, !tbaa !8
  %48 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %49 = icmp ugt i64 %48, %.285.lcssa
  br i1 %49, label %.lr.ph131, label %.preheader

.lr.ph125:                                        ; preds = %.preheader108, %.loopexit
  %indvars.iv156 = phi i64 [ %indvars.iv.next157, %.loopexit ], [ 0, %.preheader108 ]
  %.285123 = phi i32 [ %.3, %.loopexit ], [ -1, %.preheader108 ]
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv156)
  %51 = load i8, ptr %50, align 1, !tbaa !5
  %52 = icmp eq i8 %51, 49
  br i1 %52, label %.preheader107, label %.loopexit

.preheader107:                                    ; preds = %.lr.ph125
  %53 = sext i32 %.285123 to i64
  %.not105.not120 = icmp sgt i64 %indvars.iv156, %53
  %54 = trunc nuw nsw i64 %indvars.iv156 to i32
  br i1 %.not105.not120, label %.lr.ph122.preheader, label %.loopexit

.lr.ph122.preheader:                              ; preds = %.preheader107
  %55 = sub i64 %indvars.iv156, %53
  %min.iters.check169 = icmp ult i64 %55, 8
  br i1 %min.iters.check169, label %.lr.ph122.preheader182, label %vector.ph170

vector.ph170:                                     ; preds = %.lr.ph122.preheader
  %n.vec172 = and i64 %55, -8
  %ind.end173 = add i64 %n.vec172, %53
  %broadcast.splatinsert178 = insertelement <4 x i32> poison, i32 %54, i64 0
  %broadcast.splat179 = shufflevector <4 x i32> %broadcast.splatinsert178, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body175

vector.body175:                                   ; preds = %vector.body175, %vector.ph170
  %index176 = phi i64 [ 0, %vector.ph170 ], [ %index.next180, %vector.body175 ]
  %offset.idx177 = add i64 %index176, %53
  %56 = add nsw i64 %offset.idx177, 1
  %57 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %56
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  store <4 x i32> %broadcast.splat179, ptr %57, align 4, !tbaa !8
  store <4 x i32> %broadcast.splat179, ptr %58, align 4, !tbaa !8
  %index.next180 = add nuw i64 %index176, 8
  %59 = icmp eq i64 %index.next180, %n.vec172
  br i1 %59, label %middle.block167, label %vector.body175, !llvm.loop !17

middle.block167:                                  ; preds = %vector.body175
  %cmp.n181 = icmp eq i64 %55, %n.vec172
  br i1 %cmp.n181, label %.loopexit, label %.lr.ph122.preheader182

.lr.ph122.preheader182:                           ; preds = %middle.block167, %.lr.ph122.preheader
  %indvars.iv152.ph = phi i64 [ %53, %.lr.ph122.preheader ], [ %ind.end173, %middle.block167 ]
  br label %.lr.ph122

.lr.ph122:                                        ; preds = %.lr.ph122.preheader182, %.lr.ph122
  %indvars.iv152 = phi i64 [ %indvars.iv.next153, %.lr.ph122 ], [ %indvars.iv152.ph, %.lr.ph122.preheader182 ]
  %indvars.iv.next153 = add nsw i64 %indvars.iv152, 1
  %60 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %indvars.iv.next153
  store i32 %54, ptr %60, align 4, !tbaa !8
  %exitcond155.not = icmp eq i64 %indvars.iv.next153, %indvars.iv156
  br i1 %exitcond155.not, label %.loopexit, label %.lr.ph122, !llvm.loop !18

.loopexit:                                        ; preds = %.lr.ph122, %middle.block167, %.preheader107, %.lr.ph125
  %.3 = phi i32 [ %.285123, %.lr.ph125 ], [ %54, %.preheader107 ], [ %54, %middle.block167 ], [ %54, %.lr.ph122 ]
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %61 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %62 = icmp ugt i64 %61, %indvars.iv.next157
  br i1 %62, label %.lr.ph125, label %._crit_edge126.loopexit, !llvm.loop !19

.preheader:                                       ; preds = %.lr.ph131, %._crit_edge126
  %63 = icmp sgt i32 %7, 0
  br i1 %63, label %.lr.ph135.preheader, label %._crit_edge136

.lr.ph135.preheader:                              ; preds = %.preheader
  %64 = and i64 %6, 2147483647
  br label %.lr.ph135

.lr.ph131:                                        ; preds = %._crit_edge126, %.lr.ph131
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %.lr.ph131 ], [ %.285.lcssa, %._crit_edge126 ]
  %65 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %indvars.iv159
  store i32 %7, ptr %65, align 4, !tbaa !8
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %66 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %67 = icmp ugt i64 %66, %indvars.iv.next160
  br i1 %67, label %.lr.ph131, label %.preheader, !llvm.loop !20

._crit_edge136:                                   ; preds = %117, %.preheader
  %68 = load i32, ptr @dp2, align 16, !tbaa !8
  %.not137 = icmp slt i32 %68, 1
  br i1 %.not137, label %._crit_edge142, label %.lr.ph141.preheader

.lr.ph141.preheader:                              ; preds = %._crit_edge136
  %69 = load i32, ptr @ar2, align 16, !tbaa !8
  %70 = add nsw i32 %69, 1
  br label %.lr.ph141

.lr.ph135:                                        ; preds = %.lr.ph135.preheader, %117
  %indvars.iv162 = phi i64 [ %64, %.lr.ph135.preheader ], [ %indvars.iv.next163, %117 ]
  %indvars.iv.next163 = add nsw i64 %indvars.iv162, -1
  %71 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %indvars.iv162
  %72 = load i32, ptr %71, align 4, !tbaa !8
  %73 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %indvars.iv.next163
  store i32 %72, ptr %73, align 4, !tbaa !8
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv.next163)
  %75 = load i8, ptr %74, align 1, !tbaa !5
  %76 = icmp eq i8 %75, 49
  br i1 %76, label %77, label %88

77:                                               ; preds = %.lr.ph135
  %78 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %indvars.iv.next163
  %79 = load i32, ptr %78, align 4, !tbaa !8
  %80 = icmp slt i32 %79, %7
  br i1 %80, label %81, label %88

81:                                               ; preds = %77
  %82 = add nsw i32 %79, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !8
  %86 = add nsw i32 %85, 1
  %87 = call noundef i32 @_Z4amaxIiiET_RS0_T0_(ptr noundef nonnull align 4 dereferenceable(4) %73, i32 noundef %86)
  store i32 %87, ptr %73, align 4, !tbaa !8
  br label %88

88:                                               ; preds = %81, %77, %.lr.ph135
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv.next163)
  %90 = load i8, ptr %89, align 1, !tbaa !5
  %91 = icmp eq i8 %90, 48
  br i1 %91, label %92, label %103

92:                                               ; preds = %88
  %93 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %indvars.iv.next163
  %94 = load i32, ptr %93, align 4, !tbaa !8
  %95 = icmp slt i32 %94, %7
  br i1 %95, label %96, label %103

96:                                               ; preds = %92
  %97 = add nsw i32 %94, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !8
  %101 = add nsw i32 %100, 1
  %102 = call noundef i32 @_Z4amaxIiiET_RS0_T0_(ptr noundef nonnull align 4 dereferenceable(4) %73, i32 noundef %101)
  store i32 %102, ptr %73, align 4, !tbaa !8
  br label %103

103:                                              ; preds = %96, %92, %88
  %104 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %indvars.iv162
  %105 = load i32, ptr %104, align 4, !tbaa !8
  %106 = getelementptr inbounds [1000002 x i32], ptr @dp2, i64 0, i64 %indvars.iv.next163
  store i32 %105, ptr %106, align 4, !tbaa !8
  %107 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %indvars.iv.next163
  %108 = load i32, ptr %107, align 4, !tbaa !8
  %109 = icmp slt i32 %108, %7
  br i1 %109, label %110, label %117

110:                                              ; preds = %103
  %111 = add nsw i32 %108, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !8
  %115 = add nsw i32 %114, 1
  %116 = call noundef i32 @_Z4amaxIiiET_RS0_T0_(ptr noundef nonnull align 4 dereferenceable(4) %106, i32 noundef %115)
  store i32 %116, ptr %106, align 4, !tbaa !8
  br label %117

117:                                              ; preds = %103, %110
  %118 = icmp ugt i64 %indvars.iv162, 1
  br i1 %118, label %.lr.ph135, label %._crit_edge136, !llvm.loop !21

._crit_edge142:                                   ; preds = %142, %._crit_edge136
  %119 = 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) %2)
          to label %144 unwind label %146

.lr.ph141:                                        ; preds = %.lr.ph141.preheader, %142
  %.0139 = phi i32 [ %143, %142 ], [ 1, %.lr.ph141.preheader ]
  %.073138 = phi i32 [ %.1, %142 ], [ %70, %.lr.ph141.preheader ]
  %.not100 = icmp slt i32 %.073138, %7
  br i1 %.not100, label %124, label %120

120:                                              ; preds = %.lr.ph141
  %121 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext 48)
          to label %142 unwind label %122

122:                                              ; preds = %.invoke, %136, %120
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %148

124:                                              ; preds = %.lr.ph141
  %125 = sext i32 %.073138 to i64
  %126 = getelementptr inbounds [1000000 x i32], ptr @ar1, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !8
  %.not101 = icmp slt i32 %127, %7
  br i1 %.not101, label %128, label %.invoke

128:                                              ; preds = %124
  %129 = add nsw i32 %127, 1
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [1000002 x i32], ptr @dp1, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !8
  %133 = sub nsw i32 %68, %.0139
  %134 = icmp slt i32 %132, %133
  br i1 %134, label %.invoke, label %136

.invoke:                                          ; preds = %128, %124
  %135 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext 48)
          to label %.sink.split unwind label %122

136:                                              ; preds = %128
  %137 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext 49)
          to label %138 unwind label %122

138:                                              ; preds = %136
  %139 = getelementptr inbounds [1000000 x i32], ptr @ar2, i64 0, i64 %125
  br label %.sink.split

.sink.split:                                      ; preds = %.invoke, %138
  %.sink166 = phi ptr [ %139, %138 ], [ %126, %.invoke ]
  %140 = load i32, ptr %.sink166, align 4, !tbaa !8
  %141 = add nsw i32 %140, 1
  br label %142

142:                                              ; preds = %.sink.split, %120
  %.1 = phi i32 [ %.073138, %120 ], [ %141, %.sink.split ]
  %143 = add nuw i32 %.0139, 1
  %exitcond165.not = icmp eq i32 %.0139, %68
  br i1 %exitcond165.not, label %._crit_edge142, label %.lr.ph141, !llvm.loop !22

144:                                              ; preds = %._crit_edge142
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @.str.2)
          to label %149 unwind label %146

146:                                              ; preds = %144, %._crit_edge142
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %148

148:                                              ; preds = %146, %122
  %.pn = phi { ptr, i32 } [ %123, %122 ], [ %147, %146 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %150

149:                                              ; preds = %144, %37
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, 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 void

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

151:                                              ; preds = %150, %14
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %150 ], [ %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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4amaxIiiET_RS0_T0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #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 #1 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { nofree nounwind "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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11, !12, !13}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !11, !13, !12}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11, !12, !13}
!18 = distinct !{!18, !11, !13, !12}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}


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