; LLVM IR from MtSaka/library :: test/yosupo/data_structure/segment_add_get_min.test (main)

; 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"

%"struct.fastio::Scanner" = type <{ i32, [131073 x i8], [3 x i8], i32, i32, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::array<long long, 4>, std::allocator<std::array<long long, 4>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<long long, 4>, std::allocator<std::array<long long, 4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<long long, 4>, std::allocator<std::array<long long, 4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<long long, 4>, std::allocator<std::array<long long, 4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<std::array<long long, 5>, std::allocator<std::array<long long, 5>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<long long, 5>, std::allocator<std::array<long long, 5>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<long long, 5>, std::allocator<std::array<long long, 5>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<long long, 5>, std::allocator<std::array<long long, 5>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.3" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.6" = type { ptr }
%struct.compressor = type <{ %"class.std::vector.8", i8, i8, [6 x i8] }>
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.10" = type { i8 }
%struct.LiChaoTree = type { i32, i32, %"class.std::vector.8", %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<LiChaoTree<>::Line, std::allocator<LiChaoTree<>::Line>>::_Vector_impl" }
%"struct.std::_Vector_base<LiChaoTree<>::Line, std::allocator<LiChaoTree<>::Line>>::_Vector_impl" = type { %"struct.std::_Vector_base<LiChaoTree<>::Line, std::allocator<LiChaoTree<>::Line>>::_Vector_impl_data" }
%"struct.std::_Vector_base<LiChaoTree<>::Line, std::allocator<LiChaoTree<>::Line>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZN6fastio2scE = external dso_local global %"struct.fastio::Scanner", align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::vector.1", align 8
  %17 = alloca %"class.std::allocator.3", align 1
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %struct.compressor, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"class.std::vector.8", align 8
  %38 = alloca %"class.std::allocator.10", align 1
  %39 = alloca i64, align 8
  %40 = alloca %struct.LiChaoTree, align 8
  %41 = alloca ptr, align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @_Z4scanIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  call void @_ZNSaISt5arrayIxLm4EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %60, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %61 unwind label %71

61:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorISt5arrayIxLm4EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr %4, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %62 = load ptr, ptr %8, align 8, !tbaa !9
  %63 = call ptr @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #6
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %63, ptr %64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %65 = load ptr, ptr %8, align 8, !tbaa !9
  %66 = call ptr @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #6
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  br label %68

68:                                               ; preds = %97, %61
  %69 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %69, label %75, label %70

70:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %103

71:                                               ; preds = %0
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %6, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %7, align 4
  call void @_ZNSt15__new_allocatorISt5arrayIxLm4EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  br label %357

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %76 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  store ptr %76, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %77 = load ptr, ptr %11, align 8, !tbaa !9
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %77) #6
  store ptr %78, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %79 = load ptr, ptr %11, align 8, !tbaa !9
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %79) #6
  store ptr %80, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %81 = load ptr, ptr %11, align 8, !tbaa !9
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %81) #6
  store ptr %82, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %83 = load ptr, ptr %11, align 8, !tbaa !9
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %83) #6
  store ptr %84, ptr %15, align 8, !tbaa !9
  %85 = load ptr, ptr %12, align 8, !tbaa !9
  %86 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(8) %85)
          to label %87 unwind label %99

87:                                               ; preds = %75
  %88 = load ptr, ptr %13, align 8, !tbaa !9
  %89 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %86, ptr noundef nonnull align 8 dereferenceable(8) %88)
          to label %90 unwind label %99

90:                                               ; preds = %87
  %91 = load ptr, ptr %14, align 8, !tbaa !9
  %92 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %89, ptr noundef nonnull align 8 dereferenceable(8) %91)
          to label %93 unwind label %99

93:                                               ; preds = %90
  %94 = load ptr, ptr %15, align 8, !tbaa !9
  %95 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %92, ptr noundef nonnull align 8 dereferenceable(8) %94)
          to label %96 unwind label %99

96:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %97

97:                                               ; preds = %96
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %68

99:                                               ; preds = %93, %90, %87, %75
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %6, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %356

103:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %104 = load i32, ptr %3, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaISt5arrayIxLm5EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %105, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %106 unwind label %116

106:                                              ; preds = %103
  call void @_ZNSt15__new_allocatorISt5arrayIxLm5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr %16, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %107 = load ptr, ptr %18, align 8, !tbaa !9
  %108 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #6
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %19, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %110 = load ptr, ptr %18, align 8, !tbaa !9
  %111 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #6
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %20, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  br label %113

113:                                              ; preds = %160, %106
  %114 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %114, label %120, label %115

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %162

116:                                              ; preds = %103
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %6, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %7, align 4
  call void @_ZNSt15__new_allocatorISt5arrayIxLm5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %355

120:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %121 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  store ptr %121, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %122 = load ptr, ptr %21, align 8, !tbaa !9
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %122) #6
  store ptr %123, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %124 = load ptr, ptr %21, align 8, !tbaa !9
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %124) #6
  store ptr %125, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %126 = load ptr, ptr %21, align 8, !tbaa !9
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %126) #6
  store ptr %127, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %128 = load ptr, ptr %21, align 8, !tbaa !9
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %128) #6
  store ptr %129, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %130 = load ptr, ptr %21, align 8, !tbaa !9
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm4ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %130) #6
  store ptr %131, ptr %26, align 8, !tbaa !9
  %132 = load ptr, ptr %22, align 8, !tbaa !9
  %133 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %134 unwind label %151

134:                                              ; preds = %120
  %135 = load ptr, ptr %22, align 8, !tbaa !9
  %136 = load i64, ptr %135, align 8, !tbaa !11
  %137 = icmp eq i64 %136, 0
  br i1 %137, label %138, label %155

138:                                              ; preds = %134
  %139 = load ptr, ptr %23, align 8, !tbaa !9
  %140 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(8) %139)
          to label %141 unwind label %151

141:                                              ; preds = %138
  %142 = load ptr, ptr %24, align 8, !tbaa !9
  %143 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %140, ptr noundef nonnull align 8 dereferenceable(8) %142)
          to label %144 unwind label %151

144:                                              ; preds = %141
  %145 = load ptr, ptr %25, align 8, !tbaa !9
  %146 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %143, ptr noundef nonnull align 8 dereferenceable(8) %145)
          to label %147 unwind label %151

147:                                              ; preds = %144
  %148 = load ptr, ptr %26, align 8, !tbaa !9
  %149 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %146, ptr noundef nonnull align 8 dereferenceable(8) %148)
          to label %150 unwind label %151

150:                                              ; preds = %147
  br label %159

151:                                              ; preds = %155, %147, %144, %141, %138, %120
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %6, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %354

155:                                              ; preds = %134
  %156 = load ptr, ptr %23, align 8, !tbaa !9
  %157 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(8) %156)
          to label %158 unwind label %151

158:                                              ; preds = %155
  br label %159

159:                                              ; preds = %158, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %160

160:                                              ; preds = %159
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %113

162:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  invoke void @_ZN10compressorIxSt4lessIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(26) %27)
          to label %163 unwind label %173

163:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store ptr %16, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %164 = load ptr, ptr %28, align 8, !tbaa !9
  %165 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #6
  %166 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %29, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %167 = load ptr, ptr %28, align 8, !tbaa !9
  %168 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #6
  %169 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %30, i32 0, i32 0
  store ptr %168, ptr %169, align 8
  br label %170

170:                                              ; preds = %200, %163
  %171 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %171, label %177, label %172

172:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %202

173:                                              ; preds = %162
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %6, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %7, align 4
  br label %353

177:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %178 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  store ptr %178, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %179 = load ptr, ptr %31, align 8, !tbaa !9
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %179) #6
  store ptr %180, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %181 = load ptr, ptr %31, align 8, !tbaa !9
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %181) #6
  store ptr %182, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %183 = load ptr, ptr %31, align 8, !tbaa !9
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %183) #6
  store ptr %184, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %185 = load ptr, ptr %31, align 8, !tbaa !9
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %185) #6
  store ptr %186, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %187 = load ptr, ptr %31, align 8, !tbaa !9
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm4ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %187) #6
  store ptr %188, ptr %36, align 8, !tbaa !9
  %189 = load ptr, ptr %32, align 8, !tbaa !9
  %190 = load i64, ptr %189, align 8, !tbaa !11
  %191 = icmp eq i64 %190, 1
  br i1 %191, label %192, label %199

192:                                              ; preds = %177
  %193 = load ptr, ptr %33, align 8, !tbaa !9
  invoke void @_ZN10compressorIxSt4lessIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(26) %27, ptr noundef nonnull align 8 dereferenceable(8) %193)
          to label %194 unwind label %195

194:                                              ; preds = %192
  br label %199

195:                                              ; preds = %192
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %6, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %352

199:                                              ; preds = %194, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %200

200:                                              ; preds = %199
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %170

202:                                              ; preds = %172
  invoke void @_ZN10compressorIxSt4lessIxEE5buildEv(ptr noundef nonnull align 8 dereferenceable(26) %27)
          to label %203 unwind label %215

203:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #6
  %204 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(26) %27)
          to label %205 unwind label %219

205:                                              ; preds = %203
  %206 = sext i32 %204 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %206, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %207 unwind label %223

207:                                              ; preds = %205
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  store i64 0, ptr %39, align 8, !tbaa !11
  br label %208

208:                                              ; preds = %239, %207
  %209 = load i64, ptr %39, align 8, !tbaa !11
  %210 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(26) %27)
          to label %211 unwind label %227

211:                                              ; preds = %208
  %212 = sext i32 %210 to i64
  %213 = icmp slt i64 %209, %212
  br i1 %213, label %231, label %214

214:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %242

215:                                              ; preds = %202
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %6, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %7, align 4
  br label %352

219:                                              ; preds = %203
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %6, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %7, align 4
  br label %351

223:                                              ; preds = %205
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %6, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  br label %351

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

231:                                              ; preds = %211
  %232 = load i64, ptr %39, align 8, !tbaa !11
  %233 = trunc i64 %232 to i32
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKR10compressorIxSt4lessIxEEixEi(ptr noundef nonnull align 8 dereferenceable(26) %27, i32 noundef %233)
          to label %235 unwind label %227

235:                                              ; preds = %231
  %236 = load i64, ptr %234, align 8, !tbaa !11
  %237 = load i64, ptr %39, align 8, !tbaa !11
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %237) #6
  store i64 %236, ptr %238, align 8, !tbaa !11
  br label %239

239:                                              ; preds = %235
  %240 = load i64, ptr %39, align 8, !tbaa !11
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %39, align 8, !tbaa !11
  br label %208, !llvm.loop !13

242:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 56, ptr %40) #6
  invoke void @_ZN10LiChaoTreeIxLb0EEC2ERKSt6vectorIxSaIxEE(ptr noundef nonnull align 8 dereferenceable(56) %40, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %243 unwind label %253

243:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  store ptr %4, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %244 = load ptr, ptr %41, align 8, !tbaa !9
  %245 = call ptr @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %244) #6
  %246 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %245, ptr %246, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %247 = load ptr, ptr %41, align 8, !tbaa !9
  %248 = call ptr @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %247) #6
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  br label %250

250:                                              ; preds = %278, %243
  %251 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #6
  br i1 %251, label %257, label %252

252:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  br label %284

253:                                              ; preds = %242
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %6, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %7, align 4
  br label %349

257:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %258 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  store ptr %258, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  %259 = load ptr, ptr %44, align 8, !tbaa !9
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %259) #6
  store ptr %260, ptr %45, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  %261 = load ptr, ptr %44, align 8, !tbaa !9
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %261) #6
  store ptr %262, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %263 = load ptr, ptr %44, align 8, !tbaa !9
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %263) #6
  store ptr %264, ptr %47, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  %265 = load ptr, ptr %44, align 8, !tbaa !9
  %266 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %265) #6
  store ptr %266, ptr %48, align 8, !tbaa !9
  %267 = load ptr, ptr %45, align 8, !tbaa !9
  %268 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %27, ptr noundef nonnull align 8 dereferenceable(8) %267)
          to label %269 unwind label %280

269:                                              ; preds = %257
  %270 = load ptr, ptr %46, align 8, !tbaa !9
  %271 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %27, ptr noundef nonnull align 8 dereferenceable(8) %270)
          to label %272 unwind label %280

272:                                              ; preds = %269
  %273 = load ptr, ptr %47, align 8, !tbaa !9
  %274 = load i64, ptr %273, align 8, !tbaa !11
  %275 = load ptr, ptr %48, align 8, !tbaa !9
  %276 = load i64, ptr %275, align 8, !tbaa !11
  invoke void @_ZN10LiChaoTreeIxLb0EE11add_segmentEiixx(ptr noundef nonnull align 8 dereferenceable(56) %40, i32 noundef %268, i32 noundef %271, i64 noundef %274, i64 noundef %276)
          to label %277 unwind label %280

277:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %278

278:                                              ; preds = %277
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  br label %250

280:                                              ; preds = %272, %269, %257
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %6, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  br label %348

284:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  store ptr %16, ptr %49, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %285 = load ptr, ptr %49, align 8, !tbaa !9
  %286 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %285) #6
  %287 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %50, i32 0, i32 0
  store ptr %286, ptr %287, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %288 = load ptr, ptr %49, align 8, !tbaa !9
  %289 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %288) #6
  %290 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %51, i32 0, i32 0
  store ptr %289, ptr %290, align 8
  br label %291

291:                                              ; preds = %343, %284
  %292 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  br i1 %292, label %294, label %293

293:                                              ; preds = %291
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  br label %346

294:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #6
  %295 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #6
  store ptr %295, ptr %52, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #6
  %296 = load ptr, ptr %52, align 8, !tbaa !9
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %296) #6
  store ptr %297, ptr %53, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  %298 = load ptr, ptr %52, align 8, !tbaa !9
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %298) #6
  store ptr %299, ptr %54, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  %300 = load ptr, ptr %52, align 8, !tbaa !9
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %300) #6
  store ptr %301, ptr %55, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #6
  %302 = load ptr, ptr %52, align 8, !tbaa !9
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %302) #6
  store ptr %303, ptr %56, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #6
  %304 = load ptr, ptr %52, align 8, !tbaa !9
  %305 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm4ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %304) #6
  store ptr %305, ptr %57, align 8, !tbaa !9
  %306 = load ptr, ptr %53, align 8, !tbaa !9
  %307 = load i64, ptr %306, align 8, !tbaa !11
  %308 = icmp eq i64 %307, 0
  br i1 %308, label %309, label %325

309:                                              ; preds = %294
  %310 = load ptr, ptr %54, align 8, !tbaa !9
  %311 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %27, ptr noundef nonnull align 8 dereferenceable(8) %310)
          to label %312 unwind label %321

312:                                              ; preds = %309
  %313 = load ptr, ptr %55, align 8, !tbaa !9
  %314 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %27, ptr noundef nonnull align 8 dereferenceable(8) %313)
          to label %315 unwind label %321

315:                                              ; preds = %312
  %316 = load ptr, ptr %56, align 8, !tbaa !9
  %317 = load i64, ptr %316, align 8, !tbaa !11
  %318 = load ptr, ptr %57, align 8, !tbaa !9
  %319 = load i64, ptr %318, align 8, !tbaa !11
  invoke void @_ZN10LiChaoTreeIxLb0EE11add_segmentEiixx(ptr noundef nonnull align 8 dereferenceable(56) %40, i32 noundef %311, i32 noundef %314, i64 noundef %317, i64 noundef %319)
          to label %320 unwind label %321

320:                                              ; preds = %315
  br label %342

321:                                              ; preds = %315, %312, %309
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %6, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %7, align 4
  br label %345

325:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #6
  %326 = load ptr, ptr %54, align 8, !tbaa !9
  %327 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %27, ptr noundef nonnull align 8 dereferenceable(8) %326)
          to label %328 unwind label %335

328:                                              ; preds = %325
  %329 = invoke noundef i64 @_ZNK10LiChaoTreeIxLb0EE7get_minEi(ptr noundef nonnull align 8 dereferenceable(56) %40, i32 noundef %327)
          to label %330 unwind label %335

330:                                              ; preds = %328
  store i64 %329, ptr %58, align 8, !tbaa !11
  %331 = load i64, ptr %58, align 8, !tbaa !11
  %332 = icmp eq i64 %331, 9223372036854775807
  br i1 %332, label %333, label %339

333:                                              ; preds = %330
  invoke void @_Z5printIA9_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(9) @.str)
          to label %334 unwind label %335

334:                                              ; preds = %333
  br label %341

335:                                              ; preds = %339, %333, %328, %325
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %6, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  br label %345

339:                                              ; preds = %330
  invoke void @_Z5printIxEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %58)
          to label %340 unwind label %335

340:                                              ; preds = %339
  br label %341

341:                                              ; preds = %340, %334
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  br label %342

342:                                              ; preds = %341, %320
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  br label %343

343:                                              ; preds = %342
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #6
  br label %291

345:                                              ; preds = %335, %321
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  br label %348

346:                                              ; preds = %293
  call void @_ZN10LiChaoTreeIxLb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %40) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %40) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  call void @_ZN10compressorIxSt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(26) %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  call void @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %347 = load i32, ptr %1, align 4
  ret i32 %347

348:                                              ; preds = %345, %280
  call void @_ZN10LiChaoTreeIxLb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %40) #6
  br label %349

349:                                              ; preds = %348, %253
  call void @llvm.lifetime.end.p0(i64 56, ptr %40) #6
  br label %350

350:                                              ; preds = %349, %227
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  br label %351

351:                                              ; preds = %350, %223, %219
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  br label %352

352:                                              ; preds = %351, %215, %195
  call void @_ZN10compressorIxSt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(26) %27) #6
  br label %353

353:                                              ; preds = %352, %173
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  br label %354

354:                                              ; preds = %353, %151
  call void @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %355

355:                                              ; preds = %354, %116
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %356

356:                                              ; preds = %355, %99
  call void @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %357

357:                                              ; preds = %356, %71
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %358

358:                                              ; preds = %357
  %359 = load ptr, ptr %6, align 8
  %360 = load i32, ptr %7, align 4
  %361 = insertvalue { ptr, i32 } poison, ptr %359, 0
  %362 = insertvalue { ptr, i32 } %361, i32 %360, 1
  resume { ptr, i32 } %362
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32)) #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm4ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10compressorIxSt4lessIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(26)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10compressorIxSt4lessIxEE5buildEv(ptr noundef nonnull align 8 dereferenceable(26)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK10compressorIxSt4lessIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(26)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10LiChaoTreeIxLb0EE11add_segmentEiixx(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, i64 noundef, i64 noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK10LiChaoTreeIxLb0EE7get_minEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5printIA9_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(9)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5printIxEvRKT_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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

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

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

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

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

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

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


; 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"

%"struct.fastio::Scanner" = type <{ i32, [131073 x i8], [3 x i8], i32, i32, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::array<long long, 4>, std::allocator<std::array<long long, 4>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<long long, 4>, std::allocator<std::array<long long, 4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<long long, 4>, std::allocator<std::array<long long, 4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<long long, 4>, std::allocator<std::array<long long, 4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<std::array<long long, 5>, std::allocator<std::array<long long, 5>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<long long, 5>, std::allocator<std::array<long long, 5>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<long long, 5>, std::allocator<std::array<long long, 5>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<long long, 5>, std::allocator<std::array<long long, 5>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.3" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.6" = type { ptr }
%struct.compressor = type <{ %"class.std::vector.8", i8, i8, [6 x i8] }>
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.10" = type { i8 }
%struct.LiChaoTree = type { i32, i32, %"class.std::vector.8", %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<LiChaoTree<>::Line, std::allocator<LiChaoTree<>::Line>>::_Vector_impl" }
%"struct.std::_Vector_base<LiChaoTree<>::Line, std::allocator<LiChaoTree<>::Line>>::_Vector_impl" = type { %"struct.std::_Vector_base<LiChaoTree<>::Line, std::allocator<LiChaoTree<>::Line>>::_Vector_impl_data" }
%"struct.std::_Vector_base<LiChaoTree<>::Line, std::allocator<LiChaoTree<>::Line>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZN6fastio2scE = external dso_local global %"struct.fastio::Scanner", align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.std::vector.1", align 8
  %8 = alloca %"class.std::allocator.3", align 1
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %11 = alloca %struct.compressor, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %14 = alloca %"class.std::vector.8", align 8
  %15 = alloca %"class.std::allocator.10", align 1
  %16 = alloca %struct.LiChaoTree, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %21 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @_Z4scanIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaISt5arrayIxLm4EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %23, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %24 unwind label %30

24:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorISt5arrayIxLm4EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %25 = call ptr @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  store ptr %25, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %26 = call ptr @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  store ptr %26, ptr %6, align 8
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %27, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %44, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaISt5arrayIxLm5EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %49 unwind label %53

30:                                               ; preds = %0
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt5arrayIxLm4EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %182

.lr.ph:                                           ; preds = %24, %44
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  %37 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %38 unwind label %47

38:                                               ; preds = %.lr.ph
  %39 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %37, ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %40 unwind label %47

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %39, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %42 unwind label %47

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %41, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %44 unwind label %47

44:                                               ; preds = %42
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %46, label %.lr.ph, label %._crit_edge

47:                                               ; preds = %42, %40, %38, %.lr.ph
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %181

49:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorISt5arrayIxLm5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %50 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %50, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %51 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %51, ptr %10, align 8
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %52, label %.lr.ph88, label %._crit_edge89

._crit_edge89:                                    ; preds = %76, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  invoke void @_ZN10compressorIxSt4lessIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(26) %11)
          to label %79 unwind label %83

53:                                               ; preds = %._crit_edge
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt5arrayIxLm5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %180

.lr.ph88:                                         ; preds = %49, %76
  %55 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %55) #6
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %55) #6
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %55) #6
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %55) #6
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm4ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %55) #6
  %61 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %62 unwind label %71

62:                                               ; preds = %.lr.ph88
  %63 = load i64, ptr %56, align 8, !tbaa !9
  %64 = icmp eq i64 %63, 0
  br i1 %64, label %65, label %.invoke

65:                                               ; preds = %62
  %66 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(8) %57)
          to label %67 unwind label %71

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %66, ptr noundef nonnull align 8 dereferenceable(8) %58)
          to label %69 unwind label %71

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %68, ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %.invoke unwind label %71

71:                                               ; preds = %.invoke, %69, %67, %65, %.lr.ph88
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %179

.invoke:                                          ; preds = %69, %62
  %73 = phi ptr [ @_ZN6fastio2scE, %62 ], [ %70, %69 ]
  %74 = phi ptr [ %57, %62 ], [ %60, %69 ]
  %75 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsIxEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) %73, ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %76 unwind label %71

76:                                               ; preds = %.invoke
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %78, label %.lr.ph88, label %._crit_edge89

79:                                               ; preds = %._crit_edge89
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %80 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %80, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %81 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %81, ptr %13, align 8
  %82 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %82, label %.lr.ph91, label %._crit_edge92

._crit_edge92:                                    ; preds = %96, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  invoke void @_ZN10compressorIxSt4lessIxEE5buildEv(ptr noundef nonnull align 8 dereferenceable(26) %11)
          to label %99 unwind label %105

83:                                               ; preds = %._crit_edge89
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %178

.lr.ph91:                                         ; preds = %79, %96
  %85 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %85) #6
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %85) #6
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %85) #6
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %85) #6
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm4ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %85) #6
  %91 = load i64, ptr %86, align 8, !tbaa !9
  %92 = icmp eq i64 %91, 1
  br i1 %92, label %93, label %96

93:                                               ; preds = %.lr.ph91
  invoke void @_ZN10compressorIxSt4lessIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef nonnull align 8 dereferenceable(8) %87)
          to label %96 unwind label %94

94:                                               ; preds = %93
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %177

96:                                               ; preds = %93, %.lr.ph91
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %98, label %.lr.ph91, label %._crit_edge92

99:                                               ; preds = %._crit_edge92
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  %100 = call noundef i32 @_ZNK10compressorIxSt4lessIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(26) %11)
  %101 = sext i32 %100 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %101, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %102 unwind label %107

102:                                              ; preds = %99
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  %103 = call noundef i32 @_ZNK10compressorIxSt4lessIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(26) %11)
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.lr.ph95, label %._crit_edge96

._crit_edge96:                                    ; preds = %.lr.ph95, %102
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %16) #6
  invoke void @_ZN10LiChaoTreeIxLb0EEC2ERKSt6vectorIxSaIxEE(ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %117 unwind label %124

105:                                              ; preds = %._crit_edge92
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %177

107:                                              ; preds = %99
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  br label %176

.lr.ph95:                                         ; preds = %102, %.lr.ph95
  %.07293 = phi i64 [ %113, %.lr.ph95 ], [ 0, %102 ]
  %109 = trunc i64 %.07293 to i32
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKR10compressorIxSt4lessIxEEixEi(ptr noundef nonnull align 8 dereferenceable(26) %11, i32 noundef %109)
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.07293) #6
  store i64 %111, ptr %112, align 8, !tbaa !9
  %113 = add nuw nsw i64 %.07293, 1
  %114 = call noundef i32 @_ZNK10compressorIxSt4lessIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(26) %11)
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %113, %115
  br i1 %116, label %.lr.ph95, label %._crit_edge96, !llvm.loop !11

117:                                              ; preds = %._crit_edge96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %118 = call ptr @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  store ptr %118, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %119 = call ptr @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  store ptr %119, ptr %18, align 8
  %120 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %120, label %.lr.ph98, label %._crit_edge99

._crit_edge99:                                    ; preds = %137, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %121 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %121, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %122 = call ptr @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %122, ptr %20, align 8
  %123 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %123, label %.lr.ph101, label %._crit_edge102

124:                                              ; preds = %._crit_edge96
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %175

.lr.ph98:                                         ; preds = %117, %137
  %126 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %126) #6
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %126) #6
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %126) #6
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32) %126) #6
  %131 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef nonnull align 8 dereferenceable(8) %127)
          to label %132 unwind label %140

132:                                              ; preds = %.lr.ph98
  %133 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef nonnull align 8 dereferenceable(8) %128)
          to label %134 unwind label %140

134:                                              ; preds = %132
  %135 = load i64, ptr %129, align 8, !tbaa !9
  %136 = load i64, ptr %130, align 8, !tbaa !9
  invoke void @_ZN10LiChaoTreeIxLb0EE11add_segmentEiixx(ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef %131, i32 noundef %133, i64 noundef %135, i64 noundef %136)
          to label %137 unwind label %140

137:                                              ; preds = %134
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %139 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm4EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %139, label %.lr.ph98, label %._crit_edge99

140:                                              ; preds = %134, %132, %.lr.ph98
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %174

._crit_edge102:                                   ; preds = %170, %._crit_edge99
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @_ZN10LiChaoTreeIxLb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @_ZN10compressorIxSt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(26) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

.lr.ph101:                                        ; preds = %._crit_edge99, %170
  %142 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %142) #6
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %142) #6
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %142) #6
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %142) #6
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm4ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40) %142) #6
  %148 = load i64, ptr %143, align 8, !tbaa !9
  %149 = icmp eq i64 %148, 0
  br i1 %149, label %150, label %159

150:                                              ; preds = %.lr.ph101
  %151 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef nonnull align 8 dereferenceable(8) %144)
          to label %152 unwind label %157

152:                                              ; preds = %150
  %153 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef nonnull align 8 dereferenceable(8) %145)
          to label %154 unwind label %157

154:                                              ; preds = %152
  %155 = load i64, ptr %146, align 8, !tbaa !9
  %156 = load i64, ptr %147, align 8, !tbaa !9
  invoke void @_ZN10LiChaoTreeIxLb0EE11add_segmentEiixx(ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef %151, i32 noundef %153, i64 noundef %155, i64 noundef %156)
          to label %170 unwind label %157

157:                                              ; preds = %154, %152, %150
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %173

159:                                              ; preds = %.lr.ph101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %160 = invoke noundef i32 @_ZNK10compressorIxSt4lessIxEE9get_indexERKx(ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef nonnull align 8 dereferenceable(8) %144)
          to label %161 unwind label %166

161:                                              ; preds = %159
  %162 = invoke noundef i64 @_ZNK10LiChaoTreeIxLb0EE7get_minEi(ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef %160)
          to label %163 unwind label %166

163:                                              ; preds = %161
  store i64 %162, ptr %21, align 8, !tbaa !9
  %164 = icmp eq i64 %162, 9223372036854775807
  br i1 %164, label %165, label %168

165:                                              ; preds = %163
  invoke void @_Z5printIA9_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(9) @.str)
          to label %169 unwind label %166

166:                                              ; preds = %168, %165, %161, %159
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %173

168:                                              ; preds = %163
  invoke void @_Z5printIxEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %169 unwind label %166

169:                                              ; preds = %168, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %170

170:                                              ; preds = %154, %169
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %172 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIxLm5EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %172, label %.lr.ph101, label %._crit_edge102

173:                                              ; preds = %166, %157
  %.pn = phi { ptr, i32 } [ %158, %157 ], [ %167, %166 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %174

174:                                              ; preds = %173, %140
  %.pn74 = phi { ptr, i32 } [ %141, %140 ], [ %.pn, %173 ]
  call void @_ZN10LiChaoTreeIxLb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #6
  br label %175

175:                                              ; preds = %174, %124
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %174 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %176

176:                                              ; preds = %175, %107
  %.pn74.pn.pn = phi { ptr, i32 } [ %.pn74.pn, %175 ], [ %108, %107 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  br label %177

177:                                              ; preds = %176, %105, %94
  %.pn78 = phi { ptr, i32 } [ %95, %94 ], [ %.pn74.pn.pn, %176 ], [ %106, %105 ]
  call void @_ZN10compressorIxSt4lessIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(26) %11) #6
  br label %178

178:                                              ; preds = %177, %83
  %.pn78.pn = phi { ptr, i32 } [ %.pn78, %177 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %179

179:                                              ; preds = %178, %71
  %.pn81 = phi { ptr, i32 } [ %72, %71 ], [ %.pn78.pn, %178 ]
  call void @_ZNSt6vectorISt5arrayIxLm5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %180

180:                                              ; preds = %179, %53
  %.pn81.pn = phi { ptr, i32 } [ %.pn81, %179 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %181

181:                                              ; preds = %180, %47
  %.pn84 = phi { ptr, i32 } [ %48, %47 ], [ %.pn81.pn, %180 ]
  call void @_ZNSt6vectorISt5arrayIxLm4EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %182

182:                                              ; preds = %181, %30
  %.pn84.pn = phi { ptr, i32 } [ %.pn84, %181 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn84.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm4EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm3ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm4ExLm5EERT0_RSt5arrayIS0_XT1_EE(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10compressorIxSt4lessIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(26)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10compressorIxSt4lessIxEE5buildEv(ptr noundef nonnull align 8 dereferenceable(26)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK10compressorIxSt4lessIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(26)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10LiChaoTreeIxLb0EE11add_segmentEiixx(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK10LiChaoTreeIxLb0EE7get_minEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5printIA9_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(9)) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

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


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