; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 7/1684. Jack's Last 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i64, i64 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [150005 x i8], align 16
  %3 = alloca [150005 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [150005 x i32], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca ptr, align 8
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 150005, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 150005, ptr %3) #7
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %21 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 0
  %22 = call i64 @strlen(ptr noundef %21) #8
  %23 = trunc i64 %22 to i32
  store i32 %23, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %24 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 0
  %25 = call i64 @strlen(ptr noundef %24) #8
  %26 = getelementptr inbounds [150005 x i8], ptr %3, i64 0, i64 0
  %27 = call i64 @strlen(ptr noundef %26) #8
  %28 = add i64 %25, %27
  %29 = add i64 %28, 1
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %5, align 4, !tbaa !5
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %32
  store i8 35, ptr %33, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %52, %0
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [150005 x i8], ptr %3, i64 0, i64 0
  %38 = call i64 @strlen(ptr noundef %37) #8
  %39 = icmp ult i64 %36, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %55

41:                                               ; preds = %34
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [150005 x i8], ptr %3, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !9
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = add nsw i32 %46, %47
  %49 = add nsw i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %50
  store i8 %45, ptr %51, align 1, !tbaa !9
  br label %52

52:                                               ; preds = %41
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %6, align 4, !tbaa !5
  br label %34, !llvm.loop !10

55:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 600020, ptr %7) #7
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 600020, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %110, %55
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %113

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = sub nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [150005 x i32], ptr %7, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %9, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %84, %61
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %82

70:                                               ; preds = %67
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %72
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %75 = sext i8 %74 to i32
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !9
  %80 = sext i8 %79 to i32
  %81 = icmp ne i32 %75, %80
  br label %82

82:                                               ; preds = %70, %67
  %83 = phi i1 [ false, %67 ], [ %81, %70 ]
  br i1 %83, label %84, label %90

84:                                               ; preds = %82
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = sub nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [150005 x i32], ptr %7, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  store i32 %89, ptr %9, align 4, !tbaa !5
  br label %67, !llvm.loop !12

90:                                               ; preds = %82
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !9
  %95 = sext i8 %94 to i32
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %97
  %99 = load i8, ptr %98, align 1, !tbaa !9
  %100 = sext i8 %99 to i32
  %101 = icmp eq i32 %95, %100
  br i1 %101, label %102, label %105

102:                                              ; preds = %90
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %9, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %102, %90
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [150005 x i32], ptr %7, i64 0, i64 %108
  store i32 %106, ptr %109, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %110

110:                                              ; preds = %105
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %8, align 4, !tbaa !5
  br label %56, !llvm.loop !13

113:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 -1, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  invoke void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %114 unwind label %122

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

117:                                              ; preds = %173, %114
  %118 = load i32, ptr %15, align 4, !tbaa !5
  %119 = load i32, ptr %4, align 4, !tbaa !5
  %120 = icmp sgt i32 %118, %119
  br i1 %120, label %126, label %121

121:                                              ; preds = %117
  store i32 10, ptr %16, align 4
  br label %176

122:                                              ; preds = %178, %113
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %13, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %14, align 4
  br label %237

126:                                              ; preds = %117
  %127 = load i32, ptr %11, align 4, !tbaa !5
  %128 = icmp eq i32 %127, -1
  br i1 %128, label %129, label %161

129:                                              ; preds = %126
  %130 = load i32, ptr %15, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  store i64 %131, ptr %132, align 8, !tbaa !14
  %133 = load i32, ptr %15, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  store i64 %134, ptr %135, align 8, !tbaa !17
  %136 = load i32, ptr %15, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [150005 x i32], ptr %7, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sub nsw i32 %139, 1
  store i32 %140, ptr %11, align 4, !tbaa !5
  %141 = load i32, ptr %11, align 4, !tbaa !5
  %142 = icmp eq i32 %141, -1
  br i1 %142, label %143, label %150

143:                                              ; preds = %129
  %144 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %145 unwind label %146

145:                                              ; preds = %143
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  br label %176

146:                                              ; preds = %169, %158, %143
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %13, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %237

150:                                              ; preds = %129
  %151 = load i32, ptr %11, align 4, !tbaa !5
  %152 = add nsw i32 %151, -1
  store i32 %152, ptr %11, align 4, !tbaa !5
  %153 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %154 = load i64, ptr %153, align 8, !tbaa !14
  %155 = add nsw i64 %154, -1
  store i64 %155, ptr %153, align 8, !tbaa !14
  %156 = load i32, ptr %11, align 4, !tbaa !5
  %157 = icmp eq i32 %156, -1
  br i1 %157, label %158, label %160

158:                                              ; preds = %150
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %159 unwind label %146

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159, %150
  br label %172

161:                                              ; preds = %126
  %162 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %163 = load i64, ptr %162, align 8, !tbaa !14
  %164 = add nsw i64 %163, -1
  store i64 %164, ptr %162, align 8, !tbaa !14
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = add nsw i32 %165, -1
  store i32 %166, ptr %11, align 4, !tbaa !5
  %167 = load i32, ptr %11, align 4, !tbaa !5
  %168 = icmp eq i32 %167, -1
  br i1 %168, label %169, label %171

169:                                              ; preds = %161
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %170 unwind label %146

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170, %161
  br label %172

172:                                              ; preds = %171, %160
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %15, align 4, !tbaa !5
  %175 = add nsw i32 %174, -1
  store i32 %175, ptr %15, align 4, !tbaa !5
  br label %117, !llvm.loop !18

176:                                              ; preds = %145, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  %177 = load i32, ptr %16, align 4
  switch i32 %177, label %233 [
    i32 10, label %178
  ]

178:                                              ; preds = %176
  %179 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %180 unwind label %122

180:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %181 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %182 = sub i64 %181, 1
  %183 = trunc i64 %182 to i32
  store i32 %183, ptr %17, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %224, %180
  %185 = load i32, ptr %17, align 4, !tbaa !5
  %186 = icmp sge i32 %185, 0
  br i1 %186, label %188, label %187

187:                                              ; preds = %184
  store i32 13, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %232

188:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %189 = load i32, ptr %17, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %190) #7
  %192 = getelementptr inbounds %"struct.std::pair", ptr %191, i32 0, i32 0
  %193 = load i64, ptr %192, align 8, !tbaa !14
  %194 = trunc i64 %193 to i32
  store i32 %194, ptr %18, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %214, %188
  %196 = load i32, ptr %18, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = load i32, ptr %17, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %199) #7
  %201 = getelementptr inbounds %"struct.std::pair", ptr %200, i32 0, i32 1
  %202 = load i64, ptr %201, align 8, !tbaa !17
  %203 = icmp slt i64 %197, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %195
  store i32 16, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %221

205:                                              ; preds = %195
  %206 = load i32, ptr %18, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %208
  %210 = load i8, ptr %209, align 1, !tbaa !9
  %211 = sext i8 %210 to i32
  %212 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %211)
          to label %213 unwind label %217

213:                                              ; preds = %205
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %18, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %18, align 4, !tbaa !5
  br label %195, !llvm.loop !19

217:                                              ; preds = %205
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %13, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %231

221:                                              ; preds = %204
  %222 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %223 unwind label %227

223:                                              ; preds = %221
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %17, align 4, !tbaa !5
  %226 = add nsw i32 %225, -1
  store i32 %226, ptr %17, align 4, !tbaa !5
  br label %184, !llvm.loop !20

227:                                              ; preds = %221
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %13, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %14, align 4
  br label %231

231:                                              ; preds = %227, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %237

232:                                              ; preds = %187
  store i32 0, ptr %16, align 4
  br label %233

233:                                              ; preds = %232, %176
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 600020, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 150005, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 150005, ptr %2) #7
  %234 = load i32, ptr %16, align 4
  switch i32 %234, label %243 [
    i32 0, label %235
    i32 1, label %235
  ]

235:                                              ; preds = %233, %233
  %236 = load i32, ptr %1, align 4
  ret i32 %236

237:                                              ; preds = %231, %146, %122
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 600020, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 150005, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 150005, ptr %2) #7
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %13, align 8
  %240 = load i32, ptr %14, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242

243:                                              ; preds = %233
  unreachable
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 = { "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 = { nounwind willreturn memory(read) "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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 = !{!15, !16, i64 0}
!15 = !{!"_ZTSSt4pairIxxE", !16, i64 0, !16, i64 8}
!16 = !{!"long long", !7, i64 0}
!17 = !{!15, !16, i64 8}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i64, i64 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [150005 x i8], align 16
  %2 = alloca [150005 x i8], align 16
  %3 = alloca [150005 x i32], align 16
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"struct.std::pair", align 8
  call void @llvm.lifetime.start.p0(i64 150005, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 150005, ptr nonnull %2) #7
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %8 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #8
  %9 = trunc i64 %8 to i32
  %10 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %11 = add i64 %10, %8
  %12 = trunc i64 %11 to i32
  %13 = add i32 %12, 1
  %sext = shl i64 %8, 32
  %14 = ashr exact i64 %sext, 32
  %15 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %14
  store i8 35, ptr %15, align 1, !tbaa !5
  %.not85 = icmp eq i64 %10, 0
  br i1 %.not85, label %._crit_edge, label %iter.check

iter.check:                                       ; preds = %0
  %16 = add i64 %8, 1
  %min.iters.check = icmp ult i64 %10, 8
  br i1 %min.iters.check, label %vec.epilog.scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %iter.check
  %17 = add i64 %10, -1
  %18 = add i32 %9, 1
  %19 = trunc i64 %17 to i32
  %20 = add i32 %18, %19
  %21 = icmp slt i32 %20, %18
  %22 = icmp ugt i64 %17, 4294967295
  %23 = or i1 %21, %22
  br i1 %23, label %vec.epilog.scalar.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.scevcheck
  %min.iters.check105 = icmp ult i64 %10, 32
  br i1 %min.iters.check105, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %10, 8589934560
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %24 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %index
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load = load <16 x i8>, ptr %24, align 16, !tbaa !5
  %wide.load106 = load <16 x i8>, ptr %25, align 16, !tbaa !5
  %26 = add i64 %16, %index
  %27 = shl i64 %26, 32
  %28 = ashr exact i64 %27, 32
  %29 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %28
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  store <16 x i8> %wide.load, ptr %29, align 1, !tbaa !5
  store <16 x i8> %wide.load106, ptr %30, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 32
  %31 = icmp eq i64 %index.next, %n.vec
  br i1 %31, label %middle.block, label %vector.body, !llvm.loop !8

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %10, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %n.vec.remaining = and i64 %10, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %vec.epilog.scalar.ph.preheader, label %vec.epilog.ph

vec.epilog.scalar.ph.preheader:                   ; preds = %vec.epilog.middle.block, %vector.scevcheck, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ 0, %iter.check ], [ 0, %vector.scevcheck ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec108, %vec.epilog.middle.block ]
  %.neg = or disjoint i64 %indvars.iv.ph, 1
  %xtraiter = and i64 %10, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %vec.epilog.scalar.ph.prol.loopexit, label %vec.epilog.scalar.ph.prol

vec.epilog.scalar.ph.prol:                        ; preds = %vec.epilog.scalar.ph.preheader
  %32 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %indvars.iv.ph
  %33 = load i8, ptr %32, align 8, !tbaa !5
  %34 = add i64 %16, %indvars.iv.ph
  %sext102.prol = shl i64 %34, 32
  %35 = ashr exact i64 %sext102.prol, 32
  %36 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %35
  store i8 %33, ptr %36, align 1, !tbaa !5
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %vec.epilog.scalar.ph.prol.loopexit

vec.epilog.scalar.ph.prol.loopexit:               ; preds = %vec.epilog.scalar.ph.prol, %vec.epilog.scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %vec.epilog.scalar.ph.preheader ], [ %indvars.iv.next.prol, %vec.epilog.scalar.ph.prol ]
  %37 = icmp eq i64 %10, %.neg
  br i1 %37, label %._crit_edge, label %vec.epilog.scalar.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec108 = and i64 %10, 8589934584
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index109 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next111, %vec.epilog.vector.body ]
  %38 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %index109
  %wide.load110 = load <8 x i8>, ptr %38, align 8, !tbaa !5
  %39 = add i64 %16, %index109
  %40 = shl i64 %39, 32
  %41 = ashr exact i64 %40, 32
  %42 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %41
  store <8 x i8> %wide.load110, ptr %42, align 1, !tbaa !5
  %index.next111 = add nuw i64 %index109, 8
  %43 = icmp eq i64 %index.next111, %n.vec108
  br i1 %43, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !12

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n112 = icmp eq i64 %10, %n.vec108
  br i1 %cmp.n112, label %._crit_edge, label %vec.epilog.scalar.ph.preheader

._crit_edge:                                      ; preds = %vec.epilog.scalar.ph.prol.loopexit, %vec.epilog.scalar.ph, %middle.block, %vec.epilog.middle.block, %0
  call void @llvm.lifetime.start.p0(i64 600020, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(600020) %3, i8 0, i64 600020, i1 false)
  %44 = icmp sgt i32 %13, 1
  br i1 %44, label %.lr.ph71.preheader, label %._crit_edge72

.lr.ph71.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %13 to i64
  br label %.lr.ph71

vec.epilog.scalar.ph:                             ; preds = %vec.epilog.scalar.ph.prol.loopexit, %vec.epilog.scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %vec.epilog.scalar.ph ], [ %indvars.iv.unr, %vec.epilog.scalar.ph.prol.loopexit ]
  %45 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %indvars.iv
  %46 = load i8, ptr %45, align 1, !tbaa !5
  %47 = add i64 %16, %indvars.iv
  %sext102 = shl i64 %47, 32
  %48 = ashr exact i64 %sext102, 32
  %49 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %48
  store i8 %46, ptr %49, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = getelementptr inbounds [150005 x i8], ptr %2, i64 0, i64 %indvars.iv.next
  %51 = load i8, ptr %50, align 1, !tbaa !5
  %52 = add i64 %16, %indvars.iv.next
  %sext102.1 = shl i64 %52, 32
  %53 = ashr exact i64 %sext102.1, 32
  %54 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %53
  store i8 %51, ptr %54, align 1, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %10
  br i1 %exitcond.not.1, label %._crit_edge, label %vec.epilog.scalar.ph, !llvm.loop !13

._crit_edge72:                                    ; preds = %.critedge, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %.not73 = icmp sgt i32 %12, %9
  br i1 %.not73, label %.lr.ph77, label %.critedge60

.lr.ph77:                                         ; preds = %._crit_edge72
  %55 = getelementptr inbounds i8, ptr %5, i64 8
  %sext103 = shl i64 %11, 32
  %56 = ashr exact i64 %sext103, 32
  %sext104 = shl i64 %8, 32
  %57 = ashr exact i64 %sext104, 32
  br label %74

.lr.ph71:                                         ; preds = %.lr.ph71.preheader, %.critedge
  %.04863 = phi i32 [ 0, %.lr.ph71.preheader ], [ %spec.select, %.critedge ]
  %indvars.iv88 = phi i64 [ 1, %.lr.ph71.preheader ], [ %indvars.iv.next89, %.critedge ]
  %58 = icmp sgt i32 %.04863, 0
  %59 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %indvars.iv88
  %60 = load i8, ptr %59, align 1, !tbaa !5
  br i1 %58, label %.lr.ph66, label %.critedge

.lr.ph66:                                         ; preds = %.lr.ph71, %64
  %.04864 = phi i32 [ %.048, %64 ], [ %.04863, %.lr.ph71 ]
  %61 = zext nneg i32 %.04864 to i64
  %62 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !5
  %.not58 = icmp eq i8 %60, %63
  br i1 %.not58, label %.critedge, label %64

64:                                               ; preds = %.lr.ph66
  %65 = add nsw i32 %.04864, -1
  %66 = zext nneg i32 %65 to i64
  %.048.in = getelementptr inbounds [150005 x i32], ptr %3, i64 0, i64 %66
  %.048 = load i32, ptr %.048.in, align 4, !tbaa !14
  %67 = icmp sgt i32 %.048, 0
  br i1 %67, label %.lr.ph66, label %.critedge, !llvm.loop !16

.critedge:                                        ; preds = %.lr.ph66, %64, %.lr.ph71
  %.048.lcssa = phi i32 [ %.04863, %.lr.ph71 ], [ %.048, %64 ], [ %.04864, %.lr.ph66 ]
  %68 = sext i32 %.048.lcssa to i64
  %69 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !5
  %71 = icmp eq i8 %60, %70
  %72 = zext i1 %71 to i32
  %spec.select = add nsw i32 %.048.lcssa, %72
  %73 = getelementptr inbounds [150005 x i32], ptr %3, i64 0, i64 %indvars.iv88
  store i32 %spec.select, ptr %73, align 4, !tbaa !14
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next89, %wide.trip.count
  br i1 %exitcond91.not, label %._crit_edge72, label %.lr.ph71, !llvm.loop !17

74:                                               ; preds = %.lr.ph77, %93
  %indvars.iv92 = phi i64 [ %56, %.lr.ph77 ], [ %indvars.iv.next93, %93 ]
  %.04774 = phi i32 [ -1, %.lr.ph77 ], [ %.1, %93 ]
  %75 = icmp eq i32 %.04774, -1
  br i1 %75, label %76, label %88

76:                                               ; preds = %74
  store i64 %indvars.iv92, ptr %5, align 8, !tbaa !18
  store i64 %indvars.iv92, ptr %55, align 8, !tbaa !21
  %77 = getelementptr inbounds [150005 x i32], ptr %3, i64 0, i64 %indvars.iv92
  %78 = load i32, ptr %77, align 4, !tbaa !14
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %84

80:                                               ; preds = %76
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %.loopexit

82:                                               ; preds = %.invoke
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 600020, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 150005, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 150005, ptr nonnull %1) #7
  resume { ptr, i32 } %83

84:                                               ; preds = %76
  %85 = add nsw i32 %78, -2
  %86 = add nsw i64 %indvars.iv92, -1
  store i64 %86, ptr %5, align 8, !tbaa !18
  %87 = icmp eq i32 %85, -1
  br i1 %87, label %.invoke, label %93

88:                                               ; preds = %74
  %89 = load i64, ptr %5, align 8, !tbaa !18
  %90 = add nsw i64 %89, -1
  store i64 %90, ptr %5, align 8, !tbaa !18
  %91 = add nsw i32 %.04774, -1
  %92 = icmp eq i32 %.04774, 0
  br i1 %92, label %.invoke, label %93

.invoke:                                          ; preds = %88, %84
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %93 unwind label %82

93:                                               ; preds = %.invoke, %84, %88
  %.1 = phi i32 [ %85, %84 ], [ %91, %88 ], [ -1, %.invoke ]
  %indvars.iv.next93 = add nsw i64 %indvars.iv92, -1
  %.not = icmp sgt i64 %indvars.iv.next93, %57
  br i1 %.not, label %74, label %.critedge60, !llvm.loop !22

.critedge60:                                      ; preds = %93, %._crit_edge72
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %95 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %96 = trunc i64 %95 to i32
  %.04282 = add i32 %96, -1
  %97 = icmp sgt i32 %.04282, -1
  br i1 %97, label %.lr.ph84.preheader, label %.loopexit

.lr.ph84.preheader:                               ; preds = %.critedge60
  %98 = zext nneg i32 %.04282 to i64
  br label %.lr.ph84

.lr.ph84:                                         ; preds = %.lr.ph84.preheader, %._crit_edge81
  %indvars.iv98 = phi i64 [ %98, %.lr.ph84.preheader ], [ %indvars.iv.next99, %._crit_edge81 ]
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv98) #7
  %100 = load i64, ptr %99, align 8, !tbaa !18
  %sext86 = shl i64 %100, 32
  %101 = ashr exact i64 %sext86, 32
  %102 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv98) #7
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  %104 = load i64, ptr %103, align 8, !tbaa !21
  %105 = icmp sgt i64 %104, %101
  br i1 %105, label %.lr.ph80, label %._crit_edge81

._crit_edge81:                                    ; preds = %.lr.ph80, %.lr.ph84
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %indvars.iv.next99 = add nsw i64 %indvars.iv98, -1
  %107 = icmp sgt i64 %indvars.iv98, 0
  br i1 %107, label %.lr.ph84, label %.loopexit, !llvm.loop !23

.lr.ph80:                                         ; preds = %.lr.ph84, %.lr.ph80
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %.lr.ph80 ], [ %101, %.lr.ph84 ]
  %indvars.iv.next96 = add nsw i64 %indvars.iv95, 1
  %108 = getelementptr inbounds [150005 x i8], ptr %1, i64 0, i64 %indvars.iv.next96
  %109 = load i8, ptr %108, align 1, !tbaa !5
  %110 = sext i8 %109 to i32
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %110)
  %112 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv98) #7
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = load i64, ptr %113, align 8, !tbaa !21
  %115 = icmp sgt i64 %114, %indvars.iv.next96
  br i1 %115, label %.lr.ph80, label %._crit_edge81, !llvm.loop !24

.loopexit:                                        ; preds = %._crit_edge81, %.critedge60, %80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 600020, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 150005, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 150005, ptr nonnull %1) #7
  ret i32 0
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

!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 = distinct !{!8, !9, !10, !11}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !9, !10, !11}
!13 = distinct !{!13, !9, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !6, i64 0}
!16 = distinct !{!16, !9}
!17 = distinct !{!17, !9}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTSSt4pairIxxE", !20, i64 0, !20, i64 8}
!20 = !{!"long long", !6, i64 0}
!21 = !{!19, !20, i64 8}
!22 = distinct !{!22, !9}
!23 = distinct !{!23, !9}
!24 = distinct !{!24, !9}


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