; LLVM IR from tangjz/acm-icpc :: buaa/oj3rd (763)

; 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"

%struct.Node = type { i64, i32 }
%"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<Node, std::allocator<Node>>::_Vector_impl" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@query = external dso_local global [200000 x %struct.Node], align 16
@tmp = external dso_local global %struct.Node, align 8
@Q = external dso_local global %"class.std::priority_queue", align 8
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@delta = external dso_local global [200000 x i32], align 16
@x = external dso_local global [200000 x i64], align 16
@ans = external dso_local global [200000 x i64], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKxS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.Node, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.Node, align 8
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @_Z4ReadIiEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %235, %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @t, align 4, !tbaa !5
  %16 = icmp sle i32 %14, %15
  br i1 %16, label %18, label %17

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

18:                                               ; preds = %13
  call void @_Z4ReadIiEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @_Z4ReadIiEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @q)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %22 = sub nsw i32 %21, 1
  %23 = sext i32 %22 to i64
  %24 = mul nsw i64 %20, %23
  %25 = ashr i64 %24, 1
  store i64 %25, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %35, %18
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %38

31:                                               ; preds = %26
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %33
  call void @_Z4ReadIxEvRT_(ptr noundef nonnull align 8 dereferenceable(8) %34)
  br label %35

35:                                               ; preds = %31
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %5, align 4, !tbaa !5
  br label %26, !llvm.loop !11

38:                                               ; preds = %30
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i64, ptr @x, i64 %40
  call void @_ZSt4sortIPxPFbRKxS2_EEvT_S5_T0_(ptr noundef @x, ptr noundef %41, ptr noundef @_Z3cmpRKxS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %80, %38
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = sub nsw i32 %44, 1
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %42
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %83

48:                                               ; preds = %42
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = icmp sge i64 %52, 0
  br i1 %53, label %54, label %57

54:                                               ; preds = %48
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  br label %60

57:                                               ; preds = %48
  %58 = load i32, ptr @n, align 4, !tbaa !5
  %59 = sub nsw i32 %58, 1
  br label %60

60:                                               ; preds = %57, %54
  %61 = phi i32 [ %56, %54 ], [ %59, %57 ]
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %63
  store i32 %61, ptr %64, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %65 = getelementptr inbounds %struct.Node, ptr %7, i32 0, i32 0
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = mul nsw i64 %69, %76
  store i64 %77, ptr %65, align 8, !tbaa !13
  %78 = getelementptr inbounds %struct.Node, ptr %7, i32 0, i32 1
  %79 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %79, ptr %78, align 8, !tbaa !15
  call void @_ZNSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  br label %80

80:                                               ; preds = %60
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %6, align 4, !tbaa !5
  br label %42, !llvm.loop !16

83:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %99, %83
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = load i32, ptr @q, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %102

89:                                               ; preds = %84
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [200000 x %struct.Node], ptr @query, i64 0, i64 %91
  %93 = getelementptr inbounds %struct.Node, ptr %92, i32 0, i32 0
  call void @_Z4ReadIxEvRT_(ptr noundef nonnull align 8 dereferenceable(8) %93)
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [200000 x %struct.Node], ptr @query, i64 0, i64 %96
  %98 = getelementptr inbounds %struct.Node, ptr %97, i32 0, i32 1
  store i32 %94, ptr %98, align 8, !tbaa !15
  br label %99

99:                                               ; preds = %89
  %100 = load i32, ptr %8, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %8, align 4, !tbaa !5
  br label %84, !llvm.loop !17

102:                                              ; preds = %88
  %103 = load i32, ptr @q, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.Node, ptr @query, i64 %104
  call void @_ZSt4sortIP4NodeEvT_S2_(ptr noundef @query, ptr noundef %105)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %200, %102
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = load i32, ptr @q, align 4, !tbaa !5
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %203

111:                                              ; preds = %106
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [200000 x %struct.Node], ptr @query, i64 0, i64 %113
  %115 = getelementptr inbounds %struct.Node, ptr %114, i32 0, i32 0
  %116 = load i64, ptr %115, align 16, !tbaa !13
  %117 = load i64, ptr %4, align 8, !tbaa !9
  %118 = icmp sgt i64 %116, %117
  br i1 %118, label %119, label %127

119:                                              ; preds = %111
  %120 = load i32, ptr %9, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [200000 x %struct.Node], ptr @query, i64 0, i64 %121
  %123 = getelementptr inbounds %struct.Node, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 8, !tbaa !15
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %125
  store i64 9223372036854775807, ptr %126, align 8, !tbaa !9
  br label %199

127:                                              ; preds = %111
  br label %128

128:                                              ; preds = %187, %127
  %129 = load i32, ptr %10, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [200000 x %struct.Node], ptr @query, i64 0, i64 %132
  %134 = getelementptr inbounds %struct.Node, ptr %133, i32 0, i32 0
  %135 = load i64, ptr %134, align 16, !tbaa !13
  %136 = icmp slt i64 %130, %135
  br i1 %136, label %137, label %190

137:                                              ; preds = %128
  %138 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @tmp, ptr align 8 %138, i64 16, i1 false), !tbaa.struct !18
  call void @_ZNSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %139 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %140
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = icmp sge i64 %142, 0
  br i1 %143, label %144, label %150

144:                                              ; preds = %137
  %145 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %147, align 4, !tbaa !5
  br label %156

150:                                              ; preds = %137
  %151 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = add nsw i32 %154, -1
  store i32 %155, ptr %153, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %150, %144
  %157 = phi ptr [ %147, %144 ], [ %153, %150 ]
  %158 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  %163 = icmp sgt i32 %161, %162
  br i1 %163, label %164, label %187

164:                                              ; preds = %156
  %165 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = load i32, ptr @n, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %171, label %187

171:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %172 = getelementptr inbounds %struct.Node, ptr %11, i32 0, i32 0
  %173 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %174
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !9
  %184 = mul nsw i64 %176, %183
  store i64 %184, ptr %172, align 8, !tbaa !13
  %185 = getelementptr inbounds %struct.Node, ptr %11, i32 0, i32 1
  %186 = load i32, ptr getelementptr inbounds (%struct.Node, ptr @tmp, i32 0, i32 1), align 8, !tbaa !15
  store i32 %186, ptr %185, align 8, !tbaa !15
  call void @_ZNSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  br label %187

187:                                              ; preds = %171, %164, %156
  %188 = load i32, ptr %10, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %10, align 4, !tbaa !5
  br label %128, !llvm.loop !19

190:                                              ; preds = %128
  %191 = load i64, ptr @tmp, align 8, !tbaa !13
  %192 = load i32, ptr %9, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [200000 x %struct.Node], ptr @query, i64 0, i64 %193
  %195 = getelementptr inbounds %struct.Node, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 8, !tbaa !15
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %197
  store i64 %191, ptr %198, align 8, !tbaa !9
  br label %199

199:                                              ; preds = %190, %119
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %9, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %9, align 4, !tbaa !5
  br label %106, !llvm.loop !20

203:                                              ; preds = %110
  %204 = load i32, ptr %2, align 4, !tbaa !5
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %204)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %226, %203
  %207 = load i32, ptr %12, align 4, !tbaa !5
  %208 = load i32, ptr @q, align 4, !tbaa !5
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %206
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %229

211:                                              ; preds = %206
  %212 = load i32, ptr %12, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = icmp eq i64 %215, 9223372036854775807
  br i1 %216, label %217, label %219

217:                                              ; preds = %211
  %218 = call i32 @puts(ptr noundef @.str.1)
  br label %225

219:                                              ; preds = %211
  %220 = load i32, ptr %12, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %221
  %223 = load i64, ptr %222, align 8, !tbaa !9
  %224 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %223)
  br label %225

225:                                              ; preds = %219, %217
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %12, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %12, align 4, !tbaa !5
  br label %206, !llvm.loop !21

229:                                              ; preds = %210
  br label %230

230:                                              ; preds = %233, %229
  %231 = call noundef zeroext i1 @_ZNKSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %232 = xor i1 %231, true
  br i1 %232, label %233, label %234

233:                                              ; preds = %230
  call void @_ZNSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br label %230, !llvm.loop !22

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

235:                                              ; preds = %234
  %236 = load i32, ptr %2, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %2, align 4, !tbaa !5
  br label %13, !llvm.loop !23

238:                                              ; preds = %17
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4ReadIiEvRT_(ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxPFbRKxS2_EEvT_S5_T0_(ptr noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4NodeEvT_S2_(ptr noundef, ptr noundef) #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

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

declare i32 @puts(ptr noundef) #6

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

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

!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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS4Node", !10, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{i64 0, i64 8, !9, i64 8, i64 4, !5}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


; 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"

%struct.Node = type { i64, i32 }
%"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<Node, std::allocator<Node>>::_Vector_impl" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@query = external dso_local global [200000 x %struct.Node], align 16
@tmp = external dso_local local_unnamed_addr global %struct.Node, align 8
@Q = external dso_local global %"class.std::priority_queue", align 8
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@delta = external dso_local local_unnamed_addr global [200000 x i32], align 16
@x = external dso_local global [200000 x i64], align 16
@ans = external dso_local local_unnamed_addr global [200000 x i64], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKxS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %struct.Node, align 8
  %2 = alloca %struct.Node, align 8
  tail call void @_Z4ReadIiEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @t)
  %3 = load i32, ptr @t, align 4, !tbaa !5
  %.not69 = icmp slt i32 %3, 1
  br i1 %.not69, label %._crit_edge73, label %.lr.ph72

.lr.ph72:                                         ; preds = %0
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = getelementptr inbounds i8, ptr %2, i64 8
  br label %6

._crit_edge73:                                    ; preds = %._crit_edge68, %0
  ret i32 0

6:                                                ; preds = %.lr.ph72, %._crit_edge68
  %.03770 = phi i32 [ 1, %.lr.ph72 ], [ %101, %._crit_edge68 ]
  call void @_Z4ReadIiEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @_Z4ReadIiEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @q)
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = add nsw i32 %7, -1
  %10 = sext i32 %9 to i64
  %11 = mul nsw i64 %10, %8
  %12 = ashr i64 %11, 1
  %13 = icmp sgt i32 %7, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %6
  %.pre-phi = phi i64 [ %8, %6 ], [ %20, %.lr.ph ]
  %14 = getelementptr inbounds i64, ptr @x, i64 %.pre-phi
  call void @_ZSt4sortIPxPFbRKxS2_EEvT_S5_T0_(ptr noundef nonnull @x, ptr noundef nonnull %14, ptr noundef nonnull @_Z3cmpRKxS0_)
  %15 = load i32, ptr @n, align 4
  %16 = icmp sgt i32 %15, 1
  br i1 %16, label %.lr.ph50.preheader, label %.preheader45

.lr.ph50.preheader:                               ; preds = %._crit_edge
  %17 = add nsw i32 %15, -1
  br label %.lr.ph50

.lr.ph:                                           ; preds = %6, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %6 ]
  %18 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %indvars.iv
  call void @_Z4ReadIxEvRT_(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv.next, %20
  br i1 %21, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader45:                                     ; preds = %.lr.ph50, %._crit_edge
  %22 = load i32, ptr @q, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph52, label %.preheader45.._crit_edge53_crit_edge

.preheader45.._crit_edge53_crit_edge:             ; preds = %.preheader45
  %.pre96 = sext i32 %22 to i64
  br label %._crit_edge53

.lr.ph50:                                         ; preds = %.lr.ph50.preheader, %.lr.ph50
  %indvars.iv78 = phi i64 [ 0, %.lr.ph50.preheader ], [ %indvars.iv.next79, %.lr.ph50 ]
  %24 = phi i32 [ %17, %.lr.ph50.preheader ], [ %37, %.lr.ph50 ]
  %25 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %indvars.iv78
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %27 = icmp slt i64 %26, 0
  %28 = trunc nuw nsw i64 %indvars.iv.next79 to i32
  %29 = select i1 %27, i32 %24, i32 %28
  %30 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %indvars.iv78
  store i32 %29, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  %31 = sext i32 %29 to i64
  %32 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = mul nsw i64 %33, %26
  store i64 %34, ptr %1, align 8, !tbaa !13
  %35 = trunc nuw nsw i64 %indvars.iv78 to i32
  store i32 %35, ptr %4, align 8, !tbaa !15
  call void @_ZNSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  %36 = load i32, ptr @n, align 4
  %37 = add nsw i32 %36, -1
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next79, %38
  br i1 %39, label %.lr.ph50, label %.preheader45, !llvm.loop !16

._crit_edge53:                                    ; preds = %.lr.ph52, %.preheader45.._crit_edge53_crit_edge
  %.pre-phi97 = phi i64 [ %.pre96, %.preheader45.._crit_edge53_crit_edge ], [ %47, %.lr.ph52 ]
  %40 = getelementptr inbounds %struct.Node, ptr @query, i64 %.pre-phi97
  call void @_ZSt4sortIP4NodeEvT_S2_(ptr noundef nonnull @query, ptr noundef nonnull %40)
  %41 = load i32, ptr @q, align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph62, label %._crit_edge63

.lr.ph52:                                         ; preds = %.preheader45, %.lr.ph52
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %.lr.ph52 ], [ 0, %.preheader45 ]
  %43 = getelementptr inbounds [200000 x %struct.Node], ptr @query, i64 0, i64 %indvars.iv81
  call void @_Z4ReadIxEvRT_(ptr noundef nonnull align 8 dereferenceable(8) %43)
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = trunc nuw nsw i64 %indvars.iv81 to i32
  store i32 %45, ptr %44, align 8, !tbaa !15
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %46 = load i32, ptr @q, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.next82, %47
  br i1 %48, label %.lr.ph52, label %._crit_edge53, !llvm.loop !17

._crit_edge63:                                    ; preds = %80, %._crit_edge53
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.03770)
  %50 = load i32, ptr @q, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph66, label %.preheader44

.lr.ph62:                                         ; preds = %._crit_edge53, %80
  %.pre93 = phi i32 [ %.pre94, %80 ], [ %41, %._crit_edge53 ]
  %52 = phi i32 [ %81, %80 ], [ %41, %._crit_edge53 ]
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %80 ], [ 0, %._crit_edge53 ]
  %.03260 = phi i32 [ %.2, %80 ], [ 0, %._crit_edge53 ]
  %53 = getelementptr inbounds [200000 x %struct.Node], ptr @query, i64 0, i64 %indvars.iv87
  %54 = load i64, ptr %53, align 16, !tbaa !13
  %55 = icmp sgt i64 %54, %12
  br i1 %55, label %80, label %.preheader

.preheader:                                       ; preds = %.lr.ph62
  %56 = sext i32 %.03260 to i64
  %57 = icmp sgt i64 %54, %56
  br i1 %57, label %.lr.ph56, label %._crit_edge57

.lr.ph56:                                         ; preds = %.preheader, %75
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %75 ], [ %56, %.preheader ]
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) @tmp, ptr noundef nonnull align 8 dereferenceable(16) %58, i64 16, i1 false), !tbaa.struct !18
  call void @_ZNSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @tmp, i64 8), align 8, !tbaa !15
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !11
  %63 = icmp sgt i64 %62, -1
  %64 = getelementptr inbounds [200000 x i32], ptr @delta, i64 0, i64 %60
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %. = select i1 %63, i32 1, i32 -1
  %66 = add nsw i32 %65, %.
  store i32 %66, ptr %64, align 4, !tbaa !5
  %67 = icmp sgt i32 %66, %59
  %68 = load i32, ptr @n, align 4
  %69 = icmp slt i32 %66, %68
  %or.cond = select i1 %67, i1 %69, i1 false
  br i1 %or.cond, label %70, label %75

70:                                               ; preds = %.lr.ph56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  %71 = sext i32 %66 to i64
  %72 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !11
  %74 = mul nsw i64 %73, %62
  store i64 %74, ptr %2, align 8, !tbaa !13
  store i32 %59, ptr %5, align 8, !tbaa !15
  call void @_ZNSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  br label %75

75:                                               ; preds = %70, %.lr.ph56
  %indvars.iv.next85 = add nsw i64 %indvars.iv84, 1
  %76 = load i64, ptr %53, align 16, !tbaa !13
  %77 = icmp sgt i64 %76, %indvars.iv.next85
  br i1 %77, label %.lr.ph56, label %._crit_edge57.loopexit, !llvm.loop !19

._crit_edge57.loopexit:                           ; preds = %75
  %78 = trunc nsw i64 %indvars.iv.next85 to i32
  %.pre.pre = load i32, ptr @q, align 4, !tbaa !5
  br label %._crit_edge57

._crit_edge57:                                    ; preds = %._crit_edge57.loopexit, %.preheader
  %.pre = phi i32 [ %.pre93, %.preheader ], [ %.pre.pre, %._crit_edge57.loopexit ]
  %.1.lcssa = phi i32 [ %.03260, %.preheader ], [ %78, %._crit_edge57.loopexit ]
  %79 = load i64, ptr @tmp, align 8, !tbaa !13
  br label %80

80:                                               ; preds = %.lr.ph62, %._crit_edge57
  %.sink = phi i64 [ %79, %._crit_edge57 ], [ 9223372036854775807, %.lr.ph62 ]
  %.pre94 = phi i32 [ %.pre, %._crit_edge57 ], [ %.pre93, %.lr.ph62 ]
  %81 = phi i32 [ %.pre, %._crit_edge57 ], [ %52, %.lr.ph62 ]
  %.2 = phi i32 [ %.1.lcssa, %._crit_edge57 ], [ %.03260, %.lr.ph62 ]
  %82 = getelementptr inbounds i8, ptr %53, i64 8
  %83 = load i32, ptr %82, align 8, !tbaa !15
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %84
  store i64 %.sink, ptr %85, align 8, !tbaa !11
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %86 = sext i32 %81 to i64
  %87 = icmp slt i64 %indvars.iv.next88, %86
  br i1 %87, label %.lr.ph62, label %._crit_edge63, !llvm.loop !20

.preheader44:                                     ; preds = %96, %._crit_edge63
  %88 = call noundef zeroext i1 @_ZNKSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %88, label %._crit_edge68, label %.lr.ph67

.lr.ph66:                                         ; preds = %._crit_edge63, %96
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %96 ], [ 0, %._crit_edge63 ]
  %89 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %indvars.iv90
  %90 = load i64, ptr %89, align 8, !tbaa !11
  %91 = icmp eq i64 %90, 9223372036854775807
  br i1 %91, label %92, label %94

92:                                               ; preds = %.lr.ph66
  %93 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %96

94:                                               ; preds = %.lr.ph66
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %90)
  br label %96

96:                                               ; preds = %92, %94
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %97 = load i32, ptr @q, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = icmp slt i64 %indvars.iv.next91, %98
  br i1 %99, label %.lr.ph66, label %.preheader44, !llvm.loop !21

.lr.ph67:                                         ; preds = %.preheader44, %.lr.ph67
  call void @_ZNSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %100 = call noundef zeroext i1 @_ZNKSt14priority_queueI4NodeSt6vectorIS0_SaIS0_EESt4lessIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %100, label %._crit_edge68, label %.lr.ph67, !llvm.loop !22

._crit_edge68:                                    ; preds = %.lr.ph67, %.preheader44
  %101 = add nuw nsw i32 %.03770, 1
  %102 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.03770, %102
  br i1 %.not.not, label %6, label %._crit_edge73, !llvm.loop !23
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4ReadIiEvRT_(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxPFbRKxS2_EEvT_S5_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4NodeEvT_S2_(ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #6

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 = !{!"long long", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS4Node", !12, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{i64 0, i64 8, !11, i64 8, i64 4, !5}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass