; LLVM IR from VastoLorde95/Competitive-Programming :: HackerEarth/IndiaHacks/Semi/Problem D/D.ll (Z5solvev)

; 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_ostream" = type { ptr, %"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 }
%"struct.std::pair" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.5" = type { i8 }
%"struct.std::pair.11" = type { i32, %"struct.std::pair" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@inf = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@leftTop = external dso_local global [1001000 x %"struct.std::pair"], align 16
@rightTop = external dso_local global [1001000 x %"struct.std::pair"], align 16
@leftOK = external dso_local global [1001000 x i32], align 16
@rightOK = external dso_local global [1001000 x i32], align 16
@events = external dso_local global [1001000 x %"class.std::vector"], align 16
@used = external dso_local global [1001000 x i32], align 16
@region = external dso_local global [1001000 x i32], align 16
@dx = external dso_local global [2 x i32], align 4
@dy = external dso_local global [2 x i32], align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mergeii(i32 noundef, i32 noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6updateiii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4dfs1iii(i32 noundef, i32 noundef, i32 noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4dfs2iii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.3", align 8
  %2 = alloca %"class.std::allocator.5", align 1
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %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 i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::pair.11", align 4
  %25 = alloca %"struct.std::pair", align 4
  %26 = alloca { i64, i32 }, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca 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 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #7
  %41 = load i32, ptr @n, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #7
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %42, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %43 unwind label %49

43:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %59, %43
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = load i32, ptr @n, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %53, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %66

49:                                               ; preds = %0
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %3, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %4, align 4
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #7
  br label %521

53:                                               ; preds = %44
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %55) #7
  %57 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %58 unwind label %62

58:                                               ; preds = %53
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %5, align 4, !tbaa !5
  br label %44, !llvm.loop !9

62:                                               ; preds = %53
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %3, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %520

66:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %105, %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = load i32, ptr @n, align 4, !tbaa !5
  %70 = load i32, ptr @m, align 4, !tbaa !5
  %71 = mul nsw i32 %69, %70
  %72 = icmp slt i32 %68, %71
  br i1 %72, label %74, label %73

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

74:                                               ; preds = %67
  %75 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z6createi(i32 noundef %75)
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %77
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %79 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @inf, ptr noundef nonnull align 4 dereferenceable(4) @inf)
          to label %80 unwind label %108

80:                                               ; preds = %74
  store i64 %79, ptr %7, align 4
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @leftTop, i64 0, i64 %82
  %84 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %83, ptr noundef nonnull align 4 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %85 = load i32, ptr @inf, align 4, !tbaa !5
  %86 = sub nsw i32 0, %85
  store i32 %86, ptr %9, align 4, !tbaa !5
  %87 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @inf, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %88 unwind label %112

88:                                               ; preds = %80
  store i64 %87, ptr %8, align 4
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @rightTop, i64 0, i64 %90
  %92 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %91, ptr noundef nonnull align 4 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1001000 x i32], ptr @used, i64 0, i64 %94
  store i32 0, ptr %95, align 4, !tbaa !5
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1001000 x i32], ptr @leftOK, i64 0, i64 %97
  store i32 0, ptr %98, align 4, !tbaa !5
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [1001000 x i32], ptr @rightOK, i64 0, i64 %100
  store i32 0, ptr %101, align 4, !tbaa !5
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %103
  store i32 0, ptr %104, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %88
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %6, align 4, !tbaa !5
  br label %67, !llvm.loop !11

108:                                              ; preds = %74
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %3, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %116

112:                                              ; preds = %80
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %3, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %116

116:                                              ; preds = %112, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %520

117:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %199, %117
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = load i32, ptr @n, align 4, !tbaa !5
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %202

123:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %195, %123
  %125 = load i32, ptr %12, align 4, !tbaa !5
  %126 = load i32, ptr @m, align 4, !tbaa !5
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %198

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %191, %129
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = icmp slt i32 %131, 2
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %194

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [2 x i32], ptr @dx, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = add nsw i32 %135, %139
  store i32 %140, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %141 = load i32, ptr %12, align 4, !tbaa !5
  %142 = load i32, ptr %13, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [2 x i32], ptr @dy, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = add nsw i32 %141, %145
  store i32 %146, ptr %15, align 4, !tbaa !5
  %147 = load i32, ptr %14, align 4, !tbaa !5
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = call noundef zeroext i1 @_Z2okii(i32 noundef %147, i32 noundef %148)
  br i1 %149, label %151, label %150

150:                                              ; preds = %134
  store i32 16, ptr %11, align 4
  br label %188

151:                                              ; preds = %134
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %153) #7
  %155 = load i32, ptr %15, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %154, i64 noundef %156)
          to label %158 unwind label %183

158:                                              ; preds = %151
  %159 = load i8, ptr %157, align 1, !tbaa !12
  %160 = sext i8 %159 to i32
  %161 = load i32, ptr %10, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %162) #7
  %164 = load i32, ptr %12, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %163, i64 noundef %165)
          to label %167 unwind label %183

167:                                              ; preds = %158
  %168 = load i8, ptr %166, align 1, !tbaa !12
  %169 = sext i8 %168 to i32
  %170 = icmp eq i32 %160, %169
  br i1 %170, label %171, label %187

171:                                              ; preds = %167
  %172 = load i32, ptr %14, align 4, !tbaa !5
  %173 = load i32, ptr %15, align 4, !tbaa !5
  %174 = call noundef i32 @_Z3getii(i32 noundef %172, i32 noundef %173)
  %175 = invoke noundef i32 @_Z4findi(i32 noundef %174)
          to label %176 unwind label %183

176:                                              ; preds = %171
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = load i32, ptr %12, align 4, !tbaa !5
  %179 = call noundef i32 @_Z3getii(i32 noundef %177, i32 noundef %178)
  %180 = invoke noundef i32 @_Z4findi(i32 noundef %179)
          to label %181 unwind label %183

181:                                              ; preds = %176
  invoke void @_Z5mergeii(i32 noundef %175, i32 noundef %180)
          to label %182 unwind label %183

182:                                              ; preds = %181
  br label %187

183:                                              ; preds = %181, %176, %171, %158, %151
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %3, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %520

187:                                              ; preds = %182, %167
  store i32 0, ptr %11, align 4
  br label %188

188:                                              ; preds = %187, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %189 = load i32, ptr %11, align 4
  switch i32 %189, label %527 [
    i32 0, label %190
    i32 16, label %191
  ]

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190, %188
  %192 = load i32, ptr %13, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %13, align 4, !tbaa !5
  br label %130, !llvm.loop !13

194:                                              ; preds = %133
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %12, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %12, align 4, !tbaa !5
  br label %124, !llvm.loop !14

198:                                              ; preds = %128
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %10, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %10, align 4, !tbaa !5
  br label %118, !llvm.loop !15

202:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %238, %202
  %204 = load i32, ptr %16, align 4, !tbaa !5
  %205 = load i32, ptr @n, align 4, !tbaa !5
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %241

208:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %209

209:                                              ; preds = %230, %208
  %210 = load i32, ptr %17, align 4, !tbaa !5
  %211 = load i32, ptr @m, align 4, !tbaa !5
  %212 = icmp slt i32 %210, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %209
  store i32 20, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %237

214:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %215 = load i32, ptr %16, align 4, !tbaa !5
  %216 = load i32, ptr %17, align 4, !tbaa !5
  %217 = call noundef i32 @_Z3getii(i32 noundef %215, i32 noundef %216)
  %218 = invoke noundef i32 @_Z4findi(i32 noundef %217)
          to label %219 unwind label %233

219:                                              ; preds = %214
  store i32 %218, ptr %18, align 4, !tbaa !5
  %220 = load i32, ptr %16, align 4, !tbaa !5
  %221 = load i32, ptr %17, align 4, !tbaa !5
  %222 = load i32, ptr %18, align 4, !tbaa !5
  invoke void @_Z6updateiii(i32 noundef %220, i32 noundef %221, i32 noundef %222)
          to label %223 unwind label %233

223:                                              ; preds = %219
  %224 = load i32, ptr %18, align 4, !tbaa !5
  %225 = load i32, ptr %16, align 4, !tbaa !5
  %226 = load i32, ptr %17, align 4, !tbaa !5
  %227 = call noundef i32 @_Z3getii(i32 noundef %225, i32 noundef %226)
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %228
  store i32 %224, ptr %229, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %230

230:                                              ; preds = %223
  %231 = load i32, ptr %17, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %17, align 4, !tbaa !5
  br label %209, !llvm.loop !16

233:                                              ; preds = %219, %214
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %3, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %520

237:                                              ; preds = %213
  br label %238

238:                                              ; preds = %237
  %239 = load i32, ptr %16, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %16, align 4, !tbaa !5
  br label %203, !llvm.loop !17

241:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %242

242:                                              ; preds = %297, %241
  %243 = load i32, ptr %19, align 4, !tbaa !5
  %244 = load i32, ptr @m, align 4, !tbaa !5
  %245 = icmp slt i32 %243, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %242
  store i32 23, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %300

247:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %291, %247
  %249 = load i32, ptr %20, align 4, !tbaa !5
  %250 = load i32, ptr @n, align 4, !tbaa !5
  %251 = icmp slt i32 %249, %250
  br i1 %251, label %252, label %296

252:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %253 = load i32, ptr %20, align 4, !tbaa !5
  %254 = load i32, ptr %19, align 4, !tbaa !5
  %255 = call noundef i32 @_Z3getii(i32 noundef %253, i32 noundef %254)
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !5
  store i32 %258, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %259 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %259, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %260 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %260, ptr %23, align 4, !tbaa !5
  %261 = load i32, ptr %20, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %20, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %278, %252
  %264 = load i32, ptr %20, align 4, !tbaa !5
  %265 = load i32, ptr @n, align 4, !tbaa !5
  %266 = icmp slt i32 %264, %265
  br i1 %266, label %267, label %276

267:                                              ; preds = %263
  %268 = load i32, ptr %20, align 4, !tbaa !5
  %269 = load i32, ptr %19, align 4, !tbaa !5
  %270 = call noundef i32 @_Z3getii(i32 noundef %268, i32 noundef %269)
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !5
  %274 = load i32, ptr %21, align 4, !tbaa !5
  %275 = icmp eq i32 %273, %274
  br label %276

276:                                              ; preds = %267, %263
  %277 = phi i1 [ false, %263 ], [ %275, %267 ]
  br i1 %277, label %278, label %281

278:                                              ; preds = %276
  %279 = load i32, ptr %20, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %20, align 4, !tbaa !5
  br label %263, !llvm.loop !18

281:                                              ; preds = %276
  %282 = load i32, ptr %20, align 4, !tbaa !5
  %283 = sub nsw i32 %282, 1
  store i32 %283, ptr %23, align 4, !tbaa !5
  %284 = load i32, ptr %21, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %285
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %287 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %288 unwind label %292

288:                                              ; preds = %281
  store i64 %287, ptr %25, align 4
  %289 = invoke { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %290 unwind label %292

290:                                              ; preds = %288
  store { i64, i32 } %289, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %26, i64 12, i1 false)
  invoke void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %286, ptr noundef nonnull align 4 dereferenceable(12) %24)
          to label %291 unwind label %292

291:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 12, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %248, !llvm.loop !19

292:                                              ; preds = %290, %288, %281
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %3, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 12, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %520

296:                                              ; preds = %248
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %19, align 4, !tbaa !5
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %19, align 4, !tbaa !5
  br label %242, !llvm.loop !20

300:                                              ; preds = %246
  call void @llvm.memset.p0.i64(ptr align 16 @used, i8 0, i64 4004000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %301

301:                                              ; preds = %361, %300
  %302 = load i32, ptr %27, align 4, !tbaa !5
  %303 = load i32, ptr @n, align 4, !tbaa !5
  %304 = icmp slt i32 %302, %303
  br i1 %304, label %306, label %305

305:                                              ; preds = %301
  store i32 30, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %364

306:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %307

307:                                              ; preds = %357, %306
  %308 = load i32, ptr %28, align 4, !tbaa !5
  %309 = load i32, ptr @m, align 4, !tbaa !5
  %310 = icmp slt i32 %308, %309
  br i1 %310, label %312, label %311

311:                                              ; preds = %307
  store i32 33, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %360

312:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %313 = load i32, ptr %27, align 4, !tbaa !5
  %314 = load i32, ptr %28, align 4, !tbaa !5
  %315 = call noundef i32 @_Z3getii(i32 noundef %313, i32 noundef %314)
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !5
  store i32 %318, ptr %29, align 4, !tbaa !5
  %319 = load i32, ptr %29, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [1001000 x i32], ptr @used, i64 0, i64 %320
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %356, label %324

324:                                              ; preds = %312
  %325 = load i32, ptr %29, align 4, !tbaa !5
  %326 = load i32, ptr %29, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @leftTop, i64 0, i64 %327
  %329 = getelementptr inbounds %"struct.std::pair", ptr %328, i32 0, i32 0
  %330 = load i32, ptr %329, align 8, !tbaa !21
  %331 = load i32, ptr %29, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @leftTop, i64 0, i64 %332
  %334 = getelementptr inbounds %"struct.std::pair", ptr %333, i32 0, i32 1
  %335 = load i32, ptr %334, align 4, !tbaa !23
  invoke void @_Z4dfs1iii(i32 noundef %325, i32 noundef %330, i32 noundef %335)
          to label %336 unwind label %352

336:                                              ; preds = %324
  %337 = load i32, ptr %29, align 4, !tbaa !5
  %338 = load i32, ptr %29, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @rightTop, i64 0, i64 %339
  %341 = getelementptr inbounds %"struct.std::pair", ptr %340, i32 0, i32 0
  %342 = load i32, ptr %341, align 8, !tbaa !21
  %343 = load i32, ptr %29, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @rightTop, i64 0, i64 %344
  %346 = getelementptr inbounds %"struct.std::pair", ptr %345, i32 0, i32 1
  %347 = load i32, ptr %346, align 4, !tbaa !23
  invoke void @_Z4dfs2iii(i32 noundef %337, i32 noundef %342, i32 noundef %347)
          to label %348 unwind label %352

348:                                              ; preds = %336
  %349 = load i32, ptr %29, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [1001000 x i32], ptr @used, i64 0, i64 %350
  store i32 1, ptr %351, align 4, !tbaa !5
  br label %356

352:                                              ; preds = %336, %324
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %3, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %520

356:                                              ; preds = %348, %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %357

357:                                              ; preds = %356
  %358 = load i32, ptr %28, align 4, !tbaa !5
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %28, align 4, !tbaa !5
  br label %307, !llvm.loop !24

360:                                              ; preds = %311
  br label %361

361:                                              ; preds = %360
  %362 = load i32, ptr %27, align 4, !tbaa !5
  %363 = add nsw i32 %362, 1
  store i32 %363, ptr %27, align 4, !tbaa !5
  br label %301, !llvm.loop !25

364:                                              ; preds = %305
  call void @llvm.memset.p0.i64(ptr align 16 @used, i8 0, i64 4004000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %365

365:                                              ; preds = %505, %364
  %366 = load i32, ptr %30, align 4, !tbaa !5
  %367 = load i32, ptr @n, align 4, !tbaa !5
  %368 = icmp slt i32 %366, %367
  br i1 %368, label %370, label %369

369:                                              ; preds = %365
  store i32 36, ptr %11, align 4
  br label %508

370:                                              ; preds = %365
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %371

371:                                              ; preds = %499, %370
  %372 = load i32, ptr %31, align 4, !tbaa !5
  %373 = load i32, ptr @m, align 4, !tbaa !5
  %374 = icmp slt i32 %372, %373
  br i1 %374, label %376, label %375

375:                                              ; preds = %371
  store i32 39, ptr %11, align 4
  br label %502

376:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %377 = load i32, ptr %30, align 4, !tbaa !5
  %378 = load i32, ptr %31, align 4, !tbaa !5
  %379 = call noundef i32 @_Z3getii(i32 noundef %377, i32 noundef %378)
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !5
  store i32 %382, ptr %32, align 4, !tbaa !5
  %383 = load i32, ptr %32, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds [1001000 x i32], ptr @used, i64 0, i64 %384
  %386 = load i32, ptr %385, align 4, !tbaa !5
  %387 = icmp ne i32 %386, 0
  br i1 %387, label %388, label %389

388:                                              ; preds = %376
  store i32 41, ptr %11, align 4
  br label %496

389:                                              ; preds = %376
  %390 = load i32, ptr %32, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [1001000 x i32], ptr @used, i64 0, i64 %391
  store i32 1, ptr %392, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 1, ptr %33, align 4, !tbaa !5
  br label %393

393:                                              ; preds = %490, %389
  %394 = load i32, ptr %33, align 4, !tbaa !5
  %395 = sext i32 %394 to i64
  %396 = load i32, ptr %32, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %397
  %399 = call noundef i64 @_ZNKSt6vectorISt4pairIiS0_IiiEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %398) #7
  %400 = icmp ult i64 %395, %399
  br i1 %400, label %402, label %401

401:                                              ; preds = %393
  store i32 42, ptr %11, align 4
  br label %493

402:                                              ; preds = %393
  %403 = load i32, ptr %32, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %404
  %406 = load i32, ptr %33, align 4, !tbaa !5
  %407 = sext i32 %406 to i64
  %408 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %405, i64 noundef %407) #7
  %409 = getelementptr inbounds %"struct.std::pair.11", ptr %408, i32 0, i32 0
  %410 = load i32, ptr %409, align 4, !tbaa !26
  %411 = load i32, ptr %32, align 4, !tbaa !5
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %412
  %414 = load i32, ptr %33, align 4, !tbaa !5
  %415 = sub nsw i32 %414, 1
  %416 = sext i32 %415 to i64
  %417 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %413, i64 noundef %416) #7
  %418 = getelementptr inbounds %"struct.std::pair.11", ptr %417, i32 0, i32 0
  %419 = load i32, ptr %418, align 4, !tbaa !26
  %420 = icmp eq i32 %410, %419
  br i1 %420, label %421, label %489

421:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %422 = load i32, ptr %32, align 4, !tbaa !5
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %423
  %425 = load i32, ptr %33, align 4, !tbaa !5
  %426 = sub nsw i32 %425, 1
  %427 = sext i32 %426 to i64
  %428 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %424, i64 noundef %427) #7
  %429 = getelementptr inbounds %"struct.std::pair.11", ptr %428, i32 0, i32 1
  %430 = getelementptr inbounds %"struct.std::pair", ptr %429, i32 0, i32 1
  %431 = load i32, ptr %430, align 4, !tbaa !28
  store i32 %431, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %432 = load i32, ptr %32, align 4, !tbaa !5
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %433
  %435 = load i32, ptr %33, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  %437 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %434, i64 noundef %436) #7
  %438 = getelementptr inbounds %"struct.std::pair.11", ptr %437, i32 0, i32 1
  %439 = getelementptr inbounds %"struct.std::pair", ptr %438, i32 0, i32 0
  %440 = load i32, ptr %439, align 4, !tbaa !29
  store i32 %440, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %441 = load i32, ptr %32, align 4, !tbaa !5
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %442
  %444 = load i32, ptr %33, align 4, !tbaa !5
  %445 = sext i32 %444 to i64
  %446 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %443, i64 noundef %445) #7
  %447 = getelementptr inbounds %"struct.std::pair.11", ptr %446, i32 0, i32 0
  %448 = load i32, ptr %447, align 4, !tbaa !26
  store i32 %448, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %449 = load i32, ptr %34, align 4, !tbaa !5
  %450 = load i32, ptr %36, align 4, !tbaa !5
  %451 = call noundef i32 @_Z3getii(i32 noundef %449, i32 noundef %450)
  store i32 %451, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %452 = load i32, ptr %35, align 4, !tbaa !5
  %453 = load i32, ptr %36, align 4, !tbaa !5
  %454 = call noundef i32 @_Z3getii(i32 noundef %452, i32 noundef %453)
  store i32 %454, ptr %38, align 4, !tbaa !5
  %455 = load i32, ptr %37, align 4, !tbaa !5
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds [1001000 x i32], ptr @leftOK, i64 0, i64 %456
  %458 = load i32, ptr %457, align 4, !tbaa !5
  %459 = icmp eq i32 %458, 1
  br i1 %459, label %460, label %485

460:                                              ; preds = %421
  %461 = load i32, ptr %37, align 4, !tbaa !5
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [1001000 x i32], ptr @rightOK, i64 0, i64 %462
  %464 = load i32, ptr %463, align 4, !tbaa !5
  %465 = icmp eq i32 %464, 1
  br i1 %465, label %466, label %485

466:                                              ; preds = %460
  %467 = load i32, ptr %38, align 4, !tbaa !5
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds [1001000 x i32], ptr @leftOK, i64 0, i64 %468
  %470 = load i32, ptr %469, align 4, !tbaa !5
  %471 = icmp eq i32 %470, 1
  br i1 %471, label %472, label %485

472:                                              ; preds = %466
  %473 = load i32, ptr %38, align 4, !tbaa !5
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds [1001000 x i32], ptr @rightOK, i64 0, i64 %474
  %476 = load i32, ptr %475, align 4, !tbaa !5
  %477 = icmp eq i32 %476, 1
  br i1 %477, label %478, label %485

478:                                              ; preds = %472
  %479 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %480 unwind label %481

480:                                              ; preds = %478
  store i32 1, ptr %11, align 4
  br label %486

481:                                              ; preds = %478
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %3, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  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 %520

485:                                              ; preds = %472, %466, %460, %421
  store i32 0, ptr %11, align 4
  br label %486

486:                                              ; preds = %485, %480
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  %487 = load i32, ptr %11, align 4
  switch i32 %487, label %493 [
    i32 0, label %488
  ]

488:                                              ; preds = %486
  br label %489

489:                                              ; preds = %488, %402
  br label %490

490:                                              ; preds = %489
  %491 = load i32, ptr %33, align 4, !tbaa !5
  %492 = add nsw i32 %491, 1
  store i32 %492, ptr %33, align 4, !tbaa !5
  br label %393, !llvm.loop !30

493:                                              ; preds = %486, %401
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  %494 = load i32, ptr %11, align 4
  switch i32 %494, label %496 [
    i32 42, label %495
  ]

495:                                              ; preds = %493
  store i32 0, ptr %11, align 4
  br label %496

496:                                              ; preds = %495, %493, %388
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  %497 = load i32, ptr %11, align 4
  switch i32 %497, label %502 [
    i32 0, label %498
    i32 41, label %499
  ]

498:                                              ; preds = %496
  br label %499

499:                                              ; preds = %498, %496
  %500 = load i32, ptr %31, align 4, !tbaa !5
  %501 = add nsw i32 %500, 1
  store i32 %501, ptr %31, align 4, !tbaa !5
  br label %371, !llvm.loop !31

502:                                              ; preds = %496, %375
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  %503 = load i32, ptr %11, align 4
  switch i32 %503, label %508 [
    i32 39, label %504
  ]

504:                                              ; preds = %502
  br label %505

505:                                              ; preds = %504
  %506 = load i32, ptr %30, align 4, !tbaa !5
  %507 = add nsw i32 %506, 1
  store i32 %507, ptr %30, align 4, !tbaa !5
  br label %365, !llvm.loop !32

508:                                              ; preds = %502, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  %509 = load i32, ptr %11, align 4
  switch i32 %509, label %513 [
    i32 36, label %510
  ]

510:                                              ; preds = %508
  %511 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %512 unwind label %516

512:                                              ; preds = %510
  store i32 0, ptr %11, align 4
  br label %513

513:                                              ; preds = %512, %508
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #7
  %514 = load i32, ptr %11, align 4
  switch i32 %514, label %527 [
    i32 0, label %515
    i32 1, label %515
  ]

515:                                              ; preds = %513, %513
  ret void

516:                                              ; preds = %510
  %517 = landingpad { ptr, i32 }
          cleanup
  %518 = extractvalue { ptr, i32 } %517, 0
  store ptr %518, ptr %3, align 8
  %519 = extractvalue { ptr, i32 } %517, 1
  store i32 %519, ptr %4, align 4
  br label %520

520:                                              ; preds = %516, %481, %352, %292, %233, %183, %116, %62
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  br label %521

521:                                              ; preds = %520, %49
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #7
  br label %522

522:                                              ; preds = %521
  %523 = load ptr, ptr %3, align 8
  %524 = load i32, ptr %4, align 4
  %525 = insertvalue { ptr, i32 } poison, ptr %523, 0
  %526 = insertvalue { ptr, i32 } %525, i32 %524, 1
  resume { ptr, i32 } %526

527:                                              ; preds = %513, %188
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

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

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

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

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


; 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_ostream" = type { ptr, %"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 }
%"struct.std::pair" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.5" = type { i8 }
%"struct.std::pair.11" = type { i32, %"struct.std::pair" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@inf = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@leftTop = external dso_local global [1001000 x %"struct.std::pair"], align 16
@rightTop = external dso_local global [1001000 x %"struct.std::pair"], align 16
@leftOK = external dso_local local_unnamed_addr global [1001000 x i32], align 16
@rightOK = external dso_local local_unnamed_addr global [1001000 x i32], align 16
@events = external dso_local global [1001000 x %"class.std::vector"], align 16
@used = external dso_local local_unnamed_addr global [1001000 x i32], align 16
@region = external dso_local local_unnamed_addr global [1001000 x i32], align 16
@dx = external dso_local local_unnamed_addr global [2 x i32], align 4
@dy = external dso_local local_unnamed_addr global [2 x i32], align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mergeii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6updateiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4dfs1iii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4dfs2iii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.3", align 8
  %2 = alloca %"class.std::allocator.5", align 1
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair.11", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #6
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %14, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %15 unwind label %22

15:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #6
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %.preheader151

.preheader151:                                    ; preds = %26, %15
  %18 = phi i32 [ %16, %15 ], [ %27, %26 ]
  %19 = load i32, ptr @m, align 4, !tbaa !5
  %20 = mul nsw i32 %19, %18
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph154, label %.preheader150

22:                                               ; preds = %0
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #6
  br label %282

.lr.ph:                                           ; preds = %15, %26
  %indvars.iv = phi i64 [ %indvars.iv.next, %26 ], [ 0, %15 ]
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #6
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %26 unwind label %30

26:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next, %28
  br i1 %29, label %.lr.ph, label %.preheader151, !llvm.loop !9

30:                                               ; preds = %.lr.ph
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %281

.preheader150:                                    ; preds = %45, %.preheader151
  %32 = phi i32 [ %19, %.preheader151 ], [ %53, %45 ]
  %33 = phi i32 [ %18, %.preheader151 ], [ %52, %45 ]
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.preheader149.lr.ph, label %._crit_edge162

.preheader149.lr.ph:                              ; preds = %.preheader150
  %35 = icmp sgt i32 %32, 0
  br i1 %35, label %.preheader149, label %.critedge142.sink.split.sink.split

.lr.ph154:                                        ; preds = %.preheader151, %45
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %45 ], [ 0, %.preheader151 ]
  %36 = trunc nuw nsw i64 %indvars.iv186 to i32
  call void @_Z6createi(i32 noundef %36)
  %37 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %indvars.iv186
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %38 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @inf, ptr noundef nonnull align 4 dereferenceable(4) @inf)
          to label %39 unwind label %57

39:                                               ; preds = %.lr.ph154
  store i64 %38, ptr %3, align 8
  %40 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @leftTop, i64 0, i64 %indvars.iv186
  %41 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %42 = load i32, ptr @inf, align 4, !tbaa !5
  %43 = sub nsw i32 0, %42
  store i32 %43, ptr %5, align 4, !tbaa !5
  %44 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @inf, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %45 unwind label %59

45:                                               ; preds = %39
  store i64 %44, ptr %4, align 8
  %46 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @rightTop, i64 0, i64 %indvars.iv186
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %48 = getelementptr inbounds [1001000 x i32], ptr @used, i64 0, i64 %indvars.iv186
  store i32 0, ptr %48, align 4, !tbaa !5
  %49 = getelementptr inbounds [1001000 x i32], ptr @leftOK, i64 0, i64 %indvars.iv186
  store i32 0, ptr %49, align 4, !tbaa !5
  %50 = getelementptr inbounds [1001000 x i32], ptr @rightOK, i64 0, i64 %indvars.iv186
  store i32 0, ptr %50, align 4, !tbaa !5
  %51 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %indvars.iv186
  store i32 0, ptr %51, align 4, !tbaa !5
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %52 = load i32, ptr @n, align 4, !tbaa !5
  %53 = load i32, ptr @m, align 4, !tbaa !5
  %54 = mul nsw i32 %53, %52
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next187, %55
  br i1 %56, label %.lr.ph154, label %.preheader150, !llvm.loop !11

57:                                               ; preds = %.lr.ph154
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %281

59:                                               ; preds = %39
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %281

.preheader149:                                    ; preds = %.preheader149.lr.ph, %._crit_edge
  %61 = phi i32 [ %73, %._crit_edge ], [ %33, %.preheader149.lr.ph ]
  %62 = phi i32 [ %74, %._crit_edge ], [ %32, %.preheader149.lr.ph ]
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %._crit_edge ], [ 0, %.preheader149.lr.ph ]
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %.preheader148.lr.ph, label %._crit_edge

.preheader148.lr.ph:                              ; preds = %.preheader149
  %64 = trunc nuw nsw i64 %indvars.iv195 to i32
  br label %.preheader148

.preheader147:                                    ; preds = %._crit_edge
  %65 = icmp sgt i32 %73, 0
  br i1 %65, label %.preheader146.lr.ph, label %._crit_edge162

.preheader146.lr.ph:                              ; preds = %.preheader147
  %66 = icmp sgt i32 %74, 0
  br i1 %66, label %.preheader146, label %.critedge142.sink.split.sink.split

.preheader148:                                    ; preds = %.preheader148.lr.ph, %123
  %indvars.iv192 = phi i64 [ 0, %.preheader148.lr.ph ], [ %indvars.iv.next193, %123 ]
  %67 = load i32, ptr @dx, align 4, !tbaa !5
  %68 = add nsw i32 %67, %64
  %69 = load i32, ptr @dy, align 4, !tbaa !5
  %70 = trunc nuw nsw i64 %indvars.iv192 to i32
  %71 = add nsw i32 %69, %70
  %72 = call noundef zeroext i1 @_Z2okii(i32 noundef %68, i32 noundef %71)
  br i1 %72, label %77, label %98

._crit_edge.loopexit:                             ; preds = %123
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader149
  %73 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %61, %.preheader149 ]
  %74 = phi i32 [ %124, %._crit_edge.loopexit ], [ %62, %.preheader149 ]
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %75 = sext i32 %73 to i64
  %76 = icmp slt i64 %indvars.iv.next196, %75
  br i1 %76, label %.preheader149, label %.preheader147, !llvm.loop !12

77:                                               ; preds = %.preheader148
  %78 = sext i32 %68 to i64
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %78) #6
  %80 = sext i32 %71 to i64
  %81 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %79, i64 noundef %80)
          to label %82 unwind label %96

82:                                               ; preds = %77
  %83 = load i8, ptr %81, align 1, !tbaa !14
  %84 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv195) #6
  %85 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %84, i64 noundef %indvars.iv192)
          to label %86 unwind label %96

86:                                               ; preds = %82
  %87 = load i8, ptr %85, align 1, !tbaa !14
  %88 = icmp eq i8 %83, %87
  br i1 %88, label %89, label %98

89:                                               ; preds = %86
  %90 = call noundef i32 @_Z3getii(i32 noundef %68, i32 noundef %71)
  %91 = invoke noundef i32 @_Z4findi(i32 noundef %90)
          to label %92 unwind label %96

92:                                               ; preds = %89
  %93 = call noundef i32 @_Z3getii(i32 noundef %64, i32 noundef %70)
  %94 = invoke noundef i32 @_Z4findi(i32 noundef %93)
          to label %95 unwind label %96

95:                                               ; preds = %92
  invoke void @_Z5mergeii(i32 noundef %91, i32 noundef %94)
          to label %98 unwind label %96

96:                                               ; preds = %122, %119, %116, %109, %104, %95, %92, %89, %82, %77
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %281

98:                                               ; preds = %86, %95, %.preheader148
  %99 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 4), align 4, !tbaa !5
  %100 = add nsw i32 %99, %64
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 4), align 4, !tbaa !5
  %102 = add nsw i32 %101, %70
  %103 = call noundef zeroext i1 @_Z2okii(i32 noundef %100, i32 noundef %102)
  br i1 %103, label %104, label %123

104:                                              ; preds = %98
  %105 = sext i32 %100 to i64
  %106 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %105) #6
  %107 = sext i32 %102 to i64
  %108 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %106, i64 noundef %107)
          to label %109 unwind label %96

109:                                              ; preds = %104
  %110 = load i8, ptr %108, align 1, !tbaa !14
  %111 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv195) #6
  %112 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %111, i64 noundef %indvars.iv192)
          to label %113 unwind label %96

113:                                              ; preds = %109
  %114 = load i8, ptr %112, align 1, !tbaa !14
  %115 = icmp eq i8 %110, %114
  br i1 %115, label %116, label %123

116:                                              ; preds = %113
  %117 = call noundef i32 @_Z3getii(i32 noundef %100, i32 noundef %102)
  %118 = invoke noundef i32 @_Z4findi(i32 noundef %117)
          to label %119 unwind label %96

119:                                              ; preds = %116
  %120 = call noundef i32 @_Z3getii(i32 noundef %64, i32 noundef %70)
  %121 = invoke noundef i32 @_Z4findi(i32 noundef %120)
          to label %122 unwind label %96

122:                                              ; preds = %119
  invoke void @_Z5mergeii(i32 noundef %118, i32 noundef %121)
          to label %123 unwind label %96

123:                                              ; preds = %122, %113, %98
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %124 = load i32, ptr @m, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next193, %125
  br i1 %126, label %.preheader148, label %._crit_edge.loopexit, !llvm.loop !15

.preheader146:                                    ; preds = %.preheader146.lr.ph, %._crit_edge160
  %127 = phi i32 [ %134, %._crit_edge160 ], [ %73, %.preheader146.lr.ph ]
  %128 = phi i32 [ %135, %._crit_edge160 ], [ %74, %.preheader146.lr.ph ]
  %.0124161 = phi i32 [ %136, %._crit_edge160 ], [ 0, %.preheader146.lr.ph ]
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %.lr.ph159, label %._crit_edge160

._crit_edge162:                                   ; preds = %._crit_edge160, %.preheader150, %.preheader147
  %130 = phi i32 [ %73, %.preheader147 ], [ %33, %.preheader150 ], [ %134, %._crit_edge160 ]
  %131 = phi i32 [ %74, %.preheader147 ], [ %32, %.preheader150 ], [ %135, %._crit_edge160 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %.preheader145.lr.ph, label %._crit_edge166

.preheader145.lr.ph:                              ; preds = %._crit_edge162
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %133 = icmp sgt i32 %130, 0
  br i1 %133, label %.preheader145, label %._crit_edge166.thread208

._crit_edge166.thread208:                         ; preds = %.preheader145.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %.critedge142.sink.split.sink.split

._crit_edge160.loopexit:                          ; preds = %141
  %.pre201 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge160

._crit_edge160:                                   ; preds = %._crit_edge160.loopexit, %.preheader146
  %134 = phi i32 [ %.pre201, %._crit_edge160.loopexit ], [ %127, %.preheader146 ]
  %135 = phi i32 [ %146, %._crit_edge160.loopexit ], [ %128, %.preheader146 ]
  %136 = add nuw nsw i32 %.0124161, 1
  %137 = icmp slt i32 %136, %134
  br i1 %137, label %.preheader146, label %._crit_edge162, !llvm.loop !16

.lr.ph159:                                        ; preds = %.preheader146, %141
  %.0125158 = phi i32 [ %145, %141 ], [ 0, %.preheader146 ]
  %138 = call noundef i32 @_Z3getii(i32 noundef %.0124161, i32 noundef %.0125158)
  %139 = invoke noundef i32 @_Z4findi(i32 noundef %138)
          to label %140 unwind label %148

140:                                              ; preds = %.lr.ph159
  invoke void @_Z6updateiii(i32 noundef %.0124161, i32 noundef %.0125158, i32 noundef %139)
          to label %141 unwind label %148

141:                                              ; preds = %140
  %142 = call noundef i32 @_Z3getii(i32 noundef %.0124161, i32 noundef %.0125158)
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %143
  store i32 %139, ptr %144, align 4, !tbaa !5
  %145 = add nuw nsw i32 %.0125158, 1
  %146 = load i32, ptr @m, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %.lr.ph159, label %._crit_edge160.loopexit, !llvm.loop !17

148:                                              ; preds = %140, %.lr.ph159
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %281

.preheader145:                                    ; preds = %.preheader145.lr.ph, %._crit_edge165
  %150 = phi i32 [ %184, %._crit_edge165 ], [ %131, %.preheader145.lr.ph ]
  %151 = phi i32 [ %187, %._crit_edge165 ], [ 0, %.preheader145.lr.ph ]
  %152 = phi i32 [ %186, %._crit_edge165 ], [ %130, %.preheader145.lr.ph ]
  %153 = icmp sgt i32 %152, 0
  br i1 %153, label %.lr.ph164, label %._crit_edge165

._crit_edge166:                                   ; preds = %._crit_edge165, %._crit_edge162
  %154 = phi i32 [ %131, %._crit_edge162 ], [ %184, %._crit_edge165 ]
  %155 = phi i32 [ %130, %._crit_edge162 ], [ %186, %._crit_edge165 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4004000) @used, i8 0, i64 4004000, i1 false)
  %156 = icmp sgt i32 %155, 0
  %157 = icmp sgt i32 %154, 0
  %or.cond232 = and i1 %156, %157
  br i1 %or.cond232, label %.preheader144, label %.critedge142.sink.split

.lr.ph164:                                        ; preds = %.preheader145, %179
  %.0126163 = phi i32 [ %.1127, %179 ], [ 0, %.preheader145 ]
  %158 = load i32, ptr %6, align 4, !tbaa !5
  %159 = call noundef i32 @_Z3getii(i32 noundef %.0126163, i32 noundef %158)
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 %.0126163, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 %.0126163, ptr %8, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %166, %.lr.ph164
  %.1127.in = phi i32 [ %.0126163, %.lr.ph164 ], [ %.1127, %166 ]
  %.1127 = add nsw i32 %.1127.in, 1
  %164 = load i32, ptr @n, align 4, !tbaa !5
  %165 = icmp slt i32 %.1127, %164
  br i1 %165, label %166, label %.critedge

166:                                              ; preds = %163
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = call noundef i32 @_Z3getii(i32 noundef %.1127, i32 noundef %167)
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = icmp eq i32 %171, %162
  br i1 %172, label %163, label %.critedge, !llvm.loop !18

.critedge:                                        ; preds = %163, %166
  store i32 %.1127.in, ptr %8, align 4, !tbaa !5
  %173 = sext i32 %162 to i64
  %174 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %173
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %175 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %176 unwind label %182

176:                                              ; preds = %.critedge
  store i64 %175, ptr %10, align 8
  %177 = invoke { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %178 unwind label %182

178:                                              ; preds = %176
  %.fca.0.extract = extractvalue { i64, i32 } %177, 0
  %.fca.1.extract = extractvalue { i64, i32 } %177, 1
  store i64 %.fca.0.extract, ptr %9, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %174, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %179 unwind label %182

179:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %180 = load i32, ptr @n, align 4, !tbaa !5
  %181 = icmp slt i32 %.1127, %180
  br i1 %181, label %.lr.ph164, label %._crit_edge165.loopexit, !llvm.loop !19

182:                                              ; preds = %178, %176, %.critedge
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %281

._crit_edge165.loopexit:                          ; preds = %179
  %.pre202 = load i32, ptr %6, align 4, !tbaa !5
  %.pre203 = load i32, ptr @m, align 4, !tbaa !5
  br label %._crit_edge165

._crit_edge165:                                   ; preds = %._crit_edge165.loopexit, %.preheader145
  %184 = phi i32 [ %.pre203, %._crit_edge165.loopexit ], [ %150, %.preheader145 ]
  %185 = phi i32 [ %.pre202, %._crit_edge165.loopexit ], [ %151, %.preheader145 ]
  %186 = phi i32 [ %180, %._crit_edge165.loopexit ], [ %152, %.preheader145 ]
  %187 = add nsw i32 %185, 1
  store i32 %187, ptr %6, align 4, !tbaa !5
  %188 = icmp slt i32 %187, %184
  br i1 %188, label %.preheader145, label %._crit_edge166, !llvm.loop !20

.preheader144:                                    ; preds = %._crit_edge166, %._crit_edge169
  %189 = phi i32 [ %193, %._crit_edge169 ], [ %155, %._crit_edge166 ]
  %190 = phi i32 [ %194, %._crit_edge169 ], [ %154, %._crit_edge166 ]
  %.0122170 = phi i32 [ %195, %._crit_edge169 ], [ 0, %._crit_edge166 ]
  %191 = icmp sgt i32 %190, 0
  br i1 %191, label %.lr.ph168, label %._crit_edge169

._crit_edge171:                                   ; preds = %._crit_edge169
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4004000) @used, i8 0, i64 4004000, i1 false)
  %.not130179 = icmp sgt i32 %193, 0
  %192 = icmp sgt i32 %194, 0
  %or.cond = and i1 %.not130179, %192
  br i1 %or.cond, label %.preheader, label %.critedge142

._crit_edge169.loopexit:                          ; preds = %217
  %.pre204 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge169

._crit_edge169:                                   ; preds = %._crit_edge169.loopexit, %.preheader144
  %193 = phi i32 [ %.pre204, %._crit_edge169.loopexit ], [ %189, %.preheader144 ]
  %194 = phi i32 [ %219, %._crit_edge169.loopexit ], [ %190, %.preheader144 ]
  %195 = add nuw nsw i32 %.0122170, 1
  %196 = icmp slt i32 %195, %193
  br i1 %196, label %.preheader144, label %._crit_edge171, !llvm.loop !21

.lr.ph168:                                        ; preds = %.preheader144, %217
  %.0121167 = phi i32 [ %218, %217 ], [ 0, %.preheader144 ]
  %197 = call noundef i32 @_Z3getii(i32 noundef %.0122170, i32 noundef %.0121167)
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [1001000 x i32], ptr @used, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %.not132 = icmp eq i32 %203, 0
  br i1 %.not132, label %204, label %217

204:                                              ; preds = %.lr.ph168
  %205 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @leftTop, i64 0, i64 %201
  %206 = load i32, ptr %205, align 8, !tbaa !22
  %207 = getelementptr inbounds i8, ptr %205, i64 4
  %208 = load i32, ptr %207, align 4, !tbaa !24
  invoke void @_Z4dfs1iii(i32 noundef %200, i32 noundef %206, i32 noundef %208)
          to label %209 unwind label %215

209:                                              ; preds = %204
  %210 = getelementptr inbounds [1001000 x %"struct.std::pair"], ptr @rightTop, i64 0, i64 %201
  %211 = load i32, ptr %210, align 8, !tbaa !22
  %212 = getelementptr inbounds i8, ptr %210, i64 4
  %213 = load i32, ptr %212, align 4, !tbaa !24
  invoke void @_Z4dfs2iii(i32 noundef %200, i32 noundef %211, i32 noundef %213)
          to label %214 unwind label %215

214:                                              ; preds = %209
  store i32 1, ptr %202, align 4, !tbaa !5
  br label %217

215:                                              ; preds = %209, %204
  %216 = landingpad { ptr, i32 }
          cleanup
  br label %281

217:                                              ; preds = %214, %.lr.ph168
  %218 = add nuw nsw i32 %.0121167, 1
  %219 = load i32, ptr @m, align 4, !tbaa !5
  %220 = icmp slt i32 %218, %219
  br i1 %220, label %.lr.ph168, label %._crit_edge169.loopexit, !llvm.loop !25

.preheader:                                       ; preds = %._crit_edge171, %.critedge140
  %221 = phi i32 [ %275, %.critedge140 ], [ %193, %._crit_edge171 ]
  %222 = phi i32 [ %276, %.critedge140 ], [ %194, %._crit_edge171 ]
  %.0119180 = phi i32 [ %277, %.critedge140 ], [ 0, %._crit_edge171 ]
  %.not131176 = icmp sgt i32 %222, 0
  br i1 %.not131176, label %.lr.ph178, label %.critedge140

.lr.ph178:                                        ; preds = %.preheader, %.loopexit
  %.0118177 = phi i32 [ %273, %.loopexit ], [ 0, %.preheader ]
  %223 = call noundef i32 @_Z3getii(i32 noundef %.0119180, i32 noundef %.0118177)
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [1001000 x i32], ptr @region, i64 0, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [1001000 x i32], ptr @used, i64 0, i64 %227
  %229 = load i32, ptr %228, align 4, !tbaa !5
  %.not = icmp eq i32 %229, 0
  br i1 %.not, label %230, label %.loopexit

230:                                              ; preds = %.lr.ph178
  store i32 1, ptr %228, align 4, !tbaa !5
  %231 = getelementptr inbounds [1001000 x %"class.std::vector"], ptr @events, i64 0, i64 %227
  %232 = call noundef i64 @_ZNKSt6vectorISt4pairIiS0_IiiEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %231) #6
  %.not129172 = icmp ugt i64 %232, 1
  br i1 %.not129172, label %.lr.ph175, label %.loopexit

.lr.ph175:                                        ; preds = %230, %271
  %indvars.iv198 = phi i64 [ %indvars.iv.next199, %271 ], [ 1, %230 ]
  %233 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %indvars.iv198) #6
  %234 = load i32, ptr %233, align 4, !tbaa !26
  %235 = add nsw i64 %indvars.iv198, -1
  %236 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %235) #6
  %237 = load i32, ptr %236, align 4, !tbaa !26
  %238 = icmp eq i32 %234, %237
  br i1 %238, label %239, label %271

239:                                              ; preds = %.lr.ph175
  %240 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %235) #6
  %241 = getelementptr inbounds i8, ptr %240, i64 8
  %242 = load i32, ptr %241, align 4, !tbaa !28
  %243 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %indvars.iv198) #6
  %244 = getelementptr inbounds i8, ptr %243, i64 4
  %245 = load i32, ptr %244, align 4, !tbaa !29
  %246 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %indvars.iv198) #6
  %247 = load i32, ptr %246, align 4, !tbaa !26
  %248 = call noundef i32 @_Z3getii(i32 noundef %242, i32 noundef %247)
  %249 = call noundef i32 @_Z3getii(i32 noundef %245, i32 noundef %247)
  %250 = sext i32 %248 to i64
  %251 = getelementptr inbounds [1001000 x i32], ptr @leftOK, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = icmp eq i32 %252, 1
  br i1 %253, label %254, label %271

254:                                              ; preds = %239
  %255 = getelementptr inbounds [1001000 x i32], ptr @rightOK, i64 0, i64 %250
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = icmp eq i32 %256, 1
  br i1 %257, label %258, label %271

258:                                              ; preds = %254
  %259 = sext i32 %249 to i64
  %260 = getelementptr inbounds [1001000 x i32], ptr @leftOK, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = icmp eq i32 %261, 1
  br i1 %262, label %263, label %271

263:                                              ; preds = %258
  %264 = getelementptr inbounds [1001000 x i32], ptr @rightOK, i64 0, i64 %259
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = icmp eq i32 %265, 1
  br i1 %266, label %267, label %271

267:                                              ; preds = %263
  %268 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %.critedge138 unwind label %269

269:                                              ; preds = %267
  %270 = landingpad { ptr, i32 }
          cleanup
  br label %281

271:                                              ; preds = %263, %258, %254, %239, %.lr.ph175
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %272 = call noundef i64 @_ZNKSt6vectorISt4pairIiS0_IiiEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %231) #6
  %.not129 = icmp ugt i64 %272, %indvars.iv.next199
  br i1 %.not129, label %.lr.ph175, label %.loopexit, !llvm.loop !30

.loopexit:                                        ; preds = %271, %230, %.lr.ph178
  %273 = add nuw nsw i32 %.0118177, 1
  %274 = load i32, ptr @m, align 4, !tbaa !5
  %.not131 = icmp slt i32 %273, %274
  br i1 %.not131, label %.lr.ph178, label %.critedge140.loopexit, !llvm.loop !31

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

.critedge140:                                     ; preds = %.critedge140.loopexit, %.preheader
  %275 = phi i32 [ %.pre205, %.critedge140.loopexit ], [ %221, %.preheader ]
  %276 = phi i32 [ %274, %.critedge140.loopexit ], [ %222, %.preheader ]
  %277 = add nuw nsw i32 %.0119180, 1
  %.not130 = icmp slt i32 %277, %275
  br i1 %.not130, label %.preheader, label %.critedge142, !llvm.loop !32

.critedge142.sink.split.sink.split:               ; preds = %.preheader149.lr.ph, %.preheader146.lr.ph, %._crit_edge166.thread208
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4004000) @used, i8 0, i64 4004000, i1 false)
  br label %.critedge142.sink.split

.critedge142.sink.split:                          ; preds = %.critedge142.sink.split.sink.split, %._crit_edge166
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4004000) @used, i8 0, i64 4004000, i1 false)
  br label %.critedge142

.critedge142:                                     ; preds = %.critedge140, %.critedge142.sink.split, %._crit_edge171
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %.critedge138 unwind label %279

.critedge138:                                     ; preds = %267, %.critedge142
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  ret void

279:                                              ; preds = %.critedge142
  %280 = landingpad { ptr, i32 }
          cleanup
  br label %281

281:                                              ; preds = %57, %59, %279, %269, %215, %182, %148, %96, %30
  %.pn134 = phi { ptr, i32 } [ %31, %30 ], [ %97, %96 ], [ %149, %148 ], [ %183, %182 ], [ %216, %215 ], [ %280, %279 ], [ %270, %269 ], [ %60, %59 ], [ %58, %57 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  br label %282

282:                                              ; preds = %281, %22
  %.pn134.pn = phi { ptr, i32 } [ %.pn134, %281 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn134.pn
}

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 #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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


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