; LLVM IR from kazunetakahashi/atcoder :: 2017/0429_ARC073 (E)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_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 }
%"struct.std::pair.3" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>

@N = external dso_local global i32, align 4
@x = external dso_local global [200010 x i64], align 16
@y = external dso_local global [200010 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca %"class.std::set", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %36 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"struct.std::pair.3", align 8
  %39 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %40 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca i64, align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca i64, align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca i64, align 8
  %47 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %80, %0
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = load i32, ptr @N, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

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

54:                                               ; preds = %49
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %56
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %57)
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %60
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(8) %61)
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = icmp slt i64 %66, %70
  br i1 %71, label %72, label %79

72:                                               ; preds = %54
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %74
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %77
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(8) %78) #8
  br label %79

79:                                               ; preds = %72, %54
  br label %80

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

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

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

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

89:                                               ; preds = %84
  %90 = load i64, ptr %3, align 8, !tbaa !9
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = icmp slt i64 %90, %94
  br i1 %95, label %96, label %102

96:                                               ; preds = %89
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !9
  store i64 %100, ptr %3, align 8, !tbaa !9
  %101 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %101, ptr %4, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %96, %89
  %103 = load i64, ptr %5, align 8, !tbaa !9
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = icmp sgt i64 %103, %107
  br i1 %108, label %109, label %115

109:                                              ; preds = %102
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !9
  store i64 %113, ptr %5, align 8, !tbaa !9
  %114 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %114, ptr %6, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %109, %102
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !5
  br label %84, !llvm.loop !13

119:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store i64 1000000007, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %136, %119
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = load i32, ptr @N, align 4, !tbaa !5
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %139

125:                                              ; preds = %120
  %126 = load i32, ptr %10, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %127
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %128)
  %130 = load i64, ptr %129, align 8, !tbaa !9
  store i64 %130, ptr %8, align 8, !tbaa !9
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %132
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %133)
  %135 = load i64, ptr %134, align 8, !tbaa !9
  store i64 %135, ptr %9, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %125
  %137 = load i32, ptr %10, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %10, align 4, !tbaa !5
  br label %120, !llvm.loop !14

139:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %140 = load i64, ptr %3, align 8, !tbaa !9
  %141 = load i64, ptr %8, align 8, !tbaa !9
  %142 = sub nsw i64 %140, %141
  %143 = load i64, ptr %9, align 8, !tbaa !9
  %144 = load i64, ptr %5, align 8, !tbaa !9
  %145 = sub nsw i64 %143, %144
  %146 = mul nsw i64 %142, %145
  store i64 %146, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %167, %139
  %148 = load i32, ptr %12, align 4, !tbaa !5
  %149 = load i32, ptr @N, align 4, !tbaa !5
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %152, label %151

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

152:                                              ; preds = %147
  %153 = load i32, ptr %12, align 4, !tbaa !5
  %154 = load i32, ptr %4, align 4, !tbaa !5
  %155 = icmp eq i32 %153, %154
  br i1 %155, label %156, label %157

156:                                              ; preds = %152
  br label %167

157:                                              ; preds = %152
  %158 = load i64, ptr %5, align 8, !tbaa !9
  %159 = load i32, ptr %12, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %160
  %162 = load i64, ptr %161, align 8, !tbaa !9
  %163 = icmp eq i64 %158, %162
  br i1 %163, label %164, label %166

164:                                              ; preds = %157
  %165 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %165, ptr %6, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %164, %157
  br label %167

167:                                              ; preds = %166, %156
  %168 = load i32, ptr %12, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %12, align 4, !tbaa !5
  br label %147, !llvm.loop !15

170:                                              ; preds = %151
  %171 = load i32, ptr %4, align 4, !tbaa !5
  %172 = load i32, ptr %6, align 4, !tbaa !5
  %173 = icmp ne i32 %171, %172
  br i1 %173, label %174, label %403

174:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %175 = load i32, ptr %6, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %176
  %178 = load i64, ptr %177, align 8, !tbaa !9
  store i64 %178, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %179 = load i32, ptr %4, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %180
  %182 = load i64, ptr %181, align 8, !tbaa !9
  store i64 %182, ptr %16, align 8, !tbaa !9
  %183 = load i64, ptr %15, align 8, !tbaa !9
  %184 = load i64, ptr %16, align 8, !tbaa !9
  %185 = icmp slt i64 %183, %184
  br i1 %185, label %186, label %187

186:                                              ; preds = %174
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %187

187:                                              ; preds = %186, %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %227, %187
  %189 = load i32, ptr %17, align 4, !tbaa !5
  %190 = load i32, ptr @N, align 4, !tbaa !5
  %191 = icmp slt i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %231

193:                                              ; preds = %188
  %194 = load i32, ptr %17, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %195
  %197 = load i64, ptr %196, align 8, !tbaa !9
  %198 = load i64, ptr %15, align 8, !tbaa !9
  %199 = icmp sgt i64 %197, %198
  br i1 %199, label %200, label %226

200:                                              ; preds = %193
  %201 = load i64, ptr %16, align 8, !tbaa !9
  %202 = load i32, ptr %17, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %203
  %205 = load i64, ptr %204, align 8, !tbaa !9
  %206 = icmp sgt i64 %201, %205
  br i1 %206, label %207, label %226

207:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %208 = load i32, ptr %17, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %209
  invoke void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %18, ptr noundef nonnull align 8 dereferenceable(8) %210, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %211 unwind label %218

211:                                              ; preds = %207
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %212 unwind label %218

212:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %213 = load i32, ptr %17, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %214
  invoke void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef nonnull align 8 dereferenceable(8) %215, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %216 unwind label %222

216:                                              ; preds = %212
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(12) %21)
          to label %217 unwind label %222

217:                                              ; preds = %216
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %226

218:                                              ; preds = %211, %207
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %19, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  br label %230

222:                                              ; preds = %216, %212
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %19, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %230

226:                                              ; preds = %217, %200, %193
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %17, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %17, align 4, !tbaa !5
  br label %188, !llvm.loop !16

230:                                              ; preds = %222, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %402

231:                                              ; preds = %192
  %232 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIxiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br i1 %232, label %386, label %233

233:                                              ; preds = %231
  %234 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIxiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %235 = xor i1 %234, true
  br i1 %235, label %236, label %237

236:                                              ; preds = %233
  br label %239

237:                                              ; preds = %233
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 85, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

238:                                              ; No predecessors!
  br label %239

239:                                              ; preds = %238, %236
  %240 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %241 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %240, ptr %241, align 8
  %242 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %243 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %242, ptr %243, align 8
  %244 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %245 = load ptr, ptr %244, align 8
  %246 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %245, ptr %247)
          to label %248 unwind label %304

248:                                              ; preds = %239
  %249 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %250 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %249, ptr %250, align 8
  %251 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %252 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %251, ptr %252, align 8
  %253 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8
  %255 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %256 = load ptr, ptr %255, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %254, ptr %256)
          to label %257 unwind label %304

257:                                              ; preds = %248
  %258 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %259 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %258, ptr %259, align 8
  %260 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %261 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %260, ptr %261, align 8
  %262 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8
  %264 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %263, ptr %265)
          to label %266 unwind label %304

266:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %267 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %268 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %267, ptr %268, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %269 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %270 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %269, ptr %270, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %271 = load i64, ptr %15, align 8, !tbaa !9
  %272 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %273 = getelementptr inbounds %"struct.std::pair", ptr %272, i32 0, i32 0
  %274 = load i64, ptr %273, align 8, !tbaa !17
  %275 = sub nsw i64 %271, %274
  store i64 %275, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %276 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %277 = getelementptr inbounds %"struct.std::pair", ptr %276, i32 0, i32 0
  %278 = load i64, ptr %277, align 8, !tbaa !17
  %279 = load i64, ptr %16, align 8, !tbaa !9
  %280 = sub nsw i64 %278, %279
  store i64 %280, ptr %32, align 8, !tbaa !9
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %282 unwind label %308

282:                                              ; preds = %266
  %283 = load i64, ptr %281, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  store i64 %283, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %33) #8
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %33) #8
  br label %284

284:                                              ; preds = %363, %282
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %285 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %286 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %285, ptr %286, align 8
  %287 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br i1 %287, label %288, label %371

288:                                              ; preds = %284
  br label %289

289:                                              ; preds = %343, %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %290 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %291 = getelementptr inbounds %"struct.std::pair", ptr %290, i32 0, i32 1
  %292 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 4 dereferenceable(4) %291)
          to label %293 unwind label %312

293:                                              ; preds = %289
  %294 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %35, i32 0, i32 0
  store ptr %292, ptr %294, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %295 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %33) #8
  %296 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %36, i32 0, i32 0
  store ptr %295, ptr %296, align 8
  %297 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br i1 %297, label %298, label %346

298:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %299 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %300 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %299, ptr %300, align 8
  %301 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  br i1 %301, label %302, label %303

302:                                              ; preds = %298
  br label %317

303:                                              ; preds = %298
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 95, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

304:                                              ; preds = %257, %248, %239
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %19, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %20, align 4
  br label %402

308:                                              ; preds = %266
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %19, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %385

312:                                              ; preds = %289
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %19, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %384

316:                                              ; No predecessors!
  br label %317

317:                                              ; preds = %316, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  %318 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %319 = getelementptr inbounds %"struct.std::pair", ptr %318, i32 0, i32 1
  %320 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 4 dereferenceable(4) %319)
          to label %321 unwind label %335

321:                                              ; preds = %317
  %322 = getelementptr inbounds { ptr, i8 }, ptr %38, i32 0, i32 0
  %323 = extractvalue { ptr, i8 } %320, 0
  store ptr %323, ptr %322, align 8
  %324 = getelementptr inbounds { ptr, i8 }, ptr %38, i32 0, i32 1
  %325 = extractvalue { ptr, i8 } %320, 1
  store i8 %325, ptr %324, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %326 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %327 = getelementptr inbounds %"struct.std::pair", ptr %326, i32 0, i32 1
  %328 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 4 dereferenceable(4) %327)
          to label %329 unwind label %339

329:                                              ; preds = %321
  %330 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %39, i32 0, i32 0
  store ptr %328, ptr %330, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %331 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %33) #8
  %332 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %40, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  %333 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br i1 %333, label %334, label %343

334:                                              ; preds = %329
  br label %346

335:                                              ; preds = %317
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %19, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %20, align 4
  br label %384

339:                                              ; preds = %321
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %19, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %384

343:                                              ; preds = %329
  %344 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %29, i32 noundef 0) #8
  %345 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %344, ptr %345, align 8
  br label %289, !llvm.loop !19

346:                                              ; preds = %334, %293
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %347 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %348 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %347, ptr %348, align 8
  %349 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  br i1 %349, label %350, label %352

350:                                              ; preds = %346
  %351 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %351, ptr %42, align 8, !tbaa !9
  br label %356

352:                                              ; preds = %346
  %353 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %354 = getelementptr inbounds %"struct.std::pair", ptr %353, i32 0, i32 0
  %355 = load i64, ptr %354, align 8, !tbaa !17
  store i64 %355, ptr %42, align 8, !tbaa !9
  br label %356

356:                                              ; preds = %352, %350
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %357 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %358 = getelementptr inbounds %"struct.std::pair", ptr %357, i32 0, i32 0
  %359 = load i64, ptr %358, align 8, !tbaa !17
  %360 = load i64, ptr %42, align 8, !tbaa !9
  %361 = sub nsw i64 %359, %360
  store i64 %361, ptr %44, align 8, !tbaa !9
  %362 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %363 unwind label %367

363:                                              ; preds = %356
  %364 = load i64, ptr %362, align 8, !tbaa !9
  store i64 %364, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  %365 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %28, i32 noundef 0) #8
  %366 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %365, ptr %366, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %284, !llvm.loop !20

367:                                              ; preds = %356
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %19, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %384

371:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %372 = load i64, ptr %30, align 8, !tbaa !9
  %373 = load i64, ptr %3, align 8, !tbaa !9
  %374 = load i64, ptr %5, align 8, !tbaa !9
  %375 = sub nsw i64 %373, %374
  %376 = mul nsw i64 %372, %375
  store i64 %376, ptr %46, align 8, !tbaa !9
  %377 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %378 unwind label %380

378:                                              ; preds = %371
  %379 = load i64, ptr %377, align 8, !tbaa !9
  store i64 %379, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %33) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %401

380:                                              ; preds = %371
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %19, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  br label %384

384:                                              ; preds = %380, %367, %339, %335, %312
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %33) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #8
  br label %385

385:                                              ; preds = %384, %308
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %402

386:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %387 = load i64, ptr %3, align 8, !tbaa !9
  %388 = load i64, ptr %5, align 8, !tbaa !9
  %389 = sub nsw i64 %387, %388
  %390 = load i64, ptr %15, align 8, !tbaa !9
  %391 = load i64, ptr %16, align 8, !tbaa !9
  %392 = sub nsw i64 %390, %391
  %393 = mul nsw i64 %389, %392
  store i64 %393, ptr %47, align 8, !tbaa !9
  %394 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %395 unwind label %397

395:                                              ; preds = %386
  %396 = load i64, ptr %394, align 8, !tbaa !9
  store i64 %396, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %401

397:                                              ; preds = %386
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %19, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %402

401:                                              ; preds = %395, %378
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %403

402:                                              ; preds = %397, %385, %304, %230
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %408

403:                                              ; preds = %401, %170
  %404 = load i64, ptr %11, align 8, !tbaa !9
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %404)
  %406 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %405, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  %407 = load i32, ptr %1, align 4
  ret i32 %407

408:                                              ; preds = %402
  %409 = load ptr, ptr %19, align 8
  %410 = load i32, ptr %20, align 4
  %411 = insertvalue { ptr, i32 } poison, ptr %409, 0
  %412 = insertvalue { ptr, i32 } %411, i32 %410, 1
  resume { ptr, i32 } %412
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt4pairIxiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #7

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 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)) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSSt4pairIxiE", !10, i64 0, !6, i64 8}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_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 }

@N = external dso_local global i32, align 4
@x = external dso_local global [200010 x i64], align 16
@y = external dso_local global [200010 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::set", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %22 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %28 = load i32, ptr @N, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge98.thread

.preheader76:                                     ; preds = %40
  %30 = icmp sgt i32 %41, 0
  br i1 %30, label %.lr.ph84.preheader, label %._crit_edge98.thread

.lr.ph84.preheader:                               ; preds = %.preheader76
  %wide.trip.count = zext nneg i32 %41 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %31 = icmp eq i32 %41, 1
  br i1 %31, label %._crit_edge.unr-lcssa, label %.lr.ph84.preheader.new

.lr.ph84.preheader.new:                           ; preds = %.lr.ph84.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph84

.lr.ph:                                           ; preds = %0, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 0, %0 ]
  %32 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %indvars.iv
  %33 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %34 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %indvars.iv
  %35 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(8) %34)
  %36 = load i64, ptr %32, align 8, !tbaa !9
  %37 = load i64, ptr %34, align 8, !tbaa !9
  %38 = icmp slt i64 %36, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %.lr.ph
  tail call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %34) #9
  br label %40

40:                                               ; preds = %.lr.ph, %39
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr @N, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %.preheader76, !llvm.loop !11

._crit_edge98.thread:                             ; preds = %.preheader76, %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  store i64 1000000007, ptr %1, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store i64 0, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store i64 1000000014000000049, ptr %3, align 8, !tbaa !9
  br label %101

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph84, %.lr.ph84.preheader
  %spec.select.lcssa.ph = phi i32 [ poison, %.lr.ph84.preheader ], [ %spec.select.1, %.lr.ph84 ]
  %spec.select74.lcssa.ph = phi i64 [ poison, %.lr.ph84.preheader ], [ %spec.select74.1, %.lr.ph84 ]
  %.157.lcssa.ph = phi i32 [ poison, %.lr.ph84.preheader ], [ %.157.1, %.lr.ph84 ]
  %.155.lcssa.ph = phi i64 [ poison, %.lr.ph84.preheader ], [ %.155.1, %.lr.ph84 ]
  %indvars.iv108.unr = phi i64 [ 0, %.lr.ph84.preheader ], [ %indvars.iv.next109.1, %.lr.ph84 ]
  %.05183.unr = phi i64 [ 0, %.lr.ph84.preheader ], [ %spec.select74.1, %.lr.ph84 ]
  %.05282.unr = phi i32 [ undef, %.lr.ph84.preheader ], [ %spec.select.1, %.lr.ph84 ]
  %.05481.unr = phi i64 [ 1000000007, %.lr.ph84.preheader ], [ %.155.1, %.lr.ph84 ]
  %.05680.unr = phi i32 [ undef, %.lr.ph84.preheader ], [ %.157.1, %.lr.ph84 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph84.epil

.lr.ph84.epil:                                    ; preds = %._crit_edge.unr-lcssa
  %44 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %indvars.iv108.unr
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = icmp slt i64 %.05183.unr, %45
  %47 = trunc nuw nsw i64 %indvars.iv108.unr to i32
  %spec.select.epil = select i1 %46, i32 %47, i32 %.05282.unr
  %spec.select74.epil = tail call i64 @llvm.smax.i64(i64 %.05183.unr, i64 %45)
  %48 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %indvars.iv108.unr
  %49 = load i64, ptr %48, align 8, !tbaa !9
  %50 = icmp sgt i64 %.05481.unr, %49
  %.157.epil = select i1 %50, i32 %47, i32 %.05680.unr
  %.155.epil = tail call i64 @llvm.smin.i64(i64 %.05481.unr, i64 %49)
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph84.epil
  %spec.select.lcssa = phi i32 [ %spec.select.lcssa.ph, %._crit_edge.unr-lcssa ], [ %spec.select.epil, %.lr.ph84.epil ]
  %spec.select74.lcssa = phi i64 [ %spec.select74.lcssa.ph, %._crit_edge.unr-lcssa ], [ %spec.select74.epil, %.lr.ph84.epil ]
  %.157.lcssa = phi i32 [ %.157.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.157.epil, %.lr.ph84.epil ]
  %.155.lcssa = phi i64 [ %.155.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.155.epil, %.lr.ph84.epil ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  store i64 1000000007, ptr %1, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store i64 0, ptr %2, align 8, !tbaa !9
  br i1 %30, label %.lr.ph91, label %._crit_edge92

.lr.ph84:                                         ; preds = %.lr.ph84, %.lr.ph84.preheader.new
  %indvars.iv108 = phi i64 [ 0, %.lr.ph84.preheader.new ], [ %indvars.iv.next109.1, %.lr.ph84 ]
  %.05183 = phi i64 [ 0, %.lr.ph84.preheader.new ], [ %spec.select74.1, %.lr.ph84 ]
  %.05282 = phi i32 [ undef, %.lr.ph84.preheader.new ], [ %spec.select.1, %.lr.ph84 ]
  %.05481 = phi i64 [ 1000000007, %.lr.ph84.preheader.new ], [ %.155.1, %.lr.ph84 ]
  %.05680 = phi i32 [ undef, %.lr.ph84.preheader.new ], [ %.157.1, %.lr.ph84 ]
  %niter = phi i64 [ 0, %.lr.ph84.preheader.new ], [ %niter.next.1, %.lr.ph84 ]
  %51 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %indvars.iv108
  %52 = load i64, ptr %51, align 16, !tbaa !9
  %53 = icmp slt i64 %.05183, %52
  %54 = trunc nuw nsw i64 %indvars.iv108 to i32
  %spec.select = select i1 %53, i32 %54, i32 %.05282
  %spec.select74 = tail call i64 @llvm.smax.i64(i64 %.05183, i64 %52)
  %55 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %indvars.iv108
  %56 = load i64, ptr %55, align 16, !tbaa !9
  %57 = icmp sgt i64 %.05481, %56
  %.157 = select i1 %57, i32 %54, i32 %.05680
  %.155 = tail call i64 @llvm.smin.i64(i64 %.05481, i64 %56)
  %indvars.iv.next109 = or disjoint i64 %indvars.iv108, 1
  %58 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %indvars.iv.next109
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = icmp slt i64 %spec.select74, %59
  %61 = trunc nuw nsw i64 %indvars.iv.next109 to i32
  %spec.select.1 = select i1 %60, i32 %61, i32 %spec.select
  %spec.select74.1 = tail call i64 @llvm.smax.i64(i64 %spec.select74, i64 %59)
  %62 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %indvars.iv.next109
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = icmp sgt i64 %.155, %63
  %.157.1 = select i1 %64, i32 %61, i32 %.157
  %.155.1 = tail call i64 @llvm.smin.i64(i64 %.155, i64 %63)
  %indvars.iv.next109.1 = add nuw nsw i64 %indvars.iv108, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph84, !llvm.loop !13

._crit_edge92.loopexit:                           ; preds = %.lr.ph91
  %.pre = load i64, ptr %1, align 8, !tbaa !9
  br label %._crit_edge92

._crit_edge92:                                    ; preds = %._crit_edge92.loopexit, %._crit_edge
  %65 = phi i64 [ 0, %._crit_edge ], [ %78, %._crit_edge92.loopexit ]
  %66 = phi i64 [ 1000000007, %._crit_edge ], [ %.pre, %._crit_edge92.loopexit ]
  %.lcssa = phi i32 [ %41, %._crit_edge ], [ %79, %._crit_edge92.loopexit ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %67 = sub nsw i64 %spec.select74.lcssa, %66
  %68 = sub nsw i64 %65, %.155.lcssa
  %69 = mul nsw i64 %68, %67
  store i64 %69, ptr %3, align 8, !tbaa !9
  %70 = icmp sgt i32 %.lcssa, 0
  br i1 %70, label %.lr.ph97.preheader, label %._crit_edge98

.lr.ph97.preheader:                               ; preds = %._crit_edge92
  %71 = zext i32 %spec.select.lcssa to i64
  %wide.trip.count117 = zext nneg i32 %.lcssa to i64
  %xtraiter162 = and i64 %wide.trip.count117, 1
  %72 = icmp eq i32 %.lcssa, 1
  br i1 %72, label %._crit_edge98.loopexit.unr-lcssa, label %.lr.ph97.preheader.new

.lr.ph97.preheader.new:                           ; preds = %.lr.ph97.preheader
  %unroll_iter165 = and i64 %wide.trip.count117, 2147483646
  br label %.lr.ph97

.lr.ph91:                                         ; preds = %._crit_edge, %.lr.ph91
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph91 ], [ 0, %._crit_edge ]
  %73 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %indvars.iv111
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %73)
  %75 = load i64, ptr %74, align 8, !tbaa !9
  store i64 %75, ptr %1, align 8, !tbaa !9
  %76 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %indvars.iv111
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %76)
  %78 = load i64, ptr %77, align 8, !tbaa !9
  store i64 %78, ptr %2, align 8, !tbaa !9
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %79 = load i32, ptr @N, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv.next112, %80
  br i1 %81, label %.lr.ph91, label %._crit_edge92.loopexit, !llvm.loop !14

._crit_edge98.loopexit.unr-lcssa:                 ; preds = %100, %.lr.ph97.preheader
  %.3.lcssa.ph = phi i32 [ poison, %.lr.ph97.preheader ], [ %.3.1, %100 ]
  %indvars.iv114.unr = phi i64 [ 0, %.lr.ph97.preheader ], [ %indvars.iv.next115.1, %100 ]
  %.295.unr = phi i32 [ %.157.lcssa, %.lr.ph97.preheader ], [ %.3.1, %100 ]
  %lcmp.mod163.not = icmp eq i64 %xtraiter162, 0
  br i1 %lcmp.mod163.not, label %._crit_edge98, label %.lr.ph97.epil

.lr.ph97.epil:                                    ; preds = %._crit_edge98.loopexit.unr-lcssa
  %82 = icmp eq i64 %indvars.iv114.unr, %71
  br i1 %82, label %._crit_edge98, label %83

83:                                               ; preds = %.lr.ph97.epil
  %84 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %indvars.iv114.unr
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = icmp eq i64 %.155.lcssa, %85
  %87 = trunc nuw nsw i64 %indvars.iv114.unr to i32
  %spec.select75.epil = select i1 %86, i32 %87, i32 %.295.unr
  br label %._crit_edge98

._crit_edge98:                                    ; preds = %._crit_edge98.loopexit.unr-lcssa, %83, %.lr.ph97.epil, %._crit_edge92
  %.2.lcssa = phi i32 [ %.157.lcssa, %._crit_edge92 ], [ %.3.lcssa.ph, %._crit_edge98.loopexit.unr-lcssa ], [ %.295.unr, %.lr.ph97.epil ], [ %spec.select75.epil, %83 ]
  %.not = icmp eq i32 %spec.select.lcssa, %.2.lcssa
  br i1 %.not, label %229, label %101

.lr.ph97:                                         ; preds = %100, %.lr.ph97.preheader.new
  %indvars.iv114 = phi i64 [ 0, %.lr.ph97.preheader.new ], [ %indvars.iv.next115.1, %100 ]
  %.295 = phi i32 [ %.157.lcssa, %.lr.ph97.preheader.new ], [ %.3.1, %100 ]
  %niter166 = phi i64 [ 0, %.lr.ph97.preheader.new ], [ %niter166.next.1, %100 ]
  %88 = icmp eq i64 %indvars.iv114, %71
  br i1 %88, label %.lr.ph97.1, label %89

89:                                               ; preds = %.lr.ph97
  %90 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %indvars.iv114
  %91 = load i64, ptr %90, align 16, !tbaa !9
  %92 = icmp eq i64 %.155.lcssa, %91
  %93 = trunc nuw nsw i64 %indvars.iv114 to i32
  %spec.select75 = select i1 %92, i32 %93, i32 %.295
  br label %.lr.ph97.1

.lr.ph97.1:                                       ; preds = %89, %.lr.ph97
  %.3 = phi i32 [ %.295, %.lr.ph97 ], [ %spec.select75, %89 ]
  %indvars.iv.next115 = or disjoint i64 %indvars.iv114, 1
  %94 = icmp eq i64 %indvars.iv.next115, %71
  br i1 %94, label %100, label %95

95:                                               ; preds = %.lr.ph97.1
  %96 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %indvars.iv.next115
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = icmp eq i64 %.155.lcssa, %97
  %99 = trunc nuw nsw i64 %indvars.iv.next115 to i32
  %spec.select75.1 = select i1 %98, i32 %99, i32 %.3
  br label %100

100:                                              ; preds = %95, %.lr.ph97.1
  %.3.1 = phi i32 [ %.3, %.lr.ph97.1 ], [ %spec.select75.1, %95 ]
  %indvars.iv.next115.1 = add nuw nsw i64 %indvars.iv114, 2
  %niter166.next.1 = add i64 %niter166, 2
  %niter166.ncmp.1 = icmp eq i64 %niter166.next.1, %unroll_iter165
  br i1 %niter166.ncmp.1, label %._crit_edge98.loopexit.unr-lcssa, label %.lr.ph97, !llvm.loop !15

101:                                              ; preds = %._crit_edge98.thread, %._crit_edge98
  %.2.lcssa148 = phi i32 [ undef, %._crit_edge98.thread ], [ %.2.lcssa, %._crit_edge98 ]
  %.051.lcssa131137147 = phi i64 [ 0, %._crit_edge98.thread ], [ %spec.select74.lcssa, %._crit_edge98 ]
  %.052.lcssa130138146 = phi i32 [ undef, %._crit_edge98.thread ], [ %spec.select.lcssa, %._crit_edge98 ]
  %.054.lcssa129139145 = phi i64 [ 1000000007, %._crit_edge98.thread ], [ %.155.lcssa, %._crit_edge98 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %102 = sext i32 %.2.lcssa148 to i64
  %103 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !9
  store i64 %104, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %105 = sext i32 %.052.lcssa130138146 to i64
  %106 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !9
  store i64 %107, ptr %7, align 8, !tbaa !9
  %108 = icmp slt i64 %104, %107
  br i1 %108, label %109, label %110

109:                                              ; preds = %101
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br label %110

110:                                              ; preds = %109, %101
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 0, ptr %8, align 4, !tbaa !5
  %111 = load i32, ptr @N, align 4, !tbaa !5
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %.lr.ph102, label %._crit_edge103

._crit_edge103:                                   ; preds = %135, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  %113 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIxiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  br i1 %113, label %219, label %141

.lr.ph102:                                        ; preds = %110, %135
  %114 = phi i32 [ %136, %135 ], [ %111, %110 ]
  %storemerge100 = phi i32 [ %138, %135 ], [ 0, %110 ]
  %115 = sext i32 %storemerge100 to i64
  %116 = getelementptr inbounds [200010 x i64], ptr @x, i64 0, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = load i64, ptr %6, align 8, !tbaa !9
  %119 = icmp sgt i64 %117, %118
  br i1 %119, label %120, label %135

120:                                              ; preds = %.lr.ph102
  %121 = load i64, ptr %7, align 8, !tbaa !9
  %122 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %115
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = icmp sgt i64 %121, %123
  br i1 %124, label %125, label %135

125:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  call void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull align 4 dereferenceable(4) %8)
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(12) %9)
          to label %126 unwind label %131

126:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [200010 x i64], ptr @y, i64 0, i64 %128
  call void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull align 4 dereferenceable(4) %8)
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(12) %10)
          to label %130 unwind label %133

130:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  %.pre119 = load i32, ptr %8, align 4, !tbaa !5
  %.pre120 = load i32, ptr @N, align 4, !tbaa !5
  br label %135

131:                                              ; preds = %125
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  br label %140

133:                                              ; preds = %126
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %140

135:                                              ; preds = %.lr.ph102, %120, %130
  %136 = phi i32 [ %114, %.lr.ph102 ], [ %114, %120 ], [ %.pre120, %130 ]
  %137 = phi i32 [ %storemerge100, %.lr.ph102 ], [ %storemerge100, %120 ], [ %.pre119, %130 ]
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %8, align 4, !tbaa !5
  %139 = icmp slt i32 %138, %136
  br i1 %139, label %.lr.ph102, label %._crit_edge103, !llvm.loop !16

140:                                              ; preds = %133, %131
  %.pn71 = phi { ptr, i32 } [ %134, %133 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  br label %228

141:                                              ; preds = %._crit_edge103
  %142 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIxiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  br i1 %142, label %143, label %144

143:                                              ; preds = %141
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 85, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

144:                                              ; preds = %141
  %145 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %146 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %145, ptr %146)
          to label %147 unwind label %178

147:                                              ; preds = %144
  %148 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %149 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %148, ptr %149)
          to label %150 unwind label %178

150:                                              ; preds = %147
  %151 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %152 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %151, ptr %152)
          to label %153 unwind label %178

153:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %154 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %154, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %155 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  store ptr %155, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %156 = load i64, ptr %6, align 8, !tbaa !9
  %157 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %158 = load i64, ptr %157, align 8, !tbaa !17
  %159 = sub nsw i64 %156, %158
  store i64 %159, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %160 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %161 = load i64, ptr %160, align 8, !tbaa !17
  %162 = load i64, ptr %7, align 8, !tbaa !9
  %163 = sub nsw i64 %161, %162
  store i64 %163, ptr %15, align 8, !tbaa !9
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %165 = load i64, ptr %164, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  store i64 %165, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %16) #9
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %166 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %166, ptr %17, align 8
  %167 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  br i1 %167, label %.preheader, label %._crit_edge104

.preheader:                                       ; preds = %153, %.preheader.backedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %168 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %169 = getelementptr inbounds i8, ptr %168, i64 8
  %170 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 4 dereferenceable(4) %169)
          to label %171 unwind label %180

171:                                              ; preds = %.preheader
  store ptr %170, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  %172 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %16) #9
  store ptr %172, ptr %19, align 8
  %173 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br i1 %173, label %174, label %199

174:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %175 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  store ptr %175, ptr %20, align 8
  %176 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br i1 %176, label %182, label %177

177:                                              ; preds = %174
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 95, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

178:                                              ; preds = %150, %147, %144
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %228

180:                                              ; preds = %.preheader
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br label %218

182:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  %183 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %184 = getelementptr inbounds i8, ptr %183, i64 8
  %185 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 4 dereferenceable(4) %184)
          to label %186 unwind label %193

186:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  %187 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %188 = getelementptr inbounds i8, ptr %187, i64 8
  %189 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 4 dereferenceable(4) %188)
          to label %190 unwind label %195

190:                                              ; preds = %186
  store ptr %189, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  %191 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %16) #9
  store ptr %191, ptr %22, align 8
  %192 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  br i1 %192, label %199, label %197

193:                                              ; preds = %182
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %218

195:                                              ; preds = %186
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  br label %218

197:                                              ; preds = %190
  %198 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #9
  br label %.preheader.backedge

.preheader.backedge:                              ; preds = %197, %204
  br label %.preheader, !llvm.loop !19

199:                                              ; preds = %190, %171
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  %200 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  store ptr %200, ptr %23, align 8
  %201 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  br i1 %201, label %204, label %202

202:                                              ; preds = %199
  %203 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br label %204

204:                                              ; preds = %199, %202
  %.050.in = phi ptr [ %203, %202 ], [ %7, %199 ]
  %.050 = load i64, ptr %.050.in, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #9
  %205 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %206 = load i64, ptr %205, align 8, !tbaa !17
  %207 = sub nsw i64 %206, %.050
  store i64 %207, ptr %24, align 8, !tbaa !9
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %209 = load i64, ptr %208, align 8, !tbaa !9
  store i64 %209, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  %210 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %211 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %211, ptr %17, align 8
  %212 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  br i1 %212, label %.preheader.backedge, label %._crit_edge104.loopexit

._crit_edge104.loopexit:                          ; preds = %204
  %.pre121 = load i64, ptr %13, align 8, !tbaa !9
  br label %._crit_edge104

._crit_edge104:                                   ; preds = %._crit_edge104.loopexit, %153
  %213 = phi i64 [ %.pre121, %._crit_edge104.loopexit ], [ %165, %153 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #9
  %214 = sub nsw i64 %.051.lcssa131137147, %.054.lcssa129139145
  %215 = mul nsw i64 %213, %214
  store i64 %215, ptr %25, align 8, !tbaa !9
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %217 = load i64, ptr %216, align 8, !tbaa !9
  store i64 %217, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #9
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %227

218:                                              ; preds = %195, %193, %180
  %.pn = phi { ptr, i32 } [ %196, %195 ], [ %194, %193 ], [ %181, %180 ]
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %228

219:                                              ; preds = %._crit_edge103
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #9
  %220 = sub nsw i64 %.051.lcssa131137147, %.054.lcssa129139145
  %221 = load i64, ptr %6, align 8, !tbaa !9
  %222 = load i64, ptr %7, align 8, !tbaa !9
  %223 = sub nsw i64 %221, %222
  %224 = mul nsw i64 %223, %220
  store i64 %224, ptr %26, align 8, !tbaa !9
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %226 = load i64, ptr %225, align 8, !tbaa !9
  store i64 %226, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  br label %227

227:                                              ; preds = %219, %._crit_edge104
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  %.pre122 = load i64, ptr %3, align 8, !tbaa !9
  br label %229

228:                                              ; preds = %218, %178, %140
  %.pn71.pn = phi { ptr, i32 } [ %.pn71, %140 ], [ %.pn, %218 ], [ %179, %178 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn71.pn

229:                                              ; preds = %227, %._crit_edge98
  %230 = phi i64 [ %.pre122, %227 ], [ %69, %._crit_edge98 ]
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %230)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt4pairIxiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxltIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSSt4pairIxiE", !10, i64 0, !6, i64 8}
!19 = distinct !{!19, !12}


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