; LLVM IR from eyangch/competitive-programming :: FacebookHackercup/2022/round1/b1 (b1)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue.0" = type <{ %"class.std::vector", [8 x i8] }>

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@A = external dso_local global [500000 x i64], align 16
@B = external dso_local global [500000 x i64], align 16
@Q = external dso_local global i64, align 8
@X = external dso_local global [500000 x i64], align 16
@Y = external dso_local global [500000 x i64], align 16
@MOD = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 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 i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::priority_queue", align 8
  %5 = alloca %"class.std::priority_queue", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::priority_queue", align 8
  %9 = alloca %"class.std::priority_queue", align 8
  %10 = alloca %"class.std::priority_queue.0", align 8
  %11 = alloca %"class.std::priority_queue.0", align 8
  %12 = alloca %"class.std::priority_queue.0", align 8
  %13 = alloca %"class.std::priority_queue.0", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %23 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %25
  %27 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  %28 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 1, ptr %2, align 8, !tbaa !8
  br label %30

30:                                               ; preds = %285, %0
  %31 = load i64, ptr %2, align 8, !tbaa !8
  %32 = load i64, ptr @T, align 8, !tbaa !8
  %33 = icmp sle i64 %31, %32
  br i1 %33, label %35, label %34

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

35:                                               ; preds = %30
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %37 = load i64, ptr %2, align 8, !tbaa !8
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef %37)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.1)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #7
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
          to label %41 unwind label %53

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %42 unwind label %57

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %9)
          to label %43 unwind label %61

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %10)
          to label %44 unwind label %65

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %11)
          to label %45 unwind label %69

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %12)
          to label %46 unwind label %73

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %13)
          to label %47 unwind label %77

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !8
  br label %48

48:                                               ; preds = %102, %47
  %49 = load i64, ptr %14, align 8, !tbaa !8
  %50 = load i64, ptr @N, align 8, !tbaa !8
  %51 = icmp slt i64 %49, %50
  br i1 %51, label %81, label %52

52:                                               ; preds = %48
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %109

53:                                               ; preds = %35
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %6, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %7, align 4
  br label %300

57:                                               ; preds = %41
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %6, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %7, align 4
  br label %299

61:                                               ; preds = %42
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %6, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %7, align 4
  br label %298

65:                                               ; preds = %43
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %6, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %7, align 4
  br label %297

69:                                               ; preds = %44
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %6, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %7, align 4
  br label %296

73:                                               ; preds = %45
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %6, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %7, align 4
  br label %295

77:                                               ; preds = %46
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %6, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %7, align 4
  br label %294

81:                                               ; preds = %48
  %82 = load i64, ptr %14, align 8, !tbaa !8
  %83 = getelementptr inbounds [500000 x i64], ptr @A, i64 0, i64 %82
  %84 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %83)
          to label %85 unwind label %105

85:                                               ; preds = %81
  %86 = load i64, ptr %14, align 8, !tbaa !8
  %87 = getelementptr inbounds [500000 x i64], ptr @B, i64 0, i64 %86
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 8 dereferenceable(8) %87)
          to label %89 unwind label %105

89:                                               ; preds = %85
  %90 = load i64, ptr %14, align 8, !tbaa !8
  %91 = getelementptr inbounds [500000 x i64], ptr @A, i64 0, i64 %90
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 8 dereferenceable(8) %91)
          to label %92 unwind label %105

92:                                               ; preds = %89
  %93 = load i64, ptr %14, align 8, !tbaa !8
  %94 = getelementptr inbounds [500000 x i64], ptr @B, i64 0, i64 %93
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(8) %94)
          to label %95 unwind label %105

95:                                               ; preds = %92
  %96 = load i64, ptr %14, align 8, !tbaa !8
  %97 = getelementptr inbounds [500000 x i64], ptr @A, i64 0, i64 %96
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %10, ptr noundef nonnull align 8 dereferenceable(8) %97)
          to label %98 unwind label %105

98:                                               ; preds = %95
  %99 = load i64, ptr %14, align 8, !tbaa !8
  %100 = getelementptr inbounds [500000 x i64], ptr @B, i64 0, i64 %99
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %12, ptr noundef nonnull align 8 dereferenceable(8) %100)
          to label %101 unwind label %105

101:                                              ; preds = %98
  br label %102

102:                                              ; preds = %101
  %103 = load i64, ptr %14, align 8, !tbaa !8
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %14, align 8, !tbaa !8
  br label %48, !llvm.loop !11

105:                                              ; preds = %98, %95, %92, %89, %85, %81
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %6, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %293

109:                                              ; preds = %52
  %110 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @Q)
          to label %111 unwind label %117

111:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !8
  br label %112

112:                                              ; preds = %142, %111
  %113 = load i64, ptr %15, align 8, !tbaa !8
  %114 = load i64, ptr @Q, align 8, !tbaa !8
  %115 = icmp slt i64 %113, %114
  br i1 %115, label %121, label %116

116:                                              ; preds = %112
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %149

117:                                              ; preds = %109
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %6, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %7, align 4
  br label %293

121:                                              ; preds = %112
  %122 = load i64, ptr %15, align 8, !tbaa !8
  %123 = getelementptr inbounds [500000 x i64], ptr @X, i64 0, i64 %122
  %124 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %125 unwind label %145

125:                                              ; preds = %121
  %126 = load i64, ptr %15, align 8, !tbaa !8
  %127 = getelementptr inbounds [500000 x i64], ptr @Y, i64 0, i64 %126
  %128 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %124, ptr noundef nonnull align 8 dereferenceable(8) %127)
          to label %129 unwind label %145

129:                                              ; preds = %125
  %130 = load i64, ptr %15, align 8, !tbaa !8
  %131 = getelementptr inbounds [500000 x i64], ptr @X, i64 0, i64 %130
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %5, ptr noundef nonnull align 8 dereferenceable(8) %131)
          to label %132 unwind label %145

132:                                              ; preds = %129
  %133 = load i64, ptr %15, align 8, !tbaa !8
  %134 = getelementptr inbounds [500000 x i64], ptr @Y, i64 0, i64 %133
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %9, ptr noundef nonnull align 8 dereferenceable(8) %134)
          to label %135 unwind label %145

135:                                              ; preds = %132
  %136 = load i64, ptr %15, align 8, !tbaa !8
  %137 = getelementptr inbounds [500000 x i64], ptr @X, i64 0, i64 %136
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %11, ptr noundef nonnull align 8 dereferenceable(8) %137)
          to label %138 unwind label %145

138:                                              ; preds = %135
  %139 = load i64, ptr %15, align 8, !tbaa !8
  %140 = getelementptr inbounds [500000 x i64], ptr @Y, i64 0, i64 %139
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %13, ptr noundef nonnull align 8 dereferenceable(8) %140)
          to label %141 unwind label %145

141:                                              ; preds = %138
  br label %142

142:                                              ; preds = %141
  %143 = load i64, ptr %15, align 8, !tbaa !8
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %15, align 8, !tbaa !8
  br label %112, !llvm.loop !13

145:                                              ; preds = %138, %135, %132, %129, %125, %121
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %6, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %293

149:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !8
  br label %150

150:                                              ; preds = %275, %149
  %151 = load i64, ptr %17, align 8, !tbaa !8
  %152 = icmp slt i64 %151, 2
  br i1 %152, label %154, label %153

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

154:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store i64 0, ptr %20, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !8
  br label %155

155:                                              ; preds = %211, %154
  %156 = load i64, ptr %21, align 8, !tbaa !8
  %157 = icmp sle i64 %156, 3000
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %214

159:                                              ; preds = %155
  br label %160

160:                                              ; preds = %176, %159
  %161 = invoke noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %162 unwind label %177

162:                                              ; preds = %160
  br i1 %161, label %169, label %163

163:                                              ; preds = %162
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %165 unwind label %177

165:                                              ; preds = %163
  %166 = load i64, ptr %164, align 8, !tbaa !8
  %167 = load i64, ptr %21, align 8, !tbaa !8
  %168 = icmp eq i64 %166, %167
  br label %169

169:                                              ; preds = %165, %162
  %170 = phi i1 [ false, %162 ], [ %168, %165 ]
  br i1 %170, label %171, label %181

171:                                              ; preds = %169
  %172 = load i64, ptr %19, align 8, !tbaa !8
  %173 = sub nsw i64 %172, 1
  store i64 %173, ptr %19, align 8, !tbaa !8
  %174 = load i64, ptr %20, align 8, !tbaa !8
  %175 = add nsw i64 %174, 2
  store i64 %175, ptr %20, align 8, !tbaa !8
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %176 unwind label %177

176:                                              ; preds = %171
  br label %160, !llvm.loop !14

177:                                              ; preds = %193, %185, %182, %171, %163, %160
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %6, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %278

181:                                              ; preds = %169
  br label %182

182:                                              ; preds = %199, %181
  %183 = invoke noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
          to label %184 unwind label %177

184:                                              ; preds = %182
  br i1 %183, label %191, label %185

185:                                              ; preds = %184
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
          to label %187 unwind label %177

187:                                              ; preds = %185
  %188 = load i64, ptr %186, align 8, !tbaa !8
  %189 = load i64, ptr %21, align 8, !tbaa !8
  %190 = icmp eq i64 %188, %189
  br label %191

191:                                              ; preds = %187, %184
  %192 = phi i1 [ false, %184 ], [ %190, %187 ]
  br i1 %192, label %193, label %200

193:                                              ; preds = %191
  %194 = load i64, ptr %16, align 8, !tbaa !8
  %195 = load i64, ptr %18, align 8, !tbaa !8
  %196 = add nsw i64 %194, %195
  %197 = load i64, ptr @MOD, align 8, !tbaa !8
  %198 = srem i64 %196, %197
  store i64 %198, ptr %16, align 8, !tbaa !8
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
          to label %199 unwind label %177

199:                                              ; preds = %193
  br label %182, !llvm.loop !15

200:                                              ; preds = %191
  %201 = load i64, ptr %19, align 8, !tbaa !8
  %202 = load i64, ptr %20, align 8, !tbaa !8
  %203 = add nsw i64 %201, %202
  %204 = load i64, ptr @MOD, align 8, !tbaa !8
  %205 = srem i64 %203, %204
  store i64 %205, ptr %19, align 8, !tbaa !8
  %206 = load i64, ptr %18, align 8, !tbaa !8
  %207 = load i64, ptr %19, align 8, !tbaa !8
  %208 = add nsw i64 %206, %207
  %209 = load i64, ptr @MOD, align 8, !tbaa !8
  %210 = srem i64 %208, %209
  store i64 %210, ptr %18, align 8, !tbaa !8
  br label %211

211:                                              ; preds = %200
  %212 = load i64, ptr %21, align 8, !tbaa !8
  %213 = add nsw i64 %212, 1
  store i64 %213, ptr %21, align 8, !tbaa !8
  br label %155, !llvm.loop !16

214:                                              ; preds = %158
  store i64 0, ptr %18, align 8, !tbaa !8
  store i64 0, ptr %19, align 8, !tbaa !8
  store i64 0, ptr %20, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store i64 3000, ptr %22, align 8, !tbaa !8
  br label %215

215:                                              ; preds = %271, %214
  %216 = load i64, ptr %22, align 8, !tbaa !8
  %217 = icmp sge i64 %216, 0
  br i1 %217, label %219, label %218

218:                                              ; preds = %215
  store i32 21, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %274

219:                                              ; preds = %215
  br label %220

220:                                              ; preds = %236, %219
  %221 = invoke noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %10)
          to label %222 unwind label %237

222:                                              ; preds = %220
  br i1 %221, label %229, label %223

223:                                              ; preds = %222
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %10)
          to label %225 unwind label %237

225:                                              ; preds = %223
  %226 = load i64, ptr %224, align 8, !tbaa !8
  %227 = load i64, ptr %22, align 8, !tbaa !8
  %228 = icmp eq i64 %226, %227
  br label %229

229:                                              ; preds = %225, %222
  %230 = phi i1 [ false, %222 ], [ %228, %225 ]
  br i1 %230, label %231, label %241

231:                                              ; preds = %229
  %232 = load i64, ptr %19, align 8, !tbaa !8
  %233 = sub nsw i64 %232, 1
  store i64 %233, ptr %19, align 8, !tbaa !8
  %234 = load i64, ptr %20, align 8, !tbaa !8
  %235 = add nsw i64 %234, 2
  store i64 %235, ptr %20, align 8, !tbaa !8
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %10)
          to label %236 unwind label %237

236:                                              ; preds = %231
  br label %220, !llvm.loop !17

237:                                              ; preds = %253, %245, %242, %231, %223, %220
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %6, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %278

241:                                              ; preds = %229
  br label %242

242:                                              ; preds = %259, %241
  %243 = invoke noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %11)
          to label %244 unwind label %237

244:                                              ; preds = %242
  br i1 %243, label %251, label %245

245:                                              ; preds = %244
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %11)
          to label %247 unwind label %237

247:                                              ; preds = %245
  %248 = load i64, ptr %246, align 8, !tbaa !8
  %249 = load i64, ptr %22, align 8, !tbaa !8
  %250 = icmp eq i64 %248, %249
  br label %251

251:                                              ; preds = %247, %244
  %252 = phi i1 [ false, %244 ], [ %250, %247 ]
  br i1 %252, label %253, label %260

253:                                              ; preds = %251
  %254 = load i64, ptr %16, align 8, !tbaa !8
  %255 = load i64, ptr %18, align 8, !tbaa !8
  %256 = add nsw i64 %254, %255
  %257 = load i64, ptr @MOD, align 8, !tbaa !8
  %258 = srem i64 %256, %257
  store i64 %258, ptr %16, align 8, !tbaa !8
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %11)
          to label %259 unwind label %237

259:                                              ; preds = %253
  br label %242, !llvm.loop !18

260:                                              ; preds = %251
  %261 = load i64, ptr %19, align 8, !tbaa !8
  %262 = load i64, ptr %20, align 8, !tbaa !8
  %263 = add nsw i64 %261, %262
  %264 = load i64, ptr @MOD, align 8, !tbaa !8
  %265 = srem i64 %263, %264
  store i64 %265, ptr %19, align 8, !tbaa !8
  %266 = load i64, ptr %18, align 8, !tbaa !8
  %267 = load i64, ptr %19, align 8, !tbaa !8
  %268 = add nsw i64 %266, %267
  %269 = load i64, ptr @MOD, align 8, !tbaa !8
  %270 = srem i64 %268, %269
  store i64 %270, ptr %18, align 8, !tbaa !8
  br label %271

271:                                              ; preds = %260
  %272 = load i64, ptr %22, align 8, !tbaa !8
  %273 = add nsw i64 %272, -1
  store i64 %273, ptr %22, align 8, !tbaa !8
  br label %215, !llvm.loop !19

274:                                              ; preds = %218
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt7greaterIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 8 dereferenceable(25) %8) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt7greaterIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %5, ptr noundef nonnull align 8 dereferenceable(25) %9) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt4lessIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %10, ptr noundef nonnull align 8 dereferenceable(25) %12) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt4lessIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %11, ptr noundef nonnull align 8 dereferenceable(25) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %275

275:                                              ; preds = %274
  %276 = load i64, ptr %17, align 8, !tbaa !8
  %277 = add nsw i64 %276, 1
  store i64 %277, ptr %17, align 8, !tbaa !8
  br label %150, !llvm.loop !20

278:                                              ; preds = %237, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %292

279:                                              ; preds = %153
  %280 = load i64, ptr %16, align 8, !tbaa !8
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %280)
          to label %282 unwind label %288

282:                                              ; preds = %279
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %281, i8 noundef signext 10)
          to label %284 unwind label %288

284:                                              ; preds = %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  br label %285

285:                                              ; preds = %284
  %286 = load i64, ptr %2, align 8, !tbaa !8
  %287 = add nsw i64 %286, 1
  store i64 %287, ptr %2, align 8, !tbaa !8
  br label %30, !llvm.loop !21

288:                                              ; preds = %282, %279
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %6, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %7, align 4
  br label %292

292:                                              ; preds = %288, %278
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %293

293:                                              ; preds = %292, %145, %117, %105
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %13) #7
  br label %294

294:                                              ; preds = %293, %77
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %12) #7
  br label %295

295:                                              ; preds = %294, %73
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %11) #7
  br label %296

296:                                              ; preds = %295, %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %10) #7
  br label %297

297:                                              ; preds = %296, %65
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %9) #7
  br label %298

298:                                              ; preds = %297, %61
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %8) #7
  br label %299

299:                                              ; preds = %298, %57
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %5) #7
  br label %300

300:                                              ; preds = %299, %53
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %303

301:                                              ; preds = %34
  %302 = load i32, ptr %1, align 4
  ret i32 %302

303:                                              ; preds = %300
  %304 = load ptr, ptr %6, align 8
  %305 = load i32, ptr %7, align 4
  %306 = insertvalue { ptr, i32 } poison, ptr %304, 0
  %307 = insertvalue { ptr, i32 } %306, i32 %305, 1
  resume { ptr, i32 } %307
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIxSt6vectorIxSaIxEESt7greaterIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIxSt6vectorIxSaIxEESt4lessIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #6 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 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 #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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue.0" = type <{ %"class.std::vector", [8 x i8] }>

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@A = external dso_local global [500000 x i64], align 16
@B = external dso_local global [500000 x i64], align 16
@Q = external dso_local global i64, align 8
@X = external dso_local global [500000 x i64], align 16
@Y = external dso_local global [500000 x i64], align 16
@MOD = external dso_local local_unnamed_addr global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 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 %"class.std::priority_queue", align 8
  %2 = alloca %"class.std::priority_queue", align 8
  %3 = alloca %"class.std::priority_queue", align 8
  %4 = alloca %"class.std::priority_queue", align 8
  %5 = alloca %"class.std::priority_queue.0", align 8
  %6 = alloca %"class.std::priority_queue.0", align 8
  %7 = alloca %"class.std::priority_queue.0", align 8
  %8 = alloca %"class.std::priority_queue.0", align 8
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %16 = load i64, ptr @T, align 8, !tbaa !8
  %.not119 = icmp slt i64 %16, 1
  br i1 %.not119, label %._crit_edge123, label %.lr.ph122

._crit_edge123:                                   ; preds = %158, %0
  ret i32 0

.lr.ph122:                                        ; preds = %0, %158
  %.075120 = phi i64 [ %159, %158 ], [ 1, %0 ]
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %.075120)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.1)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
  %21 = load i64, ptr @N, align 8, !tbaa !8
  %22 = icmp sgt i64 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %35, %.lr.ph122
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @Q)
          to label %.preheader89 unwind label %41

.preheader89:                                     ; preds = %._crit_edge
  %24 = load i64, ptr @Q, align 8, !tbaa !8
  %25 = icmp sgt i64 %24, 0
  br i1 %25, label %.lr.ph106, label %.preheader85.preheader

.preheader85.preheader:                           ; preds = %52, %.preheader89
  br label %.preheader85

.lr.ph:                                           ; preds = %.lr.ph122, %35
  %.068104 = phi i64 [ %36, %35 ], [ 0, %.lr.ph122 ]
  %26 = getelementptr inbounds [500000 x i64], ptr @A, i64 0, i64 %.068104
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %28 unwind label %39

28:                                               ; preds = %.lr.ph
  %29 = getelementptr inbounds [500000 x i64], ptr @B, i64 0, i64 %.068104
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %31 unwind label %39

31:                                               ; preds = %28
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %1, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %32 unwind label %39

32:                                               ; preds = %31
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %3, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %33 unwind label %39

33:                                               ; preds = %32
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %5, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %34 unwind label %39

34:                                               ; preds = %33
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %7, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %35 unwind label %39

35:                                               ; preds = %34
  %36 = add nuw nsw i64 %.068104, 1
  %37 = load i64, ptr @N, align 8, !tbaa !8
  %38 = icmp slt i64 %36, %37
  br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !11

39:                                               ; preds = %34, %33, %32, %31, %28, %.lr.ph
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

41:                                               ; preds = %._crit_edge
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.lr.ph106:                                        ; preds = %.preheader89, %52
  %.067105 = phi i64 [ %53, %52 ], [ 0, %.preheader89 ]
  %43 = getelementptr inbounds [500000 x i64], ptr @X, i64 0, i64 %.067105
  %44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %45 unwind label %56

45:                                               ; preds = %.lr.ph106
  %46 = getelementptr inbounds [500000 x i64], ptr @Y, i64 0, i64 %.067105
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %48 unwind label %56

48:                                               ; preds = %45
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %49 unwind label %56

49:                                               ; preds = %48
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %50 unwind label %56

50:                                               ; preds = %49
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %51 unwind label %56

51:                                               ; preds = %50
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE4pushERKx(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %52 unwind label %56

52:                                               ; preds = %51
  %53 = add nuw nsw i64 %.067105, 1
  %54 = load i64, ptr @Q, align 8, !tbaa !8
  %55 = icmp slt i64 %53, %54
  br i1 %55, label %.lr.ph106, label %.preheader85.preheader, !llvm.loop !13

56:                                               ; preds = %51, %50, %49, %48, %45, %.lr.ph106
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.preheader85:                                     ; preds = %.preheader85.preheader, %.critedge2
  %.054111 = phi i64 [ %81, %.critedge2 ], [ 0, %.preheader85.preheader ]
  %.055110 = phi i64 [ %.1, %.critedge2 ], [ 0, %.preheader85.preheader ]
  %.056109 = phi i64 [ %78, %.critedge2 ], [ 0, %.preheader85.preheader ]
  %.060108 = phi i64 [ %80, %.critedge2 ], [ 0, %.preheader85.preheader ]
  %.164107 = phi i64 [ %.265, %.critedge2 ], [ 0, %.preheader85.preheader ]
  br label %58

58:                                               ; preds = %.preheader85, %64
  %.157 = phi i64 [ %65, %64 ], [ %.056109, %.preheader85 ]
  %.1 = phi i64 [ %66, %64 ], [ %.055110, %.preheader85 ]
  %59 = call noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  br i1 %59, label %.critedge.preheader, label %60

60:                                               ; preds = %58
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  %62 = load i64, ptr %61, align 8, !tbaa !8
  %63 = icmp eq i64 %62, %.054111
  br i1 %63, label %64, label %.critedge.preheader

.critedge.preheader:                              ; preds = %58, %60
  br label %.critedge

64:                                               ; preds = %60
  %65 = add nsw i64 %.157, -1
  %66 = add nsw i64 %.1, 2
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
          to label %58 unwind label %.loopexit.split-lp81.loopexit, !llvm.loop !14

.loopexit80.loopexit:                             ; preds = %72
  %lpad.loopexit130 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.loopexit80.loopexit.split-lp:                    ; preds = %96
  %lpad.loopexit.split-lp131 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.loopexit.split-lp81.loopexit:                    ; preds = %64
  %lpad.loopexit132 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.loopexit.split-lp81.loopexit.split-lp:           ; preds = %88
  %lpad.loopexit.split-lp133 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.critedge:                                        ; preds = %.critedge.preheader, %72
  %.265 = phi i64 [ %75, %72 ], [ %.164107, %.critedge.preheader ]
  %67 = call noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  br i1 %67, label %.critedge2, label %68

68:                                               ; preds = %.critedge
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  %70 = load i64, ptr %69, align 8, !tbaa !8
  %71 = icmp eq i64 %70, %.054111
  br i1 %71, label %72, label %.critedge2

72:                                               ; preds = %68
  %73 = add nsw i64 %.265, %.060108
  %74 = load i64, ptr @MOD, align 8, !tbaa !8
  %75 = srem i64 %73, %74
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
          to label %.critedge unwind label %.loopexit80.loopexit, !llvm.loop !15

.critedge2:                                       ; preds = %.critedge, %68
  %76 = add nsw i64 %.1, %.157
  %77 = load i64, ptr @MOD, align 8, !tbaa !8
  %78 = srem i64 %76, %77
  %79 = add nsw i64 %78, %.060108
  %80 = srem i64 %79, %77
  %81 = add nuw nsw i64 %.054111, 1
  %exitcond.not = icmp eq i64 %81, 3001
  br i1 %exitcond.not, label %.preheader, label %.preheader85, !llvm.loop !16

.preheader:                                       ; preds = %.critedge2, %.critedge6
  %.0116 = phi i64 [ %155, %.critedge6 ], [ 3000, %.critedge2 ]
  %.2115 = phi i64 [ %.3, %.critedge6 ], [ 0, %.critedge2 ]
  %.258114 = phi i64 [ %152, %.critedge6 ], [ 0, %.critedge2 ]
  %.161113 = phi i64 [ %154, %.critedge6 ], [ 0, %.critedge2 ]
  %.366112 = phi i64 [ %.4, %.critedge6 ], [ %.265, %.critedge2 ]
  br label %132

.preheader87.1:                                   ; preds = %.critedge6
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt7greaterIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %1, ptr noundef nonnull align 8 dereferenceable(25) %3) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt7greaterIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(25) %4) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt4lessIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %5, ptr noundef nonnull align 8 dereferenceable(25) %7) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt4lessIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(25) %8) #7
  br label %.preheader85.1

.preheader85.1:                                   ; preds = %.critedge2.1, %.preheader87.1
  %.054111.1 = phi i64 [ 0, %.preheader87.1 ], [ %105, %.critedge2.1 ]
  %.055110.1 = phi i64 [ 0, %.preheader87.1 ], [ %.1.1, %.critedge2.1 ]
  %.056109.1 = phi i64 [ 0, %.preheader87.1 ], [ %102, %.critedge2.1 ]
  %.060108.1 = phi i64 [ 0, %.preheader87.1 ], [ %104, %.critedge2.1 ]
  %.164107.1 = phi i64 [ %.4, %.preheader87.1 ], [ %.265.1, %.critedge2.1 ]
  br label %82

82:                                               ; preds = %88, %.preheader85.1
  %.157.1 = phi i64 [ %89, %88 ], [ %.056109.1, %.preheader85.1 ]
  %.1.1 = phi i64 [ %90, %88 ], [ %.055110.1, %.preheader85.1 ]
  %83 = call noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  br i1 %83, label %.critedge.1.preheader, label %84

.critedge.1.preheader:                            ; preds = %84, %82
  br label %.critedge.1

84:                                               ; preds = %82
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  %86 = load i64, ptr %85, align 8, !tbaa !8
  %87 = icmp eq i64 %86, %.054111.1
  br i1 %87, label %88, label %.critedge.1.preheader

88:                                               ; preds = %84
  %89 = add nsw i64 %.157.1, -1
  %90 = add nsw i64 %.1.1, 2
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
          to label %82 unwind label %.loopexit.split-lp81.loopexit.split-lp, !llvm.loop !14

.critedge.1:                                      ; preds = %.critedge.1.preheader, %96
  %.265.1 = phi i64 [ %99, %96 ], [ %.164107.1, %.critedge.1.preheader ]
  %91 = call noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  br i1 %91, label %.critedge2.1, label %92

92:                                               ; preds = %.critedge.1
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  %94 = load i64, ptr %93, align 8, !tbaa !8
  %95 = icmp eq i64 %94, %.054111.1
  br i1 %95, label %96, label %.critedge2.1

96:                                               ; preds = %92
  %97 = add nsw i64 %.265.1, %.060108.1
  %98 = load i64, ptr @MOD, align 8, !tbaa !8
  %99 = srem i64 %97, %98
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
          to label %.critedge.1 unwind label %.loopexit80.loopexit.split-lp, !llvm.loop !15

.critedge2.1:                                     ; preds = %92, %.critedge.1
  %100 = add nsw i64 %.1.1, %.157.1
  %101 = load i64, ptr @MOD, align 8, !tbaa !8
  %102 = srem i64 %100, %101
  %103 = add nsw i64 %102, %.060108.1
  %104 = srem i64 %103, %101
  %105 = add nuw nsw i64 %.054111.1, 1
  %exitcond.1.not = icmp eq i64 %105, 3001
  br i1 %exitcond.1.not, label %.preheader.1, label %.preheader85.1, !llvm.loop !16

.preheader.1:                                     ; preds = %.critedge2.1, %.critedge6.1
  %.0116.1 = phi i64 [ %129, %.critedge6.1 ], [ 3000, %.critedge2.1 ]
  %.2115.1 = phi i64 [ %.3.1, %.critedge6.1 ], [ 0, %.critedge2.1 ]
  %.258114.1 = phi i64 [ %126, %.critedge6.1 ], [ 0, %.critedge2.1 ]
  %.161113.1 = phi i64 [ %128, %.critedge6.1 ], [ 0, %.critedge2.1 ]
  %.366112.1 = phi i64 [ %.4.1, %.critedge6.1 ], [ %.265.1, %.critedge2.1 ]
  br label %106

106:                                              ; preds = %112, %.preheader.1
  %.359.1 = phi i64 [ %113, %112 ], [ %.258114.1, %.preheader.1 ]
  %.3.1 = phi i64 [ %114, %112 ], [ %.2115.1, %.preheader.1 ]
  %107 = call noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
  br i1 %107, label %.critedge4.1.preheader, label %108

.critedge4.1.preheader:                           ; preds = %108, %106
  br label %.critedge4.1

108:                                              ; preds = %106
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
  %110 = load i64, ptr %109, align 8, !tbaa !8
  %111 = icmp eq i64 %110, %.0116.1
  br i1 %111, label %112, label %.critedge4.1.preheader

112:                                              ; preds = %108
  %113 = add nsw i64 %.359.1, -1
  %114 = add nsw i64 %.3.1, 2
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
          to label %106 unwind label %.loopexit.split-lp.loopexit.split-lp, !llvm.loop !17

.critedge4.1:                                     ; preds = %.critedge4.1.preheader, %120
  %.4.1 = phi i64 [ %123, %120 ], [ %.366112.1, %.critedge4.1.preheader ]
  %115 = call noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  br i1 %115, label %.critedge6.1, label %116

116:                                              ; preds = %.critedge4.1
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %118 = load i64, ptr %117, align 8, !tbaa !8
  %119 = icmp eq i64 %118, %.0116.1
  br i1 %119, label %120, label %.critedge6.1

120:                                              ; preds = %116
  %121 = add nsw i64 %.4.1, %.161113.1
  %122 = load i64, ptr @MOD, align 8, !tbaa !8
  %123 = srem i64 %121, %122
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %.critedge4.1 unwind label %.loopexit.loopexit.split-lp, !llvm.loop !18

.critedge6.1:                                     ; preds = %116, %.critedge4.1
  %124 = add nsw i64 %.3.1, %.359.1
  %125 = load i64, ptr @MOD, align 8, !tbaa !8
  %126 = srem i64 %124, %125
  %127 = add nsw i64 %126, %.161113.1
  %128 = srem i64 %127, %125
  %129 = add nsw i64 %.0116.1, -1
  %.not140 = icmp eq i64 %.0116.1, 0
  br i1 %.not140, label %130, label %.preheader.1, !llvm.loop !19

130:                                              ; preds = %.critedge6.1
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt7greaterIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %1, ptr noundef nonnull align 8 dereferenceable(25) %3) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt7greaterIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(25) %4) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt4lessIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %5, ptr noundef nonnull align 8 dereferenceable(25) %7) #7
  call void @_ZSt4swapIxSt6vectorIxSaIxEESt4lessIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(25) %8) #7
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.4.1)
          to label %156 unwind label %161

132:                                              ; preds = %.preheader, %138
  %.359 = phi i64 [ %139, %138 ], [ %.258114, %.preheader ]
  %.3 = phi i64 [ %140, %138 ], [ %.2115, %.preheader ]
  %133 = call noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
  br i1 %133, label %.critedge4.preheader, label %134

134:                                              ; preds = %132
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
  %136 = load i64, ptr %135, align 8, !tbaa !8
  %137 = icmp eq i64 %136, %.0116
  br i1 %137, label %138, label %.critedge4.preheader

.critedge4.preheader:                             ; preds = %132, %134
  br label %.critedge4

138:                                              ; preds = %134
  %139 = add nsw i64 %.359, -1
  %140 = add nsw i64 %.3, 2
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %5)
          to label %132 unwind label %.loopexit.split-lp.loopexit, !llvm.loop !17

.loopexit.loopexit:                               ; preds = %146
  %lpad.loopexit135 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.loopexit.loopexit.split-lp:                      ; preds = %120
  %lpad.loopexit.split-lp136 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.loopexit.split-lp.loopexit:                      ; preds = %138
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.loopexit.split-lp.loopexit.split-lp:             ; preds = %112
  %lpad.loopexit.split-lp138 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.critedge4:                                       ; preds = %.critedge4.preheader, %146
  %.4 = phi i64 [ %149, %146 ], [ %.366112, %.critedge4.preheader ]
  %141 = call noundef zeroext i1 @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  br i1 %141, label %.critedge6, label %142

142:                                              ; preds = %.critedge4
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %144 = load i64, ptr %143, align 8, !tbaa !8
  %145 = icmp eq i64 %144, %.0116
  br i1 %145, label %146, label %.critedge6

146:                                              ; preds = %142
  %147 = add nsw i64 %.4, %.161113
  %148 = load i64, ptr @MOD, align 8, !tbaa !8
  %149 = srem i64 %147, %148
  invoke void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %.critedge4 unwind label %.loopexit.loopexit, !llvm.loop !18

.critedge6:                                       ; preds = %.critedge4, %142
  %150 = add nsw i64 %.3, %.359
  %151 = load i64, ptr @MOD, align 8, !tbaa !8
  %152 = srem i64 %150, %151
  %153 = add nsw i64 %152, %.161113
  %154 = srem i64 %153, %151
  %155 = add nsw i64 %.0116, -1
  %.not = icmp eq i64 %.0116, 0
  br i1 %.not, label %.preheader87.1, label %.preheader, !llvm.loop !19

156:                                              ; preds = %130
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %131, i8 noundef signext 10)
          to label %158 unwind label %161

158:                                              ; preds = %156
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  %159 = add nuw nsw i64 %.075120, 1
  %160 = load i64, ptr @T, align 8, !tbaa !8
  %.not.not = icmp slt i64 %.075120, %160
  br i1 %.not.not, label %.lr.ph122, label %._crit_edge123, !llvm.loop !20

161:                                              ; preds = %156, %130
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

.loopexit80:                                      ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.loopexit, %.loopexit.loopexit.split-lp, %.loopexit.split-lp81.loopexit, %.loopexit.split-lp81.loopexit.split-lp, %.loopexit80.loopexit, %.loopexit80.loopexit.split-lp, %161, %56, %41, %39
  %.pn78 = phi { ptr, i32 } [ %40, %39 ], [ %57, %56 ], [ %42, %41 ], [ %162, %161 ], [ %lpad.loopexit130, %.loopexit80.loopexit ], [ %lpad.loopexit.split-lp131, %.loopexit80.loopexit.split-lp ], [ %lpad.loopexit132, %.loopexit.split-lp81.loopexit ], [ %lpad.loopexit.split-lp133, %.loopexit.split-lp81.loopexit.split-lp ], [ %lpad.loopexit135, %.loopexit.loopexit ], [ %lpad.loopexit.split-lp136, %.loopexit.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp138, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn78
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIxSt6vectorIxSaIxEESt7greaterIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIxSt6vectorIxSaIxEESt4lessIxEENSt9enable_ifIXsr6__and_ISt14__is_swappableIT0_ES6_IT1_EEE5valueEvE4typeERSt14priority_queueIT_S7_S9_ESG_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueIxSt6vectorIxSaIxEESt7greaterIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #6 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 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 #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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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