; LLVM IR from lzyrapx/Competitive-Programming :: 百度之星/2019 (1003)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long double, int>, std::allocator<std::pair<long double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long double, int>, std::allocator<std::pair<long double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long double, int>, std::allocator<std::pair<long double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long double, int>, std::allocator<std::pair<long double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, 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_iterator" = type { ptr }
%"struct.std::pair.3" = type <{ x86_fp80, i32, [12 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree.5" }
%"class.std::_Rb_tree.5" = type { %"struct.std::_Rb_tree<std::pair<long double, int>, std::pair<long double, int>, std::_Identity<std::pair<long double, int>>, std::less<std::pair<long double, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long double, int>, std::pair<long double, int>, std::_Identity<std::pair<long double, int>>, std::less<std::pair<long double, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.10" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i32, i32 }

@ve = external dso_local global [260100 x %"class.std::vector"], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@x1 = external dso_local global [510 x i32], align 16
@y11 = external dso_local global [510 x i32], align 16
@x2 = external dso_local global [510 x i32], align 16
@y2 = external dso_local global [510 x i32], align 16
@Left = external dso_local global [510 x [510 x i32]], align 16
@Right = external dso_local global [510 x [510 x i32]], align 16
@up = external dso_local global [510 x [510 x i32]], align 16
@down = external dso_local global [510 x [510 x i32]], align 16
@tx = external dso_local global [510 x x86_fp80], align 16
@ty = external dso_local global [510 x x86_fp80], align 16
@ans = external dso_local global [260100 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3dirii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::map", align 8
  %7 = alloca %"class.std::map", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"struct.std::pair.3", align 16
  %34 = alloca x86_fp80, align 16
  %35 = alloca i32, align 4
  %36 = alloca %"struct.std::pair.3", align 16
  %37 = alloca x86_fp80, align 16
  %38 = alloca i32, align 4
  %39 = alloca %"struct.std::pair.3", align 16
  %40 = alloca x86_fp80, align 16
  %41 = alloca i32, align 4
  %42 = alloca %"struct.std::pair.3", align 16
  %43 = alloca x86_fp80, align 16
  %44 = alloca i32, align 4
  %45 = alloca %"class.std::set", align 8
  %46 = alloca i32, align 4
  %47 = alloca %"struct.std::pair.3", align 16
  %48 = alloca %"struct.std::pair.10", align 8
  %49 = alloca i32, align 4
  %50 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %51 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %52 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %53 = alloca ptr, align 8
  %54 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %55 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %56 = alloca ptr, align 8
  %57 = alloca %"struct.std::pair.3", align 16
  %58 = alloca %"struct.std::pair.3", align 16
  %59 = alloca %"struct.std::pair.10", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %60 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %61

61:                                               ; preds = %717, %2
  %62 = load i32, ptr @t, align 4, !tbaa !5
  %63 = add nsw i32 %62, -1
  store i32 %63, ptr @t, align 4, !tbaa !5
  %64 = icmp ne i32 %62, 0
  br i1 %64, label %65, label %724

65:                                               ; preds = %61
  store i32 0, ptr @m, align 4, !tbaa !5
  store i32 0, ptr @n, align 4, !tbaa !5
  %66 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @k)
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #6
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #6
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %87, %65
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = load i32, ptr @k, align 4, !tbaa !5
  %70 = icmp sle i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %94

72:                                               ; preds = %67
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [510 x i32], ptr @x1, i64 0, i64 %74
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [510 x i32], ptr @y11, i64 0, i64 %77
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [510 x i32], ptr @x2, i64 0, i64 %80
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [510 x i32], ptr @y2, i64 0, i64 %83
  %85 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %75, ptr noundef %78, ptr noundef %81, ptr noundef %84)
          to label %86 unwind label %90

86:                                               ; preds = %72
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %8, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %8, align 4, !tbaa !5
  br label %67, !llvm.loop !11

90:                                               ; preds = %72
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %723

94:                                               ; preds = %71
  %95 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @x1, ptr noundef @y11, ptr noundef @x2, ptr noundef @y2)
          to label %96 unwind label %102

96:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %127, %96
  %98 = load i32, ptr %11, align 4, !tbaa !5
  %99 = load i32, ptr @k, align 4, !tbaa !5
  %100 = icmp sle i32 %98, %99
  br i1 %100, label %106, label %101

101:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %134

102:                                              ; preds = %94
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %9, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %10, align 4
  br label %723

106:                                              ; preds = %97
  %107 = load i32, ptr %11, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [510 x i32], ptr @x1, i64 0, i64 %108
  %110 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %109)
          to label %111 unwind label %130

111:                                              ; preds = %106
  store i32 0, ptr %110, align 4, !tbaa !5
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [510 x i32], ptr @x2, i64 0, i64 %113
  %115 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %114)
          to label %116 unwind label %130

116:                                              ; preds = %111
  store i32 0, ptr %115, align 4, !tbaa !5
  %117 = load i32, ptr %11, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [510 x i32], ptr @y11, i64 0, i64 %118
  %120 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %119)
          to label %121 unwind label %130

121:                                              ; preds = %116
  store i32 0, ptr %120, align 4, !tbaa !5
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [510 x i32], ptr @y2, i64 0, i64 %123
  %125 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %124)
          to label %126 unwind label %130

126:                                              ; preds = %121
  store i32 0, ptr %125, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %11, align 4, !tbaa !5
  br label %97, !llvm.loop !13

130:                                              ; preds = %121, %116, %111, %106
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %9, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %723

134:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr %6, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %135 = load ptr, ptr %12, align 8, !tbaa !9
  %136 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %135) #6
  %137 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %138 = load ptr, ptr %12, align 8, !tbaa !9
  %139 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %138) #6
  %140 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  br label %141

141:                                              ; preds = %158, %134
  %142 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %142, label %144, label %143

143:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %160

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %145 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  store ptr %145, ptr %15, align 8, !tbaa !9
  %146 = load ptr, ptr %15, align 8, !tbaa !9
  %147 = getelementptr inbounds %"struct.std::pair", ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 4, !tbaa !14
  %149 = sitofp i32 %148 to x86_fp80
  %150 = load i32, ptr @n, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %151
  store x86_fp80 %149, ptr %152, align 16, !tbaa !16
  %153 = load i32, ptr @n, align 4, !tbaa !5
  %154 = load ptr, ptr %15, align 8, !tbaa !9
  %155 = getelementptr inbounds %"struct.std::pair", ptr %154, i32 0, i32 1
  store i32 %153, ptr %155, align 4, !tbaa !18
  %156 = load i32, ptr @n, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %158

158:                                              ; preds = %144
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %141

160:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr %7, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %161 = load ptr, ptr %16, align 8, !tbaa !9
  %162 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %161) #6
  %163 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  store ptr %162, ptr %163, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %164 = load ptr, ptr %16, align 8, !tbaa !9
  %165 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %164) #6
  %166 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  br label %167

167:                                              ; preds = %184, %160
  %168 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %168, label %170, label %169

169:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %186

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %171 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  store ptr %171, ptr %19, align 8, !tbaa !9
  %172 = load ptr, ptr %19, align 8, !tbaa !9
  %173 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 4, !tbaa !14
  %175 = sitofp i32 %174 to x86_fp80
  %176 = load i32, ptr @m, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %177
  store x86_fp80 %175, ptr %178, align 16, !tbaa !16
  %179 = load i32, ptr @m, align 4, !tbaa !5
  %180 = load ptr, ptr %19, align 8, !tbaa !9
  %181 = getelementptr inbounds %"struct.std::pair", ptr %180, i32 0, i32 1
  store i32 %179, ptr %181, align 4, !tbaa !18
  %182 = load i32, ptr @m, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %184

184:                                              ; preds = %170
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %167

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

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

191:                                              ; preds = %187
  store i32 14, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %230

192:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %193

193:                                              ; preds = %223, %192
  %194 = load i32, ptr %22, align 4, !tbaa !5
  %195 = load i32, ptr @m, align 4, !tbaa !5
  %196 = icmp slt i32 %194, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %193
  store i32 17, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %226

198:                                              ; preds = %193
  %199 = load i32, ptr %20, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %200
  %202 = load i32, ptr %22, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [510 x i32], ptr %201, i64 0, i64 %203
  store i32 0, ptr %204, align 4, !tbaa !5
  %205 = load i32, ptr %20, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [510 x [510 x i32]], ptr @Left, i64 0, i64 %206
  %208 = load i32, ptr %22, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [510 x i32], ptr %207, i64 0, i64 %209
  store i32 0, ptr %210, align 4, !tbaa !5
  %211 = load i32, ptr %20, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %212
  %214 = load i32, ptr %22, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [510 x i32], ptr %213, i64 0, i64 %215
  store i32 0, ptr %216, align 4, !tbaa !5
  %217 = load i32, ptr %20, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [510 x [510 x i32]], ptr @up, i64 0, i64 %218
  %220 = load i32, ptr %22, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [510 x i32], ptr %219, i64 0, i64 %221
  store i32 0, ptr %222, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %198
  %224 = load i32, ptr %22, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %22, align 4, !tbaa !5
  br label %193, !llvm.loop !19

226:                                              ; preds = %197
  br label %227

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

230:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %242, %230
  %232 = load i32, ptr %23, align 4, !tbaa !5
  %233 = load i32, ptr @n, align 4, !tbaa !5
  %234 = load i32, ptr @m, align 4, !tbaa !5
  %235 = mul nsw i32 %233, %234
  %236 = icmp slt i32 %232, %235
  br i1 %236, label %238, label %237

237:                                              ; preds = %231
  store i32 20, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %245

238:                                              ; preds = %231
  %239 = load i32, ptr %23, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %240
  call void @_ZNSt6vectorISt4pairIeiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %241) #6
  br label %242

242:                                              ; preds = %238
  %243 = load i32, ptr %23, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %23, align 4, !tbaa !5
  br label %231, !llvm.loop !21

245:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %366, %245
  %247 = load i32, ptr %24, align 4, !tbaa !5
  %248 = load i32, ptr @k, align 4, !tbaa !5
  %249 = icmp sle i32 %247, %248
  br i1 %249, label %251, label %250

250:                                              ; preds = %246
  store i32 23, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %372

251:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %252 = load i32, ptr %24, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [510 x i32], ptr @x1, i64 0, i64 %253
  %255 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %254)
          to label %256 unwind label %282

256:                                              ; preds = %251
  %257 = load i32, ptr %255, align 4, !tbaa !5
  store i32 %257, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %258 = load i32, ptr %24, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [510 x i32], ptr @x2, i64 0, i64 %259
  %261 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %260)
          to label %262 unwind label %286

262:                                              ; preds = %256
  %263 = load i32, ptr %261, align 4, !tbaa !5
  store i32 %263, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %264 = load i32, ptr %24, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [510 x i32], ptr @y11, i64 0, i64 %265
  %267 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %266)
          to label %268 unwind label %290

268:                                              ; preds = %262
  %269 = load i32, ptr %267, align 4, !tbaa !5
  store i32 %269, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %270 = load i32, ptr %24, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [510 x i32], ptr @y2, i64 0, i64 %271
  %273 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %272)
          to label %274 unwind label %294

274:                                              ; preds = %268
  %275 = load i32, ptr %273, align 4, !tbaa !5
  store i32 %275, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %276 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %276, ptr %29, align 4, !tbaa !5
  br label %277

277:                                              ; preds = %362, %274
  %278 = load i32, ptr %29, align 4, !tbaa !5
  %279 = load i32, ptr %26, align 4, !tbaa !5
  %280 = icmp sle i32 %278, %279
  br i1 %280, label %298, label %281

281:                                              ; preds = %277
  store i32 26, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %365

282:                                              ; preds = %251
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %9, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %10, align 4
  br label %371

286:                                              ; preds = %256
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %9, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %10, align 4
  br label %370

290:                                              ; preds = %262
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %9, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %10, align 4
  br label %369

294:                                              ; preds = %268
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %9, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %369

298:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %299 = load i32, ptr %27, align 4, !tbaa !5
  store i32 %299, ptr %30, align 4, !tbaa !5
  br label %300

300:                                              ; preds = %358, %298
  %301 = load i32, ptr %30, align 4, !tbaa !5
  %302 = load i32, ptr %28, align 4, !tbaa !5
  %303 = icmp sle i32 %301, %302
  br i1 %303, label %305, label %304

304:                                              ; preds = %300
  store i32 29, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %361

305:                                              ; preds = %300
  %306 = load i32, ptr %30, align 4, !tbaa !5
  %307 = load i32, ptr %27, align 4, !tbaa !5
  %308 = icmp sgt i32 %306, %307
  br i1 %308, label %309, label %318

309:                                              ; preds = %305
  %310 = load i32, ptr %29, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [510 x [510 x i32]], ptr @Left, i64 0, i64 %311
  %313 = load i32, ptr %30, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [510 x i32], ptr %312, i64 0, i64 %314
  %316 = load i32, ptr %315, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %315, align 4, !tbaa !5
  br label %318

318:                                              ; preds = %309, %305
  %319 = load i32, ptr %30, align 4, !tbaa !5
  %320 = load i32, ptr %28, align 4, !tbaa !5
  %321 = icmp slt i32 %319, %320
  br i1 %321, label %322, label %331

322:                                              ; preds = %318
  %323 = load i32, ptr %29, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %324
  %326 = load i32, ptr %30, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [510 x i32], ptr %325, i64 0, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %328, align 4, !tbaa !5
  br label %331

331:                                              ; preds = %322, %318
  %332 = load i32, ptr %29, align 4, !tbaa !5
  %333 = load i32, ptr %25, align 4, !tbaa !5
  %334 = icmp sgt i32 %332, %333
  br i1 %334, label %335, label %344

335:                                              ; preds = %331
  %336 = load i32, ptr %29, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [510 x [510 x i32]], ptr @up, i64 0, i64 %337
  %339 = load i32, ptr %30, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [510 x i32], ptr %338, i64 0, i64 %340
  %342 = load i32, ptr %341, align 4, !tbaa !5
  %343 = add nsw i32 %342, 1
  store i32 %343, ptr %341, align 4, !tbaa !5
  br label %344

344:                                              ; preds = %335, %331
  %345 = load i32, ptr %29, align 4, !tbaa !5
  %346 = load i32, ptr %26, align 4, !tbaa !5
  %347 = icmp slt i32 %345, %346
  br i1 %347, label %348, label %357

348:                                              ; preds = %344
  %349 = load i32, ptr %29, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %350
  %352 = load i32, ptr %30, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [510 x i32], ptr %351, i64 0, i64 %353
  %355 = load i32, ptr %354, align 4, !tbaa !5
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %354, align 4, !tbaa !5
  br label %357

357:                                              ; preds = %348, %344
  br label %358

358:                                              ; preds = %357
  %359 = load i32, ptr %30, align 4, !tbaa !5
  %360 = add nsw i32 %359, 1
  store i32 %360, ptr %30, align 4, !tbaa !5
  br label %300, !llvm.loop !22

361:                                              ; preds = %304
  br label %362

362:                                              ; preds = %361
  %363 = load i32, ptr %29, align 4, !tbaa !5
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %29, align 4, !tbaa !5
  br label %277, !llvm.loop !23

365:                                              ; preds = %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %24, align 4, !tbaa !5
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %24, align 4, !tbaa !5
  br label %246, !llvm.loop !24

369:                                              ; preds = %294, %290
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %370

370:                                              ; preds = %369, %286
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %371

371:                                              ; preds = %370, %282
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %723

372:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %373

373:                                              ; preds = %550, %372
  %374 = load i32, ptr %31, align 4, !tbaa !5
  %375 = load i32, ptr @n, align 4, !tbaa !5
  %376 = icmp slt i32 %374, %375
  br i1 %376, label %378, label %377

377:                                              ; preds = %373
  store i32 32, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %553

378:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %379

379:                                              ; preds = %545, %378
  %380 = load i32, ptr %32, align 4, !tbaa !5
  %381 = load i32, ptr @m, align 4, !tbaa !5
  %382 = icmp slt i32 %380, %381
  br i1 %382, label %384, label %383

383:                                              ; preds = %379
  store i32 35, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %549

384:                                              ; preds = %379
  %385 = load i32, ptr %31, align 4, !tbaa !5
  %386 = icmp sgt i32 %385, 0
  br i1 %386, label %387, label %423

387:                                              ; preds = %384
  %388 = load i32, ptr %31, align 4, !tbaa !5
  %389 = load i32, ptr %32, align 4, !tbaa !5
  %390 = call noundef i32 @_Z3dirii(i32 noundef %388, i32 noundef %389)
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %391
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %393 = load i32, ptr %31, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %394
  %396 = load x86_fp80, ptr %395, align 16, !tbaa !16
  %397 = load i32, ptr %31, align 4, !tbaa !5
  %398 = sub nsw i32 %397, 1
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %399
  %401 = load x86_fp80, ptr %400, align 16, !tbaa !16
  %402 = fsub x86_fp80 %396, %401
  %403 = load i32, ptr %31, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [510 x [510 x i32]], ptr @up, i64 0, i64 %404
  %406 = load i32, ptr %32, align 4, !tbaa !5
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [510 x i32], ptr %405, i64 0, i64 %407
  %409 = load i32, ptr %408, align 4, !tbaa !5
  %410 = add nsw i32 %409, 1
  %411 = sitofp i32 %410 to x86_fp80
  %412 = fdiv x86_fp80 %402, %411
  store x86_fp80 %412, ptr %34, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %413 = load i32, ptr %31, align 4, !tbaa !5
  %414 = sub nsw i32 %413, 1
  %415 = load i32, ptr %32, align 4, !tbaa !5
  %416 = call noundef i32 @_Z3dirii(i32 noundef %414, i32 noundef %415)
  store i32 %416, ptr %35, align 4, !tbaa !5
  invoke void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %33, ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %417 unwind label %419

417:                                              ; preds = %387
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %392, ptr noundef nonnull align 16 dereferenceable(20) %33)
          to label %418 unwind label %419

418:                                              ; preds = %417
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  br label %423

419:                                              ; preds = %417, %387
  %420 = landingpad { ptr, i32 }
          cleanup
  %421 = extractvalue { ptr, i32 } %420, 0
  store ptr %421, ptr %9, align 8
  %422 = extractvalue { ptr, i32 } %420, 1
  store i32 %422, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  br label %548

423:                                              ; preds = %418, %384
  %424 = load i32, ptr %31, align 4, !tbaa !5
  %425 = load i32, ptr @n, align 4, !tbaa !5
  %426 = sub nsw i32 %425, 1
  %427 = icmp slt i32 %424, %426
  br i1 %427, label %428, label %464

428:                                              ; preds = %423
  %429 = load i32, ptr %31, align 4, !tbaa !5
  %430 = load i32, ptr %32, align 4, !tbaa !5
  %431 = call noundef i32 @_Z3dirii(i32 noundef %429, i32 noundef %430)
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %432
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %434 = load i32, ptr %31, align 4, !tbaa !5
  %435 = add nsw i32 %434, 1
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %436
  %438 = load x86_fp80, ptr %437, align 16, !tbaa !16
  %439 = load i32, ptr %31, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %440
  %442 = load x86_fp80, ptr %441, align 16, !tbaa !16
  %443 = fsub x86_fp80 %438, %442
  %444 = load i32, ptr %31, align 4, !tbaa !5
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %445
  %447 = load i32, ptr %32, align 4, !tbaa !5
  %448 = sext i32 %447 to i64
  %449 = getelementptr inbounds [510 x i32], ptr %446, i64 0, i64 %448
  %450 = load i32, ptr %449, align 4, !tbaa !5
  %451 = add nsw i32 %450, 1
  %452 = sitofp i32 %451 to x86_fp80
  %453 = fdiv x86_fp80 %443, %452
  store x86_fp80 %453, ptr %37, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %454 = load i32, ptr %31, align 4, !tbaa !5
  %455 = add nsw i32 %454, 1
  %456 = load i32, ptr %32, align 4, !tbaa !5
  %457 = call noundef i32 @_Z3dirii(i32 noundef %455, i32 noundef %456)
  store i32 %457, ptr %38, align 4, !tbaa !5
  invoke void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %36, ptr noundef nonnull align 16 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %458 unwind label %460

458:                                              ; preds = %428
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %433, ptr noundef nonnull align 16 dereferenceable(20) %36)
          to label %459 unwind label %460

459:                                              ; preds = %458
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #6
  br label %464

460:                                              ; preds = %458, %428
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %9, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #6
  br label %548

464:                                              ; preds = %459, %423
  %465 = load i32, ptr %32, align 4, !tbaa !5
  %466 = icmp sgt i32 %465, 0
  br i1 %466, label %467, label %503

467:                                              ; preds = %464
  %468 = load i32, ptr %31, align 4, !tbaa !5
  %469 = load i32, ptr %32, align 4, !tbaa !5
  %470 = call noundef i32 @_Z3dirii(i32 noundef %468, i32 noundef %469)
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %471
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  %473 = load i32, ptr %32, align 4, !tbaa !5
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %474
  %476 = load x86_fp80, ptr %475, align 16, !tbaa !16
  %477 = load i32, ptr %32, align 4, !tbaa !5
  %478 = sub nsw i32 %477, 1
  %479 = sext i32 %478 to i64
  %480 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %479
  %481 = load x86_fp80, ptr %480, align 16, !tbaa !16
  %482 = fsub x86_fp80 %476, %481
  %483 = load i32, ptr %31, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [510 x [510 x i32]], ptr @Left, i64 0, i64 %484
  %486 = load i32, ptr %32, align 4, !tbaa !5
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds [510 x i32], ptr %485, i64 0, i64 %487
  %489 = load i32, ptr %488, align 4, !tbaa !5
  %490 = add nsw i32 %489, 1
  %491 = sitofp i32 %490 to x86_fp80
  %492 = fdiv x86_fp80 %482, %491
  store x86_fp80 %492, ptr %40, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %493 = load i32, ptr %31, align 4, !tbaa !5
  %494 = load i32, ptr %32, align 4, !tbaa !5
  %495 = sub nsw i32 %494, 1
  %496 = call noundef i32 @_Z3dirii(i32 noundef %493, i32 noundef %495)
  store i32 %496, ptr %41, align 4, !tbaa !5
  invoke void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %39, ptr noundef nonnull align 16 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %497 unwind label %499

497:                                              ; preds = %467
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %472, ptr noundef nonnull align 16 dereferenceable(20) %39)
          to label %498 unwind label %499

498:                                              ; preds = %497
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  br label %503

499:                                              ; preds = %497, %467
  %500 = landingpad { ptr, i32 }
          cleanup
  %501 = extractvalue { ptr, i32 } %500, 0
  store ptr %501, ptr %9, align 8
  %502 = extractvalue { ptr, i32 } %500, 1
  store i32 %502, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  br label %548

503:                                              ; preds = %498, %464
  %504 = load i32, ptr %32, align 4, !tbaa !5
  %505 = load i32, ptr @m, align 4, !tbaa !5
  %506 = sub nsw i32 %505, 1
  %507 = icmp slt i32 %504, %506
  br i1 %507, label %508, label %544

508:                                              ; preds = %503
  %509 = load i32, ptr %31, align 4, !tbaa !5
  %510 = load i32, ptr %32, align 4, !tbaa !5
  %511 = call noundef i32 @_Z3dirii(i32 noundef %509, i32 noundef %510)
  %512 = sext i32 %511 to i64
  %513 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %512
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #6
  %514 = load i32, ptr %32, align 4, !tbaa !5
  %515 = add nsw i32 %514, 1
  %516 = sext i32 %515 to i64
  %517 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %516
  %518 = load x86_fp80, ptr %517, align 16, !tbaa !16
  %519 = load i32, ptr %32, align 4, !tbaa !5
  %520 = sext i32 %519 to i64
  %521 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %520
  %522 = load x86_fp80, ptr %521, align 16, !tbaa !16
  %523 = fsub x86_fp80 %518, %522
  %524 = load i32, ptr %31, align 4, !tbaa !5
  %525 = sext i32 %524 to i64
  %526 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %525
  %527 = load i32, ptr %32, align 4, !tbaa !5
  %528 = sext i32 %527 to i64
  %529 = getelementptr inbounds [510 x i32], ptr %526, i64 0, i64 %528
  %530 = load i32, ptr %529, align 4, !tbaa !5
  %531 = add nsw i32 %530, 1
  %532 = sitofp i32 %531 to x86_fp80
  %533 = fdiv x86_fp80 %523, %532
  store x86_fp80 %533, ptr %43, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  %534 = load i32, ptr %31, align 4, !tbaa !5
  %535 = load i32, ptr %32, align 4, !tbaa !5
  %536 = add nsw i32 %535, 1
  %537 = call noundef i32 @_Z3dirii(i32 noundef %534, i32 noundef %536)
  store i32 %537, ptr %44, align 4, !tbaa !5
  invoke void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %42, ptr noundef nonnull align 16 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %538 unwind label %540

538:                                              ; preds = %508
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %513, ptr noundef nonnull align 16 dereferenceable(20) %42)
          to label %539 unwind label %540

539:                                              ; preds = %538
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  br label %544

540:                                              ; preds = %538, %508
  %541 = landingpad { ptr, i32 }
          cleanup
  %542 = extractvalue { ptr, i32 } %541, 0
  store ptr %542, ptr %9, align 8
  %543 = extractvalue { ptr, i32 } %541, 1
  store i32 %543, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  br label %548

544:                                              ; preds = %539, %503
  br label %545

545:                                              ; preds = %544
  %546 = load i32, ptr %32, align 4, !tbaa !5
  %547 = add nsw i32 %546, 1
  store i32 %547, ptr %32, align 4, !tbaa !5
  br label %379, !llvm.loop !25

548:                                              ; preds = %540, %499, %460, %419
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %723

549:                                              ; preds = %383
  br label %550

550:                                              ; preds = %549
  %551 = load i32, ptr %31, align 4, !tbaa !5
  %552 = add nsw i32 %551, 1
  store i32 %552, ptr %31, align 4, !tbaa !5
  br label %373, !llvm.loop !26

553:                                              ; preds = %377
  call void @llvm.lifetime.start.p0(i64 48, ptr %45) #6
  call void @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %554

554:                                              ; preds = %594, %553
  %555 = load i32, ptr %46, align 4, !tbaa !5
  %556 = load i32, ptr @n, align 4, !tbaa !5
  %557 = load i32, ptr @m, align 4, !tbaa !5
  %558 = mul nsw i32 %556, %557
  %559 = icmp slt i32 %555, %558
  br i1 %559, label %561, label %560

560:                                              ; preds = %554
  store i32 38, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  br label %602

561:                                              ; preds = %554
  %562 = load i32, ptr %46, align 4, !tbaa !5
  %563 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) @x1)
          to label %564 unwind label %575

564:                                              ; preds = %561
  %565 = load i32, ptr %563, align 4, !tbaa !5
  %566 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) @y11)
          to label %567 unwind label %575

567:                                              ; preds = %564
  %568 = load i32, ptr %566, align 4, !tbaa !5
  %569 = call noundef i32 @_Z3dirii(i32 noundef %565, i32 noundef %568)
  %570 = icmp eq i32 %562, %569
  br i1 %570, label %571, label %579

571:                                              ; preds = %567
  %572 = load i32, ptr %46, align 4, !tbaa !5
  %573 = sext i32 %572 to i64
  %574 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %573
  store x86_fp80 0xK00000000000000000000, ptr %574, align 16, !tbaa !16
  br label %583

575:                                              ; preds = %564, %561
  %576 = landingpad { ptr, i32 }
          cleanup
  %577 = extractvalue { ptr, i32 } %576, 0
  store ptr %577, ptr %9, align 8
  %578 = extractvalue { ptr, i32 } %576, 1
  store i32 %578, ptr %10, align 4
  br label %601

579:                                              ; preds = %567
  %580 = load i32, ptr %46, align 4, !tbaa !5
  %581 = sext i32 %580 to i64
  %582 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %581
  store x86_fp80 0xK4041AD78EBC5AC620000, ptr %582, align 16, !tbaa !16
  br label %583

583:                                              ; preds = %579, %571
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #6
  %584 = load i32, ptr %46, align 4, !tbaa !5
  %585 = sext i32 %584 to i64
  %586 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %585
  invoke void @_ZNSt4pairIeiEC2IReRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(20) %47, ptr noundef nonnull align 16 dereferenceable(16) %586, ptr noundef nonnull align 4 dereferenceable(4) %46)
          to label %587 unwind label %597

587:                                              ; preds = %583
  %588 = invoke { ptr, i8 } @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr noundef nonnull align 16 dereferenceable(20) %47)
          to label %589 unwind label %597

589:                                              ; preds = %587
  %590 = getelementptr inbounds { ptr, i8 }, ptr %48, i32 0, i32 0
  %591 = extractvalue { ptr, i8 } %588, 0
  store ptr %591, ptr %590, align 8
  %592 = getelementptr inbounds { ptr, i8 }, ptr %48, i32 0, i32 1
  %593 = extractvalue { ptr, i8 } %588, 1
  store i8 %593, ptr %592, align 8
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #6
  br label %594

594:                                              ; preds = %589
  %595 = load i32, ptr %46, align 4, !tbaa !5
  %596 = add nsw i32 %595, 1
  store i32 %596, ptr %46, align 4, !tbaa !5
  br label %554, !llvm.loop !27

597:                                              ; preds = %587, %583
  %598 = landingpad { ptr, i32 }
          cleanup
  %599 = extractvalue { ptr, i32 } %598, 0
  store ptr %599, ptr %9, align 8
  %600 = extractvalue { ptr, i32 } %598, 1
  store i32 %600, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #6
  br label %601

601:                                              ; preds = %597, %575
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  br label %722

602:                                              ; preds = %560
  br label %603

603:                                              ; preds = %702, %602
  %604 = call noundef zeroext i1 @_ZNKSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  %605 = xor i1 %604, true
  br i1 %605, label %606, label %704

606:                                              ; preds = %603
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %607 = call ptr @_ZNKSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  %608 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %50, i32 0, i32 0
  store ptr %607, ptr %608, align 8
  %609 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIeiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #6
  %610 = getelementptr inbounds %"struct.std::pair.3", ptr %609, i32 0, i32 1
  %611 = load i32, ptr %610, align 16, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  store i32 %611, ptr %49, align 4, !tbaa !5
  %612 = call ptr @_ZNKSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  %613 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %51, i32 0, i32 0
  store ptr %612, ptr %613, align 8
  %614 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %51, i32 0, i32 0
  %615 = load ptr, ptr %614, align 8
  %616 = invoke ptr @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr %615)
          to label %617 unwind label %631

617:                                              ; preds = %606
  %618 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %52, i32 0, i32 0
  store ptr %616, ptr %618, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #6
  %619 = load i32, ptr %49, align 4, !tbaa !5
  %620 = sext i32 %619 to i64
  %621 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %620
  store ptr %621, ptr %53, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  %622 = load ptr, ptr %53, align 8, !tbaa !9
  %623 = call ptr @_ZNSt6vectorISt4pairIeiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %622) #6
  %624 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %54, i32 0, i32 0
  store ptr %623, ptr %624, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  %625 = load ptr, ptr %53, align 8, !tbaa !9
  %626 = call ptr @_ZNSt6vectorISt4pairIeiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %625) #6
  %627 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %55, i32 0, i32 0
  store ptr %626, ptr %627, align 8
  br label %628

628:                                              ; preds = %699, %617
  %629 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIeiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %55) #6
  br i1 %629, label %635, label %630

630:                                              ; preds = %628
  store i32 43, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  br label %702

631:                                              ; preds = %606
  %632 = landingpad { ptr, i32 }
          cleanup
  %633 = extractvalue { ptr, i32 } %632, 0
  store ptr %633, ptr %9, align 8
  %634 = extractvalue { ptr, i32 } %632, 1
  store i32 %634, ptr %10, align 4
  br label %703

635:                                              ; preds = %628
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #6
  %636 = call noundef nonnull align 16 dereferenceable(20) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIeiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  store ptr %636, ptr %56, align 8, !tbaa !9
  %637 = load i32, ptr %49, align 4, !tbaa !5
  %638 = sext i32 %637 to i64
  %639 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %638
  %640 = load x86_fp80, ptr %639, align 16, !tbaa !16
  %641 = load ptr, ptr %56, align 8, !tbaa !9
  %642 = getelementptr inbounds %"struct.std::pair.3", ptr %641, i32 0, i32 0
  %643 = load x86_fp80, ptr %642, align 16, !tbaa !30
  %644 = fadd x86_fp80 %640, %643
  %645 = load ptr, ptr %56, align 8, !tbaa !9
  %646 = getelementptr inbounds %"struct.std::pair.3", ptr %645, i32 0, i32 1
  %647 = load i32, ptr %646, align 16, !tbaa !28
  %648 = sext i32 %647 to i64
  %649 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %648
  %650 = load x86_fp80, ptr %649, align 16, !tbaa !16
  %651 = fcmp olt x86_fp80 %644, %650
  br i1 %651, label %652, label %698

652:                                              ; preds = %635
  call void @llvm.lifetime.start.p0(i64 32, ptr %57) #6
  %653 = load ptr, ptr %56, align 8, !tbaa !9
  %654 = getelementptr inbounds %"struct.std::pair.3", ptr %653, i32 0, i32 1
  %655 = load i32, ptr %654, align 16, !tbaa !28
  %656 = sext i32 %655 to i64
  %657 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %656
  %658 = load ptr, ptr %56, align 8, !tbaa !9
  %659 = getelementptr inbounds %"struct.std::pair.3", ptr %658, i32 0, i32 1
  invoke void @_ZNSt4pairIeiEC2IReRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(20) %57, ptr noundef nonnull align 16 dereferenceable(16) %657, ptr noundef nonnull align 4 dereferenceable(4) %659)
          to label %660 unwind label %690

660:                                              ; preds = %652
  %661 = invoke noundef i64 @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr noundef nonnull align 16 dereferenceable(20) %57)
          to label %662 unwind label %690

662:                                              ; preds = %660
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #6
  %663 = load i32, ptr %49, align 4, !tbaa !5
  %664 = sext i32 %663 to i64
  %665 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %664
  %666 = load x86_fp80, ptr %665, align 16, !tbaa !16
  %667 = load ptr, ptr %56, align 8, !tbaa !9
  %668 = getelementptr inbounds %"struct.std::pair.3", ptr %667, i32 0, i32 0
  %669 = load x86_fp80, ptr %668, align 16, !tbaa !30
  %670 = fadd x86_fp80 %666, %669
  %671 = load ptr, ptr %56, align 8, !tbaa !9
  %672 = getelementptr inbounds %"struct.std::pair.3", ptr %671, i32 0, i32 1
  %673 = load i32, ptr %672, align 16, !tbaa !28
  %674 = sext i32 %673 to i64
  %675 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %674
  store x86_fp80 %670, ptr %675, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 32, ptr %58) #6
  %676 = load ptr, ptr %56, align 8, !tbaa !9
  %677 = getelementptr inbounds %"struct.std::pair.3", ptr %676, i32 0, i32 1
  %678 = load i32, ptr %677, align 16, !tbaa !28
  %679 = sext i32 %678 to i64
  %680 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %679
  %681 = load ptr, ptr %56, align 8, !tbaa !9
  %682 = getelementptr inbounds %"struct.std::pair.3", ptr %681, i32 0, i32 1
  invoke void @_ZNSt4pairIeiEC2IReRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(20) %58, ptr noundef nonnull align 16 dereferenceable(16) %680, ptr noundef nonnull align 4 dereferenceable(4) %682)
          to label %683 unwind label %694

683:                                              ; preds = %662
  %684 = invoke { ptr, i8 } @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr noundef nonnull align 16 dereferenceable(20) %58)
          to label %685 unwind label %694

685:                                              ; preds = %683
  %686 = getelementptr inbounds { ptr, i8 }, ptr %59, i32 0, i32 0
  %687 = extractvalue { ptr, i8 } %684, 0
  store ptr %687, ptr %686, align 8
  %688 = getelementptr inbounds { ptr, i8 }, ptr %59, i32 0, i32 1
  %689 = extractvalue { ptr, i8 } %684, 1
  store i8 %689, ptr %688, align 8
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #6
  br label %698

690:                                              ; preds = %660, %652
  %691 = landingpad { ptr, i32 }
          cleanup
  %692 = extractvalue { ptr, i32 } %691, 0
  store ptr %692, ptr %9, align 8
  %693 = extractvalue { ptr, i32 } %691, 1
  store i32 %693, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #6
  br label %701

694:                                              ; preds = %683, %662
  %695 = landingpad { ptr, i32 }
          cleanup
  %696 = extractvalue { ptr, i32 } %695, 0
  store ptr %696, ptr %9, align 8
  %697 = extractvalue { ptr, i32 } %695, 1
  store i32 %697, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #6
  br label %701

698:                                              ; preds = %685, %635
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  br label %699

699:                                              ; preds = %698
  %700 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIeiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  br label %628

701:                                              ; preds = %694, %690
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  br label %703

702:                                              ; preds = %630
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  br label %603, !llvm.loop !31

703:                                              ; preds = %701, %631
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  br label %722

704:                                              ; preds = %603
  %705 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) @x2)
          to label %706 unwind label %718

706:                                              ; preds = %704
  %707 = load i32, ptr %705, align 4, !tbaa !5
  %708 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) @y2)
          to label %709 unwind label %718

709:                                              ; preds = %706
  %710 = load i32, ptr %708, align 4, !tbaa !5
  %711 = call noundef i32 @_Z3dirii(i32 noundef %707, i32 noundef %710)
  %712 = sext i32 %711 to i64
  %713 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %712
  %714 = load x86_fp80, ptr %713, align 16, !tbaa !16
  %715 = fptrunc x86_fp80 %714 to double
  %716 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %715)
          to label %717 unwind label %718

717:                                              ; preds = %709
  call void @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %45) #6
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #6
  br label %61, !llvm.loop !32

718:                                              ; preds = %709, %706, %704
  %719 = landingpad { ptr, i32 }
          cleanup
  %720 = extractvalue { ptr, i32 } %719, 0
  store ptr %720, ptr %9, align 8
  %721 = extractvalue { ptr, i32 } %719, 1
  store i32 %721, ptr %10, align 4
  br label %722

722:                                              ; preds = %718, %703, %601
  call void @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %45) #6
  br label %723

723:                                              ; preds = %722, %548, %371, %130, %102, %90
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #6
  br label %725

724:                                              ; preds = %61
  ret i32 0

725:                                              ; preds = %723
  %726 = load ptr, ptr %9, align 8
  %727 = load i32, ptr %10, align 4
  %728 = insertvalue { ptr, i32 } poison, ptr %726, 0
  %729 = insertvalue { ptr, i32 } %728, i32 %727, 1
  resume { ptr, i32 } %729
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(20)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIeiEC2IReRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(20), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { 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 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIKiiE", !6, i64 0, !6, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"long double", !7, i64 0}
!18 = !{!15, !6, i64 4}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = !{!29, !6, i64 16}
!29 = !{!"_ZTSSt4pairIeiE", !17, i64 0, !6, i64 16}
!30 = !{!29, !17, i64 0}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long double, int>, std::allocator<std::pair<long double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long double, int>, std::allocator<std::pair<long double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long double, int>, std::allocator<std::pair<long double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long double, int>, std::allocator<std::pair<long double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, 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_iterator" = type { ptr }
%"struct.std::pair.3" = type <{ x86_fp80, i32, [12 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree.5" }
%"class.std::_Rb_tree.5" = type { %"struct.std::_Rb_tree<std::pair<long double, int>, std::pair<long double, int>, std::_Identity<std::pair<long double, int>>, std::less<std::pair<long double, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long double, int>, std::pair<long double, int>, std::_Identity<std::pair<long double, int>>, std::less<std::pair<long double, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@ve = external dso_local global [260100 x %"class.std::vector"], align 16
@t = external dso_local global i32, align 4
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@k = external dso_local global i32, align 4
@x1 = external dso_local global [510 x i32], align 16
@y11 = external dso_local global [510 x i32], align 16
@x2 = external dso_local global [510 x i32], align 16
@y2 = external dso_local global [510 x i32], align 16
@Left = external dso_local local_unnamed_addr global [510 x [510 x i32]], align 16
@Right = external dso_local local_unnamed_addr global [510 x [510 x i32]], align 16
@up = external dso_local local_unnamed_addr global [510 x [510 x i32]], align 16
@down = external dso_local local_unnamed_addr global [510 x [510 x i32]], align 16
@tx = external dso_local local_unnamed_addr global [510 x x86_fp80], align 16
@ty = external dso_local local_unnamed_addr global [510 x x86_fp80], align 16
@ans = external dso_local global [260100 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3dirii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::map", align 8
  %4 = alloca %"class.std::map", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::pair.3", align 16
  %10 = alloca x86_fp80, align 16
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair.3", align 16
  %13 = alloca x86_fp80, align 16
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair.3", align 16
  %16 = alloca x86_fp80, align 16
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair.3", align 16
  %19 = alloca x86_fp80, align 16
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::set", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair.3", align 16
  %24 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"struct.std::pair.3", align 16
  %28 = alloca %"struct.std::pair.3", align 16
  %29 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %30 = load i32, ptr @t, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr @t, align 4, !tbaa !5
  %.not216 = icmp eq i32 %30, 0
  br i1 %.not216, label %._crit_edge219, label %.lr.ph218

.lr.ph218:                                        ; preds = %2, %460
  store i32 0, ptr @m, align 4, !tbaa !5
  store i32 0, ptr @n, align 4, !tbaa !5
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @k)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  %33 = load i32, ptr @k, align 4, !tbaa !5
  %.not145170 = icmp slt i32 %33, 1
  br i1 %.not145170, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph218
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @x1, ptr noundef nonnull @y11, ptr noundef nonnull @x2, ptr noundef nonnull @y2)
  %35 = load i32, ptr @k, align 4, !tbaa !5
  %.not146172 = icmp slt i32 %35, 0
  br i1 %.not146172, label %._crit_edge176, label %.lr.ph175

.lr.ph:                                           ; preds = %.lr.ph218, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph218 ]
  %36 = getelementptr inbounds [510 x i32], ptr @x1, i64 0, i64 %indvars.iv
  %37 = getelementptr inbounds [510 x i32], ptr @y11, i64 0, i64 %indvars.iv
  %38 = getelementptr inbounds [510 x i32], ptr @x2, i64 0, i64 %indvars.iv
  %39 = getelementptr inbounds [510 x i32], ptr @y2, i64 0, i64 %indvars.iv
  %40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull %39)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr @k, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %.not145.not = icmp slt i64 %indvars.iv, %42
  br i1 %.not145.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge176:                                   ; preds = %57, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %43 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  store ptr %43, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %44 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  store ptr %44, ptr %6, align 8
  %45 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %45, label %.lr.ph178, label %._crit_edge179

.lr.ph175:                                        ; preds = %._crit_edge, %57
  %indvars.iv225 = phi i64 [ %indvars.iv.next226, %57 ], [ 0, %._crit_edge ]
  %46 = getelementptr inbounds [510 x i32], ptr @x1, i64 0, i64 %indvars.iv225
  %47 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %46)
          to label %48 unwind label %60

48:                                               ; preds = %.lr.ph175
  store i32 0, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds [510 x i32], ptr @x2, i64 0, i64 %indvars.iv225
  %50 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %49)
          to label %51 unwind label %60

51:                                               ; preds = %48
  store i32 0, ptr %50, align 4, !tbaa !5
  %52 = getelementptr inbounds [510 x i32], ptr @y11, i64 0, i64 %indvars.iv225
  %53 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %54 unwind label %60

54:                                               ; preds = %51
  store i32 0, ptr %53, align 4, !tbaa !5
  %55 = getelementptr inbounds [510 x i32], ptr @y2, i64 0, i64 %indvars.iv225
  %56 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %57 unwind label %60

57:                                               ; preds = %54
  store i32 0, ptr %56, align 4, !tbaa !5
  %indvars.iv.next226 = add nuw nsw i64 %indvars.iv225, 1
  %58 = load i32, ptr @k, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %.not146.not = icmp slt i64 %indvars.iv225, %59
  br i1 %.not146.not, label %.lr.ph175, label %._crit_edge176, !llvm.loop !11

60:                                               ; preds = %54, %51, %48, %.lr.ph175
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %473

._crit_edge179:                                   ; preds = %.lr.ph178, %._crit_edge176
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %62 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  store ptr %62, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %63 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  store ptr %63, ptr %8, align 8
  %64 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %64, label %.lr.ph181, label %._crit_edge182

.lr.ph178:                                        ; preds = %._crit_edge176, %.lr.ph178
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %66 = load i32, ptr %65, align 4, !tbaa !12
  %67 = sitofp i32 %66 to x86_fp80
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %69
  store x86_fp80 %67, ptr %70, align 16, !tbaa !14
  %71 = getelementptr inbounds i8, ptr %65, i64 4
  store i32 %68, ptr %71, align 4, !tbaa !16
  %72 = add nsw i32 %68, 1
  store i32 %72, ptr @n, align 4, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %74 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %74, label %.lr.ph178, label %._crit_edge179

._crit_edge182:                                   ; preds = %.lr.ph181, %._crit_edge179
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %75 = load i32, ptr @n, align 4, !tbaa !5
  %76 = icmp sgt i32 %75, 0
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  %77 = icmp sgt i32 %.pre, 0
  %or.cond = select i1 %76, i1 %77, i1 false
  br i1 %or.cond, label %.preheader166.us.preheader, label %.preheader169

.preheader166.us.preheader:                       ; preds = %._crit_edge182
  %78 = zext nneg i32 %.pre to i64
  %79 = shl nuw nsw i64 %78, 2
  %wide.trip.count = zext nneg i32 %75 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %80 = icmp ult i32 %75, 4
  br i1 %80, label %.preheader169.loopexit.unr-lcssa, label %.preheader166.us.preheader.new

.preheader166.us.preheader.new:                   ; preds = %.preheader166.us.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.preheader166.us

.preheader166.us:                                 ; preds = %.preheader166.us, %.preheader166.us.preheader.new
  %indvar = phi i64 [ 0, %.preheader166.us.preheader.new ], [ %indvar.next.3, %.preheader166.us ]
  %niter = phi i64 [ 0, %.preheader166.us.preheader.new ], [ %niter.next.3, %.preheader166.us ]
  %81 = mul nuw nsw i64 %indvar, 2040
  %scevgep230 = getelementptr i8, ptr @up, i64 %81
  %scevgep229 = getelementptr i8, ptr @down, i64 %81
  %scevgep228 = getelementptr i8, ptr @Left, i64 %81
  %scevgep = getelementptr i8, ptr @Right, i64 %81
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep228, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep229, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep230, i8 0, i64 %79, i1 false), !tbaa !5
  %82 = mul nuw i64 %indvar, 2040
  %83 = add nuw i64 %82, 2040
  %scevgep230.1 = getelementptr i8, ptr @up, i64 %83
  %scevgep229.1 = getelementptr i8, ptr @down, i64 %83
  %scevgep228.1 = getelementptr i8, ptr @Left, i64 %83
  %scevgep.1 = getelementptr i8, ptr @Right, i64 %83
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep.1, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep228.1, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep229.1, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep230.1, i8 0, i64 %79, i1 false), !tbaa !5
  %84 = mul nuw i64 %indvar, 2040
  %85 = add nuw i64 %84, 4080
  %scevgep230.2 = getelementptr i8, ptr @up, i64 %85
  %scevgep229.2 = getelementptr i8, ptr @down, i64 %85
  %scevgep228.2 = getelementptr i8, ptr @Left, i64 %85
  %scevgep.2 = getelementptr i8, ptr @Right, i64 %85
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep.2, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep228.2, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep229.2, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep230.2, i8 0, i64 %79, i1 false), !tbaa !5
  %86 = mul nuw i64 %indvar, 2040
  %87 = add nuw i64 %86, 6120
  %scevgep230.3 = getelementptr i8, ptr @up, i64 %87
  %scevgep229.3 = getelementptr i8, ptr @down, i64 %87
  %scevgep228.3 = getelementptr i8, ptr @Left, i64 %87
  %scevgep.3 = getelementptr i8, ptr @Right, i64 %87
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep.3, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep228.3, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep229.3, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep230.3, i8 0, i64 %79, i1 false), !tbaa !5
  %indvar.next.3 = add nuw nsw i64 %indvar, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader169.loopexit.unr-lcssa, label %.preheader166.us, !llvm.loop !17

.lr.ph181:                                        ; preds = %._crit_edge179, %.lr.ph181
  %88 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %89 = load i32, ptr %88, align 4, !tbaa !12
  %90 = sitofp i32 %89 to x86_fp80
  %91 = load i32, ptr @m, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %92
  store x86_fp80 %90, ptr %93, align 16, !tbaa !14
  %94 = getelementptr inbounds i8, ptr %88, i64 4
  store i32 %91, ptr %94, align 4, !tbaa !16
  %95 = add nsw i32 %91, 1
  store i32 %95, ptr @m, align 4, !tbaa !5
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %97 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %97, label %.lr.ph181, label %._crit_edge182

.preheader169.loopexit.unr-lcssa:                 ; preds = %.preheader166.us, %.preheader166.us.preheader
  %indvar.unr = phi i64 [ 0, %.preheader166.us.preheader ], [ %indvar.next.3, %.preheader166.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader169, label %.preheader166.us.epil

.preheader166.us.epil:                            ; preds = %.preheader169.loopexit.unr-lcssa, %.preheader166.us.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader166.us.epil ], [ %indvar.unr, %.preheader169.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader166.us.epil ], [ 0, %.preheader169.loopexit.unr-lcssa ]
  %98 = mul nuw nsw i64 %indvar.epil, 2040
  %scevgep230.epil = getelementptr i8, ptr @up, i64 %98
  %scevgep229.epil = getelementptr i8, ptr @down, i64 %98
  %scevgep228.epil = getelementptr i8, ptr @Left, i64 %98
  %scevgep.epil = getelementptr i8, ptr @Right, i64 %98
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep.epil, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep228.epil, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep229.epil, i8 0, i64 %79, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep230.epil, i8 0, i64 %79, i1 false), !tbaa !5
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader169, label %.preheader166.us.epil, !llvm.loop !18

.preheader169:                                    ; preds = %.preheader169.loopexit.unr-lcssa, %.preheader166.us.epil, %._crit_edge182
  %99 = mul nsw i32 %.pre, %75
  %100 = icmp sgt i32 %99, 0
  br i1 %100, label %.lr.ph188, label %.preheader168

.preheader168:                                    ; preds = %.lr.ph188, %.preheader169
  %101 = phi i32 [ %75, %.preheader169 ], [ %104, %.lr.ph188 ]
  %102 = load i32, ptr @k, align 4, !tbaa !5
  %.not147198 = icmp slt i32 %102, 1
  br i1 %.not147198, label %.preheader167, label %.lr.ph200

.lr.ph188:                                        ; preds = %.preheader169, %.lr.ph188
  %indvars.iv235 = phi i64 [ %indvars.iv.next236, %.lr.ph188 ], [ 0, %.preheader169 ]
  %103 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %indvars.iv235
  call void @_ZNSt6vectorISt4pairIeiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #7
  %indvars.iv.next236 = add nuw nsw i64 %indvars.iv235, 1
  %104 = load i32, ptr @n, align 4, !tbaa !5
  %105 = load i32, ptr @m, align 4, !tbaa !5
  %106 = mul nsw i32 %105, %104
  %107 = sext i32 %106 to i64
  %108 = icmp slt i64 %indvars.iv.next236, %107
  br i1 %108, label %.lr.ph188, label %.preheader168, !llvm.loop !20

.preheader167.loopexit:                           ; preds = %._crit_edge197
  %.pre285 = load i32, ptr @n, align 4, !tbaa !5
  br label %.preheader167

.preheader167:                                    ; preds = %.preheader167.loopexit, %.preheader168
  %109 = phi i32 [ %.pre285, %.preheader167.loopexit ], [ %101, %.preheader168 ]
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %.preheader165.preheader, label %._crit_edge205

.preheader165.preheader:                          ; preds = %.preheader167
  %.pre286 = load i32, ptr @m, align 4, !tbaa !5
  br label %.preheader165

.lr.ph200:                                        ; preds = %.preheader168, %._crit_edge197
  %indvars.iv260 = phi i64 [ %indvars.iv.next261, %._crit_edge197 ], [ 1, %.preheader168 ]
  %111 = getelementptr inbounds [510 x i32], ptr @x1, i64 0, i64 %indvars.iv260
  %112 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %111)
          to label %113 unwind label %201

113:                                              ; preds = %.lr.ph200
  %114 = load i32, ptr %112, align 4, !tbaa !5
  %115 = getelementptr inbounds [510 x i32], ptr @x2, i64 0, i64 %indvars.iv260
  %116 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %115)
          to label %117 unwind label %203

117:                                              ; preds = %113
  %118 = load i32, ptr %116, align 4, !tbaa !5
  %119 = getelementptr inbounds [510 x i32], ptr @y11, i64 0, i64 %indvars.iv260
  %120 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %119)
          to label %121 unwind label %205

121:                                              ; preds = %117
  %122 = load i32, ptr %120, align 4, !tbaa !5
  %123 = getelementptr inbounds [510 x i32], ptr @y2, i64 0, i64 %indvars.iv260
  %124 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %123)
          to label %125 unwind label %207

125:                                              ; preds = %121
  %126 = load i32, ptr %124, align 4, !tbaa !5
  %.not161195 = icmp sgt i32 %114, %118
  %.not162189 = icmp sgt i32 %122, %126
  %or.cond300 = select i1 %.not161195, i1 true, i1 %.not162189
  br i1 %or.cond300, label %._crit_edge197, label %.preheader.preheader

.preheader.preheader:                             ; preds = %125
  %127 = sext i32 %122 to i64
  %128 = sext i32 %126 to i64
  %129 = add i32 %126, 1
  %130 = sext i32 %114 to i64
  %131 = sext i32 %118 to i64
  %132 = add i32 %118, 1
  %133 = icmp slt i32 %122, %126
  %indvars.iv.next239.peel = add nsw i64 %127, 1
  %lftr.wideiv.peel = trunc i64 %indvars.iv.next239.peel to i32
  %exitcond241.peel.not = icmp eq i32 %129, %lftr.wideiv.peel
  %134 = icmp slt i32 %122, %126
  %indvars.iv.next244.peel = add nsw i64 %127, 1
  %lftr.wideiv246.peel = trunc i64 %indvars.iv.next244.peel to i32
  %exitcond247.peel.not = icmp eq i32 %129, %lftr.wideiv246.peel
  %135 = icmp slt i32 %122, %126
  %indvars.iv.next250.peel = add nsw i64 %127, 1
  %lftr.wideiv252.peel = trunc i64 %indvars.iv.next250.peel to i32
  %exitcond253.peel.not = icmp eq i32 %129, %lftr.wideiv252.peel
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge192
  %indvars.iv255 = phi i64 [ %130, %.preheader.preheader ], [ %indvars.iv.next256, %._crit_edge192 ]
  %136 = icmp sgt i64 %indvars.iv255, %130
  %137 = icmp slt i64 %indvars.iv255, %131
  br i1 %136, label %.lr.ph191.split.us.preheader, label %.lr.ph191.split

.lr.ph191.split.us.preheader:                     ; preds = %.preheader
  br i1 %135, label %138, label %142

138:                                              ; preds = %.lr.ph191.split.us.preheader
  %139 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %indvars.iv255, i64 %127
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %139, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %138, %.lr.ph191.split.us.preheader
  %143 = getelementptr inbounds [510 x [510 x i32]], ptr @up, i64 0, i64 %indvars.iv255, i64 %127
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %143, align 4, !tbaa !5
  br i1 %137, label %146, label %150

146:                                              ; preds = %142
  %147 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %indvars.iv255, i64 %127
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %147, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %146, %142
  br i1 %exitcond253.peel.not, label %._crit_edge192, label %.lr.ph191.split.us

.lr.ph191.split.us:                               ; preds = %150, %170
  %indvars.iv249 = phi i64 [ %indvars.iv.next250, %170 ], [ %indvars.iv.next250.peel, %150 ]
  %151 = icmp sgt i64 %indvars.iv249, %127
  br i1 %151, label %152, label %156

152:                                              ; preds = %.lr.ph191.split.us
  %153 = getelementptr inbounds [510 x [510 x i32]], ptr @Left, i64 0, i64 %indvars.iv255, i64 %indvars.iv249
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %153, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %152, %.lr.ph191.split.us
  %157 = icmp slt i64 %indvars.iv249, %128
  br i1 %157, label %158, label %162

158:                                              ; preds = %156
  %159 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %indvars.iv255, i64 %indvars.iv249
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %159, align 4, !tbaa !5
  br label %162

162:                                              ; preds = %158, %156
  %163 = getelementptr inbounds [510 x [510 x i32]], ptr @up, i64 0, i64 %indvars.iv255, i64 %indvars.iv249
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %163, align 4, !tbaa !5
  br i1 %137, label %166, label %170

166:                                              ; preds = %162
  %167 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %indvars.iv255, i64 %indvars.iv249
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %167, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %166, %162
  %indvars.iv.next250 = add nsw i64 %indvars.iv249, 1
  %lftr.wideiv252 = trunc i64 %indvars.iv.next250 to i32
  %exitcond253.not = icmp eq i32 %129, %lftr.wideiv252
  br i1 %exitcond253.not, label %._crit_edge192, label %.lr.ph191.split.us, !llvm.loop !21

.lr.ph191.split:                                  ; preds = %.preheader
  br i1 %137, label %.lr.ph191.split.split.us.preheader, label %.lr.ph191.split.split.preheader

.lr.ph191.split.split.preheader:                  ; preds = %.lr.ph191.split
  br i1 %133, label %171, label %175

171:                                              ; preds = %.lr.ph191.split.split.preheader
  %172 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %indvars.iv255, i64 %127
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %172, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %171, %.lr.ph191.split.split.preheader
  br i1 %exitcond241.peel.not, label %._crit_edge192, label %.lr.ph191.split.split

.lr.ph191.split.split.us.preheader:               ; preds = %.lr.ph191.split
  br i1 %134, label %176, label %180

176:                                              ; preds = %.lr.ph191.split.split.us.preheader
  %177 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %indvars.iv255, i64 %127
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %177, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %176, %.lr.ph191.split.split.us.preheader
  %181 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %indvars.iv255, i64 %127
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %181, align 4, !tbaa !5
  br i1 %exitcond247.peel.not, label %._crit_edge192, label %.lr.ph191.split.split.us

.lr.ph191.split.split.us:                         ; preds = %180, %195
  %indvars.iv243 = phi i64 [ %indvars.iv.next244, %195 ], [ %indvars.iv.next244.peel, %180 ]
  %184 = icmp sgt i64 %indvars.iv243, %127
  br i1 %184, label %185, label %189

185:                                              ; preds = %.lr.ph191.split.split.us
  %186 = getelementptr inbounds [510 x [510 x i32]], ptr @Left, i64 0, i64 %indvars.iv255, i64 %indvars.iv243
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %186, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %185, %.lr.ph191.split.split.us
  %190 = icmp slt i64 %indvars.iv243, %128
  br i1 %190, label %191, label %195

191:                                              ; preds = %189
  %192 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %indvars.iv255, i64 %indvars.iv243
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %192, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %191, %189
  %196 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %indvars.iv255, i64 %indvars.iv243
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %196, align 4, !tbaa !5
  %indvars.iv.next244 = add nsw i64 %indvars.iv243, 1
  %lftr.wideiv246 = trunc i64 %indvars.iv.next244 to i32
  %exitcond247.not = icmp eq i32 %129, %lftr.wideiv246
  br i1 %exitcond247.not, label %._crit_edge192, label %.lr.ph191.split.split.us, !llvm.loop !23

._crit_edge197:                                   ; preds = %._crit_edge192, %125
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %199 = load i32, ptr @k, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %.not147.not = icmp slt i64 %indvars.iv260, %200
  br i1 %.not147.not, label %.lr.ph200, label %.preheader167.loopexit, !llvm.loop !24

201:                                              ; preds = %.lr.ph200
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %473

203:                                              ; preds = %113
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %473

205:                                              ; preds = %117
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %473

207:                                              ; preds = %121
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %473

._crit_edge192:                                   ; preds = %220, %195, %170, %175, %180, %150
  %indvars.iv.next256 = add nsw i64 %indvars.iv255, 1
  %lftr.wideiv258 = trunc i64 %indvars.iv.next256 to i32
  %exitcond259.not = icmp eq i32 %132, %lftr.wideiv258
  br i1 %exitcond259.not, label %._crit_edge197, label %.preheader, !llvm.loop !25

.lr.ph191.split.split:                            ; preds = %175, %220
  %indvars.iv238 = phi i64 [ %indvars.iv.next239, %220 ], [ %indvars.iv.next239.peel, %175 ]
  %209 = icmp sgt i64 %indvars.iv238, %127
  br i1 %209, label %210, label %214

210:                                              ; preds = %.lr.ph191.split.split
  %211 = getelementptr inbounds [510 x [510 x i32]], ptr @Left, i64 0, i64 %indvars.iv255, i64 %indvars.iv238
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %211, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %210, %.lr.ph191.split.split
  %215 = icmp slt i64 %indvars.iv238, %128
  br i1 %215, label %216, label %220

216:                                              ; preds = %214
  %217 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %indvars.iv255, i64 %indvars.iv238
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %217, align 4, !tbaa !5
  br label %220

220:                                              ; preds = %216, %214
  %indvars.iv.next239 = add nsw i64 %indvars.iv238, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next239 to i32
  %exitcond241.not = icmp eq i32 %129, %lftr.wideiv
  br i1 %exitcond241.not, label %._crit_edge192, label %.lr.ph191.split.split, !llvm.loop !26

.preheader165:                                    ; preds = %.preheader165.preheader, %._crit_edge203
  %221 = phi i32 [ %109, %.preheader165.preheader ], [ %294, %._crit_edge203 ]
  %222 = phi i32 [ %.pre286, %.preheader165.preheader ], [ %295, %._crit_edge203 ]
  %indvars.iv282 = phi i64 [ 0, %.preheader165.preheader ], [ %indvars.iv.next283.pre-phi, %._crit_edge203 ]
  %223 = icmp sgt i32 %222, 0
  br i1 %223, label %.lr.ph202, label %.preheader165.._crit_edge203_crit_edge

.preheader165.._crit_edge203_crit_edge:           ; preds = %.preheader165
  %.pre296 = add nuw nsw i64 %indvars.iv282, 1
  br label %._crit_edge203

.lr.ph202:                                        ; preds = %.preheader165
  %.not153 = icmp eq i64 %indvars.iv282, 0
  %224 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %indvars.iv282
  %225 = add nsw i64 %indvars.iv282, -1
  %226 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %225
  %227 = add nuw nsw i64 %indvars.iv282, 1
  %228 = getelementptr inbounds [510 x x86_fp80], ptr @tx, i64 0, i64 %227
  br i1 %.not153, label %245, label %229

229:                                              ; preds = %.lr.ph202
  %230 = trunc nuw nsw i64 %indvars.iv282 to i32
  %231 = call noundef i32 @_Z3dirii(i32 noundef %230, i32 noundef 0)
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %232
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %234 = load x86_fp80, ptr %224, align 16, !tbaa !14
  %235 = load x86_fp80, ptr %226, align 16, !tbaa !14
  %236 = fsub x86_fp80 %234, %235
  %237 = getelementptr inbounds [510 x [510 x i32]], ptr @up, i64 0, i64 %indvars.iv282, i64 0
  %238 = load i32, ptr %237, align 8, !tbaa !5
  %239 = add nsw i32 %238, 1
  %240 = sitofp i32 %239 to x86_fp80
  %241 = fdiv x86_fp80 %236, %240
  store x86_fp80 %241, ptr %10, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %242 = trunc nsw i64 %225 to i32
  %243 = call noundef i32 @_Z3dirii(i32 noundef %242, i32 noundef 0)
  store i32 %243, ptr %11, align 4, !tbaa !5
  call void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %9, ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %233, ptr noundef nonnull align 16 dereferenceable(20) %9)
          to label %244 unwind label %.loopexit.split-lp

244:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  %.pre287 = load i32, ptr @n, align 4, !tbaa !5
  br label %245

245:                                              ; preds = %244, %.lr.ph202
  %246 = phi i32 [ %.pre287, %244 ], [ %221, %.lr.ph202 ]
  %247 = add nsw i32 %246, -1
  %248 = sext i32 %247 to i64
  %249 = icmp slt i64 %indvars.iv282, %248
  br i1 %249, label %250, label %._crit_edge288

250:                                              ; preds = %245
  %251 = trunc nuw nsw i64 %indvars.iv282 to i32
  %252 = call noundef i32 @_Z3dirii(i32 noundef %251, i32 noundef 0)
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %253
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %255 = load x86_fp80, ptr %228, align 16, !tbaa !14
  %256 = load x86_fp80, ptr %224, align 16, !tbaa !14
  %257 = fsub x86_fp80 %255, %256
  %258 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %indvars.iv282, i64 0
  %259 = load i32, ptr %258, align 8, !tbaa !5
  %260 = add nsw i32 %259, 1
  %261 = sitofp i32 %260 to x86_fp80
  %262 = fdiv x86_fp80 %257, %261
  store x86_fp80 %262, ptr %13, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %263 = trunc nuw nsw i64 %227 to i32
  %264 = call noundef i32 @_Z3dirii(i32 noundef %263, i32 noundef 0)
  store i32 %264, ptr %14, align 4, !tbaa !5
  call void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %12, ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %254, ptr noundef nonnull align 16 dereferenceable(20) %12)
          to label %265 unwind label %.loopexit.split-lp268

265:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %._crit_edge288

._crit_edge288:                                   ; preds = %265, %245
  %.pre289 = load i32, ptr @m, align 4, !tbaa !5
  %266 = icmp sgt i32 %.pre289, 1
  br i1 %266, label %267, label %._crit_edge203.loopexit

267:                                              ; preds = %._crit_edge288
  %268 = trunc nuw nsw i64 %indvars.iv282 to i32
  %269 = call noundef i32 @_Z3dirii(i32 noundef %268, i32 noundef 0)
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %270
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  %272 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @ty, i64 16), align 16, !tbaa !14
  %273 = load x86_fp80, ptr @ty, align 16, !tbaa !14
  %274 = fsub x86_fp80 %272, %273
  %275 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %indvars.iv282, i64 0
  %276 = load i32, ptr %275, align 8, !tbaa !5
  %277 = add nsw i32 %276, 1
  %278 = sitofp i32 %277 to x86_fp80
  %279 = fdiv x86_fp80 %274, %278
  store x86_fp80 %279, ptr %19, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  %280 = call noundef i32 @_Z3dirii(i32 noundef %268, i32 noundef 1)
  store i32 %280, ptr %20, align 4, !tbaa !5
  call void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %18, ptr noundef nonnull align 16 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %271, ptr noundef nonnull align 16 dereferenceable(20) %18)
          to label %281 unwind label %.loopexit.split-lp278

281:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #7
  %.pre290 = load i32, ptr @m, align 4, !tbaa !5
  %282 = icmp sgt i32 %.pre290, 1
  br i1 %282, label %.peel.next, label %._crit_edge203.loopexit

.peel.next:                                       ; preds = %281
  %283 = trunc nuw nsw i64 %indvars.iv282 to i32
  %284 = trunc nsw i64 %225 to i32
  %285 = trunc nuw nsw i64 %indvars.iv282 to i32
  %286 = trunc nuw nsw i64 %227 to i32
  %287 = trunc nuw nsw i64 %indvars.iv282 to i32
  %288 = trunc nuw nsw i64 %indvars.iv282 to i32
  br label %298

._crit_edge205:                                   ; preds = %._crit_edge203, %.preheader167
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #7
  call void @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  store i32 0, ptr %22, align 4, !tbaa !5
  %289 = load i32, ptr @n, align 4, !tbaa !5
  %290 = load i32, ptr @m, align 4, !tbaa !5
  %291 = mul nsw i32 %290, %289
  %292 = icmp sgt i32 %291, 0
  br i1 %292, label %.lr.ph208, label %._crit_edge209

._crit_edge203.loopexit:                          ; preds = %380, %._crit_edge288, %281
  %293 = phi i32 [ %.pre290, %281 ], [ %.pre289, %._crit_edge288 ], [ %381, %380 ]
  %.pre293 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge203

._crit_edge203:                                   ; preds = %.preheader165.._crit_edge203_crit_edge, %._crit_edge203.loopexit
  %indvars.iv.next283.pre-phi = phi i64 [ %.pre296, %.preheader165.._crit_edge203_crit_edge ], [ %227, %._crit_edge203.loopexit ]
  %294 = phi i32 [ %221, %.preheader165.._crit_edge203_crit_edge ], [ %.pre293, %._crit_edge203.loopexit ]
  %295 = phi i32 [ %222, %.preheader165.._crit_edge203_crit_edge ], [ %293, %._crit_edge203.loopexit ]
  %296 = sext i32 %294 to i64
  %297 = icmp slt i64 %indvars.iv.next283.pre-phi, %296
  br i1 %297, label %.preheader165, label %._crit_edge205, !llvm.loop !27

298:                                              ; preds = %.peel.next, %380
  %indvars.iv263 = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next264.pre-phi, %380 ]
  br i1 %.not153, label %315, label %299

299:                                              ; preds = %298
  %300 = trunc nuw nsw i64 %indvars.iv263 to i32
  %301 = call noundef i32 @_Z3dirii(i32 noundef %283, i32 noundef %300)
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %302
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %304 = load x86_fp80, ptr %224, align 16, !tbaa !14
  %305 = load x86_fp80, ptr %226, align 16, !tbaa !14
  %306 = fsub x86_fp80 %304, %305
  %307 = getelementptr inbounds [510 x [510 x i32]], ptr @up, i64 0, i64 %indvars.iv282, i64 %indvars.iv263
  %308 = load i32, ptr %307, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  %310 = sitofp i32 %309 to x86_fp80
  %311 = fdiv x86_fp80 %306, %310
  store x86_fp80 %311, ptr %10, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %312 = call noundef i32 @_Z3dirii(i32 noundef %284, i32 noundef %300)
  store i32 %312, ptr %11, align 4, !tbaa !5
  call void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %9, ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %303, ptr noundef nonnull align 16 dereferenceable(20) %9)
          to label %313 unwind label %.loopexit

313:                                              ; preds = %299
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %315

.loopexit:                                        ; preds = %299
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %314

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

314:                                              ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %473

315:                                              ; preds = %313, %298
  %316 = load i32, ptr @n, align 4, !tbaa !5
  %317 = add nsw i32 %316, -1
  %318 = sext i32 %317 to i64
  %319 = icmp slt i64 %indvars.iv282, %318
  br i1 %319, label %320, label %336

320:                                              ; preds = %315
  %321 = trunc nuw nsw i64 %indvars.iv263 to i32
  %322 = call noundef i32 @_Z3dirii(i32 noundef %285, i32 noundef %321)
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %323
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %325 = load x86_fp80, ptr %228, align 16, !tbaa !14
  %326 = load x86_fp80, ptr %224, align 16, !tbaa !14
  %327 = fsub x86_fp80 %325, %326
  %328 = getelementptr inbounds [510 x [510 x i32]], ptr @down, i64 0, i64 %indvars.iv282, i64 %indvars.iv263
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = add nsw i32 %329, 1
  %331 = sitofp i32 %330 to x86_fp80
  %332 = fdiv x86_fp80 %327, %331
  store x86_fp80 %332, ptr %13, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %333 = call noundef i32 @_Z3dirii(i32 noundef %286, i32 noundef %321)
  store i32 %333, ptr %14, align 4, !tbaa !5
  call void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %12, ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %324, ptr noundef nonnull align 16 dereferenceable(20) %12)
          to label %334 unwind label %.loopexit267

334:                                              ; preds = %320
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %336

.loopexit267:                                     ; preds = %320
  %lpad.loopexit269 = landingpad { ptr, i32 }
          cleanup
  br label %335

.loopexit.split-lp268:                            ; preds = %250
  %lpad.loopexit.split-lp270 = landingpad { ptr, i32 }
          cleanup
  br label %335

335:                                              ; preds = %.loopexit.split-lp268, %.loopexit267
  %lpad.phi271 = phi { ptr, i32 } [ %lpad.loopexit269, %.loopexit267 ], [ %lpad.loopexit.split-lp270, %.loopexit.split-lp268 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %473

336:                                              ; preds = %315, %334
  %337 = trunc nuw nsw i64 %indvars.iv263 to i32
  %338 = call noundef i32 @_Z3dirii(i32 noundef %287, i32 noundef %337)
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %339
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %341 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %indvars.iv263
  %342 = load x86_fp80, ptr %341, align 16, !tbaa !14
  %343 = add nsw i64 %indvars.iv263, -1
  %344 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %343
  %345 = load x86_fp80, ptr %344, align 16, !tbaa !14
  %346 = fsub x86_fp80 %342, %345
  %347 = getelementptr inbounds [510 x [510 x i32]], ptr @Left, i64 0, i64 %indvars.iv282, i64 %indvars.iv263
  %348 = load i32, ptr %347, align 4, !tbaa !5
  %349 = add nsw i32 %348, 1
  %350 = sitofp i32 %349 to x86_fp80
  %351 = fdiv x86_fp80 %346, %350
  store x86_fp80 %351, ptr %16, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %352 = trunc nsw i64 %343 to i32
  %353 = call noundef i32 @_Z3dirii(i32 noundef %287, i32 noundef %352)
  store i32 %353, ptr %17, align 4, !tbaa !5
  call void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %15, ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %340, ptr noundef nonnull align 16 dereferenceable(20) %15)
          to label %355 unwind label %354

354:                                              ; preds = %336
  %lpad.loopexit274 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  br label %473

355:                                              ; preds = %336
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  %356 = load i32, ptr @m, align 4, !tbaa !5
  %357 = add nsw i32 %356, -1
  %358 = sext i32 %357 to i64
  %359 = icmp slt i64 %indvars.iv263, %358
  br i1 %359, label %360, label %._crit_edge294

._crit_edge294:                                   ; preds = %355
  %.pre295 = add nuw nsw i64 %indvars.iv263, 1
  br label %380

360:                                              ; preds = %355
  %361 = trunc nuw nsw i64 %indvars.iv263 to i32
  %362 = call noundef i32 @_Z3dirii(i32 noundef %288, i32 noundef %361)
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %363
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  %365 = add nuw nsw i64 %indvars.iv263, 1
  %366 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %365
  %367 = load x86_fp80, ptr %366, align 16, !tbaa !14
  %368 = getelementptr inbounds [510 x x86_fp80], ptr @ty, i64 0, i64 %indvars.iv263
  %369 = load x86_fp80, ptr %368, align 16, !tbaa !14
  %370 = fsub x86_fp80 %367, %369
  %371 = getelementptr inbounds [510 x [510 x i32]], ptr @Right, i64 0, i64 %indvars.iv282, i64 %indvars.iv263
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %373 = add nsw i32 %372, 1
  %374 = sitofp i32 %373 to x86_fp80
  %375 = fdiv x86_fp80 %370, %374
  store x86_fp80 %375, ptr %19, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  %376 = trunc nuw nsw i64 %365 to i32
  %377 = call noundef i32 @_Z3dirii(i32 noundef %288, i32 noundef %376)
  store i32 %377, ptr %20, align 4, !tbaa !5
  call void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20) %18, ptr noundef nonnull align 16 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  invoke void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %364, ptr noundef nonnull align 16 dereferenceable(20) %18)
          to label %378 unwind label %.loopexit277

378:                                              ; preds = %360
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #7
  %.pre292 = load i32, ptr @m, align 4, !tbaa !5
  br label %380

.loopexit277:                                     ; preds = %360
  %lpad.loopexit279 = landingpad { ptr, i32 }
          cleanup
  br label %379

.loopexit.split-lp278:                            ; preds = %267
  %lpad.loopexit.split-lp280 = landingpad { ptr, i32 }
          cleanup
  br label %379

379:                                              ; preds = %.loopexit.split-lp278, %.loopexit277
  %lpad.phi281 = phi { ptr, i32 } [ %lpad.loopexit279, %.loopexit277 ], [ %lpad.loopexit.split-lp280, %.loopexit.split-lp278 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #7
  br label %473

380:                                              ; preds = %._crit_edge294, %378
  %indvars.iv.next264.pre-phi = phi i64 [ %.pre295, %._crit_edge294 ], [ %365, %378 ]
  %381 = phi i32 [ %356, %._crit_edge294 ], [ %.pre292, %378 ]
  %382 = sext i32 %381 to i64
  %383 = icmp slt i64 %indvars.iv.next264.pre-phi, %382
  br i1 %383, label %298, label %._crit_edge203.loopexit, !llvm.loop !28

._crit_edge209:                                   ; preds = %400, %._crit_edge205
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  %384 = call noundef zeroext i1 @_ZNKSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  br i1 %384, label %._crit_edge215, label %.lr.ph214

.lr.ph208:                                        ; preds = %._crit_edge205, %400
  %storemerge206 = phi i32 [ %402, %400 ], [ 0, %._crit_edge205 ]
  %385 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) @x1)
          to label %386 unwind label %398

386:                                              ; preds = %.lr.ph208
  %387 = load i32, ptr %385, align 4, !tbaa !5
  %388 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) @y11)
          to label %389 unwind label %398

389:                                              ; preds = %386
  %390 = load i32, ptr %388, align 4, !tbaa !5
  %391 = call noundef i32 @_Z3dirii(i32 noundef %387, i32 noundef %390)
  %392 = icmp eq i32 %storemerge206, %391
  %393 = load i32, ptr %22, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %394
  %. = select i1 %392, x86_fp80 0xK00000000000000000000, x86_fp80 0xK4041AD78EBC5AC620000
  store x86_fp80 %., ptr %395, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #7
  %396 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %394
  call void @_ZNSt4pairIeiEC2IReRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(20) %23, ptr noundef nonnull align 16 dereferenceable(16) %396, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %397 = invoke { ptr, i8 } @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 16 dereferenceable(20) %23)
          to label %400 unwind label %407

398:                                              ; preds = %386, %.lr.ph208
  %399 = landingpad { ptr, i32 }
          cleanup
  br label %409

400:                                              ; preds = %389
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  %401 = load i32, ptr %22, align 4, !tbaa !5
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %22, align 4, !tbaa !5
  %403 = load i32, ptr @n, align 4, !tbaa !5
  %404 = load i32, ptr @m, align 4, !tbaa !5
  %405 = mul nsw i32 %404, %403
  %406 = icmp slt i32 %402, %405
  br i1 %406, label %.lr.ph208, label %._crit_edge209, !llvm.loop !29

407:                                              ; preds = %389
  %408 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  br label %409

409:                                              ; preds = %407, %398
  %.pn150 = phi { ptr, i32 } [ %408, %407 ], [ %399, %398 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  br label %472

.lr.ph214:                                        ; preds = %._crit_edge209, %._crit_edge212
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %410 = call ptr @_ZNKSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  store ptr %410, ptr %24, align 8
  %411 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIeiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %412 = getelementptr inbounds i8, ptr %411, i64 16
  %413 = load i32, ptr %412, align 16, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  %414 = call ptr @_ZNKSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  %415 = invoke ptr @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr %414)
          to label %416 unwind label %424

416:                                              ; preds = %.lr.ph214
  %417 = sext i32 %413 to i64
  %418 = getelementptr inbounds [260100 x %"class.std::vector"], ptr @ve, i64 0, i64 %417
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %419 = call ptr @_ZNSt6vectorISt4pairIeiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %418) #7
  store ptr %419, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %420 = call ptr @_ZNSt6vectorISt4pairIeiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %418) #7
  store ptr %420, ptr %26, align 8
  %421 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIeiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br i1 %421, label %.lr.ph211, label %._crit_edge212

.lr.ph211:                                        ; preds = %416
  %422 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %417
  br label %426

._crit_edge212:                                   ; preds = %452, %416
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  %423 = call noundef zeroext i1 @_ZNKSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  br i1 %423, label %._crit_edge215, label %.lr.ph214, !llvm.loop !32

424:                                              ; preds = %.lr.ph214
  %425 = landingpad { ptr, i32 }
          cleanup
  br label %472

426:                                              ; preds = %.lr.ph211, %452
  %427 = call noundef nonnull align 16 dereferenceable(20) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIeiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %428 = load x86_fp80, ptr %422, align 16, !tbaa !14
  %429 = load x86_fp80, ptr %427, align 16, !tbaa !33
  %430 = fadd x86_fp80 %428, %429
  %431 = getelementptr inbounds i8, ptr %427, i64 16
  %432 = load i32, ptr %431, align 16, !tbaa !30
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %433
  %435 = load x86_fp80, ptr %434, align 16, !tbaa !14
  %436 = fcmp olt x86_fp80 %430, %435
  br i1 %436, label %437, label %452

437:                                              ; preds = %426
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #7
  call void @_ZNSt4pairIeiEC2IReRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(20) %27, ptr noundef nonnull align 16 dereferenceable(16) %434, ptr noundef nonnull align 4 dereferenceable(4) %431)
  %438 = invoke noundef i64 @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 16 dereferenceable(20) %27)
          to label %439 unwind label %448

439:                                              ; preds = %437
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #7
  %440 = load x86_fp80, ptr %422, align 16, !tbaa !14
  %441 = load x86_fp80, ptr %427, align 16, !tbaa !33
  %442 = fadd x86_fp80 %440, %441
  %443 = load i32, ptr %431, align 16, !tbaa !30
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %444
  store x86_fp80 %442, ptr %445, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #7
  call void @_ZNSt4pairIeiEC2IReRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(20) %28, ptr noundef nonnull align 16 dereferenceable(16) %445, ptr noundef nonnull align 4 dereferenceable(4) %431)
  %446 = invoke { ptr, i8 } @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 16 dereferenceable(20) %28)
          to label %447 unwind label %450

447:                                              ; preds = %439
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #7
  br label %452

448:                                              ; preds = %437
  %449 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #7
  br label %455

450:                                              ; preds = %439
  %451 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #7
  br label %455

452:                                              ; preds = %447, %426
  %453 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIeiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %454 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIeiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br i1 %454, label %426, label %._crit_edge212

455:                                              ; preds = %450, %448
  %.pn = phi { ptr, i32 } [ %451, %450 ], [ %449, %448 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br label %472

._crit_edge215:                                   ; preds = %._crit_edge212, %._crit_edge209
  %456 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) @x2)
          to label %457 unwind label %470

457:                                              ; preds = %._crit_edge215
  %458 = load i32, ptr %456, align 4, !tbaa !5
  %459 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) @y2)
          to label %460 unwind label %470

460:                                              ; preds = %457
  %461 = load i32, ptr %459, align 4, !tbaa !5
  %462 = call noundef i32 @_Z3dirii(i32 noundef %458, i32 noundef %461)
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [260100 x x86_fp80], ptr @ans, i64 0, i64 %463
  %465 = load x86_fp80, ptr %464, align 16, !tbaa !14
  %466 = fptrunc x86_fp80 %465 to double
  %467 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %466)
  call void @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  %468 = load i32, ptr @t, align 4, !tbaa !5
  %469 = add nsw i32 %468, -1
  store i32 %469, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %468, 0
  br i1 %.not, label %._crit_edge219, label %.lr.ph218, !llvm.loop !34

470:                                              ; preds = %457, %._crit_edge215
  %471 = landingpad { ptr, i32 }
          cleanup
  br label %472

472:                                              ; preds = %424, %455, %470, %409
  %.pn150.pn = phi { ptr, i32 } [ %.pn150, %409 ], [ %471, %470 ], [ %.pn, %455 ], [ %425, %424 ]
  call void @_ZNSt3setISt4pairIeiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #7
  br label %473

473:                                              ; preds = %314, %335, %354, %379, %201, %205, %207, %203, %472, %60
  %.pn163 = phi { ptr, i32 } [ %61, %60 ], [ %.pn150.pn, %472 ], [ %202, %201 ], [ %204, %203 ], [ %208, %207 ], [ %206, %205 ], [ %lpad.phi281, %379 ], [ %lpad.loopexit274, %354 ], [ %lpad.phi271, %335 ], [ %lpad.phi, %314 ]
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn163

._crit_edge219:                                   ; preds = %460, %2
  ret i32 0
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIeiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(20)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIeiEC2IeiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 16 dereferenceable(20), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIeiEC2IReRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(20), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIeiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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 noundef nonnull align 16 dereferenceable(20) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIeiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSSt4pairIKiiE", !6, i64 0, !6, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"long double", !7, i64 0}
!16 = !{!13, !6, i64 4}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10, !22}
!22 = !{!"llvm.loop.peeled.count", i32 1}
!23 = distinct !{!23, !10, !22}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10, !22}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10, !22}
!29 = distinct !{!29, !10}
!30 = !{!31, !6, i64 16}
!31 = !{!"_ZTSSt4pairIeiE", !15, i64 0, !6, i64 16}
!32 = distinct !{!32, !10}
!33 = !{!31, !15, i64 0}
!34 = distinct !{!34, !10}


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