; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2013-14/Open 2014/14 Open G2.ll (Z3getiic)

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

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<std::pair<int, char>, std::pair<int, char>, std::_Identity<std::pair<int, char>>, std::less<std::pair<int, char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, char>, std::pair<int, char>, std::_Identity<std::pair<int, char>>, std::less<std::pair<int, char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.13" = type { i32, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.29" = type <{ i32, i8, [3 x i8] }>

@Bx = external dso_local global i32, align 4
@By = external dso_local global i32, align 4
@xval = external dso_local global %"class.std::map", align 8
@yval = external dso_local global %"class.std::map", align 8
@v = external dso_local global [131072 x %"class.std::set"], align 16
@h = external dso_local global [131072 x %"class.std::set"], align 16
@point = external dso_local global %"class.std::vector.17", align 8
@done = external dso_local global [4 x i8], align 1

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

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

; 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 void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64, i64, i64) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3getiic(i32 noundef %0, i32 noundef %1, i8 noundef signext %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca %"struct.std::pair.13", align 4
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::pair.29", align 4
  %10 = alloca i8, align 1
  %11 = alloca %"struct.std::pair.29", align 4
  %12 = alloca i8, align 1
  %13 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %14 = alloca %"struct.std::pair.29", align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca %"struct.std::pair.13", align 4
  %18 = alloca %"struct.std::pair.13", align 4
  %19 = alloca %"struct.std::pair.13", align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair.13", align 4
  %24 = alloca %"struct.std::pair.13", align 4
  %25 = alloca %"struct.std::pair.13", align 4
  %26 = alloca %"struct.std::pair.13", align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %29 = alloca %"struct.std::pair.29", align 4
  %30 = alloca i8, align 1
  %31 = alloca %"struct.std::pair.29", align 4
  %32 = alloca i8, align 1
  %33 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %34 = alloca %"struct.std::pair.29", align 4
  %35 = alloca i32, align 4
  %36 = alloca i8, align 1
  %37 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %38 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %39 = alloca %"struct.std::pair.13", align 4
  %40 = alloca %"struct.std::pair.13", align 4
  %41 = alloca %"struct.std::pair.13", align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %"struct.std::pair.13", align 4
  %46 = alloca %"struct.std::pair.13", align 4
  %47 = alloca %"struct.std::pair.13", align 4
  %48 = alloca %"struct.std::pair.13", align 4
  %49 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %50 = alloca %"struct.std::pair.29", align 4
  %51 = alloca i8, align 1
  %52 = alloca %"struct.std::pair.29", align 4
  %53 = alloca i8, align 1
  %54 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %55 = alloca %"struct.std::pair.29", align 4
  %56 = alloca i32, align 4
  %57 = alloca i8, align 1
  %58 = alloca %"struct.std::pair.13", align 4
  %59 = alloca %"struct.std::pair.13", align 4
  %60 = alloca %"struct.std::pair.13", align 4
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca %"struct.std::pair.13", align 4
  %65 = alloca %"struct.std::pair.13", align 4
  %66 = alloca %"struct.std::pair.13", align 4
  %67 = alloca %"struct.std::pair.13", align 4
  %68 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %69 = alloca %"struct.std::pair.29", align 4
  %70 = alloca i8, align 1
  %71 = alloca %"struct.std::pair.29", align 4
  %72 = alloca i8, align 1
  %73 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %74 = alloca %"struct.std::pair.29", align 4
  %75 = alloca i32, align 4
  %76 = alloca i8, align 1
  %77 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %78 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %79 = alloca %"struct.std::pair.13", align 4
  %80 = alloca %"struct.std::pair.13", align 4
  %81 = alloca %"struct.std::pair.13", align 4
  %82 = alloca i32, align 4
  %83 = alloca i32, align 4
  %84 = alloca i32, align 4
  %85 = alloca %"struct.std::pair.13", align 4
  %86 = alloca %"struct.std::pair.13", align 4
  %87 = alloca %"struct.std::pair.13", align 4
  %88 = alloca %"struct.std::pair.13", align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i8 %2, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %89 = load i8, ptr %6, align 1, !tbaa !9
  %90 = sext i8 %89 to i32
  %91 = icmp eq i32 %90, 78
  br i1 %91, label %92, label %152

92:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [131072 x %"class.std::set"], ptr @v, i64 0, i64 %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 93, ptr %10, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IRicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %9, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %10)
  %96 = call ptr @_ZNSt3setISt4pairIicESt4lessIS1_ESaIS1_EE11upper_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %95, ptr noundef nonnull align 4 dereferenceable(5) %9)
  %97 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %8, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(5) %11)
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  store i8 0, ptr %12, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %98 = load i32, ptr %4, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [131072 x %"class.std::set"], ptr @v, i64 0, i64 %99
  %101 = call ptr @_ZNKSt3setISt4pairIicESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %100) #5
  %102 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %13, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  %103 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIicEES4_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br i1 %103, label %104, label %106

104:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 131071, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  store i8 46, ptr %16, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(5) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
  %105 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(5) %11, ptr noundef nonnull align 4 dereferenceable(5) %14) #5
  store i8 1, ptr %12, align 1, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %109

106:                                              ; preds = %92
  %107 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIicEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %108 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %11, ptr noundef nonnull align 4 dereferenceable(5) %107)
  br label %109

109:                                              ; preds = %106, %104
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %110 = getelementptr inbounds %"struct.std::pair.29", ptr %11, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %110)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !5
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) %111, ptr noundef nonnull align 4 dereferenceable(4) %112)
  %113 = load i64, ptr %17, align 4
  %114 = load i64, ptr %18, align 4
  %115 = load i64, ptr %19, align 4
  %116 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %113, i64 %114, i64 %115)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br i1 %116, label %117, label %121

117:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !5
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = getelementptr inbounds %"struct.std::pair.29", ptr %11, i32 0, i32 0
  store i32 %119, ptr %120, align 4, !tbaa !12
  store i8 1, ptr %12, align 1, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %121

121:                                              ; preds = %117, %109
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %122 = getelementptr inbounds %"struct.std::pair.29", ptr %11, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %122)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(4) @Bx, ptr noundef nonnull align 4 dereferenceable(4) @By)
  %123 = load i64, ptr %23, align 4
  %124 = load i64, ptr %24, align 4
  %125 = load i64, ptr %25, align 4
  %126 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %123, i64 %124, i64 %125)
  br i1 %126, label %127, label %130

127:                                              ; preds = %121
  store i8 1, ptr getelementptr inbounds ([4 x i8], ptr @done, i64 0, i64 3), align 1, !tbaa !10
  %128 = load i32, ptr @By, align 4, !tbaa !5
  %129 = getelementptr inbounds %"struct.std::pair.29", ptr %11, i32 0, i32 0
  store i32 %128, ptr %129, align 4, !tbaa !12
  store i8 1, ptr %12, align 1, !tbaa !10
  br label %130

130:                                              ; preds = %127, %121
  %131 = load i8, ptr %12, align 1, !tbaa !10, !range !14, !noundef !15
  %132 = trunc i8 %131 to i1
  br i1 %132, label %133, label %135

133:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %134 = getelementptr inbounds %"struct.std::pair.29", ptr %11, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %134)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  store i32 1, ptr %27, align 4
  br label %149

135:                                              ; preds = %130
  %136 = getelementptr inbounds %"struct.std::pair.29", ptr %11, i32 0, i32 1
  %137 = load i8, ptr %136, align 4, !tbaa !16
  %138 = sext i8 %137 to i32
  %139 = icmp eq i32 %138, 47
  br i1 %139, label %140, label %144

140:                                              ; preds = %135
  %141 = load i32, ptr %4, align 4, !tbaa !5
  %142 = getelementptr inbounds %"struct.std::pair.29", ptr %11, i32 0, i32 0
  %143 = load i32, ptr %142, align 4, !tbaa !12
  call void @_Z3getiic(i32 noundef %141, i32 noundef %143, i8 noundef signext 69)
  br label %148

144:                                              ; preds = %135
  %145 = load i32, ptr %4, align 4, !tbaa !5
  %146 = getelementptr inbounds %"struct.std::pair.29", ptr %11, i32 0, i32 0
  %147 = load i32, ptr %146, align 4, !tbaa !12
  call void @_Z3getiic(i32 noundef %145, i32 noundef %147, i8 noundef signext 87)
  br label %148

148:                                              ; preds = %144, %140
  store i32 0, ptr %27, align 4
  br label %149

149:                                              ; preds = %148, %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %150 = load i32, ptr %27, align 4
  switch i32 %150, label %356 [
    i32 0, label %151
    i32 1, label %355
  ]

151:                                              ; preds = %149
  br label %355

152:                                              ; preds = %3
  %153 = load i8, ptr %6, align 1, !tbaa !9
  %154 = sext i8 %153 to i32
  %155 = icmp eq i32 %154, 83
  br i1 %155, label %156, label %220

156:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %157 = load i32, ptr %4, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [131072 x %"class.std::set"], ptr @v, i64 0, i64 %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #5
  store i8 47, ptr %30, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IRicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %29, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %30)
  %160 = call ptr @_ZNSt3setISt4pairIicESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %159, ptr noundef nonnull align 4 dereferenceable(5) %29)
  %161 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %28, i32 0, i32 0
  store ptr %160, ptr %161, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(5) %31)
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #5
  store i8 0, ptr %32, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [131072 x %"class.std::set"], ptr @v, i64 0, i64 %163
  %165 = call ptr @_ZNKSt3setISt4pairIicESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %164) #5
  %166 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %33, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  %167 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIicEES4_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br i1 %167, label %168, label %170

168:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #5
  store i8 46, ptr %36, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(5) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 1 dereferenceable(1) %36)
  %169 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(5) %31, ptr noundef nonnull align 4 dereferenceable(5) %34) #5
  store i8 1, ptr %32, align 1, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %177

170:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !17
  %171 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %38, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8
  %173 = call ptr @_ZSt4prevISt23_Rb_tree_const_iteratorISt4pairIicEEET_S4_NSt15iterator_traitsIS4_E15difference_typeE(ptr %172, i64 noundef 1)
  %174 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %37, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  %175 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIicEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #5
  %176 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %31, ptr noundef nonnull align 4 dereferenceable(5) %175)
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  br label %177

177:                                              ; preds = %170, %168
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %39, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %178 = getelementptr inbounds %"struct.std::pair.29", ptr %31, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %178)
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  store i32 0, ptr %42, align 4, !tbaa !5
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  store i32 0, ptr %43, align 4, !tbaa !5
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %43)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(4) %179, ptr noundef nonnull align 4 dereferenceable(4) %180)
  %181 = load i64, ptr %39, align 4
  %182 = load i64, ptr %40, align 4
  %183 = load i64, ptr %41, align 4
  %184 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %181, i64 %182, i64 %183)
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  br i1 %184, label %185, label %189

185:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #5
  store i32 0, ptr %44, align 4, !tbaa !5
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %44)
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = getelementptr inbounds %"struct.std::pair.29", ptr %31, i32 0, i32 0
  store i32 %187, ptr %188, align 4, !tbaa !12
  store i8 1, ptr %32, align 1, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #5
  br label %189

189:                                              ; preds = %185, %177
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %190 = getelementptr inbounds %"struct.std::pair.29", ptr %31, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %190)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %47, ptr noundef nonnull align 4 dereferenceable(4) @Bx, ptr noundef nonnull align 4 dereferenceable(4) @By)
  %191 = load i64, ptr %45, align 4
  %192 = load i64, ptr %46, align 4
  %193 = load i64, ptr %47, align 4
  %194 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %191, i64 %192, i64 %193)
  br i1 %194, label %195, label %198

195:                                              ; preds = %189
  store i8 1, ptr getelementptr inbounds ([4 x i8], ptr @done, i64 0, i64 1), align 1, !tbaa !10
  %196 = load i32, ptr @By, align 4, !tbaa !5
  %197 = getelementptr inbounds %"struct.std::pair.29", ptr %31, i32 0, i32 0
  store i32 %196, ptr %197, align 4, !tbaa !12
  store i8 1, ptr %32, align 1, !tbaa !10
  br label %198

198:                                              ; preds = %195, %189
  %199 = load i8, ptr %32, align 1, !tbaa !10, !range !14, !noundef !15
  %200 = trunc i8 %199 to i1
  br i1 %200, label %201, label %203

201:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #5
  %202 = getelementptr inbounds %"struct.std::pair.29", ptr %31, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %202)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %48)
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #5
  store i32 1, ptr %27, align 4
  br label %217

203:                                              ; preds = %198
  %204 = getelementptr inbounds %"struct.std::pair.29", ptr %31, i32 0, i32 1
  %205 = load i8, ptr %204, align 4, !tbaa !16
  %206 = sext i8 %205 to i32
  %207 = icmp eq i32 %206, 47
  br i1 %207, label %208, label %212

208:                                              ; preds = %203
  %209 = load i32, ptr %4, align 4, !tbaa !5
  %210 = getelementptr inbounds %"struct.std::pair.29", ptr %31, i32 0, i32 0
  %211 = load i32, ptr %210, align 4, !tbaa !12
  call void @_Z3getiic(i32 noundef %209, i32 noundef %211, i8 noundef signext 87)
  br label %216

212:                                              ; preds = %203
  %213 = load i32, ptr %4, align 4, !tbaa !5
  %214 = getelementptr inbounds %"struct.std::pair.29", ptr %31, i32 0, i32 0
  %215 = load i32, ptr %214, align 4, !tbaa !12
  call void @_Z3getiic(i32 noundef %213, i32 noundef %215, i8 noundef signext 69)
  br label %216

216:                                              ; preds = %212, %208
  store i32 0, ptr %27, align 4
  br label %217

217:                                              ; preds = %216, %201
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  %218 = load i32, ptr %27, align 4
  switch i32 %218, label %356 [
    i32 0, label %219
    i32 1, label %355
  ]

219:                                              ; preds = %217
  br label %354

220:                                              ; preds = %152
  %221 = load i8, ptr %6, align 1, !tbaa !9
  %222 = sext i8 %221 to i32
  %223 = icmp eq i32 %222, 69
  br i1 %223, label %224, label %284

224:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  %225 = load i32, ptr %5, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [131072 x %"class.std::set"], ptr @h, i64 0, i64 %226
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #5
  store i8 93, ptr %51, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IRicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %50, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %51)
  %228 = call ptr @_ZNSt3setISt4pairIicESt4lessIS1_ESaIS1_EE11upper_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %227, ptr noundef nonnull align 4 dereferenceable(5) %50)
  %229 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %49, i32 0, i32 0
  store ptr %228, ptr %229, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #5
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(5) %52)
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #5
  store i8 0, ptr %53, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #5
  %230 = load i32, ptr %5, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [131072 x %"class.std::set"], ptr @h, i64 0, i64 %231
  %233 = call ptr @_ZNKSt3setISt4pairIicESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %232) #5
  %234 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %54, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  %235 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIicEES4_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %54) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #5
  br i1 %235, label %236, label %238

236:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #5
  store i32 131071, ptr %56, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %57) #5
  store i8 46, ptr %57, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(5) %55, ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 1 dereferenceable(1) %57)
  %237 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(5) %52, ptr noundef nonnull align 4 dereferenceable(5) %55) #5
  store i8 1, ptr %53, align 1, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #5
  br label %241

238:                                              ; preds = %224
  %239 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIicEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #5
  %240 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %52, ptr noundef nonnull align 4 dereferenceable(5) %239)
  br label %241

241:                                              ; preds = %238, %236
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %58, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %242 = getelementptr inbounds %"struct.std::pair.29", ptr %52, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(4) %242, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #5
  store i32 0, ptr %61, align 4, !tbaa !5
  %243 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %61)
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #5
  store i32 0, ptr %62, align 4, !tbaa !5
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %62)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(4) %243, ptr noundef nonnull align 4 dereferenceable(4) %244)
  %245 = load i64, ptr %58, align 4
  %246 = load i64, ptr %59, align 4
  %247 = load i64, ptr %60, align 4
  %248 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %245, i64 %246, i64 %247)
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #5
  br i1 %248, label %249, label %253

249:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #5
  store i32 0, ptr %63, align 4, !tbaa !5
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %63)
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %252 = getelementptr inbounds %"struct.std::pair.29", ptr %52, i32 0, i32 0
  store i32 %251, ptr %252, align 4, !tbaa !12
  store i8 1, ptr %53, align 1, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #5
  br label %253

253:                                              ; preds = %249, %241
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %64, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %254 = getelementptr inbounds %"struct.std::pair.29", ptr %52, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %65, ptr noundef nonnull align 4 dereferenceable(4) %254, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %66, ptr noundef nonnull align 4 dereferenceable(4) @Bx, ptr noundef nonnull align 4 dereferenceable(4) @By)
  %255 = load i64, ptr %64, align 4
  %256 = load i64, ptr %65, align 4
  %257 = load i64, ptr %66, align 4
  %258 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %255, i64 %256, i64 %257)
  br i1 %258, label %259, label %262

259:                                              ; preds = %253
  %260 = load i32, ptr @Bx, align 4, !tbaa !5
  %261 = getelementptr inbounds %"struct.std::pair.29", ptr %52, i32 0, i32 0
  store i32 %260, ptr %261, align 4, !tbaa !12
  store i8 1, ptr %53, align 1, !tbaa !10
  store i8 1, ptr getelementptr inbounds ([4 x i8], ptr @done, i64 0, i64 2), align 1, !tbaa !10
  br label %262

262:                                              ; preds = %259, %253
  %263 = load i8, ptr %53, align 1, !tbaa !10, !range !14, !noundef !15
  %264 = trunc i8 %263 to i1
  br i1 %264, label %265, label %267

265:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #5
  %266 = getelementptr inbounds %"struct.std::pair.29", ptr %52, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %67, ptr noundef nonnull align 4 dereferenceable(4) %266, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %67)
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #5
  store i32 1, ptr %27, align 4
  br label %281

267:                                              ; preds = %262
  %268 = getelementptr inbounds %"struct.std::pair.29", ptr %52, i32 0, i32 1
  %269 = load i8, ptr %268, align 4, !tbaa !16
  %270 = sext i8 %269 to i32
  %271 = icmp eq i32 %270, 47
  br i1 %271, label %272, label %276

272:                                              ; preds = %267
  %273 = getelementptr inbounds %"struct.std::pair.29", ptr %52, i32 0, i32 0
  %274 = load i32, ptr %273, align 4, !tbaa !12
  %275 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z3getiic(i32 noundef %274, i32 noundef %275, i8 noundef signext 78)
  br label %280

276:                                              ; preds = %267
  %277 = getelementptr inbounds %"struct.std::pair.29", ptr %52, i32 0, i32 0
  %278 = load i32, ptr %277, align 4, !tbaa !12
  %279 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z3getiic(i32 noundef %278, i32 noundef %279, i8 noundef signext 83)
  br label %280

280:                                              ; preds = %276, %272
  store i32 0, ptr %27, align 4
  br label %281

281:                                              ; preds = %280, %265
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  %282 = load i32, ptr %27, align 4
  switch i32 %282, label %356 [
    i32 0, label %283
    i32 1, label %355
  ]

283:                                              ; preds = %281
  br label %353

284:                                              ; preds = %220
  %285 = load i8, ptr %6, align 1, !tbaa !9
  %286 = sext i8 %285 to i32
  %287 = icmp eq i32 %286, 87
  br i1 %287, label %288, label %352

288:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #5
  %289 = load i32, ptr %5, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [131072 x %"class.std::set"], ptr @h, i64 0, i64 %290
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %70) #5
  store i8 47, ptr %70, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IRicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %69, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %70)
  %292 = call ptr @_ZNSt3setISt4pairIicESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %291, ptr noundef nonnull align 4 dereferenceable(5) %69)
  %293 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %68, i32 0, i32 0
  store ptr %292, ptr %293, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %70) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #5
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(5) %71)
  call void @llvm.lifetime.start.p0(i64 1, ptr %72) #5
  store i8 0, ptr %72, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #5
  %294 = load i32, ptr %5, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [131072 x %"class.std::set"], ptr @h, i64 0, i64 %295
  %297 = call ptr @_ZNKSt3setISt4pairIicESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %296) #5
  %298 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %73, i32 0, i32 0
  store ptr %297, ptr %298, align 8
  %299 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIicEES4_(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(8) %73) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #5
  br i1 %299, label %300, label %302

300:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #5
  store i32 0, ptr %75, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %76) #5
  store i8 46, ptr %76, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(5) %74, ptr noundef nonnull align 4 dereferenceable(4) %75, ptr noundef nonnull align 1 dereferenceable(1) %76)
  %301 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(5) %71, ptr noundef nonnull align 4 dereferenceable(5) %74) #5
  store i8 1, ptr %72, align 1, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 1, ptr %76) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #5
  br label %309

302:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %78, ptr align 8 %68, i64 8, i1 false), !tbaa.struct !17
  %303 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %78, i32 0, i32 0
  %304 = load ptr, ptr %303, align 8
  %305 = call ptr @_ZSt4prevISt23_Rb_tree_const_iteratorISt4pairIicEEET_S4_NSt15iterator_traitsIS4_E15difference_typeE(ptr %304, i64 noundef 1)
  %306 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %77, i32 0, i32 0
  store ptr %305, ptr %306, align 8
  %307 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIicEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %77) #5
  %308 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %71, ptr noundef nonnull align 4 dereferenceable(5) %307)
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #5
  br label %309

309:                                              ; preds = %302, %300
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %310 = getelementptr inbounds %"struct.std::pair.29", ptr %71, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %80, ptr noundef nonnull align 4 dereferenceable(4) %310, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %82) #5
  store i32 0, ptr %82, align 4, !tbaa !5
  %311 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %82)
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #5
  store i32 0, ptr %83, align 4, !tbaa !5
  %312 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %83)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %81, ptr noundef nonnull align 4 dereferenceable(4) %311, ptr noundef nonnull align 4 dereferenceable(4) %312)
  %313 = load i64, ptr %79, align 4
  %314 = load i64, ptr %80, align 4
  %315 = load i64, ptr %81, align 4
  %316 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %313, i64 %314, i64 %315)
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #5
  br i1 %316, label %317, label %321

317:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #5
  store i32 0, ptr %84, align 4, !tbaa !5
  %318 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %84)
  %319 = load i32, ptr %318, align 4, !tbaa !5
  %320 = getelementptr inbounds %"struct.std::pair.29", ptr %71, i32 0, i32 0
  store i32 %319, ptr %320, align 4, !tbaa !12
  store i8 1, ptr %72, align 1, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #5
  br label %321

321:                                              ; preds = %317, %309
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %85, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %322 = getelementptr inbounds %"struct.std::pair.29", ptr %71, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %86, ptr noundef nonnull align 4 dereferenceable(4) %322, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %87, ptr noundef nonnull align 4 dereferenceable(4) @Bx, ptr noundef nonnull align 4 dereferenceable(4) @By)
  %323 = load i64, ptr %85, align 4
  %324 = load i64, ptr %86, align 4
  %325 = load i64, ptr %87, align 4
  %326 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %323, i64 %324, i64 %325)
  br i1 %326, label %327, label %330

327:                                              ; preds = %321
  %328 = load i32, ptr @Bx, align 4, !tbaa !5
  %329 = getelementptr inbounds %"struct.std::pair.29", ptr %71, i32 0, i32 0
  store i32 %328, ptr %329, align 4, !tbaa !12
  store i8 1, ptr %72, align 1, !tbaa !10
  store i8 1, ptr @done, align 1, !tbaa !10
  br label %330

330:                                              ; preds = %327, %321
  %331 = load i8, ptr %72, align 1, !tbaa !10, !range !14, !noundef !15
  %332 = trunc i8 %331 to i1
  br i1 %332, label %333, label %335

333:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 8, ptr %88) #5
  %334 = getelementptr inbounds %"struct.std::pair.29", ptr %71, i32 0, i32 0
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %88, ptr noundef nonnull align 4 dereferenceable(4) %334, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %88)
  call void @llvm.lifetime.end.p0(i64 8, ptr %88) #5
  store i32 1, ptr %27, align 4
  br label %349

335:                                              ; preds = %330
  %336 = getelementptr inbounds %"struct.std::pair.29", ptr %71, i32 0, i32 1
  %337 = load i8, ptr %336, align 4, !tbaa !16
  %338 = sext i8 %337 to i32
  %339 = icmp eq i32 %338, 47
  br i1 %339, label %340, label %344

340:                                              ; preds = %335
  %341 = getelementptr inbounds %"struct.std::pair.29", ptr %71, i32 0, i32 0
  %342 = load i32, ptr %341, align 4, !tbaa !12
  %343 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z3getiic(i32 noundef %342, i32 noundef %343, i8 noundef signext 83)
  br label %348

344:                                              ; preds = %335
  %345 = getelementptr inbounds %"struct.std::pair.29", ptr %71, i32 0, i32 0
  %346 = load i32, ptr %345, align 4, !tbaa !12
  %347 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z3getiic(i32 noundef %346, i32 noundef %347, i8 noundef signext 78)
  br label %348

348:                                              ; preds = %344, %340
  store i32 0, ptr %27, align 4
  br label %349

349:                                              ; preds = %348, %333
  call void @llvm.lifetime.end.p0(i64 1, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #5
  %350 = load i32, ptr %27, align 4
  switch i32 %350, label %356 [
    i32 0, label %351
    i32 1, label %355
  ]

351:                                              ; preds = %349
  br label %352

352:                                              ; preds = %351, %284
  br label %353

353:                                              ; preds = %352, %283
  br label %354

354:                                              ; preds = %353, %219
  br label %355

355:                                              ; preds = %354, %349, %281, %217, %151, %149
  ret void

356:                                              ; preds = %349, %281, %217, %149
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<std::pair<int, char>, std::pair<int, char>, std::_Identity<std::pair<int, char>>, std::less<std::pair<int, char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, char>, std::pair<int, char>, std::_Identity<std::pair<int, char>>, std::less<std::pair<int, char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.13" = type { i32, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.29" = type <{ i32, i8, [3 x i8] }>

@Bx = external dso_local global i32, align 4
@By = external dso_local global i32, align 4
@xval = external dso_local global %"class.std::map", align 8
@yval = external dso_local global %"class.std::map", align 8
@v = external dso_local global [131072 x %"class.std::set"], align 16
@h = external dso_local global [131072 x %"class.std::set"], align 16
@point = external dso_local global %"class.std::vector.17", align 8
@done = external dso_local local_unnamed_addr global [4 x i8], align 1

; 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 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 void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64, i64, i64) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3getiic(i32 noundef %0, i32 noundef %1, i8 noundef signext %2) local_unnamed_addr #2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair.13", align 4
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::pair.29", align 4
  %9 = alloca i8, align 1
  %10 = alloca %"struct.std::pair.29", align 4
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %"struct.std::pair.29", align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %"struct.std::pair.13", align 8
  %16 = alloca %"struct.std::pair.13", align 8
  %17 = alloca %"struct.std::pair.13", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair.13", align 8
  %22 = alloca %"struct.std::pair.13", align 8
  %23 = alloca %"struct.std::pair.13", align 8
  %24 = alloca %"struct.std::pair.13", align 4
  %25 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %26 = alloca %"struct.std::pair.29", align 4
  %27 = alloca i8, align 1
  %28 = alloca %"struct.std::pair.29", align 4
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = alloca %"struct.std::pair.29", align 4
  %31 = alloca i32, align 4
  %32 = alloca i8, align 1
  %33 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %34 = alloca %"struct.std::pair.13", align 8
  %35 = alloca %"struct.std::pair.13", align 8
  %36 = alloca %"struct.std::pair.13", align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca %"struct.std::pair.13", align 8
  %41 = alloca %"struct.std::pair.13", align 8
  %42 = alloca %"struct.std::pair.13", align 8
  %43 = alloca %"struct.std::pair.13", align 4
  %44 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %45 = alloca %"struct.std::pair.29", align 4
  %46 = alloca i8, align 1
  %47 = alloca %"struct.std::pair.29", align 4
  %48 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %49 = alloca %"struct.std::pair.29", align 4
  %50 = alloca i32, align 4
  %51 = alloca i8, align 1
  %52 = alloca %"struct.std::pair.13", align 8
  %53 = alloca %"struct.std::pair.13", align 8
  %54 = alloca %"struct.std::pair.13", align 8
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca %"struct.std::pair.13", align 8
  %59 = alloca %"struct.std::pair.13", align 8
  %60 = alloca %"struct.std::pair.13", align 8
  %61 = alloca %"struct.std::pair.13", align 4
  %62 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %63 = alloca %"struct.std::pair.29", align 4
  %64 = alloca i8, align 1
  %65 = alloca %"struct.std::pair.29", align 4
  %66 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %67 = alloca %"struct.std::pair.29", align 4
  %68 = alloca i32, align 4
  %69 = alloca i8, align 1
  %70 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %71 = alloca %"struct.std::pair.13", align 8
  %72 = alloca %"struct.std::pair.13", align 8
  %73 = alloca %"struct.std::pair.13", align 8
  %74 = alloca i32, align 4
  %75 = alloca i32, align 4
  %76 = alloca i32, align 4
  %77 = alloca %"struct.std::pair.13", align 8
  %78 = alloca %"struct.std::pair.13", align 8
  %79 = alloca %"struct.std::pair.13", align 8
  %80 = alloca %"struct.std::pair.13", align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  switch i8 %2, label %251 [
    i8 78, label %81
    i8 83, label %123
    i8 69, label %166
    i8 87, label %208
  ]

81:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [131072 x %"class.std::set"], ptr @v, i64 0, i64 %83
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  store i8 93, ptr %9, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IRicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %8, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %9)
  %85 = call ptr @_ZNSt3setISt4pairIicESt4lessIS1_ESaIS1_EE11upper_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %84, ptr noundef nonnull align 4 dereferenceable(5) %8)
  store ptr %85, ptr %7, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(5) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [131072 x %"class.std::set"], ptr @v, i64 0, i64 %87
  %89 = call ptr @_ZNKSt3setISt4pairIicESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %88) #4
  store ptr %89, ptr %11, align 8
  %90 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIicEES4_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br i1 %90, label %91, label %93

91:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  store i32 131071, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #4
  store i8 46, ptr %14, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(5) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
  %92 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(5) %10, ptr noundef nonnull align 4 dereferenceable(5) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br label %96

93:                                               ; preds = %81
  %94 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIicEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %95 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %10, ptr noundef nonnull align 4 dereferenceable(5) %94)
  br label %96

96:                                               ; preds = %93, %91
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  store i32 0, ptr %18, align 4, !tbaa !5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  store i32 0, ptr %19, align 4, !tbaa !5
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %19)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef nonnull align 4 dereferenceable(4) %98)
  %99 = load i64, ptr %15, align 8
  %100 = load i64, ptr %16, align 8
  %101 = load i64, ptr %17, align 8
  %102 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %99, i64 %100, i64 %101)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  br i1 %102, label %103, label %106

103:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  store i32 0, ptr %20, align 4, !tbaa !5
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %105 = load i32, ptr %104, align 4, !tbaa !5
  store i32 %105, ptr %10, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  br label %106

106:                                              ; preds = %103, %96
  %.1 = phi i1 [ true, %103 ], [ %90, %96 ]
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) @Bx, ptr noundef nonnull align 4 dereferenceable(4) @By)
  %107 = load i64, ptr %21, align 8
  %108 = load i64, ptr %22, align 8
  %109 = load i64, ptr %23, align 8
  %110 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %107, i64 %108, i64 %109)
  br i1 %110, label %.critedge, label %112

.critedge:                                        ; preds = %106
  store i8 1, ptr getelementptr inbounds (i8, ptr @done, i64 3), align 1, !tbaa !12
  %111 = load i32, ptr @By, align 4, !tbaa !5
  store i32 %111, ptr %10, align 4, !tbaa !10
  br label %113

112:                                              ; preds = %106
  br i1 %.1, label %113, label %114

113:                                              ; preds = %.critedge, %112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #4
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #4
  br label %122

114:                                              ; preds = %112
  %115 = getelementptr inbounds i8, ptr %10, i64 4
  %116 = load i8, ptr %115, align 4, !tbaa !14
  %117 = icmp eq i8 %116, 47
  %118 = load i32, ptr %4, align 4, !tbaa !5
  %119 = load i32, ptr %10, align 4, !tbaa !10
  br i1 %117, label %120, label %121

120:                                              ; preds = %114
  call void @_Z3getiic(i32 noundef %118, i32 noundef %119, i8 noundef signext 69)
  br label %122

121:                                              ; preds = %114
  call void @_Z3getiic(i32 noundef %118, i32 noundef %119, i8 noundef signext 87)
  br label %122

122:                                              ; preds = %120, %121, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %251

123:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #4
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [131072 x %"class.std::set"], ptr @v, i64 0, i64 %125
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #4
  store i8 47, ptr %27, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IRicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %26, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %27)
  %127 = call ptr @_ZNSt3setISt4pairIicESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %126, ptr noundef nonnull align 4 dereferenceable(5) %26)
  store ptr %127, ptr %25, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #4
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(5) %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #4
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [131072 x %"class.std::set"], ptr @v, i64 0, i64 %129
  %131 = call ptr @_ZNKSt3setISt4pairIicESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %130) #4
  store ptr %131, ptr %29, align 8
  %132 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIicEES4_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #4
  br i1 %132, label %133, label %135

133:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #4
  store i32 0, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %32) #4
  store i8 46, ptr %32, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(5) %30, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 1 dereferenceable(1) %32)
  %134 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(5) %28, ptr noundef nonnull align 4 dereferenceable(5) %30) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #4
  br label %139

135:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #4
  %.sroa.02.0.copyload = load ptr, ptr %25, align 8, !tbaa !15
  %136 = call ptr @_ZSt4prevISt23_Rb_tree_const_iteratorISt4pairIicEEET_S4_NSt15iterator_traitsIS4_E15difference_typeE(ptr %.sroa.02.0.copyload, i64 noundef 1)
  store ptr %136, ptr %33, align 8
  %137 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIicEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #4
  %138 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %28, ptr noundef nonnull align 4 dereferenceable(5) %137)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #4
  br label %139

139:                                              ; preds = %135, %133
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #4
  store i32 0, ptr %37, align 4, !tbaa !5
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #4
  store i32 0, ptr %38, align 4, !tbaa !5
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %38)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %140, ptr noundef nonnull align 4 dereferenceable(4) %141)
  %142 = load i64, ptr %34, align 8
  %143 = load i64, ptr %35, align 8
  %144 = load i64, ptr %36, align 8
  %145 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %142, i64 %143, i64 %144)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #4
  br i1 %145, label %146, label %149

146:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #4
  store i32 0, ptr %39, align 4, !tbaa !5
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %39)
  %148 = load i32, ptr %147, align 4, !tbaa !5
  store i32 %148, ptr %28, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #4
  br label %149

149:                                              ; preds = %146, %139
  %.116 = phi i1 [ true, %146 ], [ %132, %139 ]
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(4) @Bx, ptr noundef nonnull align 4 dereferenceable(4) @By)
  %150 = load i64, ptr %40, align 8
  %151 = load i64, ptr %41, align 8
  %152 = load i64, ptr %42, align 8
  %153 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %150, i64 %151, i64 %152)
  br i1 %153, label %.critedge20, label %155

.critedge20:                                      ; preds = %149
  store i8 1, ptr getelementptr inbounds (i8, ptr @done, i64 1), align 1, !tbaa !12
  %154 = load i32, ptr @By, align 4, !tbaa !5
  store i32 %154, ptr %28, align 4, !tbaa !10
  br label %156

155:                                              ; preds = %149
  br i1 %.116, label %156, label %157

156:                                              ; preds = %.critedge20, %155
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #4
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %43, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %43)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #4
  br label %165

157:                                              ; preds = %155
  %158 = getelementptr inbounds i8, ptr %28, i64 4
  %159 = load i8, ptr %158, align 4, !tbaa !14
  %160 = icmp eq i8 %159, 47
  %161 = load i32, ptr %4, align 4, !tbaa !5
  %162 = load i32, ptr %28, align 4, !tbaa !10
  br i1 %160, label %163, label %164

163:                                              ; preds = %157
  call void @_Z3getiic(i32 noundef %161, i32 noundef %162, i8 noundef signext 87)
  br label %165

164:                                              ; preds = %157
  call void @_Z3getiic(i32 noundef %161, i32 noundef %162, i8 noundef signext 69)
  br label %165

165:                                              ; preds = %163, %164, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #4
  br label %251

166:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #4
  %167 = load i32, ptr %5, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [131072 x %"class.std::set"], ptr @h, i64 0, i64 %168
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %46) #4
  store i8 93, ptr %46, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IRicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %45, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %46)
  %170 = call ptr @_ZNSt3setISt4pairIicESt4lessIS1_ESaIS1_EE11upper_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %169, ptr noundef nonnull align 4 dereferenceable(5) %45)
  store ptr %170, ptr %44, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #4
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(5) %47)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #4
  %171 = load i32, ptr %5, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [131072 x %"class.std::set"], ptr @h, i64 0, i64 %172
  %174 = call ptr @_ZNKSt3setISt4pairIicESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %173) #4
  store ptr %174, ptr %48, align 8
  %175 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIicEES4_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #4
  br i1 %175, label %176, label %178

176:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %49) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %50) #4
  store i32 131071, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %51) #4
  store i8 46, ptr %51, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(5) %49, ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 1 dereferenceable(1) %51)
  %177 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(5) %47, ptr noundef nonnull align 4 dereferenceable(5) %49) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %51) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #4
  br label %181

178:                                              ; preds = %166
  %179 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIicEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #4
  %180 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %47, ptr noundef nonnull align 4 dereferenceable(5) %179)
  br label %181

181:                                              ; preds = %178, %176
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %55) #4
  store i32 0, ptr %55, align 4, !tbaa !5
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %55)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %56) #4
  store i32 0, ptr %56, align 4, !tbaa !5
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %56)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %54, ptr noundef nonnull align 4 dereferenceable(4) %182, ptr noundef nonnull align 4 dereferenceable(4) %183)
  %184 = load i64, ptr %52, align 8
  %185 = load i64, ptr %53, align 8
  %186 = load i64, ptr %54, align 8
  %187 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %184, i64 %185, i64 %186)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %56) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %55) #4
  br i1 %187, label %188, label %191

188:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %57) #4
  store i32 0, ptr %57, align 4, !tbaa !5
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %57)
  %190 = load i32, ptr %189, align 4, !tbaa !5
  store i32 %190, ptr %47, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #4
  br label %191

191:                                              ; preds = %188, %181
  %.113 = phi i1 [ true, %188 ], [ %175, %181 ]
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %58, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(4) @Bx, ptr noundef nonnull align 4 dereferenceable(4) @By)
  %192 = load i64, ptr %58, align 8
  %193 = load i64, ptr %59, align 8
  %194 = load i64, ptr %60, align 8
  %195 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %192, i64 %193, i64 %194)
  br i1 %195, label %.critedge22, label %197

.critedge22:                                      ; preds = %191
  %196 = load i32, ptr @Bx, align 4, !tbaa !5
  store i32 %196, ptr %47, align 4, !tbaa !10
  store i8 1, ptr getelementptr inbounds (i8, ptr @done, i64 2), align 1, !tbaa !12
  br label %198

197:                                              ; preds = %191
  br i1 %.113, label %198, label %199

198:                                              ; preds = %.critedge22, %197
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %61) #4
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %61)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %61) #4
  br label %207

199:                                              ; preds = %197
  %200 = getelementptr inbounds i8, ptr %47, i64 4
  %201 = load i8, ptr %200, align 4, !tbaa !14
  %202 = icmp eq i8 %201, 47
  %203 = load i32, ptr %47, align 4, !tbaa !10
  %204 = load i32, ptr %5, align 4, !tbaa !5
  br i1 %202, label %205, label %206

205:                                              ; preds = %199
  call void @_Z3getiic(i32 noundef %203, i32 noundef %204, i8 noundef signext 78)
  br label %207

206:                                              ; preds = %199
  call void @_Z3getiic(i32 noundef %203, i32 noundef %204, i8 noundef signext 83)
  br label %207

207:                                              ; preds = %205, %206, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #4
  br label %251

208:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %62) #4
  %209 = load i32, ptr %5, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [131072 x %"class.std::set"], ptr @h, i64 0, i64 %210
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %63) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %64) #4
  store i8 47, ptr %64, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IRicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %63, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %64)
  %212 = call ptr @_ZNSt3setISt4pairIicESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %211, ptr noundef nonnull align 4 dereferenceable(5) %63)
  store ptr %212, ptr %62, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %64) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %63) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #4
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(5) %65)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %66) #4
  %213 = load i32, ptr %5, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [131072 x %"class.std::set"], ptr @h, i64 0, i64 %214
  %216 = call ptr @_ZNKSt3setISt4pairIicESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %215) #4
  store ptr %216, ptr %66, align 8
  %217 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIicEES4_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %66) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %66) #4
  br i1 %217, label %218, label %220

218:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %67) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %68) #4
  store i32 0, ptr %68, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %69) #4
  store i8 46, ptr %69, align 1, !tbaa !9
  call void @_ZNSt4pairIicEC2IicTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(5) %67, ptr noundef nonnull align 4 dereferenceable(4) %68, ptr noundef nonnull align 1 dereferenceable(1) %69)
  %219 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(5) %65, ptr noundef nonnull align 4 dereferenceable(5) %67) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %69) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %68) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #4
  br label %224

220:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %70) #4
  %.sroa.0.0.copyload = load ptr, ptr %62, align 8, !tbaa !15
  %221 = call ptr @_ZSt4prevISt23_Rb_tree_const_iteratorISt4pairIicEEET_S4_NSt15iterator_traitsIS4_E15difference_typeE(ptr %.sroa.0.0.copyload, i64 noundef 1)
  store ptr %221, ptr %70, align 8
  %222 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIicEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #4
  %223 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNSt4pairIicEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %65, ptr noundef nonnull align 4 dereferenceable(5) %222)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %70) #4
  br label %224

224:                                              ; preds = %220, %218
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %71, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %74) #4
  store i32 0, ptr %74, align 4, !tbaa !5
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %74)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %75) #4
  store i32 0, ptr %75, align 4, !tbaa !5
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @yval, ptr noundef nonnull align 4 dereferenceable(4) %75)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %73, ptr noundef nonnull align 4 dereferenceable(4) %225, ptr noundef nonnull align 4 dereferenceable(4) %226)
  %227 = load i64, ptr %71, align 8
  %228 = load i64, ptr %72, align 8
  %229 = load i64, ptr %73, align 8
  %230 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %227, i64 %228, i64 %229)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %75) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %74) #4
  br i1 %230, label %231, label %234

231:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %76) #4
  store i32 0, ptr %76, align 4, !tbaa !5
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @xval, ptr noundef nonnull align 4 dereferenceable(4) %76)
  %233 = load i32, ptr %232, align 4, !tbaa !5
  store i32 %233, ptr %65, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %76) #4
  br label %234

234:                                              ; preds = %231, %224
  %.110 = phi i1 [ true, %231 ], [ %217, %224 ]
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %77, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %78, ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(4) @Bx, ptr noundef nonnull align 4 dereferenceable(4) @By)
  %235 = load i64, ptr %77, align 8
  %236 = load i64, ptr %78, align 8
  %237 = load i64, ptr %79, align 8
  %238 = call noundef zeroext i1 @_Z2onSt4pairIiiES0_S0_(i64 %235, i64 %236, i64 %237)
  br i1 %238, label %.critedge24, label %240

.critedge24:                                      ; preds = %234
  %239 = load i32, ptr @Bx, align 4, !tbaa !5
  store i32 %239, ptr %65, align 4, !tbaa !10
  store i8 1, ptr @done, align 1, !tbaa !12
  br label %241

240:                                              ; preds = %234
  br i1 %.110, label %241, label %242

241:                                              ; preds = %.critedge24, %240
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %80) #4
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %80, ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @point, ptr noundef nonnull align 4 dereferenceable(8) %80)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %80) #4
  br label %250

242:                                              ; preds = %240
  %243 = getelementptr inbounds i8, ptr %65, i64 4
  %244 = load i8, ptr %243, align 4, !tbaa !14
  %245 = icmp eq i8 %244, 47
  %246 = load i32, ptr %65, align 4, !tbaa !10
  %247 = load i32, ptr %5, align 4, !tbaa !5
  br i1 %245, label %248, label %249

248:                                              ; preds = %242
  call void @_Z3getiic(i32 noundef %246, i32 noundef %247, i8 noundef signext 83)
  br label %250

249:                                              ; preds = %242
  call void @_Z3getiic(i32 noundef %246, i32 noundef %247, i8 noundef signext 78)
  br label %250

250:                                              ; preds = %248, %249, %241
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %62) #4
  br label %251

251:                                              ; preds = %3, %250, %207, %165, %122
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass