; LLVM IR from tangjz/acm-icpc :: leetcode/extra (meituan_015-十字路口)

; 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::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { ptr }
%"struct.std::pair" = type { i32, i32 }

@_ZZ4mainE3tim = external hidden global [10001 x [2 x i32]], align 16
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3dis = external hidden global [10001 x i32], align 16
@_ZZ4mainE3vis = external hidden global [10001 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [4 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 i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::priority_queue", align 8
  %14 = alloca %class.anon, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4, ptr noundef %6, ptr noundef %7, ptr noundef %9, ptr noundef %10)
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = mul nsw i32 %24, %25
  store i32 %26, ptr %2, align 4, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %6, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = mul nsw i32 %28, %29
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = add nsw i32 %31, -1
  store i32 %32, ptr %7, align 4, !tbaa !5
  %33 = add nsw i32 %30, %32
  store i32 %33, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = add nsw i32 %34, -1
  store i32 %35, ptr %9, align 4, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = mul nsw i32 %35, %36
  %38 = load i32, ptr %10, align 4, !tbaa !5
  %39 = add nsw i32 %38, -1
  store i32 %39, ptr %10, align 4, !tbaa !5
  %40 = add nsw i32 %37, %39
  store i32 %40, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %53, %0
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

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

46:                                               ; preds = %41
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %48
  %50 = getelementptr inbounds [2 x i32], ptr %49, i64 0, i64 0
  %51 = getelementptr inbounds i32, ptr %50, i64 0
  %52 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %51)
  br label %53

53:                                               ; preds = %46
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %11, align 4, !tbaa !5
  br label %41, !llvm.loop !9

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

57:                                               ; preds = %80, %56
  %58 = load i32, ptr %12, align 4, !tbaa !5
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %83

62:                                               ; preds = %57
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %64
  %66 = getelementptr inbounds [2 x i32], ptr %65, i64 0, i64 0
  %67 = getelementptr inbounds i32, ptr %66, i64 1
  %68 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %67)
  %69 = load i32, ptr %12, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %70
  %72 = getelementptr inbounds [2 x i32], ptr %71, i64 0, i64 0
  %73 = load i32, ptr %72, align 8, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %75
  %77 = getelementptr inbounds [2 x i32], ptr %76, i64 0, i64 1
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %78, %73
  store i32 %79, ptr %77, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %62
  %81 = load i32, ptr %12, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %12, align 4, !tbaa !5
  br label %57, !llvm.loop !11

83:                                               ; preds = %61
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = mul i64 %85, 4
  call void @llvm.memset.p0.i64(ptr align 16 @_ZZ4mainE3dis, i8 63, i64 %86, i1 false)
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = mul i64 %88, 1
  call void @llvm.memset.p0.i64(ptr align 16 @_ZZ4mainE3vis, i8 0, i64 %89, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %90 = getelementptr inbounds %class.anon, ptr %14, i32 0, i32 0
  store ptr %13, ptr %90, align 8, !tbaa !12
  %91 = load i32, ptr %5, align 4, !tbaa !5
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %91, i32 noundef 0)
          to label %92 unwind label %109

92:                                               ; preds = %83
  br label %93

93:                                               ; preds = %247, %245, %92
  %94 = invoke noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %13)
          to label %95 unwind label %109

95:                                               ; preds = %93
  %96 = xor i1 %94, true
  br i1 %96, label %97, label %250

97:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %98 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %13)
          to label %99 unwind label %113

99:                                               ; preds = %97
  %100 = getelementptr inbounds %"struct.std::pair", ptr %98, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !14
  store i32 %101, ptr %17, align 4, !tbaa !5
  invoke void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %13)
          to label %102 unwind label %113

102:                                              ; preds = %99
  %103 = load i32, ptr %17, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [10001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !16, !range !18, !noundef !19
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %117

108:                                              ; preds = %102
  store i32 8, ptr %18, align 4
  br label %245, !llvm.loop !20

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

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

117:                                              ; preds = %102
  %118 = load i32, ptr %17, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [10001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %119
  store i8 1, ptr %120, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %121 = load i32, ptr %17, align 4, !tbaa !5
  %122 = load i32, ptr %4, align 4, !tbaa !5
  %123 = sdiv i32 %121, %122
  store i32 %123, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %124 = load i32, ptr %17, align 4, !tbaa !5
  %125 = load i32, ptr %4, align 4, !tbaa !5
  %126 = srem i32 %124, %125
  store i32 %126, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %127 = load i32, ptr %17, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [10001 x i32], ptr @_ZZ4mainE3dis, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  store i32 %130, ptr %21, align 4, !tbaa !5
  %131 = load i32, ptr %21, align 4, !tbaa !5
  %132 = load i32, ptr %17, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %133
  %135 = getelementptr inbounds [2 x i32], ptr %134, i64 0, i64 1
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = srem i32 %131, %136
  %138 = load i32, ptr %17, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %139
  %141 = getelementptr inbounds [2 x i32], ptr %140, i64 0, i64 0
  %142 = load i32, ptr %141, align 8, !tbaa !5
  %143 = icmp sge i32 %137, %142
  br i1 %143, label %144, label %160

144:                                              ; preds = %117
  %145 = load i32, ptr %17, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %146
  %148 = getelementptr inbounds [2 x i32], ptr %147, i64 0, i64 1
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = load i32, ptr %21, align 4, !tbaa !5
  %151 = load i32, ptr %17, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %152
  %154 = getelementptr inbounds [2 x i32], ptr %153, i64 0, i64 1
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = srem i32 %150, %155
  %157 = sub nsw i32 %149, %156
  %158 = load i32, ptr %21, align 4, !tbaa !5
  %159 = add nsw i32 %158, %157
  store i32 %159, ptr %21, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %144, %117
  %161 = load i32, ptr %21, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %21, align 4, !tbaa !5
  %163 = load i32, ptr %19, align 4, !tbaa !5
  %164 = icmp sgt i32 %163, 0
  br i1 %164, label %165, label %175

165:                                              ; preds = %160
  %166 = load i32, ptr %17, align 4, !tbaa !5
  %167 = load i32, ptr %4, align 4, !tbaa !5
  %168 = sub nsw i32 %166, %167
  %169 = load i32, ptr %21, align 4, !tbaa !5
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %168, i32 noundef %169)
          to label %170 unwind label %171

170:                                              ; preds = %165
  br label %175

171:                                              ; preds = %180, %165
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %15, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %248

175:                                              ; preds = %170, %160
  %176 = load i32, ptr %19, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  %178 = load i32, ptr %3, align 4, !tbaa !5
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %180, label %186

180:                                              ; preds = %175
  %181 = load i32, ptr %17, align 4, !tbaa !5
  %182 = load i32, ptr %4, align 4, !tbaa !5
  %183 = add nsw i32 %181, %182
  %184 = load i32, ptr %21, align 4, !tbaa !5
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %183, i32 noundef %184)
          to label %185 unwind label %171

185:                                              ; preds = %180
  br label %186

186:                                              ; preds = %185, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %187 = load i32, ptr %17, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [10001 x i32], ptr @_ZZ4mainE3dis, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !5
  store i32 %190, ptr %22, align 4, !tbaa !5
  %191 = load i32, ptr %22, align 4, !tbaa !5
  %192 = load i32, ptr %17, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %193
  %195 = getelementptr inbounds [2 x i32], ptr %194, i64 0, i64 1
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = srem i32 %191, %196
  %198 = load i32, ptr %17, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %199
  %201 = getelementptr inbounds [2 x i32], ptr %200, i64 0, i64 0
  %202 = load i32, ptr %201, align 8, !tbaa !5
  %203 = icmp slt i32 %197, %202
  br i1 %203, label %204, label %220

204:                                              ; preds = %186
  %205 = load i32, ptr %17, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %206
  %208 = getelementptr inbounds [2 x i32], ptr %207, i64 0, i64 0
  %209 = load i32, ptr %208, align 8, !tbaa !5
  %210 = load i32, ptr %22, align 4, !tbaa !5
  %211 = load i32, ptr %17, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %212
  %214 = getelementptr inbounds [2 x i32], ptr %213, i64 0, i64 1
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = srem i32 %210, %215
  %217 = sub nsw i32 %209, %216
  %218 = load i32, ptr %22, align 4, !tbaa !5
  %219 = add nsw i32 %218, %217
  store i32 %219, ptr %22, align 4, !tbaa !5
  br label %220

220:                                              ; preds = %204, %186
  %221 = load i32, ptr %22, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %22, align 4, !tbaa !5
  %223 = load i32, ptr %20, align 4, !tbaa !5
  %224 = icmp sgt i32 %223, 0
  br i1 %224, label %225, label %234

225:                                              ; preds = %220
  %226 = load i32, ptr %17, align 4, !tbaa !5
  %227 = sub nsw i32 %226, 1
  %228 = load i32, ptr %22, align 4, !tbaa !5
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %227, i32 noundef %228)
          to label %229 unwind label %230

229:                                              ; preds = %225
  br label %234

230:                                              ; preds = %239, %225
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %15, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %248

234:                                              ; preds = %229, %220
  %235 = load i32, ptr %20, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  %237 = load i32, ptr %4, align 4, !tbaa !5
  %238 = icmp slt i32 %236, %237
  br i1 %238, label %239, label %244

239:                                              ; preds = %234
  %240 = load i32, ptr %17, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  %242 = load i32, ptr %22, align 4, !tbaa !5
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %241, i32 noundef %242)
          to label %243 unwind label %230

243:                                              ; preds = %239
  br label %244

244:                                              ; preds = %243, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  store i32 0, ptr %18, align 4
  br label %245

245:                                              ; preds = %244, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %246 = load i32, ptr %18, align 4
  switch i32 %246, label %264 [
    i32 0, label %247
    i32 8, label %93
  ]

247:                                              ; preds = %245
  br label %93, !llvm.loop !20

248:                                              ; preds = %230, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %249

249:                                              ; preds = %248, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %258

250:                                              ; preds = %95
  %251 = load i32, ptr %8, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [10001 x i32], ptr @_ZZ4mainE3dis, i64 0, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %254)
          to label %256 unwind label %109

256:                                              ; preds = %250
  store i32 0, ptr %1, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %257 = load i32, ptr %1, align 4
  ret i32 %257

258:                                              ; preds = %249, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %259

259:                                              ; preds = %258
  %260 = load ptr, ptr %15, align 8
  %261 = load i32, ptr %16, align 4
  %262 = insertvalue { ptr, i32 } poison, ptr %260, 0
  %263 = insertvalue { ptr, i32 } %262, i32 %261, 1
  resume { ptr, i32 } %263

264:                                              ; preds = %245
  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: 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) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #7 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !6, i64 4}
!15 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !10}


; 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::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { ptr }

@_ZZ4mainE3tim = external hidden global [10001 x [2 x i32]], align 16
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3dis = external hidden local_unnamed_addr global [10001 x i32], align 16
@_ZZ4mainE3vis = external hidden local_unnamed_addr global [10001 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [4 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 i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::priority_queue", align 8
  %8 = alloca %class.anon, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = mul nsw i32 %11, %10
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr %3, align 4, !tbaa !5
  %15 = mul nsw i32 %14, %11
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %4, align 4, !tbaa !5
  %18 = add nsw i32 %17, %15
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = add nsw i32 %19, -1
  store i32 %20, ptr %5, align 4, !tbaa !5
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr %6, align 4, !tbaa !5
  %23 = icmp sgt i32 %12, 0
  br i1 %23, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = zext nneg i32 %12 to i64
  br label %.lr.ph

.preheader64:                                     ; preds = %.lr.ph
  br i1 %23, label %.lr.ph67.preheader, label %._crit_edge

.lr.ph67.preheader:                               ; preds = %.preheader64
  %wide.trip.count74 = zext nneg i32 %12 to i64
  br label %.lr.ph67

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %24 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %indvars.iv
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %24)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader64, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph67, %0, %.preheader64
  %26 = sext i32 %12 to i64
  %27 = shl nsw i64 %26, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @_ZZ4mainE3dis, i8 63, i64 %27, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @_ZZ4mainE3vis, i8 0, i64 %26, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store ptr %7, ptr %8, align 8, !tbaa !11
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %18, i32 noundef 0)
          to label %.preheader unwind label %43

.preheader:                                       ; preds = %._crit_edge
  %28 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  br i1 %28, label %._crit_edge69, label %.lr.ph68

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %.lr.ph67
  %indvars.iv71 = phi i64 [ 0, %.lr.ph67.preheader ], [ %indvars.iv.next72, %.lr.ph67 ]
  %29 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %indvars.iv71
  %30 = getelementptr inbounds i8, ptr %29, i64 4
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %30)
  %32 = load i32, ptr %29, align 8, !tbaa !5
  %33 = load i32, ptr %30, align 4, !tbaa !5
  %34 = add nsw i32 %33, %32
  store i32 %34, ptr %30, align 4, !tbaa !5
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %._crit_edge, label %.lr.ph67, !llvm.loop !13

.lr.ph68:                                         ; preds = %.preheader, %93
  %35 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  %36 = getelementptr inbounds i8, ptr %35, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !14
  invoke void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %38 unwind label %45

38:                                               ; preds = %.lr.ph68
  %39 = sext i32 %37 to i64
  %40 = getelementptr inbounds [10001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !16, !range !18, !noundef !19
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %93, label %47, !llvm.loop !20

43:                                               ; preds = %._crit_edge
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %101

45:                                               ; preds = %.lr.ph68
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %101

47:                                               ; preds = %38
  store i8 1, ptr %40, align 1, !tbaa !16
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sdiv i32 %37, %48
  %50 = srem i32 %37, %48
  %51 = getelementptr inbounds [10001 x i32], ptr @_ZZ4mainE3dis, i64 0, i64 %39
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = getelementptr inbounds [10001 x [2 x i32]], ptr @_ZZ4mainE3tim, i64 0, i64 %39
  %54 = getelementptr inbounds i8, ptr %53, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = srem i32 %52, %55
  %57 = load i32, ptr %53, align 8, !tbaa !5
  %.not = icmp slt i32 %56, %57
  %58 = sub nsw i32 %55, %56
  %59 = select i1 %.not, i32 0, i32 %58
  %.050 = add i32 %52, 1
  %60 = add i32 %.050, %59
  %61 = icmp sgt i32 %49, 0
  br i1 %61, label %62, label %66

62:                                               ; preds = %47
  %63 = sub nsw i32 %37, %48
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %63, i32 noundef %60)
          to label %66 unwind label %64

64:                                               ; preds = %70, %62
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %101

66:                                               ; preds = %62, %47
  %67 = add nsw i32 %49, 1
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %70, label %73

70:                                               ; preds = %66
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = add nsw i32 %71, %37
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %72, i32 noundef %60)
          to label %73 unwind label %64

73:                                               ; preds = %70, %66
  %74 = load i32, ptr %51, align 4, !tbaa !5
  %75 = load i32, ptr %54, align 4, !tbaa !5
  %76 = srem i32 %74, %75
  %77 = load i32, ptr %53, align 8, !tbaa !5
  %78 = icmp slt i32 %76, %77
  %79 = sub nsw i32 %77, %76
  %80 = select i1 %78, i32 %79, i32 0
  %.0 = add i32 %74, 1
  %81 = add i32 %.0, %80
  %82 = icmp sgt i32 %50, 0
  br i1 %82, label %83, label %87

83:                                               ; preds = %73
  %84 = add nsw i32 %37, -1
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %84, i32 noundef %81)
          to label %87 unwind label %85

85:                                               ; preds = %91, %83
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %101

87:                                               ; preds = %83, %73
  %88 = add nsw i32 %50, 1
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %91, label %93

91:                                               ; preds = %87
  %92 = add nsw i32 %37, 1
  invoke void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %92, i32 noundef %81)
          to label %93 unwind label %85

93:                                               ; preds = %87, %91, %38
  %94 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  br i1 %94, label %._crit_edge69, label %.lr.ph68

._crit_edge69:                                    ; preds = %93, %.preheader
  %95 = mul nsw i32 %20, %11
  %96 = add nsw i32 %22, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [10001 x i32], ptr @_ZZ4mainE3dis, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %99)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

101:                                              ; preds = %45, %85, %64, %43
  %.pn.pn.pn = phi { ptr, i32 } [ %44, %43 ], [ %46, %45 ], [ %86, %85 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #7 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{!15, !6, i64 4}
!15 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !10}


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