; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2007-08 (alake)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, int>, std::_Select1st<std::pair<const std::pair<int, int>, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, int>, std::_Select1st<std::pair<const std::pair<int, int>, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.6" = type { %"struct.std::pair", i32 }

@N = external dso_local global i32, align 4
@H = external dso_local global [100001 x i32], align 16
@W = external dso_local global [100001 x i32], align 16
@w = external dso_local global [100001 x i32], align 16
@child = external dso_local global [100001 x [2 x i32]], align 16
@par = external dso_local global [100001 x i32], align 16
@leftmost = external dso_local global [100001 x i32], align 16
@rightmost = external dso_local global [100001 x i32], align 16
@ans = external dso_local global [100001 x i64], align 16
@ti = external dso_local global i64, align 8
@m = external dso_local global %"class.std::map", align 8
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [95 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2io5setIOENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

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

; 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 uwtable
declare dso_local noundef i64 @_Z6getPari(i32 noundef) #0

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

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

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

48:                                               ; preds = %0
  invoke void @_ZN2io5setIOENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %2)
          to label %49 unwind label %60

49:                                               ; preds = %48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #8
  call void @_ZN2io2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @N)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %79, %49
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = load i32, ptr @N, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  %54 = icmp slt i32 %51, %53
  br i1 %54, label %65, label %55

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

56:                                               ; preds = %0
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %4, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %5, align 4
  br label %64

60:                                               ; preds = %48
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %4, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  br label %64

64:                                               ; preds = %60, %56
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #8
  br label %487

65:                                               ; preds = %50
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100001 x i32], ptr @W, i64 0, i64 %67
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [100001 x i32], ptr @H, i64 0, i64 %70
  call void @_ZN2io2reIiJiEEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %68, ptr noundef nonnull align 4 dereferenceable(4) %71)
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100001 x i32], ptr @W, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %77
  store i32 %75, ptr %78, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %65
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %6, align 4, !tbaa !5
  br label %50, !llvm.loop !9

82:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %91, %82
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = load i32, ptr @N, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  %87 = icmp slt i32 %84, %86
  br i1 %87, label %89, label %88

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

89:                                               ; preds = %83
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %90 unwind label %94

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %8, align 4, !tbaa !5
  br label %83, !llvm.loop !11

94:                                               ; preds = %89
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %4, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %486

98:                                               ; preds = %88
  %99 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  %101 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ4mainE3$_0EvT_S8_T0_"(ptr %104, ptr %106)
          to label %107 unwind label %117

107:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store ptr %7, ptr %12, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %108 = load ptr, ptr %12, align 8, !tbaa !12
  %109 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #8
  %110 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %109, ptr %110, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %111 = load ptr, ptr %12, align 8, !tbaa !12
  %112 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #8
  %113 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %112, ptr %113, align 8
  br label %114

114:                                              ; preds = %366, %107
  %115 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %115, label %121, label %116

116:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %370

117:                                              ; preds = %98
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %4, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %5, align 4
  br label %486

121:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  store ptr %122, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %123 = load ptr, ptr %15, align 8, !tbaa !12
  %124 = load ptr, ptr %15, align 8, !tbaa !12
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %123, ptr noundef nonnull align 4 dereferenceable(4) %124)
          to label %125 unwind label %218

125:                                              ; preds = %121
  %126 = load ptr, ptr %15, align 8, !tbaa !12
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %129 unwind label %218

129:                                              ; preds = %125
  store i32 %127, ptr %128, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %130 = invoke ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %131 unwind label %222

131:                                              ; preds = %129
  %132 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  store ptr %130, ptr %132, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %133 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %135 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %134, i64 noundef 1)
          to label %136 unwind label %226

136:                                              ; preds = %131
  %137 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
  store ptr %135, ptr %137, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %138 = call ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %139 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEES6_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %140, label %141, label %155

141:                                              ; preds = %136
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %142 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %22, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  %144 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %143, i64 noundef 1)
          to label %145 unwind label %230

145:                                              ; preds = %141
  %146 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %21, i32 0, i32 0
  store ptr %144, ptr %146, align 8
  %147 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %148 = getelementptr inbounds %"struct.std::pair.6", ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %"struct.std::pair", ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 4, !tbaa !15
  %151 = load ptr, ptr %15, align 8, !tbaa !12
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  %154 = icmp eq i32 %150, %153
  br label %155

155:                                              ; preds = %145, %136
  %156 = phi i1 [ false, %136 ], [ %154, %145 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br i1 %156, label %157, label %247

157:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %158 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  %160 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %159, i64 noundef 1)
          to label %161 unwind label %235

161:                                              ; preds = %157
  %162 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %23, i32 0, i32 0
  store ptr %160, ptr %162, align 8
  %163 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %164 = getelementptr inbounds %"struct.std::pair.6", ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %"struct.std::pair", ptr %164, i32 0, i32 1
  %166 = load i32, ptr %165, align 4, !tbaa !18
  %167 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 1
  store i32 %166, ptr %167, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %168 = load ptr, ptr %15, align 8, !tbaa !12
  %169 = load i32, ptr %168, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %170 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %26, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8
  %172 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %171, i64 noundef 1)
          to label %173 unwind label %239

173:                                              ; preds = %161
  %174 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %25, i32 0, i32 0
  store ptr %172, ptr %174, align 8
  %175 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  %176 = getelementptr inbounds %"struct.std::pair.6", ptr %175, i32 0, i32 1
  %177 = load i32, ptr %176, align 4, !tbaa !20
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %178
  store i32 %169, ptr %179, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %180 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %28, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8
  %182 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %181, i64 noundef 1)
          to label %183 unwind label %243

183:                                              ; preds = %173
  %184 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %27, i32 0, i32 0
  store ptr %182, ptr %184, align 8
  %185 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  %186 = getelementptr inbounds %"struct.std::pair.6", ptr %185, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !20
  %188 = load ptr, ptr %15, align 8, !tbaa !12
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %190
  %192 = getelementptr inbounds [2 x i32], ptr %191, i64 0, i64 1
  store i32 %187, ptr %192, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %193 = load ptr, ptr %15, align 8, !tbaa !12
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %195
  %197 = getelementptr inbounds [2 x i32], ptr %196, i64 0, i64 1
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = load ptr, ptr %15, align 8, !tbaa !12
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = add nsw i32 %206, %201
  store i32 %207, ptr %205, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %208 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %30, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8
  %210 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %209, i64 noundef 1)
          to label %211 unwind label %222

211:                                              ; preds = %183
  %212 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %29, i32 0, i32 0
  store ptr %210, ptr %212, align 8
  %213 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %29, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8
  %215 = invoke ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS5_E(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr %214)
          to label %216 unwind label %222

216:                                              ; preds = %211
  %217 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %31, i32 0, i32 0
  store ptr %215, ptr %217, align 8
  br label %247

218:                                              ; preds = %125, %121
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %4, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %5, align 4
  br label %369

222:                                              ; preds = %360, %344, %321, %293, %211, %183, %129
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %4, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %5, align 4
  br label %368

226:                                              ; preds = %131
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %4, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %5, align 4
  br label %234

230:                                              ; preds = %141
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %4, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %234

234:                                              ; preds = %230, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %368

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

239:                                              ; preds = %161
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %4, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %368

243:                                              ; preds = %173
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %4, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %368

247:                                              ; preds = %216, %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %248 = call ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %249 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %32, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  %250 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEES6_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  br i1 %250, label %251, label %265

251:                                              ; preds = %247
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %252 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %34, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8
  %254 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %253, i64 noundef 1)
          to label %255 unwind label %328

255:                                              ; preds = %251
  %256 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %33, i32 0, i32 0
  store ptr %254, ptr %256, align 8
  %257 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  %258 = getelementptr inbounds %"struct.std::pair.6", ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds %"struct.std::pair", ptr %258, i32 0, i32 1
  %260 = load i32, ptr %259, align 4, !tbaa !18
  %261 = load ptr, ptr %15, align 8, !tbaa !12
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = sub nsw i32 %262, 1
  %264 = icmp eq i32 %260, %263
  br label %265

265:                                              ; preds = %255, %247
  %266 = phi i1 [ false, %247 ], [ %264, %255 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br i1 %266, label %267, label %344

267:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %268 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %36, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8
  %270 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %269, i64 noundef 1)
          to label %271 unwind label %332

271:                                              ; preds = %267
  %272 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %35, i32 0, i32 0
  store ptr %270, ptr %272, align 8
  %273 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  %274 = getelementptr inbounds %"struct.std::pair.6", ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds %"struct.std::pair", ptr %274, i32 0, i32 0
  %276 = load i32, ptr %275, align 4, !tbaa !15
  %277 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 0
  store i32 %276, ptr %277, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  %278 = load ptr, ptr %15, align 8, !tbaa !12
  %279 = load i32, ptr %278, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %280 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %38, i32 0, i32 0
  %281 = load ptr, ptr %280, align 8
  %282 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %281, i64 noundef 1)
          to label %283 unwind label %336

283:                                              ; preds = %271
  %284 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %37, i32 0, i32 0
  store ptr %282, ptr %284, align 8
  %285 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  %286 = getelementptr inbounds %"struct.std::pair.6", ptr %285, i32 0, i32 1
  %287 = load i32, ptr %286, align 4, !tbaa !20
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %288
  store i32 %279, ptr %289, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %290 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %40, i32 0, i32 0
  %291 = load ptr, ptr %290, align 8
  %292 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %291, i64 noundef 1)
          to label %293 unwind label %340

293:                                              ; preds = %283
  %294 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %39, i32 0, i32 0
  store ptr %292, ptr %294, align 8
  %295 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  %296 = getelementptr inbounds %"struct.std::pair.6", ptr %295, i32 0, i32 1
  %297 = load i32, ptr %296, align 4, !tbaa !20
  %298 = load ptr, ptr %15, align 8, !tbaa !12
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %300
  %302 = getelementptr inbounds [2 x i32], ptr %301, i64 0, i64 0
  store i32 %297, ptr %302, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  %303 = load ptr, ptr %15, align 8, !tbaa !12
  %304 = load i32, ptr %303, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %305
  %307 = getelementptr inbounds [2 x i32], ptr %306, i64 0, i64 0
  %308 = load i32, ptr %307, align 8, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %309
  %311 = load i32, ptr %310, align 4, !tbaa !5
  %312 = load ptr, ptr %15, align 8, !tbaa !12
  %313 = load i32, ptr %312, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %314
  %316 = load i32, ptr %315, align 4, !tbaa !5
  %317 = add nsw i32 %316, %311
  store i32 %317, ptr %315, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %318 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %42, i32 0, i32 0
  %319 = load ptr, ptr %318, align 8
  %320 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %319, i64 noundef 1)
          to label %321 unwind label %222

321:                                              ; preds = %293
  %322 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %41, i32 0, i32 0
  store ptr %320, ptr %322, align 8
  %323 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %41, i32 0, i32 0
  %324 = load ptr, ptr %323, align 8
  %325 = invoke ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS5_E(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr %324)
          to label %326 unwind label %222

326:                                              ; preds = %321
  %327 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %43, i32 0, i32 0
  store ptr %325, ptr %327, align 8
  br label %344

328:                                              ; preds = %251
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %4, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %368

332:                                              ; preds = %267
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %4, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %368

336:                                              ; preds = %271
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %4, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %368

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

344:                                              ; preds = %326, %265
  %345 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 0
  %346 = load i32, ptr %345, align 4, !tbaa !21
  %347 = load ptr, ptr %15, align 8, !tbaa !12
  %348 = load i32, ptr %347, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [100001 x i32], ptr @leftmost, i64 0, i64 %349
  store i32 %346, ptr %350, align 4, !tbaa !5
  %351 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 1
  %352 = load i32, ptr %351, align 4, !tbaa !19
  %353 = load ptr, ptr %15, align 8, !tbaa !12
  %354 = load i32, ptr %353, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [100001 x i32], ptr @rightmost, i64 0, i64 %355
  store i32 %352, ptr %356, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !14
  %357 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %44, i32 0, i32 0
  %358 = load ptr, ptr %357, align 8
  %359 = invoke ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS5_E(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr %358)
          to label %360 unwind label %222

360:                                              ; preds = %344
  %361 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %45, i32 0, i32 0
  store ptr %359, ptr %361, align 8
  %362 = load ptr, ptr %15, align 8, !tbaa !12
  %363 = load i32, ptr %362, align 4, !tbaa !5
  %364 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %365 unwind label %222

365:                                              ; preds = %360
  store i32 %363, ptr %364, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %366

366:                                              ; preds = %365
  %367 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %114

368:                                              ; preds = %340, %336, %332, %328, %243, %239, %235, %234, %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %369

369:                                              ; preds = %368, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %486

370:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %371 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #8
  %372 = load i32, ptr %371, align 4, !tbaa !5
  store i32 %372, ptr %46, align 4, !tbaa !5
  br label %373

373:                                              ; preds = %459, %370
  br label %374

374:                                              ; preds = %373
  %375 = load i64, ptr @ti, align 8, !tbaa !22
  %376 = load i32, ptr %46, align 4, !tbaa !5
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %377
  %379 = load i32, ptr %378, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = add nsw i64 %375, %380
  %382 = load i32, ptr %46, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %383
  store i64 %381, ptr %384, align 8, !tbaa !22
  %385 = load i32, ptr %46, align 4, !tbaa !5
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %386
  %388 = load i32, ptr %387, align 4, !tbaa !5
  %389 = icmp eq i32 %388, 0
  br i1 %389, label %390, label %391

390:                                              ; preds = %374
  br label %464

391:                                              ; preds = %374
  %392 = load i32, ptr %46, align 4, !tbaa !5
  %393 = invoke noundef i64 @_Z6getPari(i32 noundef %392)
          to label %394 unwind label %424

394:                                              ; preds = %391
  %395 = load i64, ptr @ti, align 8, !tbaa !22
  %396 = add nsw i64 %395, %393
  store i64 %396, ptr @ti, align 8, !tbaa !22
  %397 = load i32, ptr %46, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %398
  %400 = load i32, ptr %399, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %401
  %403 = getelementptr inbounds [2 x i32], ptr %402, i64 0, i64 0
  %404 = load i32, ptr %403, align 8, !tbaa !5
  %405 = load i32, ptr %46, align 4, !tbaa !5
  %406 = icmp eq i32 %404, %405
  br i1 %406, label %407, label %428

407:                                              ; preds = %394
  %408 = load i32, ptr %46, align 4, !tbaa !5
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %409
  %411 = load i32, ptr %410, align 4, !tbaa !5
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %412
  %414 = getelementptr inbounds [2 x i32], ptr %413, i64 0, i64 1
  %415 = load i32, ptr %414, align 4, !tbaa !5
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds [100001 x i32], ptr @leftmost, i64 0, i64 %416
  %418 = load i32, ptr %417, align 4, !tbaa !5
  %419 = load i32, ptr %46, align 4, !tbaa !5
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %420
  %422 = load i32, ptr %421, align 4, !tbaa !5
  invoke void @_Z8fromLeftii(i32 noundef %418, i32 noundef %422)
          to label %423 unwind label %424

423:                                              ; preds = %407
  br label %459

424:                                              ; preds = %442, %407, %391
  %425 = landingpad { ptr, i32 }
          cleanup
  %426 = extractvalue { ptr, i32 } %425, 0
  store ptr %426, ptr %4, align 8
  %427 = extractvalue { ptr, i32 } %425, 1
  store i32 %427, ptr %5, align 4
  br label %485

428:                                              ; preds = %394
  %429 = load i32, ptr %46, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %430
  %432 = load i32, ptr %431, align 4, !tbaa !5
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %433
  %435 = getelementptr inbounds [2 x i32], ptr %434, i64 0, i64 1
  %436 = load i32, ptr %435, align 4, !tbaa !5
  %437 = load i32, ptr %46, align 4, !tbaa !5
  %438 = icmp eq i32 %436, %437
  br i1 %438, label %439, label %440

439:                                              ; preds = %428
  br label %442

440:                                              ; preds = %428
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 213, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

441:                                              ; No predecessors!
  br label %442

442:                                              ; preds = %441, %439
  %443 = load i32, ptr %46, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %444
  %446 = load i32, ptr %445, align 4, !tbaa !5
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %447
  %449 = getelementptr inbounds [2 x i32], ptr %448, i64 0, i64 0
  %450 = load i32, ptr %449, align 8, !tbaa !5
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds [100001 x i32], ptr @rightmost, i64 0, i64 %451
  %453 = load i32, ptr %452, align 4, !tbaa !5
  %454 = load i32, ptr %46, align 4, !tbaa !5
  %455 = sext i32 %454 to i64
  %456 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %455
  %457 = load i32, ptr %456, align 4, !tbaa !5
  invoke void @_Z9fromRightii(i32 noundef %453, i32 noundef %457)
          to label %458 unwind label %424

458:                                              ; preds = %442
  br label %459

459:                                              ; preds = %458, %423
  %460 = load i32, ptr %46, align 4, !tbaa !5
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %461
  %463 = load i32, ptr %462, align 4, !tbaa !5
  store i32 %463, ptr %46, align 4, !tbaa !5
  br label %373, !llvm.loop !24

464:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  store i32 1, ptr %47, align 4, !tbaa !5
  br label %465

465:                                              ; preds = %476, %464
  %466 = load i32, ptr %47, align 4, !tbaa !5
  %467 = load i32, ptr @N, align 4, !tbaa !5
  %468 = add nsw i32 %467, 1
  %469 = icmp slt i32 %466, %468
  br i1 %469, label %471, label %470

470:                                              ; preds = %465
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %483

471:                                              ; preds = %465
  %472 = load i32, ptr %47, align 4, !tbaa !5
  %473 = sext i32 %472 to i64
  %474 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %473
  invoke void @_ZN2io2prIxEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %474)
          to label %475 unwind label %479

475:                                              ; preds = %471
  br label %476

476:                                              ; preds = %475
  %477 = load i32, ptr %47, align 4, !tbaa !5
  %478 = add nsw i32 %477, 1
  store i32 %478, ptr %47, align 4, !tbaa !5
  br label %465, !llvm.loop !25

479:                                              ; preds = %471
  %480 = landingpad { ptr, i32 }
          cleanup
  %481 = extractvalue { ptr, i32 } %480, 0
  store ptr %481, ptr %4, align 8
  %482 = extractvalue { ptr, i32 } %480, 1
  store i32 %482, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %485

483:                                              ; preds = %470
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  %484 = load i32, ptr %1, align 4
  ret i32 %484

485:                                              ; preds = %479, %424
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %486

486:                                              ; preds = %485, %369, %117, %94
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br label %487

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2io2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2io2reIiJiEEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ4mainE3$_0EvT_S8_T0_"(ptr, ptr) #4

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr, i64 noundef) #4

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr, i64 noundef) #4

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{i64 0, i64 8, !12}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt4pairIKS_IiiEiE", !17, i64 0, !6, i64 8}
!17 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!18 = !{!16, !6, i64 4}
!19 = !{!17, !6, i64 4}
!20 = !{!16, !6, i64 8}
!21 = !{!17, !6, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"long long", !7, i64 0}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, int>, std::_Select1st<std::pair<const std::pair<int, int>, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, int>, std::_Select1st<std::pair<const std::pair<int, int>, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@N = external dso_local global i32, align 4
@H = external dso_local global [100001 x i32], align 16
@W = external dso_local global [100001 x i32], align 16
@w = external dso_local local_unnamed_addr global [100001 x i32], align 16
@child = external dso_local local_unnamed_addr global [100001 x [2 x i32]], align 16
@par = external dso_local local_unnamed_addr global [100001 x i32], align 16
@leftmost = external dso_local local_unnamed_addr global [100001 x i32], align 16
@rightmost = external dso_local local_unnamed_addr global [100001 x i32], align 16
@ans = external dso_local global [100001 x i64], align 16
@ti = external dso_local local_unnamed_addr global i64, align 8
@m = external dso_local global %"class.std::map", align 8
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [95 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2io5setIOENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

; 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 uwtable
declare dso_local noundef i64 @_Z6getPari(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::allocator", align 1
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %20 unwind label %24

20:                                               ; preds = %0
  invoke void @_ZN2io5setIOENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %1)
          to label %21 unwind label %26

21:                                               ; preds = %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  call void @_ZN2io2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @N)
  %22 = load i32, ptr @N, align 4, !tbaa !5
  %.not86 = icmp slt i32 %22, 1
  br i1 %.not86, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 1, ptr %4, align 4, !tbaa !5
  %23 = load i32, ptr @N, align 4, !tbaa !5
  %.not7488 = icmp slt i32 %23, 1
  br i1 %.not7488, label %._crit_edge91, label %.lr.ph90

24:                                               ; preds = %0
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %28

26:                                               ; preds = %20
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  br label %28

28:                                               ; preds = %26, %24
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %25, %24 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  br label %246

.lr.ph:                                           ; preds = %21, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %21 ]
  %29 = getelementptr inbounds [100001 x i32], ptr @W, i64 0, i64 %indvars.iv
  %30 = getelementptr inbounds [100001 x i32], ptr @H, i64 0, i64 %indvars.iv
  call void @_ZN2io2reIiJiEEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %31 = load i32, ptr %29, align 4, !tbaa !5
  %32 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %indvars.iv
  store i32 %31, ptr %32, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = load i32, ptr @N, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %.not.not = icmp slt i64 %indvars.iv, %34
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge91:                                    ; preds = %37, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %35 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %36 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ4mainE3$_0EvT_S8_T0_"(ptr %35, ptr %36)
          to label %43 unwind label %59

.lr.ph90:                                         ; preds = %._crit_edge, %37
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %37 unwind label %41

37:                                               ; preds = %.lr.ph90
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %4, align 4, !tbaa !5
  %40 = load i32, ptr @N, align 4, !tbaa !5
  %.not74.not = icmp slt i32 %38, %40
  br i1 %.not74.not, label %.lr.ph90, label %._crit_edge91, !llvm.loop !11

41:                                               ; preds = %.lr.ph90
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %245

43:                                               ; preds = %._crit_edge91
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %44 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  store ptr %44, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %45 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  store ptr %45, ptr %6, align 8
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %46, label %.lr.ph93, label %._crit_edge94

.lr.ph93:                                         ; preds = %43
  %47 = getelementptr inbounds i8, ptr %7, i64 4
  br label %61

._crit_edge94:                                    ; preds = %197, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %.06295 = load i32, ptr %48, align 4, !tbaa !5
  %49 = load i64, ptr @ti, align 8, !tbaa !12
  %50 = sext i32 %.06295 to i64
  %51 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = add nsw i64 %49, %53
  %55 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %50
  store i64 %54, ptr %55, align 8, !tbaa !12
  %56 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %50
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %.preheader, label %.lr.ph98

59:                                               ; preds = %._crit_edge91
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %245

61:                                               ; preds = %.lr.ph93, %197
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %62, ptr noundef nonnull align 4 dereferenceable(4) %62)
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %65 unwind label %115

65:                                               ; preds = %61
  store i32 %63, ptr %64, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %66 = invoke ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %67 unwind label %117

67:                                               ; preds = %65
  store ptr %66, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %68 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %66, i64 noundef 1)
          to label %69 unwind label %119

69:                                               ; preds = %67
  store ptr %68, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %70 = call ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #7
  store ptr %70, ptr %10, align 8
  %71 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %71, label %72, label %.critedge

72:                                               ; preds = %69
  %.sroa.032.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %73 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.032.0.copyload, i64 noundef 1)
          to label %74 unwind label %121

74:                                               ; preds = %72
  store ptr %73, ptr %11, align 8
  %75 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %76 = load i32, ptr %75, align 4, !tbaa !16
  %77 = load i32, ptr %62, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  %79 = icmp eq i32 %76, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br i1 %79, label %80, label %130

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %.sroa.031.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %81 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.031.0.copyload, i64 noundef 1)
          to label %82 unwind label %124

82:                                               ; preds = %80
  store ptr %81, ptr %12, align 8
  %83 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %84 = getelementptr inbounds i8, ptr %83, i64 4
  %85 = load i32, ptr %84, align 4, !tbaa !19
  store i32 %85, ptr %47, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %86 = load i32, ptr %62, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %.sroa.030.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %87 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.030.0.copyload, i64 noundef 1)
          to label %88 unwind label %126

88:                                               ; preds = %82
  store ptr %87, ptr %13, align 8
  %89 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %90 = getelementptr inbounds i8, ptr %89, i64 8
  %91 = load i32, ptr %90, align 4, !tbaa !21
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %92
  store i32 %86, ptr %93, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %.sroa.029.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %94 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.029.0.copyload, i64 noundef 1)
          to label %95 unwind label %128

95:                                               ; preds = %88
  store ptr %94, ptr %14, align 8
  %96 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load i32, ptr %97, align 4, !tbaa !21
  %99 = load i32, ptr %62, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %100, i64 1
  store i32 %98, ptr %101, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %102 = load i32, ptr %62, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %103, i64 1
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %103
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = add nsw i32 %110, %108
  store i32 %111, ptr %109, align 4, !tbaa !5
  %.sroa.027.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %112 = invoke ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.027.0.copyload, i64 noundef 1)
          to label %113 unwind label %117

113:                                              ; preds = %95
  %114 = invoke ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS5_E(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr %112)
          to label %130 unwind label %117

115:                                              ; preds = %61
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %201

117:                                              ; preds = %194, %184, %174, %156, %113, %95, %65
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %200

119:                                              ; preds = %67
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %123

121:                                              ; preds = %72
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %123

123:                                              ; preds = %121, %119
  %.pn78 = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %200

124:                                              ; preds = %80
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %200

126:                                              ; preds = %82
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %200

128:                                              ; preds = %88
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %200

.critedge:                                        ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %130

130:                                              ; preds = %113, %.critedge, %74
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %131 = call ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #7
  store ptr %131, ptr %15, align 8
  %132 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEES6_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  br i1 %132, label %133, label %.critedge2

133:                                              ; preds = %130
  %.sroa.025.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %134 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.025.0.copyload, i64 noundef 1)
          to label %135 unwind label %176

135:                                              ; preds = %133
  store ptr %134, ptr %16, align 8
  %136 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %137 = getelementptr inbounds i8, ptr %136, i64 4
  %138 = load i32, ptr %137, align 4, !tbaa !19
  %139 = load i32, ptr %62, align 4, !tbaa !5
  %140 = add nsw i32 %139, -1
  %141 = icmp eq i32 %138, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %141, label %142, label %184

142:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %.sroa.024.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %143 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.024.0.copyload, i64 noundef 1)
          to label %144 unwind label %178

144:                                              ; preds = %142
  store ptr %143, ptr %17, align 8
  %145 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %146 = load i32, ptr %145, align 4, !tbaa !16
  store i32 %146, ptr %7, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %147 = load i32, ptr %62, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %.sroa.023.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %148 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.023.0.copyload, i64 noundef 1)
          to label %149 unwind label %180

149:                                              ; preds = %144
  store ptr %148, ptr %18, align 8
  %150 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %151 = getelementptr inbounds i8, ptr %150, i64 8
  %152 = load i32, ptr %151, align 4, !tbaa !21
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %153
  store i32 %147, ptr %154, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %.sroa.022.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %155 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.022.0.copyload, i64 noundef 1)
          to label %156 unwind label %182

156:                                              ; preds = %149
  store ptr %155, ptr %19, align 8
  %157 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %158 = getelementptr inbounds i8, ptr %157, i64 8
  %159 = load i32, ptr %158, align 4, !tbaa !21
  %160 = load i32, ptr %62, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %161
  store i32 %159, ptr %162, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  %163 = load i32, ptr %62, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %164
  %166 = load i32, ptr %165, align 8, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %164
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = add nsw i32 %171, %169
  store i32 %172, ptr %170, align 4, !tbaa !5
  %.sroa.020.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %173 = invoke ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr %.sroa.020.0.copyload, i64 noundef 1)
          to label %174 unwind label %117

174:                                              ; preds = %156
  %175 = invoke ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS5_E(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr %173)
          to label %184 unwind label %117

176:                                              ; preds = %133
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %200

178:                                              ; preds = %142
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %200

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

182:                                              ; preds = %149
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %200

.critedge2:                                       ; preds = %130
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %184

184:                                              ; preds = %174, %.critedge2, %135
  %185 = load i32, ptr %7, align 4, !tbaa !22
  %186 = load i32, ptr %62, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100001 x i32], ptr @leftmost, i64 0, i64 %187
  store i32 %185, ptr %188, align 4, !tbaa !5
  %189 = load i32, ptr %47, align 4, !tbaa !20
  %190 = load i32, ptr %62, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [100001 x i32], ptr @rightmost, i64 0, i64 %191
  store i32 %189, ptr %192, align 4, !tbaa !5
  %.sroa.018.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  %193 = invoke ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS5_E(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr %.sroa.018.0.copyload)
          to label %194 unwind label %117

194:                                              ; preds = %184
  %195 = load i32, ptr %62, align 4, !tbaa !5
  %196 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %197 unwind label %117

197:                                              ; preds = %194
  store i32 %195, ptr %196, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %199 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %199, label %61, label %._crit_edge94

200:                                              ; preds = %182, %180, %178, %176, %128, %126, %124, %123, %117
  %.pn80 = phi { ptr, i32 } [ %118, %117 ], [ %183, %182 ], [ %181, %180 ], [ %179, %178 ], [ %177, %176 ], [ %129, %128 ], [ %127, %126 ], [ %125, %124 ], [ %.pn78, %123 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %201

201:                                              ; preds = %200, %115
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %200 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %245

.preheader:                                       ; preds = %228, %._crit_edge94
  %202 = load i32, ptr @N, align 4, !tbaa !5
  %.not7599 = icmp slt i32 %202, 1
  br i1 %.not7599, label %._crit_edge102, label %.lr.ph101

.lr.ph98:                                         ; preds = %._crit_edge94, %228
  %203 = phi ptr [ %236, %228 ], [ %56, %._crit_edge94 ]
  %.06296 = phi i32 [ %.062, %228 ], [ %.06295, %._crit_edge94 ]
  %204 = invoke noundef i64 @_Z6getPari(i32 noundef %.06296)
          to label %205 unwind label %219

205:                                              ; preds = %.lr.ph98
  %206 = load i64, ptr @ti, align 8, !tbaa !12
  %207 = add nsw i64 %206, %204
  store i64 %207, ptr @ti, align 8, !tbaa !12
  %208 = load i32, ptr %203, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [100001 x [2 x i32]], ptr @child, i64 0, i64 %209
  %211 = load i32, ptr %210, align 8, !tbaa !5
  %212 = icmp eq i32 %211, %.06296
  %213 = getelementptr inbounds i8, ptr %210, i64 4
  %214 = load i32, ptr %213, align 4, !tbaa !5
  br i1 %212, label %215, label %221

215:                                              ; preds = %205
  %216 = sext i32 %214 to i64
  %217 = getelementptr inbounds [100001 x i32], ptr @leftmost, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  invoke void @_Z8fromLeftii(i32 noundef %218, i32 noundef %208)
          to label %228 unwind label %219

219:                                              ; preds = %224, %215, %.lr.ph98
  %220 = landingpad { ptr, i32 }
          cleanup
  br label %245

221:                                              ; preds = %205
  %222 = icmp eq i32 %214, %.06296
  br i1 %222, label %224, label %223

223:                                              ; preds = %221
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 213, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

224:                                              ; preds = %221
  %225 = sext i32 %211 to i64
  %226 = getelementptr inbounds [100001 x i32], ptr @rightmost, i64 0, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  invoke void @_Z9fromRightii(i32 noundef %227, i32 noundef %208)
          to label %228 unwind label %219

228:                                              ; preds = %224, %215
  %.062 = load i32, ptr %203, align 4, !tbaa !5
  %229 = load i64, ptr @ti, align 8, !tbaa !12
  %230 = sext i32 %.062 to i64
  %231 = getelementptr inbounds [100001 x i32], ptr @w, i64 0, i64 %230
  %232 = load i32, ptr %231, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = add nsw i64 %229, %233
  %235 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %230
  store i64 %234, ptr %235, align 8, !tbaa !12
  %236 = getelementptr inbounds [100001 x i32], ptr @par, i64 0, i64 %230
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = icmp eq i32 %237, 0
  br i1 %238, label %.preheader, label %.lr.ph98, !llvm.loop !23

._crit_edge102:                                   ; preds = %240, %.preheader
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret i32 0

.lr.ph101:                                        ; preds = %.preheader, %240
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %240 ], [ 1, %.preheader ]
  %239 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv104
  invoke void @_ZN2io2prIxEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %239)
          to label %240 unwind label %243

240:                                              ; preds = %.lr.ph101
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %241 = load i32, ptr @N, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %.not75.not = icmp slt i64 %indvars.iv104, %242
  br i1 %.not75.not, label %.lr.ph101, label %._crit_edge102, !llvm.loop !24

243:                                              ; preds = %.lr.ph101
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %245

245:                                              ; preds = %219, %243, %201, %59, %41
  %.pn83 = phi { ptr, i32 } [ %42, %41 ], [ %.pn80.pn, %201 ], [ %60, %59 ], [ %244, %243 ], [ %220, %219 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %246

246:                                              ; preds = %245, %28
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %245 ], [ %.pn, %28 ]
  resume { ptr, i32 } %.pn83.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2io2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2io2reIiJiEEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ4mainE3$_0EvT_S8_T0_"(ptr, ptr) local_unnamed_addr #4

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4nextISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr, i64 noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4prevISt17_Rb_tree_iteratorISt4pairIKS1_IiiEiEEET_S6_NSt15iterator_traitsIS6_E15difference_typeE(ptr, i64 noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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


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