; LLVM IR from eyangch/competitive-programming :: FacebookHackercup/2020/round1 (a1)

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

%"struct.std::pair" = type { %"struct.std::pair.0", i64 }
%"struct.std::pair.0" = type { i64, i64 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"struct.std::pair.2" = type <{ %"struct.std::pair.0", i32, [4 x i8] }>
%"class.std::multiset" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"struct.std::_Rb_tree_const_iterator" }

@L = external dso_local global [1000005 x i64], align 16
@H = external dso_local global [1000005 x i64], align 16
@delta = external dso_local global [2000005 x %"struct.std::pair"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 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 %"class.std::basic_ofstream", align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, 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
  %23 = alloca i64, align 8
  %24 = alloca %"struct.std::pair.2", align 8
  %25 = alloca %"struct.std::pair.0", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::pair.2", align 8
  %28 = alloca %"struct.std::pair.0", align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca %"class.std::multiset", align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %41 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %42 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %43 = alloca %"class.std::reverse_iterator", align 8
  %44 = alloca i64, align 8
  %45 = alloca %"class.std::reverse_iterator", align 8
  store i32 0, ptr %1, align 4
  %46 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %47 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %48 = getelementptr i8, ptr %47, i64 -24
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %49
  %51 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %50, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 1000000007, ptr %2, align 8, !tbaa !8
  %52 = load ptr, ptr @stdin, align 8, !tbaa !11
  %53 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.2, ptr noundef %52)
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #7
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef @.str.3, i32 noundef 16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %55 unwind label %61

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

56:                                               ; preds = %479, %55
  %57 = load i64, ptr %7, align 8, !tbaa !8
  %58 = load i64, ptr %4, align 8, !tbaa !8
  %59 = icmp sle i64 %57, %58
  br i1 %59, label %65, label %60

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

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

65:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %67 unwind label %84

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %69 unwind label %84

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %71 unwind label %84

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %73 unwind label %84

73:                                               ; preds = %71
  %74 = load i64, ptr %7, align 8, !tbaa !8
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %72, i64 noundef %74)
          to label %76 unwind label %84

76:                                               ; preds = %73
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %78 unwind label %84

78:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !8
  br label %79

79:                                               ; preds = %93, %78
  %80 = load i64, ptr %12, align 8, !tbaa !8
  %81 = load i64, ptr %10, align 8, !tbaa !8
  %82 = icmp slt i64 %80, %81
  br i1 %82, label %88, label %83

83:                                               ; preds = %79
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %100

84:                                               ; preds = %76, %73, %71, %69, %67, %65
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  br label %485

88:                                               ; preds = %79
  %89 = load i64, ptr %12, align 8, !tbaa !8
  %90 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %89
  %91 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %90)
          to label %92 unwind label %96

92:                                               ; preds = %88
  br label %93

93:                                               ; preds = %92
  %94 = load i64, ptr %12, align 8, !tbaa !8
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %12, align 8, !tbaa !8
  br label %79, !llvm.loop !13

96:                                               ; preds = %88
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %5, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %485

100:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %101 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %102 unwind label %114

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %101, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %104 unwind label %114

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %103, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %106 unwind label %114

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %108 unwind label %114

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

109:                                              ; preds = %123, %108
  %110 = load i64, ptr %17, align 8, !tbaa !8
  %111 = load i64, ptr %10, align 8, !tbaa !8
  %112 = icmp slt i64 %110, %111
  br i1 %112, label %118, label %113

113:                                              ; preds = %109
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %130

114:                                              ; preds = %106, %104, %102, %100
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %5, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %6, align 4
  br label %484

118:                                              ; preds = %109
  %119 = load i64, ptr %17, align 8, !tbaa !8
  %120 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %119
  %121 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %120)
          to label %122 unwind label %126

122:                                              ; preds = %118
  br label %123

123:                                              ; preds = %122
  %124 = load i64, ptr %17, align 8, !tbaa !8
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %17, align 8, !tbaa !8
  br label %109, !llvm.loop !15

126:                                              ; preds = %118
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %5, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %484

130:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %131 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %132 unwind label %145

132:                                              ; preds = %130
  %133 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %131, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %134 unwind label %145

134:                                              ; preds = %132
  %135 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %133, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %136 unwind label %145

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %138 unwind label %145

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %139 = load i64, ptr %10, align 8, !tbaa !8
  store i64 %139, ptr %22, align 8, !tbaa !8
  br label %140

140:                                              ; preds = %190, %138
  %141 = load i64, ptr %22, align 8, !tbaa !8
  %142 = load i64, ptr %9, align 8, !tbaa !8
  %143 = icmp slt i64 %141, %142
  br i1 %143, label %149, label %144

144:                                              ; preds = %140
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %193

145:                                              ; preds = %247, %136, %134, %132, %130
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %5, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %6, align 4
  br label %483

149:                                              ; preds = %140
  %150 = load i64, ptr %13, align 8, !tbaa !8
  %151 = load i64, ptr %22, align 8, !tbaa !8
  %152 = sub nsw i64 %151, 2
  %153 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %152
  %154 = load i64, ptr %153, align 8, !tbaa !8
  %155 = mul nsw i64 %150, %154
  %156 = load i64, ptr %14, align 8, !tbaa !8
  %157 = load i64, ptr %22, align 8, !tbaa !8
  %158 = sub nsw i64 %157, 1
  %159 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !8
  %161 = mul nsw i64 %156, %160
  %162 = add nsw i64 %155, %161
  %163 = load i64, ptr %15, align 8, !tbaa !8
  %164 = add nsw i64 %162, %163
  %165 = load i64, ptr %16, align 8, !tbaa !8
  %166 = srem i64 %164, %165
  %167 = add nsw i64 %166, 1
  %168 = load i64, ptr %22, align 8, !tbaa !8
  %169 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %168
  store i64 %167, ptr %169, align 8, !tbaa !8
  %170 = load i64, ptr %18, align 8, !tbaa !8
  %171 = load i64, ptr %22, align 8, !tbaa !8
  %172 = sub nsw i64 %171, 2
  %173 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %172
  %174 = load i64, ptr %173, align 8, !tbaa !8
  %175 = mul nsw i64 %170, %174
  %176 = load i64, ptr %19, align 8, !tbaa !8
  %177 = load i64, ptr %22, align 8, !tbaa !8
  %178 = sub nsw i64 %177, 1
  %179 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %178
  %180 = load i64, ptr %179, align 8, !tbaa !8
  %181 = mul nsw i64 %176, %180
  %182 = add nsw i64 %175, %181
  %183 = load i64, ptr %20, align 8, !tbaa !8
  %184 = add nsw i64 %182, %183
  %185 = load i64, ptr %21, align 8, !tbaa !8
  %186 = srem i64 %184, %185
  %187 = add nsw i64 %186, 1
  %188 = load i64, ptr %22, align 8, !tbaa !8
  %189 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %188
  store i64 %187, ptr %189, align 8, !tbaa !8
  br label %190

190:                                              ; preds = %149
  %191 = load i64, ptr %22, align 8, !tbaa !8
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %22, align 8, !tbaa !8
  br label %140, !llvm.loop !16

193:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 0, ptr %23, align 8, !tbaa !8
  br label %194

194:                                              ; preds = %225, %193
  %195 = load i64, ptr %23, align 8, !tbaa !8
  %196 = load i64, ptr %9, align 8, !tbaa !8
  %197 = icmp slt i64 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %247

199:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %200 = load i64, ptr %23, align 8, !tbaa !8
  %201 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %200
  %202 = load i64, ptr %23, align 8, !tbaa !8
  %203 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %202
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef nonnull align 8 dereferenceable(8) %203)
          to label %204 unwind label %228

204:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 1, ptr %26, align 4, !tbaa !17
  invoke void @_ZSt9make_pairISt4pairIxxEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind writable sret(%"struct.std::pair.2") align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %205 unwind label %232

205:                                              ; preds = %204
  %206 = load i64, ptr %23, align 8, !tbaa !8
  %207 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %206
  %208 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt4pairIS_IxxExEaSIS0_iEENSt9enable_ifIXsr6__and_ISt13is_assignableIRS0_OT_ES4_IRxOT0_EEE5valueERS1_E4typeEOS_IS6_SA_E(ptr noundef nonnull align 8 dereferenceable(24) %207, ptr noundef nonnull align 8 dereferenceable(20) %24)
          to label %209 unwind label %232

209:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %210 = load i64, ptr %23, align 8, !tbaa !8
  %211 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %210
  %212 = load i64, ptr %211, align 8, !tbaa !8
  %213 = load i64, ptr %11, align 8, !tbaa !8
  %214 = add nsw i64 %212, %213
  store i64 %214, ptr %29, align 8, !tbaa !8
  %215 = load i64, ptr %23, align 8, !tbaa !8
  %216 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %215
  invoke void @_ZNSt4pairIxxEC2IxRxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %216)
          to label %217 unwind label %237

217:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 -1, ptr %30, align 4, !tbaa !17
  invoke void @_ZSt9make_pairISt4pairIxxEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind writable sret(%"struct.std::pair.2") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %218 unwind label %241

218:                                              ; preds = %217
  %219 = load i64, ptr %9, align 8, !tbaa !8
  %220 = load i64, ptr %23, align 8, !tbaa !8
  %221 = add nsw i64 %219, %220
  %222 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %221
  %223 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt4pairIS_IxxExEaSIS0_iEENSt9enable_ifIXsr6__and_ISt13is_assignableIRS0_OT_ES4_IRxOT0_EEE5valueERS1_E4typeEOS_IS6_SA_E(ptr noundef nonnull align 8 dereferenceable(24) %222, ptr noundef nonnull align 8 dereferenceable(20) %27)
          to label %224 unwind label %241

224:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  br label %225

225:                                              ; preds = %224
  %226 = load i64, ptr %23, align 8, !tbaa !8
  %227 = add nsw i64 %226, 1
  store i64 %227, ptr %23, align 8, !tbaa !8
  br label %194, !llvm.loop !19

228:                                              ; preds = %199
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %5, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %6, align 4
  br label %236

232:                                              ; preds = %205, %204
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %5, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %236

236:                                              ; preds = %232, %228
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  br label %246

237:                                              ; preds = %209
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %5, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %6, align 4
  br label %245

241:                                              ; preds = %218, %217
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %5, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %245

245:                                              ; preds = %241, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  br label %246

246:                                              ; preds = %245, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %483

247:                                              ; preds = %198
  %248 = load i64, ptr %9, align 8, !tbaa !8
  %249 = mul nsw i64 2, %248
  %250 = getelementptr inbounds %"struct.std::pair", ptr @delta, i64 %249
  invoke void @_ZSt4sortIPSt4pairIS0_IxxExEEvT_S4_(ptr noundef @delta, ptr noundef %250)
          to label %251 unwind label %145

251:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %252 = load i64, ptr @L, align 16, !tbaa !8
  store i64 %252, ptr %31, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  store i64 0, ptr %32, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store i64 0, ptr %34, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  store i64 1, ptr %35, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  store i64 0, ptr %36, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #7
  call void @_ZNSt8multisetIxSt4lessIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store i64 0, ptr %38, align 8, !tbaa !8
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
          to label %254 unwind label %262

254:                                              ; preds = %251
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %256 unwind label %262

256:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  store i64 0, ptr %39, align 8, !tbaa !8
  br label %257

257:                                              ; preds = %453, %256
  %258 = load i64, ptr %39, align 8, !tbaa !8
  %259 = load i64, ptr %9, align 8, !tbaa !8
  %260 = icmp slt i64 %258, %259
  br i1 %260, label %266, label %261

261:                                              ; preds = %257
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %457

262:                                              ; preds = %476, %474, %471, %469, %467, %464, %462, %459, %457, %254, %251
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %5, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %6, align 4
  br label %482

266:                                              ; preds = %257
  br label %267

267:                                              ; preds = %315, %266
  %268 = load i64, ptr %38, align 8, !tbaa !8
  %269 = load i64, ptr %9, align 8, !tbaa !8
  %270 = mul nsw i64 2, %269
  %271 = icmp slt i64 %268, %270
  br i1 %271, label %272, label %282

272:                                              ; preds = %267
  %273 = load i64, ptr %38, align 8, !tbaa !8
  %274 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %273
  %275 = getelementptr inbounds %"struct.std::pair", ptr %274, i32 0, i32 0
  %276 = getelementptr inbounds %"struct.std::pair.0", ptr %275, i32 0, i32 0
  %277 = load i64, ptr %276, align 8, !tbaa !20
  %278 = load i64, ptr %39, align 8, !tbaa !8
  %279 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %278
  %280 = load i64, ptr %279, align 8, !tbaa !8
  %281 = icmp slt i64 %277, %280
  br label %282

282:                                              ; preds = %272, %267
  %283 = phi i1 [ false, %267 ], [ %281, %272 ]
  br i1 %283, label %284, label %318

284:                                              ; preds = %282
  %285 = load i64, ptr %38, align 8, !tbaa !8
  %286 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %285
  %287 = getelementptr inbounds %"struct.std::pair", ptr %286, i32 0, i32 1
  %288 = load i64, ptr %287, align 8, !tbaa !23
  %289 = icmp eq i64 %288, 1
  br i1 %289, label %290, label %302

290:                                              ; preds = %284
  %291 = load i64, ptr %38, align 8, !tbaa !8
  %292 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %291
  %293 = getelementptr inbounds %"struct.std::pair", ptr %292, i32 0, i32 0
  %294 = getelementptr inbounds %"struct.std::pair.0", ptr %293, i32 0, i32 1
  %295 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(8) %294)
          to label %296 unwind label %298

296:                                              ; preds = %290
  %297 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %40, i32 0, i32 0
  store ptr %295, ptr %297, align 8
  br label %315

298:                                              ; preds = %400, %321, %308, %302, %290
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %5, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %6, align 4
  br label %456

302:                                              ; preds = %284
  %303 = load i64, ptr %38, align 8, !tbaa !8
  %304 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %303
  %305 = getelementptr inbounds %"struct.std::pair", ptr %304, i32 0, i32 0
  %306 = getelementptr inbounds %"struct.std::pair.0", ptr %305, i32 0, i32 1
  %307 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE4findERKx(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(8) %306)
          to label %308 unwind label %298

308:                                              ; preds = %302
  %309 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %41, i32 0, i32 0
  store ptr %307, ptr %309, align 8
  %310 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %41, i32 0, i32 0
  %311 = load ptr, ptr %310, align 8
  %312 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIxE(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr %311)
          to label %313 unwind label %298

313:                                              ; preds = %308
  %314 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %42, i32 0, i32 0
  store ptr %312, ptr %314, align 8
  br label %315

315:                                              ; preds = %313, %296
  %316 = load i64, ptr %38, align 8, !tbaa !8
  %317 = add nsw i64 %316, 1
  store i64 %317, ptr %38, align 8, !tbaa !8
  br label %267, !llvm.loop !24

318:                                              ; preds = %282
  %319 = load i64, ptr %39, align 8, !tbaa !8
  %320 = icmp eq i64 %319, 0
  br i1 %320, label %321, label %332

321:                                              ; preds = %318
  %322 = load i64, ptr %39, align 8, !tbaa !8
  %323 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %322
  %324 = load i64, ptr %323, align 8, !tbaa !8
  %325 = load i64, ptr %11, align 8, !tbaa !8
  %326 = add nsw i64 %324, %325
  store i64 %326, ptr %33, align 8, !tbaa !8
  %327 = load i64, ptr %39, align 8, !tbaa !8
  %328 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %327
  %329 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %328)
          to label %330 unwind label %298

330:                                              ; preds = %321
  %331 = load i64, ptr %329, align 8, !tbaa !8
  store i64 %331, ptr %34, align 8, !tbaa !8
  br label %437

332:                                              ; preds = %318
  %333 = load i64, ptr %39, align 8, !tbaa !8
  %334 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %333
  %335 = load i64, ptr %334, align 8, !tbaa !8
  %336 = load i64, ptr %39, align 8, !tbaa !8
  %337 = sub nsw i64 %336, 1
  %338 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %337
  %339 = load i64, ptr %338, align 8, !tbaa !8
  %340 = load i64, ptr %11, align 8, !tbaa !8
  %341 = add nsw i64 %339, %340
  %342 = icmp sle i64 %335, %341
  br i1 %342, label %343, label %412

343:                                              ; preds = %332
  %344 = load i64, ptr %39, align 8, !tbaa !8
  %345 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %344
  %346 = load i64, ptr %345, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  call void @_ZNKSt8multisetIxSt4lessIxESaIxEE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %43, ptr noundef nonnull align 8 dereferenceable(48) %37) #7
  %347 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorIxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %348 unwind label %378

348:                                              ; preds = %343
  %349 = load i64, ptr %347, align 8, !tbaa !8
  %350 = icmp sgt i64 %346, %349
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br i1 %350, label %351, label %400

351:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  call void @_ZNKSt8multisetIxSt4lessIxESaIxEE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %45, ptr noundef nonnull align 8 dereferenceable(48) %37) #7
  %352 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorIxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %353 unwind label %382

353:                                              ; preds = %351
  %354 = load i64, ptr %352, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  store i64 %354, ptr %44, align 8, !tbaa !8
  %355 = load i64, ptr %44, align 8, !tbaa !8
  %356 = mul nsw i64 2, %355
  %357 = load i64, ptr %36, align 8, !tbaa !8
  %358 = sub nsw i64 %357, %356
  store i64 %358, ptr %36, align 8, !tbaa !8
  %359 = load i64, ptr %39, align 8, !tbaa !8
  %360 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %359
  %361 = load i64, ptr %360, align 8, !tbaa !8
  store i64 %361, ptr %33, align 8, !tbaa !8
  %362 = load i64, ptr %33, align 8, !tbaa !8
  %363 = load i64, ptr %31, align 8, !tbaa !8
  %364 = sub nsw i64 %362, %363
  %365 = load i64, ptr %34, align 8, !tbaa !8
  %366 = add nsw i64 %364, %365
  %367 = load i64, ptr %32, align 8, !tbaa !8
  %368 = sub nsw i64 %366, %367
  %369 = mul nsw i64 %368, 2
  %370 = load i64, ptr %36, align 8, !tbaa !8
  %371 = add nsw i64 %370, %369
  store i64 %371, ptr %36, align 8, !tbaa !8
  br label %372

372:                                              ; preds = %375, %353
  %373 = load i64, ptr %36, align 8, !tbaa !8
  %374 = icmp slt i64 %373, 0
  br i1 %374, label %375, label %386

375:                                              ; preds = %372
  %376 = load i64, ptr %36, align 8, !tbaa !8
  %377 = add nsw i64 %376, 1000000007
  store i64 %377, ptr %36, align 8, !tbaa !8
  br label %372, !llvm.loop !25

378:                                              ; preds = %343
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %5, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br label %456

382:                                              ; preds = %351
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %5, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  br label %456

386:                                              ; preds = %372
  %387 = load i64, ptr %36, align 8, !tbaa !8
  %388 = srem i64 %387, 1000000007
  store i64 %388, ptr %36, align 8, !tbaa !8
  %389 = load i64, ptr %39, align 8, !tbaa !8
  %390 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %389
  %391 = load i64, ptr %390, align 8, !tbaa !8
  store i64 %391, ptr %31, align 8, !tbaa !8
  %392 = load i64, ptr %39, align 8, !tbaa !8
  %393 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %392
  %394 = load i64, ptr %393, align 8, !tbaa !8
  %395 = load i64, ptr %11, align 8, !tbaa !8
  %396 = add nsw i64 %394, %395
  store i64 %396, ptr %33, align 8, !tbaa !8
  %397 = load i64, ptr %39, align 8, !tbaa !8
  %398 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %397
  %399 = load i64, ptr %398, align 8, !tbaa !8
  store i64 %399, ptr %34, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  br label %411

400:                                              ; preds = %348
  %401 = load i64, ptr %39, align 8, !tbaa !8
  %402 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %401
  %403 = load i64, ptr %402, align 8, !tbaa !8
  %404 = load i64, ptr %11, align 8, !tbaa !8
  %405 = add nsw i64 %403, %404
  store i64 %405, ptr %33, align 8, !tbaa !8
  %406 = load i64, ptr %39, align 8, !tbaa !8
  %407 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %406
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %407)
          to label %409 unwind label %298

409:                                              ; preds = %400
  %410 = load i64, ptr %408, align 8, !tbaa !8
  store i64 %410, ptr %34, align 8, !tbaa !8
  br label %411

411:                                              ; preds = %409, %386
  br label %436

412:                                              ; preds = %332
  %413 = load i64, ptr %33, align 8, !tbaa !8
  %414 = load i64, ptr %31, align 8, !tbaa !8
  %415 = sub nsw i64 %413, %414
  %416 = load i64, ptr %34, align 8, !tbaa !8
  %417 = add nsw i64 %415, %416
  %418 = load i64, ptr %32, align 8, !tbaa !8
  %419 = sub nsw i64 %417, %418
  %420 = mul nsw i64 %419, 2
  %421 = load i64, ptr %36, align 8, !tbaa !8
  %422 = add nsw i64 %421, %420
  store i64 %422, ptr %36, align 8, !tbaa !8
  %423 = load i64, ptr %36, align 8, !tbaa !8
  %424 = srem i64 %423, 1000000007
  store i64 %424, ptr %36, align 8, !tbaa !8
  %425 = load i64, ptr %39, align 8, !tbaa !8
  %426 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %425
  %427 = load i64, ptr %426, align 8, !tbaa !8
  store i64 %427, ptr %31, align 8, !tbaa !8
  %428 = load i64, ptr %39, align 8, !tbaa !8
  %429 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %428
  %430 = load i64, ptr %429, align 8, !tbaa !8
  %431 = load i64, ptr %11, align 8, !tbaa !8
  %432 = add nsw i64 %430, %431
  store i64 %432, ptr %33, align 8, !tbaa !8
  %433 = load i64, ptr %39, align 8, !tbaa !8
  %434 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %433
  %435 = load i64, ptr %434, align 8, !tbaa !8
  store i64 %435, ptr %34, align 8, !tbaa !8
  br label %436

436:                                              ; preds = %412, %411
  br label %437

437:                                              ; preds = %436, %330
  %438 = load i64, ptr %36, align 8, !tbaa !8
  %439 = load i64, ptr %33, align 8, !tbaa !8
  %440 = load i64, ptr %31, align 8, !tbaa !8
  %441 = sub nsw i64 %439, %440
  %442 = load i64, ptr %34, align 8, !tbaa !8
  %443 = add nsw i64 %441, %442
  %444 = load i64, ptr %32, align 8, !tbaa !8
  %445 = sub nsw i64 %443, %444
  %446 = mul nsw i64 %445, 2
  %447 = add nsw i64 %438, %446
  %448 = srem i64 %447, 1000000007
  %449 = load i64, ptr %35, align 8, !tbaa !8
  %450 = mul nsw i64 %449, %448
  store i64 %450, ptr %35, align 8, !tbaa !8
  %451 = load i64, ptr %35, align 8, !tbaa !8
  %452 = srem i64 %451, 1000000007
  store i64 %452, ptr %35, align 8, !tbaa !8
  br label %453

453:                                              ; preds = %437
  %454 = load i64, ptr %39, align 8, !tbaa !8
  %455 = add nsw i64 %454, 1
  store i64 %455, ptr %39, align 8, !tbaa !8
  br label %257, !llvm.loop !26

456:                                              ; preds = %382, %378, %298
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %482

457:                                              ; preds = %261
  %458 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef @.str.6)
          to label %459 unwind label %262

459:                                              ; preds = %457
  %460 = load i64, ptr %7, align 8, !tbaa !8
  %461 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %458, i64 noundef %460)
          to label %462 unwind label %262

462:                                              ; preds = %459
  %463 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %461, ptr noundef @.str.7)
          to label %464 unwind label %262

464:                                              ; preds = %462
  %465 = load i64, ptr %35, align 8, !tbaa !8
  %466 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %463, i64 noundef %465)
          to label %467 unwind label %262

467:                                              ; preds = %464
  %468 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %466, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %469 unwind label %262

469:                                              ; preds = %467
  %470 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %471 unwind label %262

471:                                              ; preds = %469
  %472 = load i64, ptr %7, align 8, !tbaa !8
  %473 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %470, i64 noundef %472)
          to label %474 unwind label %262

474:                                              ; preds = %471
  %475 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %473, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %476 unwind label %262

476:                                              ; preds = %474
  %477 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %475, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %478 unwind label %262

478:                                              ; preds = %476
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @_ZNSt8multisetIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #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
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %479

479:                                              ; preds = %478
  %480 = load i64, ptr %7, align 8, !tbaa !8
  %481 = add nsw i64 %480, 1
  store i64 %481, ptr %7, align 8, !tbaa !8
  br label %56, !llvm.loop !27

482:                                              ; preds = %456, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @_ZNSt8multisetIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %483

483:                                              ; preds = %482, %246, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #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 %484

484:                                              ; preds = %483, %126, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %485

485:                                              ; preds = %484, %96, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %488

486:                                              ; preds = %60
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %487 = load i32, ptr %1, align 4
  ret i32 %487

488:                                              ; preds = %485, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %489

489:                                              ; preds = %488
  %490 = load ptr, ptr %5, align 8
  %491 = load i32, ptr %6, align 4
  %492 = insertvalue { ptr, i32 } poison, ptr %490, 0
  %493 = insertvalue { ptr, i32 } %492, i32 %491, 1
  resume { ptr, i32 } %493
}

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

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #4 align 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)) #4 align 2

declare i32 @__gxx_personality_v0(...)

; 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) #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairISt4pairIxxEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.2") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt4pairIS_IxxExEaSIS0_iEENSt9enable_ifIXsr6__and_ISt13is_assignableIRS0_OT_ES4_IRxOT0_EEE5valueERS1_E4typeEOS_IS6_SA_E(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(20)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt8multisetIxSt4lessIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt8multisetIxSt4lessIxESaIxEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIxE(ptr noundef nonnull align 8 dereferenceable(48), ptr) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt8multisetIxSt4lessIxESaIxEE4findERKx(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt8multisetIxSt4lessIxESaIxEE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 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 = { "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 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = distinct !{!19, !14}
!20 = !{!21, !9, i64 0}
!21 = !{!"_ZTSSt4pairIS_IxxExE", !22, i64 0, !9, i64 16}
!22 = !{!"_ZTSSt4pairIxxE", !9, i64 0, !9, i64 8}
!23 = !{!21, !9, i64 16}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::pair" = type { %"struct.std::pair.0", i64 }
%"struct.std::pair.0" = type { i64, i64 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"struct.std::pair.2" = type <{ %"struct.std::pair.0", i32, [4 x i8] }>
%"class.std::multiset" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::reverse_iterator" = type { %"struct.std::_Rb_tree_const_iterator" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@L = external dso_local global [1000005 x i64], align 16
@H = external dso_local global [1000005 x i64], align 16
@delta = external dso_local global [2000005 x %"struct.std::pair"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 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::basic_ofstream", align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"struct.std::pair.2", align 8
  %15 = alloca %"struct.std::pair.0", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair.2", align 8
  %18 = alloca %"struct.std::pair.0", align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::multiset", align 8
  %23 = alloca %"class.std::reverse_iterator", align 8
  %24 = alloca %"class.std::reverse_iterator", align 8
  %25 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %26 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %28
  %30 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %29, ptr noundef null)
  %31 = load ptr, ptr @stdin, align 8, !tbaa !8
  %32 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.2, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %1) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %1, ptr noundef nonnull @.str.3, i32 noundef 16)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %.preheader114 unwind label %35

.preheader114:                                    ; preds = %0
  %34 = load i64, ptr %2, align 8, !tbaa !11
  %.not144 = icmp slt i64 %34, 1
  br i1 %.not144, label %._crit_edge147, label %.lr.ph146

._crit_edge147:                                   ; preds = %269, %.preheader114
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %1) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %1) #8
  ret i32 0

35:                                               ; preds = %0
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %276

.lr.ph146:                                        ; preds = %.preheader114, %269
  %.082145 = phi i64 [ %270, %269 ], [ 1, %.preheader114 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %38 unwind label %51

38:                                               ; preds = %.lr.ph146
  %39 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %40 unwind label %51

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %42 unwind label %51

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %44 unwind label %51

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %.082145)
          to label %46 unwind label %51

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader113 unwind label %51

.preheader113:                                    ; preds = %46
  %48 = load i64, ptr %4, align 8, !tbaa !11
  %49 = icmp sgt i64 %48, 0
  br i1 %49, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %55, %.preheader113
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %61 unwind label %70

51:                                               ; preds = %46, %44, %42, %40, %38, %.lr.ph146
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %275

.lr.ph:                                           ; preds = %.preheader113, %55
  %.097119 = phi i64 [ %56, %55 ], [ 0, %.preheader113 ]
  %53 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %.097119
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %55 unwind label %59

55:                                               ; preds = %.lr.ph
  %56 = add nuw nsw i64 %.097119, 1
  %57 = load i64, ptr %4, align 8, !tbaa !11
  %58 = icmp slt i64 %56, %57
  br i1 %58, label %.lr.ph, label %._crit_edge, !llvm.loop !13

59:                                               ; preds = %.lr.ph
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %275

61:                                               ; preds = %._crit_edge
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %63 unwind label %70

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %65 unwind label %70

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %.preheader112 unwind label %70

.preheader112:                                    ; preds = %65
  %67 = load i64, ptr %4, align 8, !tbaa !11
  %68 = icmp sgt i64 %67, 0
  br i1 %68, label %.lr.ph121, label %._crit_edge122

._crit_edge122:                                   ; preds = %74, %.preheader112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %69 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %80 unwind label %100

70:                                               ; preds = %65, %63, %61, %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %274

.lr.ph121:                                        ; preds = %.preheader112, %74
  %.096120 = phi i64 [ %75, %74 ], [ 0, %.preheader112 ]
  %72 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %.096120
  %73 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %74 unwind label %78

74:                                               ; preds = %.lr.ph121
  %75 = add nuw nsw i64 %.096120, 1
  %76 = load i64, ptr %4, align 8, !tbaa !11
  %77 = icmp slt i64 %75, %76
  br i1 %77, label %.lr.ph121, label %._crit_edge122, !llvm.loop !15

78:                                               ; preds = %.lr.ph121
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %274

80:                                               ; preds = %._crit_edge122
  %81 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %82 unwind label %100

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %81, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %84 unwind label %100

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %86 unwind label %100

86:                                               ; preds = %84
  %87 = load i64, ptr %4, align 8, !tbaa !11
  %88 = load i64, ptr %3, align 8, !tbaa !11
  %89 = icmp slt i64 %87, %88
  br i1 %89, label %.lr.ph125, label %.preheader111

.lr.ph125:                                        ; preds = %86
  %90 = load i64, ptr %6, align 8, !tbaa !11
  %91 = load i64, ptr %7, align 8, !tbaa !11
  %92 = load i64, ptr %8, align 8, !tbaa !11
  %93 = load i64, ptr %9, align 8, !tbaa !11
  %94 = load i64, ptr %10, align 8, !tbaa !11
  %95 = load i64, ptr %11, align 8, !tbaa !11
  %96 = load i64, ptr %12, align 8, !tbaa !11
  %97 = load i64, ptr %13, align 8, !tbaa !11
  %98 = shl i64 %87, 3
  %scevgep = getelementptr i8, ptr getelementptr (i8, ptr @H, i64 -8), i64 %98
  %load_initial = load i64, ptr %scevgep, align 8
  %scevgep155 = getelementptr i8, ptr getelementptr (i8, ptr @L, i64 -8), i64 %98
  %load_initial156 = load i64, ptr %scevgep155, align 8
  br label %102

.preheader111:                                    ; preds = %102, %86
  %99 = icmp sgt i64 %88, 0
  br i1 %99, label %.lr.ph127, label %._crit_edge128

100:                                              ; preds = %._crit_edge128, %84, %82, %80, %._crit_edge122
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %273

102:                                              ; preds = %.lr.ph125, %102
  %store_forwarded157 = phi i64 [ %load_initial156, %.lr.ph125 ], [ %111, %102 ]
  %store_forwarded = phi i64 [ %load_initial, %.lr.ph125 ], [ %120, %102 ]
  %.095123 = phi i64 [ %87, %.lr.ph125 ], [ %122, %102 ]
  %103 = add nsw i64 %.095123, -2
  %104 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !11
  %106 = mul nsw i64 %105, %90
  %107 = mul nsw i64 %store_forwarded157, %91
  %108 = add nsw i64 %107, %106
  %109 = add nsw i64 %108, %92
  %110 = srem i64 %109, %93
  %111 = add nsw i64 %110, 1
  %112 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %.095123
  store i64 %111, ptr %112, align 8, !tbaa !11
  %113 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %103
  %114 = load i64, ptr %113, align 8, !tbaa !11
  %115 = mul nsw i64 %114, %94
  %116 = mul nsw i64 %store_forwarded, %95
  %117 = add nsw i64 %116, %115
  %118 = add nsw i64 %117, %96
  %119 = srem i64 %118, %97
  %120 = add nsw i64 %119, 1
  %121 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %.095123
  store i64 %120, ptr %121, align 8, !tbaa !11
  %122 = add nsw i64 %.095123, 1
  %exitcond.not = icmp eq i64 %122, %88
  br i1 %exitcond.not, label %.preheader111, label %102, !llvm.loop !16

._crit_edge128:                                   ; preds = %132, %.preheader111
  %.lcssa = phi i64 [ %88, %.preheader111 ], [ %138, %132 ]
  %.idx = mul nsw i64 %.lcssa, 48
  %123 = getelementptr inbounds i8, ptr @delta, i64 %.idx
  invoke void @_ZSt4sortIPSt4pairIS0_IxxExEEvT_S4_(ptr noundef nonnull @delta, ptr noundef nonnull %123)
          to label %144 unwind label %100

.lr.ph127:                                        ; preds = %.preheader111, %132
  %.094126 = phi i64 [ %137, %132 ], [ 0, %.preheader111 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  %124 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %.094126
  %125 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %.094126
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull align 8 dereferenceable(8) %125)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 1, ptr %16, align 4, !tbaa !17
  invoke void @_ZSt9make_pairISt4pairIxxEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.2") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %126 unwind label %140

126:                                              ; preds = %.lr.ph127
  %127 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %.094126
  %128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt4pairIS_IxxExEaSIS0_iEENSt9enable_ifIXsr6__and_ISt13is_assignableIRS0_OT_ES4_IRxOT0_EEE5valueERS1_E4typeEOS_IS6_SA_E(ptr noundef nonnull align 8 dereferenceable(24) %127, ptr noundef nonnull align 8 dereferenceable(20) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %129 = load i64, ptr %124, align 8, !tbaa !11
  %130 = load i64, ptr %5, align 8, !tbaa !11
  %131 = add nsw i64 %130, %129
  store i64 %131, ptr %19, align 8, !tbaa !11
  call void @_ZNSt4pairIxxEC2IxRxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %125)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  store i32 -1, ptr %20, align 4, !tbaa !17
  invoke void @_ZSt9make_pairISt4pairIxxEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.2") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %132 unwind label %142

132:                                              ; preds = %126
  %133 = load i64, ptr %3, align 8, !tbaa !11
  %134 = add nsw i64 %133, %.094126
  %135 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %134
  %136 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt4pairIS_IxxExEaSIS0_iEENSt9enable_ifIXsr6__and_ISt13is_assignableIRS0_OT_ES4_IRxOT0_EEE5valueERS1_E4typeEOS_IS6_SA_E(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 8 dereferenceable(20) %17)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  %137 = add nuw nsw i64 %.094126, 1
  %138 = load i64, ptr %3, align 8, !tbaa !11
  %139 = icmp slt i64 %137, %138
  br i1 %139, label %.lr.ph127, label %._crit_edge128, !llvm.loop !19

140:                                              ; preds = %.lr.ph127
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  br label %273

142:                                              ; preds = %126
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  br label %273

144:                                              ; preds = %._crit_edge128
  %145 = load i64, ptr @L, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  store i64 0, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %22) #8
  call void @_ZNSt8multisetIxSt4lessIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #8
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
          to label %147 unwind label %156

147:                                              ; preds = %144
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader110 unwind label %156

.preheader110:                                    ; preds = %147
  %149 = load i64, ptr %3, align 8, !tbaa !11
  %150 = icmp sgt i64 %149, 0
  br i1 %150, label %.preheader, label %._crit_edge142

.preheader:                                       ; preds = %.preheader110, %241
  %151 = phi i64 [ %251, %241 ], [ %149, %.preheader110 ]
  %.083140 = phi i64 [ %250, %241 ], [ 0, %.preheader110 ]
  %.084139 = phi i64 [ %.185.lcssa, %241 ], [ 0, %.preheader110 ]
  %.086138 = phi i64 [ %.288, %241 ], [ 0, %.preheader110 ]
  %.089137 = phi i64 [ %249, %241 ], [ 1, %.preheader110 ]
  %.090136 = phi i64 [ %.191, %241 ], [ 0, %.preheader110 ]
  %.092135 = phi i64 [ %.193, %241 ], [ %145, %.preheader110 ]
  %152 = shl nsw i64 %151, 1
  %153 = icmp slt i64 %.084139, %152
  br i1 %153, label %.lr.ph130, label %.critedge

.lr.ph130:                                        ; preds = %.preheader
  %154 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %.083140
  br label %158

._crit_edge142:                                   ; preds = %241, %.preheader110
  %.089.lcssa = phi i64 [ 1, %.preheader110 ], [ %249, %241 ]
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.6)
          to label %253 unwind label %156

156:                                              ; preds = %267, %265, %263, %261, %259, %257, %255, %253, %._crit_edge142, %147, %144
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %272

158:                                              ; preds = %.lr.ph130, %176
  %.185129 = phi i64 [ %.084139, %.lr.ph130 ], [ %177, %176 ]
  %159 = getelementptr inbounds [2000005 x %"struct.std::pair"], ptr @delta, i64 0, i64 %.185129
  %160 = load i64, ptr %159, align 8, !tbaa !20
  %161 = load i64, ptr %154, align 8, !tbaa !11
  %162 = icmp slt i64 %160, %161
  br i1 %162, label %163, label %.critedge

163:                                              ; preds = %158
  %164 = getelementptr inbounds i8, ptr %159, i64 16
  %165 = load i64, ptr %164, align 8, !tbaa !23
  %166 = icmp eq i64 %165, 1
  %167 = getelementptr inbounds i8, ptr %159, i64 8
  br i1 %166, label %168, label %172

168:                                              ; preds = %163
  %169 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(8) %167)
          to label %176 unwind label %170

170:                                              ; preds = %174, %172, %168
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %272

172:                                              ; preds = %163
  %173 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE4findERKx(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(8) %167)
          to label %174 unwind label %170

174:                                              ; preds = %172
  %175 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIxE(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr %173)
          to label %176 unwind label %170

176:                                              ; preds = %174, %168
  %177 = add nsw i64 %.185129, 1
  %178 = load i64, ptr %3, align 8, !tbaa !11
  %179 = shl nsw i64 %178, 1
  %180 = icmp slt i64 %177, %179
  br i1 %180, label %158, label %.critedge, !llvm.loop !24

.critedge:                                        ; preds = %158, %176, %.preheader
  %.185.lcssa = phi i64 [ %.084139, %.preheader ], [ %177, %176 ], [ %.185129, %158 ]
  %181 = icmp eq i64 %.083140, 0
  br i1 %181, label %182, label %188

182:                                              ; preds = %.critedge
  %183 = load i64, ptr @L, align 16, !tbaa !11
  %184 = load i64, ptr %5, align 8, !tbaa !11
  %185 = add nsw i64 %184, %183
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) @H)
  %187 = load i64, ptr %186, align 8, !tbaa !11
  store i64 %187, ptr %21, align 8, !tbaa !11
  br label %241

188:                                              ; preds = %.critedge
  %189 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %.083140
  %190 = load i64, ptr %189, align 8, !tbaa !11
  %191 = add nsw i64 %.083140, -1
  %192 = getelementptr inbounds [1000005 x i64], ptr @L, i64 0, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !11
  %194 = load i64, ptr %5, align 8, !tbaa !11
  %195 = add nsw i64 %194, %193
  %.not100 = icmp sgt i64 %190, %195
  br i1 %.not100, label %231, label %196

196:                                              ; preds = %188
  %197 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %.083140
  %198 = load i64, ptr %197, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  call void @_ZNKSt8multisetIxSt4lessIxESaIxEE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %23, ptr noundef nonnull align 8 dereferenceable(48) %22) #8
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorIxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %200 = load i64, ptr %199, align 8, !tbaa !11
  %201 = icmp sgt i64 %198, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  br i1 %201, label %202, label %225

202:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  call void @_ZNKSt8multisetIxSt4lessIxESaIxEE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %24, ptr noundef nonnull align 8 dereferenceable(48) %22) #8
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorIxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
  %204 = load i64, ptr %203, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  %205 = shl i64 %204, 1
  %206 = sub i64 %.086138, %205
  %207 = load i64, ptr %189, align 8, !tbaa !11
  %208 = sub i64 %207, %.092135
  %209 = load i64, ptr %21, align 8, !tbaa !11
  %210 = add i64 %208, %209
  %211 = shl i64 %210, 1
  %212 = add i64 %206, %211
  %smax = call i64 @llvm.smax.i64(i64 %212, i64 0)
  %.lobit = lshr i64 %212, 63
  %213 = add i64 %.lobit, %212
  %214 = sub i64 %smax, %213
  %215 = udiv i64 %214, 1000000007
  %216 = add nuw nsw i64 %.lobit, %215
  %217 = mul i64 %216, 1000000007
  %218 = add i64 %.086138, %217
  %219 = add i64 %218, %211
  %220 = sub i64 %219, %205
  %221 = urem i64 %220, 1000000007
  %222 = load i64, ptr %5, align 8, !tbaa !11
  %223 = add nsw i64 %222, %207
  %224 = load i64, ptr %197, align 8, !tbaa !11
  store i64 %224, ptr %21, align 8, !tbaa !11
  br label %241

225:                                              ; preds = %196
  %226 = load i64, ptr %189, align 8, !tbaa !11
  %227 = load i64, ptr %5, align 8, !tbaa !11
  %228 = add nsw i64 %227, %226
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %197)
  %230 = load i64, ptr %229, align 8, !tbaa !11
  store i64 %230, ptr %21, align 8, !tbaa !11
  br label %241

231:                                              ; preds = %188
  %232 = sub i64 %.090136, %.092135
  %233 = load i64, ptr %21, align 8, !tbaa !11
  %234 = add nsw i64 %232, %233
  %235 = shl nsw i64 %234, 1
  %236 = add nsw i64 %235, %.086138
  %237 = srem i64 %236, 1000000007
  %238 = add nsw i64 %194, %190
  %239 = getelementptr inbounds [1000005 x i64], ptr @H, i64 0, i64 %.083140
  %240 = load i64, ptr %239, align 8, !tbaa !11
  store i64 %240, ptr %21, align 8, !tbaa !11
  br label %241

241:                                              ; preds = %231, %225, %202, %182
  %242 = phi i64 [ %187, %182 ], [ %224, %202 ], [ %230, %225 ], [ %240, %231 ]
  %.193 = phi i64 [ %.092135, %182 ], [ %207, %202 ], [ %.092135, %225 ], [ %190, %231 ]
  %.191 = phi i64 [ %185, %182 ], [ %223, %202 ], [ %228, %225 ], [ %238, %231 ]
  %.288 = phi i64 [ %.086138, %182 ], [ %221, %202 ], [ %.086138, %225 ], [ %237, %231 ]
  %243 = sub i64 %.191, %.193
  %244 = add nsw i64 %243, %242
  %245 = shl nsw i64 %244, 1
  %246 = add nsw i64 %245, %.288
  %247 = srem i64 %246, 1000000007
  %248 = mul nsw i64 %247, %.089137
  %249 = srem i64 %248, 1000000007
  %250 = add nuw nsw i64 %.083140, 1
  %251 = load i64, ptr %3, align 8, !tbaa !11
  %252 = icmp slt i64 %250, %251
  br i1 %252, label %.preheader, label %._crit_edge142, !llvm.loop !25

253:                                              ; preds = %._crit_edge142
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %155, i64 noundef %.082145)
          to label %255 unwind label %156

255:                                              ; preds = %253
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef nonnull @.str.7)
          to label %257 unwind label %156

257:                                              ; preds = %255
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %256, i64 noundef %.089.lcssa)
          to label %259 unwind label %156

259:                                              ; preds = %257
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %258, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %261 unwind label %156

261:                                              ; preds = %259
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %263 unwind label %156

263:                                              ; preds = %261
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %262, i64 noundef %.082145)
          to label %265 unwind label %156

265:                                              ; preds = %263
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %267 unwind label %156

267:                                              ; preds = %265
  %268 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %266, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %269 unwind label %156

269:                                              ; preds = %267
  call void @_ZNSt8multisetIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %270 = add nuw nsw i64 %.082145, 1
  %271 = load i64, ptr %2, align 8, !tbaa !11
  %.not.not = icmp slt i64 %.082145, %271
  br i1 %.not.not, label %.lr.ph146, label %._crit_edge147, !llvm.loop !26

272:                                              ; preds = %170, %156
  %.pn = phi { ptr, i32 } [ %171, %170 ], [ %157, %156 ]
  call void @_ZNSt8multisetIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br label %273

273:                                              ; preds = %140, %142, %272, %100
  %.pn102.pn = phi { ptr, i32 } [ %.pn, %272 ], [ %101, %100 ], [ %143, %142 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %274

274:                                              ; preds = %273, %78, %70
  %.pn105 = phi { ptr, i32 } [ %79, %78 ], [ %.pn102.pn, %273 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %275

275:                                              ; preds = %274, %59, %51
  %.pn107 = phi { ptr, i32 } [ %60, %59 ], [ %.pn105, %274 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br label %276

276:                                              ; preds = %275, %35
  %.pn107.pn = phi { ptr, i32 } [ %.pn107, %275 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %1) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn107.pn
}

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

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #4 align 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 #4 align 2

declare i32 @__gxx_personality_v0(...)

; 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 #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairISt4pairIxxEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.2") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt4pairIS_IxxExEaSIS0_iEENSt9enable_ifIXsr6__and_ISt13is_assignableIRS0_OT_ES4_IRxOT0_EEE5valueERS1_E4typeEOS_IS6_SA_E(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt8multisetIxSt4lessIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt8multisetIxSt4lessIxESaIxEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIxE(ptr noundef nonnull align 8 dereferenceable(48), ptr) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt8multisetIxSt4lessIxESaIxEE4findERKx(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt8multisetIxSt4lessIxESaIxEE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #7

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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = distinct !{!19, !14}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTSSt4pairIS_IxxExE", !22, i64 0, !12, i64 16}
!22 = !{!"_ZTSSt4pairIxxE", !12, i64 0, !12, i64 8}
!23 = !{!21, !12, i64 16}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}


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