; LLVM IR from ShahjalalShohag/code-library :: Graph Theory (L R Flow with Dinic)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.LR_Flow = type { %struct.Dinic, i32, i32, i32, %"class.std::vector.8" }
%struct.Dinic = type { i32, i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::vector<Dinic::edge>, std::allocator<std::vector<Dinic::edge>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Dinic::edge>, std::allocator<std::vector<Dinic::edge>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Dinic::edge>, std::allocator<std::vector<Dinic::edge>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Dinic::edge>, std::allocator<std::vector<Dinic::edge>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<LR_Flow::edge, std::allocator<LR_Flow::edge>>::_Vector_impl" }
%"struct.std::_Vector_base<LR_Flow::edge, std::allocator<LR_Flow::edge>>::_Vector_impl" = type { %"struct.std::_Vector_base<LR_Flow::edge, std::allocator<LR_Flow::edge>>::_Vector_impl_data" }
%"struct.std::_Vector_base<LR_Flow::edge, std::allocator<LR_Flow::edge>>::_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 }

@Lx = external dso_local global [300009 x i32], align 16
@Rx = external dso_local global [300009 x i32], align 16
@Ly = external dso_local global [300009 x i32], align 16
@Ry = external dso_local global [300009 x i32], align 16
@degx = external dso_local global [300009 x i32], align 16
@degy = external dso_local global [300009 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z6get_idRSt3mapIiiSt4lessIiESaISt4pairIKiiEEEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #0

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.LR_Flow, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::map", align 8
  %11 = alloca %"class.std::map", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %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 %"struct.std::_Rb_tree_iterator", align 8
  %28 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i64, align 8
  %41 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %42 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %43 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %44 = getelementptr i8, ptr %43, i64 -24
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %45
  %47 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %46, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 152, ptr %4) #7
  %50 = load i32, ptr %2, align 4, !tbaa !8
  %51 = mul nsw i32 2, %50
  %52 = add nsw i32 %51, 10
  call void @_ZN7LR_FlowC2Ei(ptr noundef nonnull align 8 dereferenceable(152) %4, i32 noundef %52)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %53 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %54 unwind label %64

54:                                               ; preds = %0
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %56 unwind label %64

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %57 = load i32, ptr %5, align 4, !tbaa !8
  %58 = load i32, ptr %6, align 4, !tbaa !8
  %59 = icmp sgt i32 %57, %58
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %9, align 4, !tbaa !8
  %61 = load i32, ptr %9, align 4, !tbaa !8
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %68

63:                                               ; preds = %56
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #7
  br label %68

64:                                               ; preds = %54, %0
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  br label %485

68:                                               ; preds = %63, %56
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !8
  br label %69

69:                                               ; preds = %111, %68
  %70 = load i32, ptr %12, align 4, !tbaa !8
  %71 = load i32, ptr %2, align 4, !tbaa !8
  %72 = icmp sle i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %114

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %75 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %76 unwind label %82

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %78 unwind label %82

78:                                               ; preds = %76
  %79 = load i32, ptr %9, align 4, !tbaa !8
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %86

81:                                               ; preds = %78
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14) #7
  br label %86

82:                                               ; preds = %98, %96, %92, %89, %86, %76, %74
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %484

86:                                               ; preds = %81, %78
  %87 = load i32, ptr %13, align 4, !tbaa !8
  %88 = invoke noundef i32 @_Z6get_idRSt3mapIiiSt4lessIiESaISt4pairIKiiEEEi(ptr noundef nonnull align 8 dereferenceable(48) %10, i32 noundef %87)
          to label %89 unwind label %82

89:                                               ; preds = %86
  %90 = load i32, ptr %14, align 4, !tbaa !8
  %91 = invoke noundef i32 @_Z6get_idRSt3mapIiiSt4lessIiESaISt4pairIKiiEEEi(ptr noundef nonnull align 8 dereferenceable(48) %11, i32 noundef %90)
          to label %92 unwind label %82

92:                                               ; preds = %89
  %93 = load i32, ptr %2, align 4, !tbaa !8
  %94 = add nsw i32 %91, %93
  %95 = load i32, ptr %12, align 4, !tbaa !8
  invoke void @_ZN7LR_Flow8add_edgeEiiiii(ptr noundef nonnull align 8 dereferenceable(152) %4, i32 noundef %88, i32 noundef %94, i32 noundef 0, i32 noundef 1, i32 noundef %95)
          to label %96 unwind label %82

96:                                               ; preds = %92
  %97 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %98 unwind label %82

98:                                               ; preds = %96
  %99 = load i32, ptr %97, align 4, !tbaa !8
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [300009 x i32], ptr @degx, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !8
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %101, align 4, !tbaa !8
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %105 unwind label %82

105:                                              ; preds = %98
  %106 = load i32, ptr %104, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [300009 x i32], ptr @degy, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !8
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %108, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %111

111:                                              ; preds = %105
  %112 = load i32, ptr %12, align 4, !tbaa !8
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %12, align 4, !tbaa !8
  br label %69, !llvm.loop !11

114:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !8
  br label %115

115:                                              ; preds = %132, %114
  %116 = load i32, ptr %15, align 4, !tbaa !8
  %117 = sext i32 %116 to i64
  %118 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  %119 = icmp ule i64 %117, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %135

121:                                              ; preds = %115
  %122 = load i32, ptr %15, align 4, !tbaa !8
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [300009 x i32], ptr @Lx, i64 0, i64 %123
  store i32 0, ptr %124, align 4, !tbaa !8
  %125 = load i32, ptr %15, align 4, !tbaa !8
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [300009 x i32], ptr @degx, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !8
  %129 = load i32, ptr %15, align 4, !tbaa !8
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [300009 x i32], ptr @Rx, i64 0, i64 %130
  store i32 %128, ptr %131, align 4, !tbaa !8
  br label %132

132:                                              ; preds = %121
  %133 = load i32, ptr %15, align 4, !tbaa !8
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %15, align 4, !tbaa !8
  br label %115, !llvm.loop !13

135:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !8
  br label %136

136:                                              ; preds = %153, %135
  %137 = load i32, ptr %16, align 4, !tbaa !8
  %138 = sext i32 %137 to i64
  %139 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  %140 = icmp ule i64 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %156

142:                                              ; preds = %136
  %143 = load i32, ptr %16, align 4, !tbaa !8
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [300009 x i32], ptr @Ly, i64 0, i64 %144
  store i32 0, ptr %145, align 4, !tbaa !8
  %146 = load i32, ptr %16, align 4, !tbaa !8
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [300009 x i32], ptr @degy, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !8
  %150 = load i32, ptr %16, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [300009 x i32], ptr @Ry, i64 0, i64 %151
  store i32 %149, ptr %152, align 4, !tbaa !8
  br label %153

153:                                              ; preds = %142
  %154 = load i32, ptr %16, align 4, !tbaa !8
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %16, align 4, !tbaa !8
  br label %136, !llvm.loop !14

156:                                              ; preds = %141
  br label %157

157:                                              ; preds = %313, %156
  %158 = load i32, ptr %3, align 4, !tbaa !8
  %159 = add nsw i32 %158, -1
  store i32 %159, ptr %3, align 4, !tbaa !8
  %160 = icmp ne i32 %158, 0
  br i1 %160, label %161, label %315

161:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %162 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %163 unwind label %223

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %162, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %165 unwind label %223

165:                                              ; preds = %163
  %166 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %164, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %167 unwind label %223

167:                                              ; preds = %165
  %168 = load i32, ptr %17, align 4, !tbaa !8
  %169 = add nsw i32 %168, -1
  store i32 %169, ptr %17, align 4, !tbaa !8
  %170 = load i32, ptr %9, align 4, !tbaa !8
  %171 = load i32, ptr %17, align 4, !tbaa !8
  %172 = xor i32 %171, %170
  store i32 %172, ptr %17, align 4, !tbaa !8
  %173 = load i32, ptr %17, align 4, !tbaa !8
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %175, label %246

175:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %176 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %177 unwind label %227

177:                                              ; preds = %175
  %178 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %176, ptr %178, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %179 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  %180 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %21, i32 0, i32 0
  store ptr %179, ptr %180, align 8
  %181 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br i1 %181, label %182, label %245

182:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %183 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %184 unwind label %231

184:                                              ; preds = %182
  %185 = load i32, ptr %183, align 4, !tbaa !8
  store i32 %185, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %186 = load i32, ptr %22, align 4, !tbaa !8
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [300009 x i32], ptr @degx, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !8
  store i32 %189, ptr %23, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %190 = load i32, ptr %23, align 4, !tbaa !8
  %191 = load i32, ptr %19, align 4, !tbaa !8
  %192 = sub nsw i32 %190, %191
  %193 = add nsw i32 %192, 1
  %194 = sdiv i32 %193, 2
  store i32 %194, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %195 = load i32, ptr %23, align 4, !tbaa !8
  %196 = load i32, ptr %19, align 4, !tbaa !8
  %197 = add nsw i32 %195, %196
  %198 = sdiv i32 %197, 2
  store i32 %198, ptr %25, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !8
  %199 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %200 unwind label %235

200:                                              ; preds = %184
  %201 = load i32, ptr %199, align 4, !tbaa !8
  store i32 %201, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  %202 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %203 unwind label %239

203:                                              ; preds = %200
  %204 = load i32, ptr %202, align 4, !tbaa !8
  store i32 %204, ptr %25, align 4, !tbaa !8
  %205 = load i32, ptr %22, align 4, !tbaa !8
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [300009 x i32], ptr @Lx, i64 0, i64 %206
  %208 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %207, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %209 unwind label %239

209:                                              ; preds = %203
  %210 = load i32, ptr %208, align 4, !tbaa !8
  %211 = load i32, ptr %22, align 4, !tbaa !8
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [300009 x i32], ptr @Lx, i64 0, i64 %212
  store i32 %210, ptr %213, align 4, !tbaa !8
  %214 = load i32, ptr %22, align 4, !tbaa !8
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [300009 x i32], ptr @Rx, i64 0, i64 %215
  %217 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %216, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %218 unwind label %239

218:                                              ; preds = %209
  %219 = load i32, ptr %217, align 4, !tbaa !8
  %220 = load i32, ptr %22, align 4, !tbaa !8
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [300009 x i32], ptr @Rx, i64 0, i64 %221
  store i32 %219, ptr %222, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %245

223:                                              ; preds = %165, %163, %161
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %7, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %8, align 4
  br label %314

227:                                              ; preds = %175
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %7, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %314

231:                                              ; preds = %182
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %7, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %8, align 4
  br label %244

235:                                              ; preds = %184
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %7, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %243

239:                                              ; preds = %209, %203, %200
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %7, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %8, align 4
  br label %243

243:                                              ; preds = %239, %235
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %244

244:                                              ; preds = %243, %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %314

245:                                              ; preds = %218, %177
  br label %313

246:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %247 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %248 unwind label %294

248:                                              ; preds = %246
  %249 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %27, i32 0, i32 0
  store ptr %247, ptr %249, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %250 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  %251 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %28, i32 0, i32 0
  store ptr %250, ptr %251, align 8
  %252 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br i1 %252, label %253, label %312

253:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %254 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %255 unwind label %298

255:                                              ; preds = %253
  %256 = load i32, ptr %254, align 4, !tbaa !8
  store i32 %256, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %257 = load i32, ptr %29, align 4, !tbaa !8
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [300009 x i32], ptr @degy, i64 0, i64 %258
  %260 = load i32, ptr %259, align 4, !tbaa !8
  store i32 %260, ptr %30, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %261 = load i32, ptr %30, align 4, !tbaa !8
  %262 = load i32, ptr %19, align 4, !tbaa !8
  %263 = sub nsw i32 %261, %262
  %264 = add nsw i32 %263, 1
  %265 = sdiv i32 %264, 2
  store i32 %265, ptr %31, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %266 = load i32, ptr %30, align 4, !tbaa !8
  %267 = load i32, ptr %19, align 4, !tbaa !8
  %268 = add nsw i32 %266, %267
  %269 = sdiv i32 %268, 2
  store i32 %269, ptr %32, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !8
  %270 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %271 unwind label %302

271:                                              ; preds = %255
  %272 = load i32, ptr %270, align 4, !tbaa !8
  store i32 %272, ptr %31, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  %273 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %274 unwind label %306

274:                                              ; preds = %271
  %275 = load i32, ptr %273, align 4, !tbaa !8
  store i32 %275, ptr %32, align 4, !tbaa !8
  %276 = load i32, ptr %29, align 4, !tbaa !8
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [300009 x i32], ptr @Ly, i64 0, i64 %277
  %279 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %278, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %280 unwind label %306

280:                                              ; preds = %274
  %281 = load i32, ptr %279, align 4, !tbaa !8
  %282 = load i32, ptr %29, align 4, !tbaa !8
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [300009 x i32], ptr @Ly, i64 0, i64 %283
  store i32 %281, ptr %284, align 4, !tbaa !8
  %285 = load i32, ptr %29, align 4, !tbaa !8
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [300009 x i32], ptr @Ry, i64 0, i64 %286
  %288 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %287, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %289 unwind label %306

289:                                              ; preds = %280
  %290 = load i32, ptr %288, align 4, !tbaa !8
  %291 = load i32, ptr %29, align 4, !tbaa !8
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [300009 x i32], ptr @Ry, i64 0, i64 %292
  store i32 %290, ptr %293, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %312

294:                                              ; preds = %246
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %7, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %314

298:                                              ; preds = %253
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %7, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %8, align 4
  br label %311

302:                                              ; preds = %255
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %7, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %310

306:                                              ; preds = %280, %274, %271
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %7, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %8, align 4
  br label %310

310:                                              ; preds = %306, %302
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %311

311:                                              ; preds = %310, %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %314

312:                                              ; preds = %289, %248
  br label %313

313:                                              ; preds = %312, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %157, !llvm.loop !15

314:                                              ; preds = %311, %294, %244, %227, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %484

315:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %316 = load i32, ptr %2, align 4, !tbaa !8
  %317 = mul nsw i32 2, %316
  %318 = add nsw i32 %317, 2
  store i32 %318, ptr %34, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %319 = load i32, ptr %34, align 4, !tbaa !8
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %35, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 1, ptr %36, align 4, !tbaa !8
  br label %321

321:                                              ; preds = %358, %315
  %322 = load i32, ptr %36, align 4, !tbaa !8
  %323 = sext i32 %322 to i64
  %324 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  %325 = icmp ule i64 %323, %324
  br i1 %325, label %327, label %326

326:                                              ; preds = %321
  store i32 13, ptr %37, align 4
  br label %361

327:                                              ; preds = %321
  %328 = load i32, ptr %36, align 4, !tbaa !8
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [300009 x i32], ptr @Lx, i64 0, i64 %329
  %331 = load i32, ptr %330, align 4, !tbaa !8
  %332 = load i32, ptr %36, align 4, !tbaa !8
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [300009 x i32], ptr @Rx, i64 0, i64 %333
  %335 = load i32, ptr %334, align 4, !tbaa !8
  %336 = icmp sgt i32 %331, %335
  br i1 %336, label %337, label %346

337:                                              ; preds = %327
  %338 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %339 unwind label %342

339:                                              ; preds = %337
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %338, i8 noundef signext 10)
          to label %341 unwind label %342

341:                                              ; preds = %339
  store i32 0, ptr %1, align 4
  store i32 1, ptr %37, align 4
  br label %361

342:                                              ; preds = %346, %339, %337
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %7, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %483

346:                                              ; preds = %327
  %347 = load i32, ptr %34, align 4, !tbaa !8
  %348 = load i32, ptr %36, align 4, !tbaa !8
  %349 = load i32, ptr %36, align 4, !tbaa !8
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [300009 x i32], ptr @Lx, i64 0, i64 %350
  %352 = load i32, ptr %351, align 4, !tbaa !8
  %353 = load i32, ptr %36, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [300009 x i32], ptr @Rx, i64 0, i64 %354
  %356 = load i32, ptr %355, align 4, !tbaa !8
  invoke void @_ZN7LR_Flow8add_edgeEiiiii(ptr noundef nonnull align 8 dereferenceable(152) %4, i32 noundef %347, i32 noundef %348, i32 noundef %352, i32 noundef %356, i32 noundef -1)
          to label %357 unwind label %342

357:                                              ; preds = %346
  br label %358

358:                                              ; preds = %357
  %359 = load i32, ptr %36, align 4, !tbaa !8
  %360 = add nsw i32 %359, 1
  store i32 %360, ptr %36, align 4, !tbaa !8
  br label %321, !llvm.loop !16

361:                                              ; preds = %341, %326
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  %362 = load i32, ptr %37, align 4
  switch i32 %362, label %481 [
    i32 13, label %363
  ]

363:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 1, ptr %38, align 4, !tbaa !8
  br label %364

364:                                              ; preds = %403, %363
  %365 = load i32, ptr %38, align 4, !tbaa !8
  %366 = sext i32 %365 to i64
  %367 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  %368 = icmp ule i64 %366, %367
  br i1 %368, label %370, label %369

369:                                              ; preds = %364
  store i32 16, ptr %37, align 4
  br label %406

370:                                              ; preds = %364
  %371 = load i32, ptr %38, align 4, !tbaa !8
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [300009 x i32], ptr @Ly, i64 0, i64 %372
  %374 = load i32, ptr %373, align 4, !tbaa !8
  %375 = load i32, ptr %38, align 4, !tbaa !8
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [300009 x i32], ptr @Ry, i64 0, i64 %376
  %378 = load i32, ptr %377, align 4, !tbaa !8
  %379 = icmp sgt i32 %374, %378
  br i1 %379, label %380, label %389

380:                                              ; preds = %370
  %381 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %382 unwind label %385

382:                                              ; preds = %380
  %383 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %381, i8 noundef signext 10)
          to label %384 unwind label %385

384:                                              ; preds = %382
  store i32 0, ptr %1, align 4
  store i32 1, ptr %37, align 4
  br label %406

385:                                              ; preds = %389, %382, %380
  %386 = landingpad { ptr, i32 }
          cleanup
  %387 = extractvalue { ptr, i32 } %386, 0
  store ptr %387, ptr %7, align 8
  %388 = extractvalue { ptr, i32 } %386, 1
  store i32 %388, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %483

389:                                              ; preds = %370
  %390 = load i32, ptr %38, align 4, !tbaa !8
  %391 = load i32, ptr %2, align 4, !tbaa !8
  %392 = add nsw i32 %390, %391
  %393 = load i32, ptr %35, align 4, !tbaa !8
  %394 = load i32, ptr %38, align 4, !tbaa !8
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [300009 x i32], ptr @Ly, i64 0, i64 %395
  %397 = load i32, ptr %396, align 4, !tbaa !8
  %398 = load i32, ptr %38, align 4, !tbaa !8
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [300009 x i32], ptr @Ry, i64 0, i64 %399
  %401 = load i32, ptr %400, align 4, !tbaa !8
  invoke void @_ZN7LR_Flow8add_edgeEiiiii(ptr noundef nonnull align 8 dereferenceable(152) %4, i32 noundef %392, i32 noundef %393, i32 noundef %397, i32 noundef %401, i32 noundef -1)
          to label %402 unwind label %385

402:                                              ; preds = %389
  br label %403

403:                                              ; preds = %402
  %404 = load i32, ptr %38, align 4, !tbaa !8
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %38, align 4, !tbaa !8
  br label %364, !llvm.loop !17

406:                                              ; preds = %384, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  %407 = load i32, ptr %37, align 4
  switch i32 %407, label %481 [
    i32 16, label %408
  ]

408:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %409 = load i32, ptr %34, align 4, !tbaa !8
  %410 = load i32, ptr %35, align 4, !tbaa !8
  %411 = invoke noundef i32 @_ZN7LR_Flow8max_flowEii(ptr noundef nonnull align 8 dereferenceable(152) %4, i32 noundef %409, i32 noundef %410)
          to label %412 unwind label %420

412:                                              ; preds = %408
  store i32 %411, ptr %39, align 4, !tbaa !8
  %413 = load i32, ptr %39, align 4, !tbaa !8
  %414 = icmp eq i32 %413, -1
  br i1 %414, label %415, label %424

415:                                              ; preds = %412
  %416 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %417 unwind label %420

417:                                              ; preds = %415
  %418 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %416, i8 noundef signext 10)
          to label %419 unwind label %420

419:                                              ; preds = %417
  store i32 0, ptr %1, align 4
  store i32 1, ptr %37, align 4
  br label %479

420:                                              ; preds = %417, %415, %408
  %421 = landingpad { ptr, i32 }
          cleanup
  %422 = extractvalue { ptr, i32 } %421, 0
  store ptr %422, ptr %7, align 8
  %423 = extractvalue { ptr, i32 } %421, 1
  store i32 %423, ptr %8, align 4
  br label %480

424:                                              ; preds = %412
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %425 = load i32, ptr %39, align 4, !tbaa !8
  %426 = sext i32 %425 to i64
  %427 = mul nsw i64 1, %426
  %428 = load i32, ptr %5, align 4, !tbaa !8
  %429 = sext i32 %428 to i64
  %430 = mul nsw i64 %427, %429
  %431 = load i32, ptr %2, align 4, !tbaa !8
  %432 = load i32, ptr %39, align 4, !tbaa !8
  %433 = sub nsw i32 %431, %432
  %434 = sext i32 %433 to i64
  %435 = mul nsw i64 1, %434
  %436 = load i32, ptr %6, align 4, !tbaa !8
  %437 = sext i32 %436 to i64
  %438 = mul nsw i64 %435, %437
  %439 = add nsw i64 %430, %438
  store i64 %439, ptr %40, align 8, !tbaa !18
  %440 = load i64, ptr %40, align 8, !tbaa !18
  %441 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %440)
          to label %442 unwind label %450

442:                                              ; preds = %424
  %443 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %441, i8 noundef signext 10)
          to label %444 unwind label %450

444:                                              ; preds = %442
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 1, ptr %41, align 4, !tbaa !8
  br label %445

445:                                              ; preds = %468, %444
  %446 = load i32, ptr %41, align 4, !tbaa !8
  %447 = load i32, ptr %2, align 4, !tbaa !8
  %448 = icmp sle i32 %446, %447
  br i1 %448, label %454, label %449

449:                                              ; preds = %445
  store i32 19, ptr %37, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %475

450:                                              ; preds = %475, %442, %424
  %451 = landingpad { ptr, i32 }
          cleanup
  %452 = extractvalue { ptr, i32 } %451, 0
  store ptr %452, ptr %7, align 8
  %453 = extractvalue { ptr, i32 } %451, 1
  store i32 %453, ptr %8, align 4
  br label %478

454:                                              ; preds = %445
  %455 = getelementptr inbounds %struct.LR_Flow, ptr %4, i32 0, i32 0
  %456 = getelementptr inbounds %struct.Dinic, ptr %455, i32 0, i32 5
  %457 = load i32, ptr %41, align 4, !tbaa !8
  %458 = sext i32 %457 to i64
  %459 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %456, i64 noundef %458) #7
  %460 = load i32, ptr %459, align 4, !tbaa !8
  %461 = load i32, ptr %9, align 4, !tbaa !8
  %462 = xor i32 %460, %461
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %463
  %465 = load i8, ptr %464, align 1, !tbaa !20
  %466 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %465)
          to label %467 unwind label %471

467:                                              ; preds = %454
  br label %468

468:                                              ; preds = %467
  %469 = load i32, ptr %41, align 4, !tbaa !8
  %470 = add nsw i32 %469, 1
  store i32 %470, ptr %41, align 4, !tbaa !8
  br label %445, !llvm.loop !21

471:                                              ; preds = %454
  %472 = landingpad { ptr, i32 }
          cleanup
  %473 = extractvalue { ptr, i32 } %472, 0
  store ptr %473, ptr %7, align 8
  %474 = extractvalue { ptr, i32 } %472, 1
  store i32 %474, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %478

475:                                              ; preds = %449
  %476 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %477 unwind label %450

477:                                              ; preds = %475
  store i32 0, ptr %1, align 4
  store i32 1, ptr %37, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  br label %479

478:                                              ; preds = %471, %450
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  br label %480

479:                                              ; preds = %477, %419
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %481

480:                                              ; preds = %478, %420
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %483

481:                                              ; preds = %479, %406, %361
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZN7LR_FlowD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %4) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %482 = load i32, ptr %1, align 4
  ret i32 %482

483:                                              ; preds = %480, %385, %342
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %484

484:                                              ; preds = %483, %314, %82
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %485

485:                                              ; preds = %484, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZN7LR_FlowD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %4) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %486

486:                                              ; preds = %485
  %487 = load ptr, ptr %7, align 8
  %488 = load i32, ptr %8, align 4
  %489 = insertvalue { ptr, i32 } poison, ptr %487, 0
  %490 = insertvalue { ptr, i32 } %489, i32 %488, 1
  resume { ptr, i32 } %490
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7LR_FlowC2Ei(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7LR_Flow8max_flowEii(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef, i32 noundef) #0 align 2

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

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

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.LR_Flow = type { %struct.Dinic, i32, i32, i32, %"class.std::vector.8" }
%struct.Dinic = type { i32, i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::vector<Dinic::edge>, std::allocator<std::vector<Dinic::edge>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Dinic::edge>, std::allocator<std::vector<Dinic::edge>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Dinic::edge>, std::allocator<std::vector<Dinic::edge>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Dinic::edge>, std::allocator<std::vector<Dinic::edge>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<LR_Flow::edge, std::allocator<LR_Flow::edge>>::_Vector_impl" }
%"struct.std::_Vector_base<LR_Flow::edge, std::allocator<LR_Flow::edge>>::_Vector_impl" = type { %"struct.std::_Vector_base<LR_Flow::edge, std::allocator<LR_Flow::edge>>::_Vector_impl_data" }
%"struct.std::_Vector_base<LR_Flow::edge, std::allocator<LR_Flow::edge>>::_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 }

@Lx = external dso_local global [300009 x i32], align 16
@Rx = external dso_local global [300009 x i32], align 16
@Ly = external dso_local global [300009 x i32], align 16
@Ry = external dso_local global [300009 x i32], align 16
@degx = external dso_local local_unnamed_addr global [300009 x i32], align 16
@degy = external dso_local local_unnamed_addr global [300009 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z6get_idRSt3mapIiiSt4lessIiESaISt4pairIKiiEEEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) 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 #2 align 2

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.LR_Flow, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::map", align 8
  %7 = alloca %"class.std::map", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %26 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %28
  %30 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %29, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %3) #7
  %33 = load i32, ptr %1, align 4, !tbaa !8
  %34 = shl nsw i32 %33, 1
  %35 = add nsw i32 %34, 10
  call void @_ZN7LR_FlowC2Ei(ptr noundef nonnull align 8 dereferenceable(152) %3, i32 noundef %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %36 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %37 unwind label %45

37:                                               ; preds = %0
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %39 unwind label %45

39:                                               ; preds = %37
  %40 = load i32, ptr %4, align 4, !tbaa !8
  %41 = load i32, ptr %5, align 4, !tbaa !8
  %42 = icmp sgt i32 %40, %41
  %43 = zext i1 %42 to i32
  br i1 %42, label %44, label %47

44:                                               ; preds = %39
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) #7
  br label %47

45:                                               ; preds = %37, %0
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %253

47:                                               ; preds = %44, %39
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  %48 = load i32, ptr %1, align 4, !tbaa !8
  %.not111 = icmp slt i32 %48, 1
  br i1 %.not111, label %.preheader110, label %.lr.ph

.preheader110:                                    ; preds = %75, %47
  %49 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  %.not85113 = icmp eq i64 %49, 0
  br i1 %.not85113, label %.preheader109, label %.lr.ph115

.lr.ph:                                           ; preds = %47, %75
  %.073112 = phi i32 [ %81, %75 ], [ 1, %47 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %51 unwind label %55

51:                                               ; preds = %.lr.ph
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %53 unwind label %55

53:                                               ; preds = %51
  br i1 %42, label %54, label %57

54:                                               ; preds = %53
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9) #7
  br label %57

55:                                               ; preds = %68, %66, %63, %60, %57, %51, %.lr.ph
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %252

57:                                               ; preds = %54, %53
  %58 = load i32, ptr %8, align 4, !tbaa !8
  %59 = invoke noundef i32 @_Z6get_idRSt3mapIiiSt4lessIiESaISt4pairIKiiEEEi(ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef %58)
          to label %60 unwind label %55

60:                                               ; preds = %57
  %61 = load i32, ptr %9, align 4, !tbaa !8
  %62 = invoke noundef i32 @_Z6get_idRSt3mapIiiSt4lessIiESaISt4pairIKiiEEEi(ptr noundef nonnull align 8 dereferenceable(48) %7, i32 noundef %61)
          to label %63 unwind label %55

63:                                               ; preds = %60
  %64 = load i32, ptr %1, align 4, !tbaa !8
  %65 = add nsw i32 %64, %62
  invoke void @_ZN7LR_Flow8add_edgeEiiiii(ptr noundef nonnull align 8 dereferenceable(152) %3, i32 noundef %59, i32 noundef %65, i32 noundef 0, i32 noundef 1, i32 noundef %.073112)
          to label %66 unwind label %55

66:                                               ; preds = %63
  %67 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %68 unwind label %55

68:                                               ; preds = %66
  %69 = load i32, ptr %67, align 4, !tbaa !8
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [300009 x i32], ptr @degx, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !8
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %71, align 4, !tbaa !8
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %75 unwind label %55

75:                                               ; preds = %68
  %76 = load i32, ptr %74, align 4, !tbaa !8
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [300009 x i32], ptr @degy, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !8
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %78, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %81 = add nuw nsw i32 %.073112, 1
  %82 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.073112, %82
  br i1 %.not.not, label %.lr.ph, label %.preheader110, !llvm.loop !11

.preheader109:                                    ; preds = %.lr.ph115, %.preheader110
  %83 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  %.not86116 = icmp eq i64 %83, 0
  br i1 %.not86116, label %.preheader108, label %.lr.ph118

.lr.ph115:                                        ; preds = %.preheader110, %.lr.ph115
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph115 ], [ 1, %.preheader110 ]
  %84 = getelementptr inbounds [300009 x i32], ptr @Lx, i64 0, i64 %indvars.iv
  store i32 0, ptr %84, align 4, !tbaa !8
  %85 = getelementptr inbounds [300009 x i32], ptr @degx, i64 0, i64 %indvars.iv
  %86 = load i32, ptr %85, align 4, !tbaa !8
  %87 = getelementptr inbounds [300009 x i32], ptr @Rx, i64 0, i64 %indvars.iv
  store i32 %86, ptr %87, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %88 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  %.not85.not = icmp ugt i64 %88, %indvars.iv
  br i1 %.not85.not, label %.lr.ph115, label %.preheader109, !llvm.loop !13

.preheader108:                                    ; preds = %.lr.ph118, %.preheader109
  %89 = load i32, ptr %2, align 4, !tbaa !8
  %90 = add nsw i32 %89, -1
  store i32 %90, ptr %2, align 4, !tbaa !8
  %.not87119 = icmp eq i32 %89, 0
  br i1 %.not87119, label %._crit_edge, label %.lr.ph120

.lr.ph118:                                        ; preds = %.preheader109, %.lr.ph118
  %indvars.iv133 = phi i64 [ %indvars.iv.next134, %.lr.ph118 ], [ 1, %.preheader109 ]
  %91 = getelementptr inbounds [300009 x i32], ptr @Ly, i64 0, i64 %indvars.iv133
  store i32 0, ptr %91, align 4, !tbaa !8
  %92 = getelementptr inbounds [300009 x i32], ptr @degy, i64 0, i64 %indvars.iv133
  %93 = load i32, ptr %92, align 4, !tbaa !8
  %94 = getelementptr inbounds [300009 x i32], ptr @Ry, i64 0, i64 %indvars.iv133
  store i32 %93, ptr %94, align 4, !tbaa !8
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %95 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  %.not86.not = icmp ugt i64 %95, %indvars.iv133
  br i1 %.not86.not, label %.lr.ph118, label %.preheader108, !llvm.loop !14

.lr.ph120:                                        ; preds = %.preheader108, %172
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %96 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %97 unwind label %134

97:                                               ; preds = %.lr.ph120
  %98 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %99 unwind label %134

99:                                               ; preds = %97
  %100 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %98, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %101 unwind label %134

101:                                              ; preds = %99
  %102 = load i32, ptr %10, align 4, !tbaa !8
  %103 = add nsw i32 %102, -1
  %104 = xor i32 %103, %43
  store i32 %104, ptr %10, align 4, !tbaa !8
  %105 = icmp eq i32 %103, %43
  br i1 %105, label %106, label %140

106:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %107 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %108 unwind label %136

108:                                              ; preds = %106
  store ptr %107, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %109 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  store ptr %109, ptr %14, align 8
  %110 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %110, label %111, label %172

111:                                              ; preds = %108
  %112 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %113 unwind label %138

113:                                              ; preds = %111
  %114 = load i32, ptr %112, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [300009 x i32], ptr @degx, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !8
  store i32 %117, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %118 = load i32, ptr %12, align 4, !tbaa !8
  %119 = add i32 %117, 1
  %120 = sub i32 %119, %118
  %121 = sdiv i32 %120, 2
  store i32 %121, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %122 = add nsw i32 %118, %117
  %123 = sdiv i32 %122, 2
  store i32 %123, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  store i32 0, ptr %18, align 4, !tbaa !8
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %125 = load i32, ptr %124, align 4, !tbaa !8
  store i32 %125, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %127 = load i32, ptr %126, align 4, !tbaa !8
  store i32 %127, ptr %17, align 4, !tbaa !8
  %128 = getelementptr inbounds [300009 x i32], ptr @Lx, i64 0, i64 %115
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %128, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %130 = load i32, ptr %129, align 4, !tbaa !8
  store i32 %130, ptr %128, align 4, !tbaa !8
  %131 = getelementptr inbounds [300009 x i32], ptr @Rx, i64 0, i64 %115
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %131, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %133 = load i32, ptr %132, align 4, !tbaa !8
  store i32 %133, ptr %131, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %172

134:                                              ; preds = %99, %97, %.lr.ph120
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %175

136:                                              ; preds = %106
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %175

138:                                              ; preds = %111
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %175

140:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %141 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %142 unwind label %168

142:                                              ; preds = %140
  store ptr %141, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %143 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  store ptr %143, ptr %20, align 8
  %144 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br i1 %144, label %145, label %172

145:                                              ; preds = %142
  %146 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %147 unwind label %170

147:                                              ; preds = %145
  %148 = load i32, ptr %146, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [300009 x i32], ptr @degy, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !8
  store i32 %151, ptr %21, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  %152 = load i32, ptr %12, align 4, !tbaa !8
  %153 = add i32 %151, 1
  %154 = sub i32 %153, %152
  %155 = sdiv i32 %154, 2
  store i32 %155, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %156 = add nsw i32 %152, %151
  %157 = sdiv i32 %156, 2
  store i32 %157, ptr %23, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  store i32 0, ptr %24, align 4, !tbaa !8
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %159 = load i32, ptr %158, align 4, !tbaa !8
  store i32 %159, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %161 = load i32, ptr %160, align 4, !tbaa !8
  store i32 %161, ptr %23, align 4, !tbaa !8
  %162 = getelementptr inbounds [300009 x i32], ptr @Ly, i64 0, i64 %149
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %162, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %164 = load i32, ptr %163, align 4, !tbaa !8
  store i32 %164, ptr %162, align 4, !tbaa !8
  %165 = getelementptr inbounds [300009 x i32], ptr @Ry, i64 0, i64 %149
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %165, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %167 = load i32, ptr %166, align 4, !tbaa !8
  store i32 %167, ptr %165, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  br label %172

168:                                              ; preds = %140
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %175

170:                                              ; preds = %145
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %175

172:                                              ; preds = %142, %147, %108, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %173 = load i32, ptr %2, align 4, !tbaa !8
  %174 = add nsw i32 %173, -1
  store i32 %174, ptr %2, align 4, !tbaa !8
  %.not87 = icmp eq i32 %173, 0
  br i1 %.not87, label %._crit_edge, label %.lr.ph120, !llvm.loop !15

175:                                              ; preds = %170, %168, %138, %136, %134
  %.pn95 = phi { ptr, i32 } [ %139, %138 ], [ %137, %136 ], [ %171, %170 ], [ %169, %168 ], [ %135, %134 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %252

._crit_edge:                                      ; preds = %172, %.preheader108
  %176 = load i32, ptr %1, align 4, !tbaa !8
  %177 = shl nsw i32 %176, 1
  %178 = add nsw i32 %177, 2
  %179 = add nsw i32 %177, 3
  %180 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  %.not88121 = icmp eq i64 %180, 0
  br i1 %.not88121, label %.critedge.preheader, label %.lr.ph124

.critedge.preheader:                              ; preds = %193, %._crit_edge
  %181 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  %.not89125 = icmp eq i64 %181, 0
  br i1 %.not89125, label %.critedge101, label %.lr.ph127

.lr.ph124:                                        ; preds = %._crit_edge, %193
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %193 ], [ 1, %._crit_edge ]
  %182 = getelementptr inbounds [300009 x i32], ptr @Lx, i64 0, i64 %indvars.iv136
  %183 = load i32, ptr %182, align 4, !tbaa !8
  %184 = getelementptr inbounds [300009 x i32], ptr @Rx, i64 0, i64 %indvars.iv136
  %185 = load i32, ptr %184, align 4, !tbaa !8
  %186 = icmp sgt i32 %183, %185
  br i1 %186, label %187, label %191

187:                                              ; preds = %.lr.ph124
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %189 unwind label %.loopexit.split-lp104

189:                                              ; preds = %187
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %188, i8 noundef signext 10)
          to label %251 unwind label %.loopexit.split-lp104

.loopexit103:                                     ; preds = %191
  %lpad.loopexit105 = landingpad { ptr, i32 }
          cleanup
  br label %252

.loopexit.split-lp104:                            ; preds = %187, %189
  %lpad.loopexit.split-lp106 = landingpad { ptr, i32 }
          cleanup
  br label %252

191:                                              ; preds = %.lr.ph124
  %192 = trunc nuw nsw i64 %indvars.iv136 to i32
  invoke void @_ZN7LR_Flow8add_edgeEiiiii(ptr noundef nonnull align 8 dereferenceable(152) %3, i32 noundef %178, i32 noundef %192, i32 noundef %183, i32 noundef %185, i32 noundef -1)
          to label %193 unwind label %.loopexit103

193:                                              ; preds = %191
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %194 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  %.not88.not = icmp ugt i64 %194, %indvars.iv136
  br i1 %.not88.not, label %.lr.ph124, label %.critedge.preheader, !llvm.loop !16

.lr.ph127:                                        ; preds = %.critedge.preheader, %.critedge
  %indvars.iv139 = phi i64 [ %indvars.iv.next140, %.critedge ], [ 1, %.critedge.preheader ]
  %195 = getelementptr inbounds [300009 x i32], ptr @Ly, i64 0, i64 %indvars.iv139
  %196 = load i32, ptr %195, align 4, !tbaa !8
  %197 = getelementptr inbounds [300009 x i32], ptr @Ry, i64 0, i64 %indvars.iv139
  %198 = load i32, ptr %197, align 4, !tbaa !8
  %199 = icmp sgt i32 %196, %198
  br i1 %199, label %200, label %204

200:                                              ; preds = %.lr.ph127
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %202 unwind label %.loopexit.split-lp

202:                                              ; preds = %200
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %201, i8 noundef signext 10)
          to label %251 unwind label %.loopexit.split-lp

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

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

204:                                              ; preds = %.lr.ph127
  %205 = load i32, ptr %1, align 4, !tbaa !8
  %206 = trunc nuw nsw i64 %indvars.iv139 to i32
  %207 = add nsw i32 %205, %206
  invoke void @_ZN7LR_Flow8add_edgeEiiiii(ptr noundef nonnull align 8 dereferenceable(152) %3, i32 noundef %207, i32 noundef %179, i32 noundef %196, i32 noundef %198, i32 noundef -1)
          to label %.critedge unwind label %.loopexit

.critedge:                                        ; preds = %204
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %208 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  %.not89.not = icmp ugt i64 %208, %indvars.iv139
  br i1 %.not89.not, label %.lr.ph127, label %.critedge101, !llvm.loop !17

.critedge101:                                     ; preds = %.critedge, %.critedge.preheader
  %209 = invoke noundef i32 @_ZN7LR_Flow8max_flowEii(ptr noundef nonnull align 8 dereferenceable(152) %3, i32 noundef %178, i32 noundef %179)
          to label %210 unwind label %216

210:                                              ; preds = %.critedge101
  %211 = icmp eq i32 %209, -1
  br i1 %211, label %212, label %218

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %214 unwind label %216

214:                                              ; preds = %212
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %213, i8 noundef signext 10)
          to label %251 unwind label %216

216:                                              ; preds = %214, %212, %.critedge101
  %217 = landingpad { ptr, i32 }
          cleanup
  br label %252

218:                                              ; preds = %210
  %219 = sext i32 %209 to i64
  %220 = load i32, ptr %4, align 4, !tbaa !8
  %221 = sext i32 %220 to i64
  %222 = mul nsw i64 %221, %219
  %223 = load i32, ptr %1, align 4, !tbaa !8
  %224 = sub nsw i32 %223, %209
  %225 = sext i32 %224 to i64
  %226 = load i32, ptr %5, align 4, !tbaa !8
  %227 = sext i32 %226 to i64
  %228 = mul nsw i64 %225, %227
  %229 = add nsw i64 %228, %222
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %229)
          to label %231 unwind label %236

231:                                              ; preds = %218
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %230, i8 noundef signext 10)
          to label %.preheader unwind label %236

.preheader:                                       ; preds = %231
  %233 = load i32, ptr %1, align 4, !tbaa !8
  %.not90128 = icmp slt i32 %233, 1
  br i1 %.not90128, label %._crit_edge131, label %.lr.ph130

.lr.ph130:                                        ; preds = %.preheader
  %234 = getelementptr inbounds i8, ptr %3, i64 40
  br label %238

._crit_edge131:                                   ; preds = %246, %.preheader
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %251 unwind label %236

236:                                              ; preds = %._crit_edge131, %231, %218
  %237 = landingpad { ptr, i32 }
          cleanup
  br label %252

238:                                              ; preds = %.lr.ph130, %246
  %indvars.iv142 = phi i64 [ 1, %.lr.ph130 ], [ %indvars.iv.next143, %246 ]
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %234, i64 noundef %indvars.iv142) #7
  %240 = load i32, ptr %239, align 4, !tbaa !8
  %241 = xor i32 %240, %43
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %242
  %244 = load i8, ptr %243, align 1, !tbaa !18
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %244)
          to label %246 unwind label %249

246:                                              ; preds = %238
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %247 = load i32, ptr %1, align 4, !tbaa !8
  %248 = sext i32 %247 to i64
  %.not90.not = icmp slt i64 %indvars.iv142, %248
  br i1 %.not90.not, label %238, label %._crit_edge131, !llvm.loop !19

249:                                              ; preds = %238
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %252

251:                                              ; preds = %202, %189, %214, %._crit_edge131
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZN7LR_FlowD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %3) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

252:                                              ; preds = %.loopexit, %.loopexit.split-lp, %.loopexit103, %.loopexit.split-lp104, %236, %249, %216, %175, %55
  %.pn97 = phi { ptr, i32 } [ %56, %55 ], [ %.pn95, %175 ], [ %217, %216 ], [ %250, %249 ], [ %237, %236 ], [ %lpad.loopexit105, %.loopexit103 ], [ %lpad.loopexit.split-lp106, %.loopexit.split-lp104 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  br label %253

253:                                              ; preds = %252, %45
  %.pn97.pn = phi { ptr, i32 } [ %.pn97, %252 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZN7LR_FlowD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %3) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn97.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7LR_FlowC2Ei(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7LR_Flow8max_flowEii(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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


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