; LLVM IR from tangjz/acm-icpc :: hdu (6071)

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

@t = external dso_local global i32, align 4
@cir = external dso_local global i32, align 4
@c = external dso_local global [4 x i32], align 16
@k = external dso_local global i64, align 8
@dis = external dso_local global [240001 x i64], align 16
@ans = external dso_local global i64, align 8
@vis = external dso_local global [240001 x i8], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca { i64, i32 }, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca i64, align 8
  %17 = alloca { i64, i32 }, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca i64, align 8
  %24 = alloca { i64, i32 }, align 8
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %28

28:                                               ; preds = %206, %0
  %29 = load i32, ptr @t, align 4, !tbaa !5
  %30 = add nsw i32 %29, -1
  store i32 %30, ptr @t, align 4, !tbaa !5
  %31 = icmp ne i32 %29, 0
  br i1 %31, label %32, label %209

32:                                               ; preds = %28
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @k)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %43, %32
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 4
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %46

38:                                               ; preds = %34
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr @c, i64 %40
  %42 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %41)
  br label %43

43:                                               ; preds = %38
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %2, align 4, !tbaa !5
  br label %34, !llvm.loop !9

46:                                               ; preds = %37
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @c, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds ([4 x i32], ptr @c, i64 0, i64 1))
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = shl i32 %48, 1
  store i32 %49, ptr @cir, align 4, !tbaa !5
  %50 = load i32, ptr @cir, align 4, !tbaa !5
  %51 = shl i32 %50, 2
  %52 = sext i32 %51 to i64
  %53 = mul i64 %52, 8
  call void @llvm.memset.p0.i64(ptr align 16 @dis, i8 63, i64 %53, i1 false)
  %54 = load i32, ptr @cir, align 4, !tbaa !5
  %55 = shl i32 %54, 2
  %56 = sext i32 %55 to i64
  %57 = mul i64 %56, 1
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 %57, i1 false)
  store i64 0, ptr getelementptr inbounds ([240001 x i64], ptr @dis, i64 0, i64 1), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 1, ptr %5, align 4, !tbaa !5
  %58 = call { i64, i32 } @_ZSt9make_pairIxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store { i64, i32 } %58, ptr %6, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %6, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #8
  br label %59

59:                                               ; preds = %165, %163, %46
  %60 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %61 = xor i1 %60, true
  br i1 %61, label %62, label %166

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %63 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %64 = getelementptr inbounds %"struct.std::pair", ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !13
  store i32 %65, ptr %7, align 4, !tbaa !5
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [240001 x i8], ptr @vis, i64 0, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !15, !range !17, !noundef !18
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %72

71:                                               ; preds = %62
  store i32 7, ptr %8, align 4
  br label %163, !llvm.loop !19

72:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = ashr i32 %73, 2
  store i32 %74, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = and i32 %75, 3
  store i32 %76, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  %79 = and i32 %78, 3
  store i32 %79, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [4 x i32], ptr @c, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = add nsw i32 %80, %84
  %86 = load i32, ptr @cir, align 4, !tbaa !5
  %87 = srem i32 %85, %86
  store i32 %87, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %88 = load i32, ptr %12, align 4, !tbaa !5
  %89 = shl i32 %88, 2
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = or i32 %89, %90
  store i32 %91, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = load i32, ptr %10, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [4 x i32], ptr @c, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = add nsw i64 %95, %100
  store i64 %101, ptr %14, align 8, !tbaa !11
  %102 = load i64, ptr %14, align 8, !tbaa !11
  %103 = load i32, ptr %13, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !11
  %107 = icmp slt i64 %102, %106
  br i1 %107, label %108, label %119

108:                                              ; preds = %72
  %109 = load i64, ptr %14, align 8, !tbaa !11
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %111
  store i64 %109, ptr %112, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %113 = load i32, ptr %13, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = sub nsw i64 0, %116
  store i64 %117, ptr %16, align 8, !tbaa !11
  %118 = call { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %13)
  store { i64, i32 } %118, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %17, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %119

119:                                              ; preds = %108, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = add nsw i32 %120, 3
  %122 = and i32 %121, 3
  store i32 %122, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = load i32, ptr %18, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [4 x i32], ptr @c, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = add nsw i32 %123, %127
  %129 = load i32, ptr @cir, align 4, !tbaa !5
  %130 = srem i32 %128, %129
  store i32 %130, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %131 = load i32, ptr %19, align 4, !tbaa !5
  %132 = shl i32 %131, 2
  %133 = load i32, ptr %18, align 4, !tbaa !5
  %134 = or i32 %132, %133
  store i32 %134, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %135 = load i32, ptr %7, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !11
  %139 = load i32, ptr %18, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [4 x i32], ptr @c, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = add nsw i64 %138, %143
  store i64 %144, ptr %21, align 8, !tbaa !11
  %145 = load i64, ptr %21, align 8, !tbaa !11
  %146 = load i32, ptr %20, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !11
  %150 = icmp slt i64 %145, %149
  br i1 %150, label %151, label %162

151:                                              ; preds = %119
  %152 = load i64, ptr %21, align 8, !tbaa !11
  %153 = load i32, ptr %20, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %154
  store i64 %152, ptr %155, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %156 = load i32, ptr %20, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !11
  %160 = sub nsw i64 0, %159
  store i64 %160, ptr %23, align 8, !tbaa !11
  %161 = call { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %20)
  store { i64, i32 } %161, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %24, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %162

162:                                              ; preds = %151, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  store i32 0, ptr %8, align 4
  br label %163

163:                                              ; preds = %162, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  %164 = load i32, ptr %8, align 4
  switch i32 %164, label %210 [
    i32 0, label %165
    i32 7, label %59
  ]

165:                                              ; preds = %163
  br label %59, !llvm.loop !19

166:                                              ; preds = %59
  store i64 4557430888798830399, ptr @ans, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %203, %166
  %168 = load i32, ptr %25, align 4, !tbaa !5
  %169 = load i32, ptr @cir, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %167
  store i32 9, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %206

172:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %173 = load i32, ptr %25, align 4, !tbaa !5
  %174 = shl i32 %173, 2
  %175 = or i32 %174, 1
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %176
  %178 = load i64, ptr %177, align 8, !tbaa !11
  store i64 %178, ptr %26, align 8, !tbaa !11
  %179 = load i64, ptr %26, align 8, !tbaa !11
  %180 = load i64, ptr @k, align 8, !tbaa !11
  %181 = icmp slt i64 %179, %180
  br i1 %181, label %182, label %196

182:                                              ; preds = %172
  %183 = load i64, ptr @k, align 8, !tbaa !11
  %184 = load i64, ptr %26, align 8, !tbaa !11
  %185 = sub nsw i64 %183, %184
  %186 = sub nsw i64 %185, 1
  %187 = load i32, ptr @cir, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = sdiv i64 %186, %188
  %190 = add nsw i64 %189, 1
  %191 = load i32, ptr @cir, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = mul nsw i64 %190, %192
  %194 = load i64, ptr %26, align 8, !tbaa !11
  %195 = add nsw i64 %194, %193
  store i64 %195, ptr %26, align 8, !tbaa !11
  br label %196

196:                                              ; preds = %182, %172
  %197 = load i64, ptr %26, align 8, !tbaa !11
  %198 = load i64, ptr @ans, align 8, !tbaa !11
  %199 = icmp slt i64 %197, %198
  br i1 %199, label %200, label %202

200:                                              ; preds = %196
  %201 = load i64, ptr %26, align 8, !tbaa !11
  store i64 %201, ptr @ans, align 8, !tbaa !11
  br label %202

202:                                              ; preds = %200, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %25, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %25, align 4, !tbaa !5
  br label %167, !llvm.loop !20

206:                                              ; preds = %171
  %207 = load i64, ptr @ans, align 8, !tbaa !11
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %207)
  br label %28, !llvm.loop !21

209:                                              ; preds = %28
  ret i32 0

210:                                              ; preds = %163
  unreachable
}

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

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

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

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

; 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 uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(12)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #5

; 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) #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!"long long", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSSt4pairIxiE", !12, i64 0, !6, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !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<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>

@t = external dso_local global i32, align 4
@cir = external dso_local local_unnamed_addr global i32, align 4
@c = external dso_local global [4 x i32], align 16
@k = external dso_local global i64, align 8
@dis = external dso_local local_unnamed_addr global [240001 x i64], align 16
@ans = external dso_local local_unnamed_addr global i64, align 8
@vis = external dso_local local_unnamed_addr global [240001 x i8], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %"struct.std::pair", align 8
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i64, align 8
  %10 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %11 = load i32, ptr @t, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr @t, align 4, !tbaa !5
  %.not55 = icmp eq i32 %11, 0
  br i1 %.not55, label %._crit_edge58, label %.lr.ph57

.lr.ph57:                                         ; preds = %0
  %.sroa.236.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br label %13

13:                                               ; preds = %.lr.ph57, %._crit_edge54
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @k)
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @c)
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @c, i64 4))
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @c, i64 8))
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @c, i64 12))
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @c, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @c, i64 4))
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = shl i32 %20, 1
  store i32 %21, ptr @cir, align 4, !tbaa !5
  %22 = shl i32 %20, 3
  %23 = sext i32 %22 to i64
  %24 = shl nsw i64 %23, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @dis, i8 63, i64 %24, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @vis, i8 0, i64 %23, i1 false)
  store i64 0, ptr getelementptr inbounds (i8, ptr @dis, i64 8), align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store i64 0, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  %25 = call { i64, i32 } @_ZSt9make_pairIxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.fca.0.extract33 = extractvalue { i64, i32 } %25, 0
  %.fca.1.extract34 = extractvalue { i64, i32 } %25, 1
  store i64 %.fca.0.extract33, ptr %1, align 8
  store i32 %.fca.1.extract34, ptr %.sroa.236.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  %26 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %26, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %13, %80
  %27 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !11
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [240001 x i8], ptr @vis, i64 0, i64 %30
  %32 = load i8, ptr %31, align 1, !tbaa !13, !range !15, !noundef !16
  %33 = trunc nuw i8 %32 to i1
  br i1 %33, label %80, label %34, !llvm.loop !17

34:                                               ; preds = %.lr.ph
  %35 = ashr i32 %29, 2
  %36 = and i32 %29, 3
  %37 = add i32 %29, 1
  %38 = and i32 %37, 3
  %39 = zext nneg i32 %36 to i64
  %40 = getelementptr inbounds [4 x i32], ptr @c, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = add nsw i32 %41, %35
  %43 = load i32, ptr @cir, align 4, !tbaa !5
  %44 = srem i32 %42, %43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %45 = shl i32 %44, 2
  %46 = or disjoint i32 %45, %38
  store i32 %46, ptr %4, align 4, !tbaa !5
  %47 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %30
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = sext i32 %41 to i64
  %50 = add nsw i64 %48, %49
  %51 = sext i32 %46 to i64
  %52 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp slt i64 %50, %53
  br i1 %54, label %55, label %58

55:                                               ; preds = %34
  store i64 %50, ptr %52, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %56 = sub nsw i64 0, %50
  store i64 %56, ptr %6, align 8, !tbaa !9
  %57 = call { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %.fca.0.extract14 = extractvalue { i64, i32 } %57, 0
  %.fca.1.extract15 = extractvalue { i64, i32 } %57, 1
  store i64 %.fca.0.extract14, ptr %5, align 8
  store i32 %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  %.pre = load i32, ptr @cir, align 4, !tbaa !5
  %.pre61 = load i64, ptr %47, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %55, %34
  %59 = phi i64 [ %.pre61, %55 ], [ %48, %34 ]
  %60 = phi i32 [ %.pre, %55 ], [ %43, %34 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %61 = add i32 %29, 3
  %62 = and i32 %61, 3
  %63 = zext nneg i32 %62 to i64
  %64 = getelementptr inbounds [4 x i32], ptr @c, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add nsw i32 %65, %35
  %67 = srem i32 %66, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %68 = shl i32 %67, 2
  %69 = or disjoint i32 %68, %62
  store i32 %69, ptr %7, align 4, !tbaa !5
  %70 = sext i32 %65 to i64
  %71 = add nsw i64 %59, %70
  %72 = sext i32 %69 to i64
  %73 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = icmp slt i64 %71, %74
  br i1 %75, label %76, label %79

76:                                               ; preds = %58
  store i64 %71, ptr %73, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %77 = sub nsw i64 0, %71
  store i64 %77, ptr %9, align 8, !tbaa !9
  %78 = call { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %.fca.0.extract = extractvalue { i64, i32 } %78, 0
  %.fca.1.extract = extractvalue { i64, i32 } %78, 1
  store i64 %.fca.0.extract, ptr %8, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %79

79:                                               ; preds = %76, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %80

80:                                               ; preds = %.lr.ph, %79
  %81 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %81, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %80, %13
  store i64 4557430888798830399, ptr @ans, align 8, !tbaa !9
  %82 = load i32, ptr @cir, align 4, !tbaa !5
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %.lr.ph53, label %._crit_edge54

.lr.ph53:                                         ; preds = %._crit_edge
  %84 = load i64, ptr @k, align 8, !tbaa !9
  %85 = zext nneg i32 %82 to i64
  br label %90

._crit_edge54:                                    ; preds = %108, %._crit_edge
  %86 = phi i64 [ 4557430888798830399, %._crit_edge ], [ %.048, %108 ]
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %86)
  %88 = load i32, ptr @t, align 4, !tbaa !5
  %89 = add nsw i32 %88, -1
  store i32 %89, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %88, 0
  br i1 %.not, label %._crit_edge58, label %13, !llvm.loop !19

90:                                               ; preds = %.lr.ph53, %108
  %indvars.iv = phi i64 [ 0, %.lr.ph53 ], [ %indvars.iv.next, %108 ]
  %.04950 = phi i64 [ 4557430888798830399, %.lr.ph53 ], [ %.048, %108 ]
  %91 = trunc nuw nsw i64 %indvars.iv to i32
  %92 = shl i32 %91, 2
  %93 = or disjoint i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [240001 x i64], ptr @dis, i64 0, i64 %94
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = icmp slt i64 %96, %84
  br i1 %97, label %98, label %105

98:                                               ; preds = %90
  %99 = xor i64 %96, -1
  %100 = add i64 %84, %99
  %101 = sdiv i64 %100, %85
  %102 = add nsw i64 %101, 1
  %103 = mul nsw i64 %102, %85
  %104 = add nsw i64 %103, %96
  br label %105

105:                                              ; preds = %98, %90
  %.0 = phi i64 [ %104, %98 ], [ %96, %90 ]
  %106 = icmp slt i64 %.0, %.04950
  br i1 %106, label %107, label %108

107:                                              ; preds = %105
  store i64 %.0, ptr @ans, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %107, %105
  %.048 = phi i64 [ %.0, %107 ], [ %.04950, %105 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %85
  br i1 %exitcond.not, label %._crit_edge54, label %90, !llvm.loop !20

._crit_edge58:                                    ; preds = %._crit_edge54, %0
  ret i32 0
}

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

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

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

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

; 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 uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 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 #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 = !{!12, !6, i64 8}
!12 = !{!"_ZTSSt4pairIxiE", !10, i64 0, !6, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


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