; LLVM IR from eyangch/competitive-programming :: CSES/Additional_Problems/robot_path.ll (Z7solveisv)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl" }
%"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl" = type { %"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.segment_tree = type { [800001 x i64] }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.ins = type { i8, i64 }
%"struct.std::pair" = type { i64, i64 }
%struct.seg = type { i64, i64, i64, i64, i64 }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%class.anon.15 = type { i8 }
%class.anon.17 = type { i8 }
%class.anon.19 = type { i8 }
%class.anon.21 = type { ptr, ptr }
%class.anon.22 = type { ptr, ptr }
%class.anon.23 = type { ptr, ptr }

@I = external dso_local global %"class.std::vector", align 8
@T1 = external dso_local global %struct.segment_tree, align 8
@T2 = external dso_local global %struct.segment_tree, align 8

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

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7solveisv() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.0", align 8
  %2 = alloca %"class.std::vector.0", align 8
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::vector.10", align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %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 %struct.ins, align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.seg, align 8
  %16 = alloca %struct.seg, align 8
  %17 = alloca %struct.seg, align 8
  %18 = alloca %struct.seg, align 8
  %19 = alloca %struct.seg, align 8
  %20 = alloca %struct.seg, align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca i64, align 8
  %30 = alloca double, align 8
  %31 = alloca %"struct.std::pair", align 8
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %37 = alloca ptr, align 8
  %38 = alloca %"struct.std::pair", align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %42 = alloca ptr, align 8
  %43 = alloca %"struct.std::pair", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %46 = alloca %class.anon.15, align 1
  %47 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %49 = alloca %class.anon.17, align 1
  %50 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %52 = alloca %class.anon.19, align 1
  %53 = alloca i64, align 8
  %54 = alloca i64, align 8
  %55 = alloca i64, align 8
  %56 = alloca %class.anon.21, align 8
  %57 = alloca %class.anon.22, align 8
  %58 = alloca %class.anon.23, align 8
  %59 = alloca i64, align 8
  %60 = alloca i64, align 8
  %61 = alloca i64, align 8
  call void @_ZN12segment_tree5clearEv(ptr noundef nonnull align 8 dereferenceable(6400008) @T1)
  call void @_ZN12segment_tree5clearEv(ptr noundef nonnull align 8 dereferenceable(6400008) @T2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #6
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #6
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr @I, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %62 = call ptr @_ZNSt6vectorI3insSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @I) #6
  %63 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %62, ptr %63, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %64 = call ptr @_ZNSt6vectorI3insSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @I) #6
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  br label %66

66:                                               ; preds = %236, %0
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3insSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %67, label %69, label %68

68:                                               ; preds = %66
  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 %243

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %70, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %71 unwind label %94

71:                                               ; preds = %69
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %72 unwind label %94

72:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  %73 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 0
  %74 = load i8, ptr %73, align 8, !tbaa !13
  %75 = sext i8 %74 to i32
  %76 = icmp eq i32 %75, 76
  br i1 %76, label %77, label %102

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #6
  %78 = getelementptr inbounds %struct.seg, ptr %15, i32 0, i32 0
  %79 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %79, ptr %78, align 8, !tbaa !15
  %80 = getelementptr inbounds %struct.seg, ptr %15, i32 0, i32 1
  %81 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %82 = load i64, ptr %81, align 8, !tbaa !17
  %83 = load i64, ptr %6, align 8, !tbaa !5
  %84 = sub nsw i64 %83, %82
  store i64 %84, ptr %6, align 8, !tbaa !5
  store i64 %84, ptr %80, align 8, !tbaa !18
  %85 = getelementptr inbounds %struct.seg, ptr %15, i32 0, i32 2
  %86 = load i64, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %88 = load i64, ptr %87, align 8, !tbaa !17
  %89 = add nsw i64 %86, %88
  store i64 %89, ptr %85, align 8, !tbaa !19
  %90 = getelementptr inbounds %struct.seg, ptr %15, i32 0, i32 3
  store i64 0, ptr %90, align 8, !tbaa !20
  %91 = getelementptr inbounds %struct.seg, ptr %15, i32 0, i32 4
  %92 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %92, ptr %91, align 8, !tbaa !21
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %93 unwind label %98

93:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  br label %102

94:                                               ; preds = %71, %69
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %13, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %242

98:                                               ; preds = %77
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %13, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  br label %242

102:                                              ; preds = %93, %72
  %103 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 0
  %104 = load i8, ptr %103, align 8, !tbaa !13
  %105 = sext i8 %104 to i32
  %106 = icmp eq i32 %105, 82
  br i1 %106, label %107, label %125

107:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #6
  %108 = getelementptr inbounds %struct.seg, ptr %16, i32 0, i32 0
  %109 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %109, ptr %108, align 8, !tbaa !15
  %110 = getelementptr inbounds %struct.seg, ptr %16, i32 0, i32 1
  %111 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %111, ptr %110, align 8, !tbaa !18
  %112 = getelementptr inbounds %struct.seg, ptr %16, i32 0, i32 2
  %113 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %114 = load i64, ptr %113, align 8, !tbaa !17
  %115 = load i64, ptr %6, align 8, !tbaa !5
  %116 = add nsw i64 %115, %114
  store i64 %116, ptr %6, align 8, !tbaa !5
  store i64 %116, ptr %112, align 8, !tbaa !19
  %117 = getelementptr inbounds %struct.seg, ptr %16, i32 0, i32 3
  store i64 1, ptr %117, align 8, !tbaa !20
  %118 = getelementptr inbounds %struct.seg, ptr %16, i32 0, i32 4
  %119 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %119, ptr %118, align 8, !tbaa !21
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %120 unwind label %121

120:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #6
  br label %125

121:                                              ; preds = %107
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %13, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #6
  br label %242

125:                                              ; preds = %120, %102
  %126 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 0
  %127 = load i8, ptr %126, align 8, !tbaa !13
  %128 = sext i8 %127 to i32
  %129 = icmp eq i32 %128, 85
  br i1 %129, label %130, label %174

130:                                              ; preds = %125
  %131 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %132 = load i64, ptr %131, align 8, !tbaa !17
  %133 = icmp sgt i64 %132, 1
  br i1 %133, label %134, label %168

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #6
  %135 = getelementptr inbounds %struct.seg, ptr %17, i32 0, i32 0
  %136 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %136, ptr %135, align 8, !tbaa !15
  %137 = getelementptr inbounds %struct.seg, ptr %17, i32 0, i32 1
  %138 = load i64, ptr %5, align 8, !tbaa !5
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %137, align 8, !tbaa !18
  %140 = getelementptr inbounds %struct.seg, ptr %17, i32 0, i32 2
  %141 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %142 = load i64, ptr %141, align 8, !tbaa !17
  %143 = load i64, ptr %5, align 8, !tbaa !5
  %144 = add nsw i64 %143, %142
  store i64 %144, ptr %5, align 8, !tbaa !5
  %145 = sub nsw i64 %144, 1
  store i64 %145, ptr %140, align 8, !tbaa !19
  %146 = getelementptr inbounds %struct.seg, ptr %17, i32 0, i32 3
  store i64 0, ptr %146, align 8, !tbaa !20
  %147 = getelementptr inbounds %struct.seg, ptr %17, i32 0, i32 4
  %148 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %148, ptr %147, align 8, !tbaa !21
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %149 unwind label %160

149:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #6
  %150 = getelementptr inbounds %struct.seg, ptr %18, i32 0, i32 0
  %151 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %151, ptr %150, align 8, !tbaa !15
  %152 = getelementptr inbounds %struct.seg, ptr %18, i32 0, i32 1
  %153 = load i64, ptr %5, align 8, !tbaa !5
  %154 = sub nsw i64 %153, 1
  store i64 %154, ptr %152, align 8, !tbaa !18
  %155 = getelementptr inbounds %struct.seg, ptr %18, i32 0, i32 2
  store i64 1, ptr %155, align 8, !tbaa !19
  %156 = getelementptr inbounds %struct.seg, ptr %18, i32 0, i32 3
  store i64 0, ptr %156, align 8, !tbaa !20
  %157 = getelementptr inbounds %struct.seg, ptr %18, i32 0, i32 4
  %158 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %158, ptr %157, align 8, !tbaa !21
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %159 unwind label %164

159:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  br label %173

160:                                              ; preds = %134
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %13, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  br label %242

164:                                              ; preds = %149
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %13, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  br label %242

168:                                              ; preds = %130
  %169 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %170 = load i64, ptr %169, align 8, !tbaa !17
  %171 = load i64, ptr %5, align 8, !tbaa !5
  %172 = add nsw i64 %171, %170
  store i64 %172, ptr %5, align 8, !tbaa !5
  br label %173

173:                                              ; preds = %168, %159
  br label %174

174:                                              ; preds = %173, %125
  %175 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 0
  %176 = load i8, ptr %175, align 8, !tbaa !13
  %177 = sext i8 %176 to i32
  %178 = icmp eq i32 %177, 68
  br i1 %178, label %179, label %229

179:                                              ; preds = %174
  %180 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %181 = load i64, ptr %180, align 8, !tbaa !17
  %182 = icmp sgt i64 %181, 1
  br i1 %182, label %183, label %223

183:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #6
  %184 = getelementptr inbounds %struct.seg, ptr %19, i32 0, i32 0
  %185 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %185, ptr %184, align 8, !tbaa !15
  %186 = getelementptr inbounds %struct.seg, ptr %19, i32 0, i32 1
  %187 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %188 = load i64, ptr %187, align 8, !tbaa !17
  %189 = load i64, ptr %5, align 8, !tbaa !5
  %190 = sub nsw i64 %189, %188
  store i64 %190, ptr %5, align 8, !tbaa !5
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %186, align 8, !tbaa !18
  %192 = getelementptr inbounds %struct.seg, ptr %19, i32 0, i32 2
  %193 = load i64, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %195 = load i64, ptr %194, align 8, !tbaa !17
  %196 = add nsw i64 %193, %195
  %197 = sub nsw i64 %196, 1
  store i64 %197, ptr %192, align 8, !tbaa !19
  %198 = getelementptr inbounds %struct.seg, ptr %19, i32 0, i32 3
  store i64 1, ptr %198, align 8, !tbaa !20
  %199 = getelementptr inbounds %struct.seg, ptr %19, i32 0, i32 4
  %200 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %200, ptr %199, align 8, !tbaa !21
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %201 unwind label %215

201:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  %202 = getelementptr inbounds %struct.seg, ptr %20, i32 0, i32 0
  %203 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %203, ptr %202, align 8, !tbaa !15
  %204 = getelementptr inbounds %struct.seg, ptr %20, i32 0, i32 1
  %205 = load i64, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %207 = load i64, ptr %206, align 8, !tbaa !17
  %208 = add nsw i64 %205, %207
  %209 = sub nsw i64 %208, 1
  store i64 %209, ptr %204, align 8, !tbaa !18
  %210 = getelementptr inbounds %struct.seg, ptr %20, i32 0, i32 2
  store i64 1, ptr %210, align 8, !tbaa !19
  %211 = getelementptr inbounds %struct.seg, ptr %20, i32 0, i32 3
  store i64 1, ptr %211, align 8, !tbaa !20
  %212 = getelementptr inbounds %struct.seg, ptr %20, i32 0, i32 4
  %213 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %213, ptr %212, align 8, !tbaa !21
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %214 unwind label %219

214:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  br label %228

215:                                              ; preds = %183
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %13, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  br label %242

219:                                              ; preds = %201
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %13, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  br label %242

223:                                              ; preds = %179
  %224 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %225 = load i64, ptr %224, align 8, !tbaa !17
  %226 = load i64, ptr %5, align 8, !tbaa !5
  %227 = sub nsw i64 %226, %225
  store i64 %227, ptr %5, align 8, !tbaa !5
  br label %228

228:                                              ; preds = %223, %214
  br label %229

229:                                              ; preds = %228, %174
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %230 unwind label %238

230:                                              ; preds = %229
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %231 unwind label %238

231:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  %232 = getelementptr inbounds %struct.ins, ptr %11, i32 0, i32 1
  %233 = load i64, ptr %232, align 8, !tbaa !17
  %234 = load i64, ptr %7, align 8, !tbaa !5
  %235 = add nsw i64 %234, %233
  store i64 %235, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %236

236:                                              ; preds = %231
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %66

238:                                              ; preds = %230, %229
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %13, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %242

242:                                              ; preds = %238, %219, %215, %164, %160, %121, %98, %94
  call void @llvm.lifetime.end.p0(i64 16, 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 %453

243:                                              ; preds = %68
  %244 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %245 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %22, i32 0, i32 0
  store ptr %244, ptr %245, align 8
  %246 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %247 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %23, i32 0, i32 0
  store ptr %246, ptr %247, align 8
  %248 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %22, i32 0, i32 0
  %249 = load ptr, ptr %248, align 8
  %250 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %23, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %249, ptr %251)
          to label %252 unwind label %262

252:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store ptr %3, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %253 = load ptr, ptr %24, align 8, !tbaa !9
  %254 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %253) #6
  %255 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %25, i32 0, i32 0
  store ptr %254, ptr %255, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %256 = load ptr, ptr %24, align 8, !tbaa !9
  %257 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %256) #6
  %258 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %26, i32 0, i32 0
  store ptr %257, ptr %258, align 8
  br label %259

259:                                              ; preds = %295, %252
  %260 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %260, label %266, label %261

261:                                              ; preds = %259
  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
  br label %306

262:                                              ; preds = %386, %377, %368, %243
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %13, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %14, align 4
  br label %453

266:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %267 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  store ptr %267, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %268 = load ptr, ptr %27, align 8, !tbaa !9
  %269 = getelementptr inbounds %struct.seg, ptr %268, i32 0, i32 1
  %270 = load i64, ptr %269, align 8, !tbaa !18
  %271 = sub nsw i64 %270, 1
  store i64 %271, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store double 1.000000e+18, ptr %30, align 8, !tbaa !22
  invoke void @_ZNSt4pairIxxEC2IxdTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %272 unwind label %297

272:                                              ; preds = %266
  %273 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 0
  %274 = load i64, ptr %273, align 8
  %275 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 1
  %276 = load i64, ptr %275, align 8
  %277 = invoke noundef i64 @_Z2tsSt4pairIxxERSt6vectorIS0_SaIS0_EE(i64 %274, i64 %276, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %278 unwind label %297

278:                                              ; preds = %272
  %279 = load ptr, ptr %27, align 8, !tbaa !9
  %280 = getelementptr inbounds %struct.seg, ptr %279, i32 0, i32 1
  store i64 %277, ptr %280, align 8, !tbaa !18
  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.start.p0(i64 8, ptr %32) #6
  %281 = load ptr, ptr %27, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.seg, ptr %281, i32 0, i32 2
  %283 = load i64, ptr %282, align 8, !tbaa !19
  %284 = add nsw i64 %283, 1
  store i64 %284, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !24
  invoke void @_ZNSt4pairIxxEC2IxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %285 unwind label %301

285:                                              ; preds = %278
  %286 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 0
  %287 = load i64, ptr %286, align 8
  %288 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 1
  %289 = load i64, ptr %288, align 8
  %290 = invoke noundef i64 @_Z2tsSt4pairIxxERSt6vectorIS0_SaIS0_EE(i64 %287, i64 %289, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %291 unwind label %301

291:                                              ; preds = %285
  %292 = sub nsw i64 %290, 1
  %293 = load ptr, ptr %27, align 8, !tbaa !9
  %294 = getelementptr inbounds %struct.seg, ptr %293, i32 0, i32 2
  store i64 %292, ptr %294, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %295

295:                                              ; preds = %291
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  br label %259

297:                                              ; preds = %272, %266
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %13, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %305

301:                                              ; preds = %285, %278
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %13, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %305

305:                                              ; preds = %301, %297
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  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
  br label %453

306:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store ptr %1, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %307 = load ptr, ptr %34, align 8, !tbaa !9
  %308 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %307) #6
  %309 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %35, i32 0, i32 0
  store ptr %308, ptr %309, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %310 = load ptr, ptr %34, align 8, !tbaa !9
  %311 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %310) #6
  %312 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %36, i32 0, i32 0
  store ptr %311, ptr %312, align 8
  br label %313

313:                                              ; preds = %331, %306
  %314 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br i1 %314, label %316, label %315

315:                                              ; preds = %313
  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
  br label %337

316:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %317 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  store ptr %317, ptr %37, align 8, !tbaa !9
  %318 = load ptr, ptr %37, align 8, !tbaa !9
  %319 = getelementptr inbounds %struct.seg, ptr %318, i32 0, i32 0
  %320 = load ptr, ptr %37, align 8, !tbaa !9
  %321 = getelementptr inbounds %struct.seg, ptr %320, i32 0, i32 4
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(8) %319, ptr noundef nonnull align 8 dereferenceable(8) %321)
          to label %322 unwind label %333

322:                                              ; preds = %316
  %323 = getelementptr inbounds { i64, i64 }, ptr %38, i32 0, i32 0
  %324 = load i64, ptr %323, align 8
  %325 = getelementptr inbounds { i64, i64 }, ptr %38, i32 0, i32 1
  %326 = load i64, ptr %325, align 8
  %327 = invoke noundef i64 @_Z2tsSt4pairIxxERSt6vectorIS0_SaIS0_EE(i64 %324, i64 %326, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %328 unwind label %333

328:                                              ; preds = %322
  %329 = load ptr, ptr %37, align 8, !tbaa !9
  %330 = getelementptr inbounds %struct.seg, ptr %329, i32 0, i32 0
  store i64 %327, ptr %330, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %331

331:                                              ; preds = %328
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  br label %313

333:                                              ; preds = %322, %316
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %13, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  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
  br label %453

337:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  store ptr %2, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %338 = load ptr, ptr %39, align 8, !tbaa !9
  %339 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %338) #6
  %340 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %40, i32 0, i32 0
  store ptr %339, ptr %340, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %341 = load ptr, ptr %39, align 8, !tbaa !9
  %342 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %341) #6
  %343 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %41, i32 0, i32 0
  store ptr %342, ptr %343, align 8
  br label %344

344:                                              ; preds = %362, %337
  %345 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  br i1 %345, label %347, label %346

346:                                              ; preds = %344
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %368

347:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %348 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  store ptr %348, ptr %42, align 8, !tbaa !9
  %349 = load ptr, ptr %42, align 8, !tbaa !9
  %350 = getelementptr inbounds %struct.seg, ptr %349, i32 0, i32 0
  %351 = load ptr, ptr %42, align 8, !tbaa !9
  %352 = getelementptr inbounds %struct.seg, ptr %351, i32 0, i32 4
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef nonnull align 8 dereferenceable(8) %352)
          to label %353 unwind label %364

353:                                              ; preds = %347
  %354 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 0
  %355 = load i64, ptr %354, align 8
  %356 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 1
  %357 = load i64, ptr %356, align 8
  %358 = invoke noundef i64 @_Z2tsSt4pairIxxERSt6vectorIS0_SaIS0_EE(i64 %355, i64 %357, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %359 unwind label %364

359:                                              ; preds = %353
  %360 = load ptr, ptr %42, align 8, !tbaa !9
  %361 = getelementptr inbounds %struct.seg, ptr %360, i32 0, i32 0
  store i64 %358, ptr %361, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %362

362:                                              ; preds = %359
  %363 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  br label %344

364:                                              ; preds = %353, %347
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %13, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %453

368:                                              ; preds = %346
  %369 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %370 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %44, i32 0, i32 0
  store ptr %369, ptr %370, align 8
  %371 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %372 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %45, i32 0, i32 0
  store ptr %371, ptr %372, align 8
  %373 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %44, i32 0, i32 0
  %374 = load ptr, ptr %373, align 8
  %375 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %45, i32 0, i32 0
  %376 = load ptr, ptr %375, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_0EvT_S9_T0_"(ptr %374, ptr %376)
          to label %377 unwind label %262

377:                                              ; preds = %368
  %378 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %379 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %47, i32 0, i32 0
  store ptr %378, ptr %379, align 8
  %380 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %381 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %48, i32 0, i32 0
  store ptr %380, ptr %381, align 8
  %382 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %47, i32 0, i32 0
  %383 = load ptr, ptr %382, align 8
  %384 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %48, i32 0, i32 0
  %385 = load ptr, ptr %384, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_1EvT_S9_T0_"(ptr %383, ptr %385)
          to label %386 unwind label %262

386:                                              ; preds = %377
  %387 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %388 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %50, i32 0, i32 0
  store ptr %387, ptr %388, align 8
  %389 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %390 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %51, i32 0, i32 0
  store ptr %389, ptr %390, align 8
  %391 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %50, i32 0, i32 0
  %392 = load ptr, ptr %391, align 8
  %393 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %51, i32 0, i32 0
  %394 = load ptr, ptr %393, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_2EvT_S9_T0_"(ptr %392, ptr %394)
          to label %395 unwind label %262

395:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #6
  store i64 0, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  store i64 0, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  store i64 0, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #6
  %396 = getelementptr inbounds %class.anon.21, ptr %56, i32 0, i32 0
  store ptr %3, ptr %396, align 8, !tbaa !9
  %397 = getelementptr inbounds %class.anon.21, ptr %56, i32 0, i32 1
  store ptr %53, ptr %397, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #6
  %398 = getelementptr inbounds %class.anon.22, ptr %57, i32 0, i32 0
  store ptr %1, ptr %398, align 8, !tbaa !9
  %399 = getelementptr inbounds %class.anon.22, ptr %57, i32 0, i32 1
  store ptr %54, ptr %399, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #6
  %400 = getelementptr inbounds %class.anon.23, ptr %58, i32 0, i32 0
  store ptr %2, ptr %400, align 8, !tbaa !9
  %401 = getelementptr inbounds %class.anon.23, ptr %58, i32 0, i32 1
  store ptr %55, ptr %401, align 8, !tbaa !9
  br label %402

402:                                              ; preds = %451, %395
  %403 = load i64, ptr %53, align 8, !tbaa !5
  %404 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %405 = icmp ult i64 %403, %404
  br i1 %405, label %406, label %452

406:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #6
  store i64 1000000000000000000, ptr %59, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #6
  store i64 1000000000000000000, ptr %60, align 8, !tbaa !5
  %407 = load i64, ptr %54, align 8, !tbaa !5
  %408 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %409 = icmp ult i64 %407, %408
  br i1 %409, label %410, label %415

410:                                              ; preds = %406
  %411 = load i64, ptr %54, align 8, !tbaa !5
  %412 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %411) #6
  %413 = getelementptr inbounds %struct.seg, ptr %412, i32 0, i32 1
  %414 = load i64, ptr %413, align 8, !tbaa !18
  store i64 %414, ptr %59, align 8, !tbaa !5
  br label %415

415:                                              ; preds = %410, %406
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #6
  %416 = load i64, ptr %53, align 8, !tbaa !5
  %417 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %416) #6
  %418 = getelementptr inbounds %struct.seg, ptr %417, i32 0, i32 0
  %419 = load i64, ptr %418, align 8, !tbaa !15
  store i64 %419, ptr %61, align 8, !tbaa !5
  %420 = load i64, ptr %55, align 8, !tbaa !5
  %421 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %422 = icmp ult i64 %420, %421
  br i1 %422, label %423, label %428

423:                                              ; preds = %415
  %424 = load i64, ptr %55, align 8, !tbaa !5
  %425 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %424) #6
  %426 = getelementptr inbounds %struct.seg, ptr %425, i32 0, i32 1
  %427 = load i64, ptr %426, align 8, !tbaa !18
  store i64 %427, ptr %60, align 8, !tbaa !5
  br label %428

428:                                              ; preds = %423, %415
  %429 = load i64, ptr %59, align 8, !tbaa !5
  %430 = load i64, ptr %61, align 8, !tbaa !5
  %431 = icmp sle i64 %429, %430
  br i1 %431, label %432, label %442

432:                                              ; preds = %428
  %433 = load i64, ptr %59, align 8, !tbaa !5
  %434 = load i64, ptr %60, align 8, !tbaa !5
  %435 = icmp sle i64 %433, %434
  br i1 %435, label %436, label %442

436:                                              ; preds = %432
  invoke void @"_ZZ7solveisvENK3$_4clEv"(ptr noundef nonnull align 8 dereferenceable(16) %57)
          to label %437 unwind label %438

437:                                              ; preds = %436
  br label %451

438:                                              ; preds = %448, %446, %436
  %439 = landingpad { ptr, i32 }
          cleanup
  %440 = extractvalue { ptr, i32 } %439, 0
  store ptr %440, ptr %13, align 8
  %441 = extractvalue { ptr, i32 } %439, 1
  store i32 %441, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  br label %453

442:                                              ; preds = %432, %428
  %443 = load i64, ptr %61, align 8, !tbaa !5
  %444 = load i64, ptr %60, align 8, !tbaa !5
  %445 = icmp sle i64 %443, %444
  br i1 %445, label %446, label %448

446:                                              ; preds = %442
  invoke void @"_ZZ7solveisvENK3$_3clEv"(ptr noundef nonnull align 8 dereferenceable(16) %56)
          to label %447 unwind label %438

447:                                              ; preds = %446
  br label %450

448:                                              ; preds = %442
  invoke void @"_ZZ7solveisvENK3$_5clEv"(ptr noundef nonnull align 8 dereferenceable(16) %58)
          to label %449 unwind label %438

449:                                              ; preds = %448
  br label %450

450:                                              ; preds = %449, %447
  br label %451

451:                                              ; preds = %450, %437
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  br label %402, !llvm.loop !26

452:                                              ; preds = %402
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 16, 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 %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #6
  ret void

453:                                              ; preds = %438, %364, %333, %305, %262, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #6
  br label %454

454:                                              ; preds = %453
  %455 = load ptr, ptr %13, align 8
  %456 = load i32, ptr %14, align 4
  %457 = insertvalue { ptr, i32 } poison, ptr %455, 0
  %458 = insertvalue { ptr, i32 } %457, i32 %456, 1
  resume { ptr, i32 } %458
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #5

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_0EvT_S9_T0_"(ptr, ptr) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_1EvT_S9_T0_"(ptr, ptr) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_2EvT_S9_T0_"(ptr, ptr) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ7solveisvENK3$_4clEv"(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ7solveisvENK3$_3clEv"(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ7solveisvENK3$_5clEv"(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = !{!"long long", !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 = !{i64 0, i64 1, !12, i64 8, i64 8, !5}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTS3ins", !7, i64 0, !6, i64 8}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTS3seg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!14, !6, i64 8}
!18 = !{!16, !6, i64 8}
!19 = !{!16, !6, i64 16}
!20 = !{!16, !6, i64 24}
!21 = !{!16, !6, i64 32}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl" }
%"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl" = type { %"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.segment_tree = type { [800001 x i64] }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i64, i64 }
%struct.seg = type { i64, i64, i64, i64, i64 }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%class.anon.21 = type { ptr, ptr }
%class.anon.22 = type { ptr, ptr }
%class.anon.23 = type { ptr, ptr }

@I = external dso_local global %"class.std::vector", align 8
@T1 = external dso_local global %struct.segment_tree, align 8
@T2 = external dso_local global %struct.segment_tree, align 8

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7solveisv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.0", align 8
  %2 = alloca %"class.std::vector.0", align 8
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::vector.10", align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %struct.seg, align 8
  %11 = alloca %struct.seg, align 8
  %12 = alloca %struct.seg, align 8
  %13 = alloca %struct.seg, align 8
  %14 = alloca %struct.seg, align 8
  %15 = alloca %struct.seg, align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %30 = alloca %"struct.std::pair", align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca %class.anon.21, align 8
  %35 = alloca %class.anon.22, align 8
  %36 = alloca %class.anon.23, align 8
  tail call void @_ZN12segment_tree5clearEv(ptr noundef nonnull align 8 dereferenceable(6400008) @T1)
  tail call void @_ZN12segment_tree5clearEv(ptr noundef nonnull align 8 dereferenceable(6400008) @T2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %37 = call ptr @_ZNSt6vectorI3insSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @I) #5
  store ptr %37, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %38 = call ptr @_ZNSt6vectorI3insSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @I) #5
  store ptr %38, ptr %8, align 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3insSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %39, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %40 = getelementptr inbounds i8, ptr %14, i64 8
  %41 = getelementptr inbounds i8, ptr %14, i64 16
  %42 = getelementptr inbounds i8, ptr %14, i64 24
  %43 = getelementptr inbounds i8, ptr %14, i64 32
  %44 = getelementptr inbounds i8, ptr %15, i64 8
  %45 = getelementptr inbounds i8, ptr %15, i64 16
  %46 = getelementptr inbounds i8, ptr %15, i64 24
  %47 = getelementptr inbounds i8, ptr %15, i64 32
  %48 = getelementptr inbounds i8, ptr %12, i64 8
  %49 = getelementptr inbounds i8, ptr %12, i64 16
  %50 = getelementptr inbounds i8, ptr %12, i64 24
  %51 = getelementptr inbounds i8, ptr %12, i64 32
  %52 = getelementptr inbounds i8, ptr %13, i64 8
  %53 = getelementptr inbounds i8, ptr %13, i64 16
  %54 = getelementptr inbounds i8, ptr %13, i64 24
  %55 = getelementptr inbounds i8, ptr %13, i64 32
  %56 = getelementptr inbounds i8, ptr %11, i64 8
  %57 = getelementptr inbounds i8, ptr %11, i64 16
  %58 = getelementptr inbounds i8, ptr %11, i64 24
  %59 = getelementptr inbounds i8, ptr %11, i64 32
  %60 = getelementptr inbounds i8, ptr %10, i64 8
  %61 = getelementptr inbounds i8, ptr %10, i64 16
  %62 = getelementptr inbounds i8, ptr %10, i64 24
  %63 = getelementptr inbounds i8, ptr %10, i64 32
  br label %66

._crit_edge:                                      ; preds = %121, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %64 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %65 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %64, ptr %65)
          to label %129 unwind label %139

66:                                               ; preds = %.lr.ph, %121
  %.071 = phi i64 [ 0, %.lr.ph ], [ %.2, %121 ]
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %.sroa.030.0.copyload = load i8, ptr %67, align 8, !tbaa !9
  %.sroa.834.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 8
  %.sroa.834.0.copyload = load i64, ptr %.sroa.834.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %68 unwind label %74

68:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  switch i8 %.sroa.030.0.copyload, label %.thread [
    i8 76, label %69
    i8 82, label %78
    i8 85, label %85
    i8 68, label %103
  ]

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #5
  store i64 %.071, ptr %10, align 8, !tbaa !10
  %70 = load i64, ptr %5, align 8, !tbaa !5
  %71 = sub nsw i64 %70, %.sroa.834.0.copyload
  store i64 %71, ptr %5, align 8, !tbaa !5
  store i64 %71, ptr %60, align 8, !tbaa !12
  store i64 %70, ptr %61, align 8, !tbaa !13
  store i64 0, ptr %62, align 8, !tbaa !14
  %72 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %72, ptr %63, align 8, !tbaa !15
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %73 unwind label %76

73:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  br label %.thread

74:                                               ; preds = %66
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br label %128

76:                                               ; preds = %69
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  br label %128

78:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  store i64 %.071, ptr %11, align 8, !tbaa !10
  %79 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %79, ptr %56, align 8, !tbaa !12
  %80 = add nsw i64 %79, %.sroa.834.0.copyload
  store i64 %80, ptr %5, align 8, !tbaa !5
  store i64 %80, ptr %57, align 8, !tbaa !13
  store i64 1, ptr %58, align 8, !tbaa !14
  %81 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %81, ptr %59, align 8, !tbaa !15
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %82 unwind label %83

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  br label %.thread

83:                                               ; preds = %78
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  br label %128

85:                                               ; preds = %68
  %86 = icmp sgt i64 %.sroa.834.0.copyload, 1
  br i1 %86, label %87, label %101

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #5
  %88 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %88, ptr %12, align 8, !tbaa !10
  %89 = add nsw i64 %.071, 1
  store i64 %89, ptr %48, align 8, !tbaa !12
  %90 = add nsw i64 %.sroa.834.0.copyload, %.071
  %91 = add nsw i64 %90, -1
  store i64 %91, ptr %49, align 8, !tbaa !13
  store i64 0, ptr %50, align 8, !tbaa !14
  %92 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %92, ptr %51, align 8, !tbaa !15
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %93 unwind label %97

93:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #5
  %94 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %94, ptr %13, align 8, !tbaa !10
  store i64 %91, ptr %52, align 8, !tbaa !12
  store i64 1, ptr %53, align 8, !tbaa !13
  store i64 0, ptr %54, align 8, !tbaa !14
  %95 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %95, ptr %55, align 8, !tbaa !15
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %96 unwind label %99

96:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  br label %.thread

97:                                               ; preds = %87
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  br label %128

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  br label %128

101:                                              ; preds = %85
  %102 = add nsw i64 %.sroa.834.0.copyload, %.071
  br label %.thread

103:                                              ; preds = %68
  %104 = icmp sgt i64 %.sroa.834.0.copyload, 1
  br i1 %104, label %105, label %119

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #5
  %106 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %106, ptr %14, align 8, !tbaa !10
  %107 = sub nsw i64 %.071, %.sroa.834.0.copyload
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %40, align 8, !tbaa !12
  %109 = add nsw i64 %.071, -1
  store i64 %109, ptr %41, align 8, !tbaa !13
  store i64 1, ptr %42, align 8, !tbaa !14
  %110 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %110, ptr %43, align 8, !tbaa !15
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %111 unwind label %115

111:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #5
  %112 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %112, ptr %15, align 8, !tbaa !10
  store i64 %109, ptr %44, align 8, !tbaa !12
  store i64 1, ptr %45, align 8, !tbaa !13
  store i64 1, ptr %46, align 8, !tbaa !14
  %113 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %113, ptr %47, align 8, !tbaa !15
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %114 unwind label %117

114:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  br label %.thread

115:                                              ; preds = %105
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  br label %128

117:                                              ; preds = %111
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  br label %128

119:                                              ; preds = %103
  %120 = sub nsw i64 %.071, %.sroa.834.0.copyload
  br label %.thread

.thread:                                          ; preds = %68, %101, %96, %73, %82, %114, %119
  %.2 = phi i64 [ %107, %114 ], [ %120, %119 ], [ %.071, %73 ], [ %.071, %82 ], [ %102, %101 ], [ %90, %96 ], [ %.071, %68 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %121 unwind label %126

121:                                              ; preds = %.thread
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  %122 = load i64, ptr %6, align 8, !tbaa !5
  %123 = add nsw i64 %122, %.sroa.834.0.copyload
  store i64 %123, ptr %6, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %125 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3insSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %125, label %66, label %._crit_edge

126:                                              ; preds = %.thread
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  br label %128

128:                                              ; preds = %126, %117, %115, %99, %97, %83, %76, %74
  %.pn67 = phi { ptr, i32 } [ %127, %126 ], [ %118, %117 ], [ %116, %115 ], [ %100, %99 ], [ %98, %97 ], [ %84, %83 ], [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %235

129:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %130 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %130, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  %131 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %131, ptr %18, align 8
  %132 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %132, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %129
  %133 = getelementptr inbounds i8, ptr %19, i64 8
  %134 = getelementptr inbounds i8, ptr %22, i64 8
  br label %141

._crit_edge74:                                    ; preds = %156, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #5
  %135 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %135, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #5
  %136 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %136, ptr %26, align 8
  %137 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  br i1 %137, label %.lr.ph76, label %._crit_edge77

.lr.ph76:                                         ; preds = %._crit_edge74
  %138 = getelementptr inbounds i8, ptr %27, i64 8
  br label %169

139:                                              ; preds = %196, %193, %._crit_edge80, %._crit_edge
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %235

141:                                              ; preds = %.lr.ph73, %156
  %142 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  %143 = getelementptr inbounds i8, ptr %142, i64 8
  %144 = load i64, ptr %143, align 8, !tbaa !12
  %145 = add nsw i64 %144, -1
  store i64 %145, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  store double 1.000000e+18, ptr %21, align 8, !tbaa !16
  call void @_ZNSt4pairIxxEC2IxdTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %146 = load i64, ptr %19, align 8
  %147 = load i64, ptr %133, align 8
  %148 = invoke noundef i64 @_Z2tsSt4pairIxxERSt6vectorIS0_SaIS0_EE(i64 %146, i64 %147, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %149 unwind label %160

149:                                              ; preds = %141
  store i64 %148, ptr %143, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #5
  %150 = getelementptr inbounds i8, ptr %142, i64 16
  %151 = load i64, ptr %150, align 8, !tbaa !13
  %152 = add nsw i64 %151, 1
  store i64 %152, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #5
  store i32 0, ptr %24, align 4, !tbaa !18
  call void @_ZNSt4pairIxxEC2IxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %153 = load i64, ptr %22, align 8
  %154 = load i64, ptr %134, align 8
  %155 = invoke noundef i64 @_Z2tsSt4pairIxxERSt6vectorIS0_SaIS0_EE(i64 %153, i64 %154, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %156 unwind label %162

156:                                              ; preds = %149
  %157 = add nsw i64 %155, -1
  store i64 %157, ptr %150, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %159 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %159, label %141, label %._crit_edge74

160:                                              ; preds = %141
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  br label %164

162:                                              ; preds = %149
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  br label %164

164:                                              ; preds = %162, %160
  %.pn = phi { ptr, i32 } [ %163, %162 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  br label %235

._crit_edge77:                                    ; preds = %175, %._crit_edge74
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #5
  %165 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %165, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #5
  %166 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %166, ptr %29, align 8
  %167 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br i1 %167, label %.lr.ph79, label %._crit_edge80

.lr.ph79:                                         ; preds = %._crit_edge77
  %168 = getelementptr inbounds i8, ptr %30, i64 8
  br label %182

169:                                              ; preds = %.lr.ph76, %175
  %170 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  %171 = getelementptr inbounds i8, ptr %170, i64 32
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef nonnull align 8 dereferenceable(8) %171)
  %172 = load i64, ptr %27, align 8
  %173 = load i64, ptr %138, align 8
  %174 = invoke noundef i64 @_Z2tsSt4pairIxxERSt6vectorIS0_SaIS0_EE(i64 %172, i64 %173, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %175 unwind label %178

175:                                              ; preds = %169
  store i64 %174, ptr %170, align 8, !tbaa !10
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  %177 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  br i1 %177, label %169, label %._crit_edge77

178:                                              ; preds = %169
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #5
  br label %235

._crit_edge80:                                    ; preds = %188, %._crit_edge77
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #5
  %180 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %181 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_0EvT_S9_T0_"(ptr %180, ptr %181)
          to label %193 unwind label %139

182:                                              ; preds = %.lr.ph79, %188
  %183 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  %184 = getelementptr inbounds i8, ptr %183, i64 32
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef nonnull align 8 dereferenceable(8) %184)
  %185 = load i64, ptr %30, align 8
  %186 = load i64, ptr %168, align 8
  %187 = invoke noundef i64 @_Z2tsSt4pairIxxERSt6vectorIS0_SaIS0_EE(i64 %185, i64 %186, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %188 unwind label %191

188:                                              ; preds = %182
  store i64 %187, ptr %183, align 8, !tbaa !10
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  %190 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3segSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br i1 %190, label %182, label %._crit_edge80

191:                                              ; preds = %182
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #5
  br label %235

193:                                              ; preds = %._crit_edge80
  %194 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %195 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_1EvT_S9_T0_"(ptr %194, ptr %195)
          to label %196 unwind label %139

196:                                              ; preds = %193
  %197 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %198 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solveisvE3$_2EvT_S9_T0_"(ptr %197, ptr %198)
          to label %199 unwind label %139

199:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #5
  store i64 0, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #5
  store i64 0, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #5
  store i64 0, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #5
  store ptr %3, ptr %34, align 8, !tbaa !20
  %200 = getelementptr inbounds i8, ptr %34, i64 8
  store ptr %31, ptr %200, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #5
  store ptr %1, ptr %35, align 8, !tbaa !20
  %201 = getelementptr inbounds i8, ptr %35, i64 8
  store ptr %32, ptr %201, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #5
  store ptr %2, ptr %36, align 8, !tbaa !20
  %202 = getelementptr inbounds i8, ptr %36, i64 8
  store ptr %33, ptr %202, align 8, !tbaa !20
  %203 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %.not84 = icmp eq i64 %203, 0
  br i1 %.not84, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %199, %231
  %204 = load i64, ptr %32, align 8, !tbaa !5
  %205 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %206 = icmp ult i64 %204, %205
  br i1 %206, label %207, label %212

207:                                              ; preds = %.lr.ph82
  %208 = load i64, ptr %32, align 8, !tbaa !5
  %209 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %208) #5
  %210 = getelementptr inbounds i8, ptr %209, i64 8
  %211 = load i64, ptr %210, align 8, !tbaa !12
  br label %212

212:                                              ; preds = %207, %.lr.ph82
  %.057 = phi i64 [ %211, %207 ], [ 1000000000000000000, %.lr.ph82 ]
  %213 = load i64, ptr %31, align 8, !tbaa !5
  %214 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %213) #5
  %215 = load i64, ptr %214, align 8, !tbaa !10
  %216 = load i64, ptr %33, align 8, !tbaa !5
  %217 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %218 = icmp ult i64 %216, %217
  br i1 %218, label %219, label %224

219:                                              ; preds = %212
  %220 = load i64, ptr %33, align 8, !tbaa !5
  %221 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %220) #5
  %222 = getelementptr inbounds i8, ptr %221, i64 8
  %223 = load i64, ptr %222, align 8, !tbaa !12
  br label %224

224:                                              ; preds = %219, %212
  %.056 = phi i64 [ %223, %219 ], [ 1000000000000000000, %212 ]
  %.not = icmp sgt i64 %.057, %215
  %.not64 = icmp sgt i64 %.057, %.056
  %or.cond = select i1 %.not, i1 true, i1 %.not64
  br i1 %or.cond, label %228, label %225

225:                                              ; preds = %224
  invoke void @"_ZZ7solveisvENK3$_4clEv"(ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %231 unwind label %226

226:                                              ; preds = %230, %229, %225
  %227 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #5
  br label %235

228:                                              ; preds = %224
  %.not65 = icmp sgt i64 %215, %.056
  br i1 %.not65, label %230, label %229

229:                                              ; preds = %228
  invoke void @"_ZZ7solveisvENK3$_3clEv"(ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %231 unwind label %226

230:                                              ; preds = %228
  invoke void @"_ZZ7solveisvENK3$_5clEv"(ptr noundef nonnull align 8 dereferenceable(16) %36)
          to label %231 unwind label %226

231:                                              ; preds = %229, %230, %225
  %232 = load i64, ptr %31, align 8, !tbaa !5
  %233 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %234 = icmp ult i64 %232, %233
  br i1 %234, label %.lr.ph82, label %._crit_edge83, !llvm.loop !22

._crit_edge83:                                    ; preds = %231, %199
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  ret void

235:                                              ; preds = %226, %191, %178, %164, %139, %128
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %128 ], [ %.pn, %164 ], [ %179, %178 ], [ %192, %191 ], [ %227, %226 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn67.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #4

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ7solveisvENK3$_4clEv"(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ7solveisvENK3$_3clEv"(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ7solveisvENK3$_5clEv"(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

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

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


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