; LLVM IR from eyangch/competitive-programming :: USACOtraining/5.1 (starry)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<dat, std::allocator<dat>>::_Vector_impl" }
%"struct.std::_Vector_base<dat, std::allocator<dat>>::_Vector_impl" = type { %"struct.std::_Vector_base<dat, std::allocator<dat>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dat, std::allocator<dat>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%class.anon = type { i8 }
%struct.dat = type { i8, %"class.std::vector" }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }

@W = external dso_local global i64, align 8
@H = external dso_local global i64, align 8
@_Z1BB5cxx11 = external dso_local global [100 x %"class.std::__cxx11::basic_string"], align 16
@vis = external dso_local global [100 x [100 x i8]], align 16
@ans = external dso_local global [100 x [101 x i8]], align 16
@pos = external dso_local global %"class.std::vector", align 8
@let = external dso_local global i8, align 1
@D = external dso_local global %"class.std::vector.3", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3ff2xxc(i64 noundef, i64 noundef, i8 noundef signext) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3cvtv() #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3rotv() #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4flipv() #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i8, align 1
  %5 = alloca %class.anon, align 1
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca [8 x %"class.std::vector"], align 16
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %struct.dat, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %20 = alloca %class.anon, align 1
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %22 = alloca i8, align 1
  %23 = alloca i64, align 8
  %24 = alloca i8, align 1
  %25 = alloca i64, align 8
  %26 = alloca %struct.dat, align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %29 = alloca %class.anon, align 1
  %30 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %31 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %31, i64 -24
  %33 = load i64, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %33
  %35 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %34, ptr noundef null)
  %36 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %37 = load ptr, ptr @stdin, align 8, !tbaa !8
  %38 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.4, ptr noundef %37)
  %39 = load ptr, ptr @stdout, align 8, !tbaa !8
  %40 = call ptr @freopen(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %39)
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @W)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(8) @H)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !11
  br label %43

43:                                               ; preds = %52, %0
  %44 = load i64, ptr %2, align 8, !tbaa !11
  %45 = load i64, ptr @H, align 8, !tbaa !11
  %46 = icmp slt i64 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %55

48:                                               ; preds = %43
  %49 = load i64, ptr %2, align 8, !tbaa !11
  %50 = getelementptr inbounds [100 x %"class.std::__cxx11::basic_string"], ptr @_Z1BB5cxx11, i64 0, i64 %49
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %50)
  br label %52

52:                                               ; preds = %48
  %53 = load i64, ptr %2, align 8, !tbaa !11
  %54 = add nsw i64 %53, 1
  store i64 %54, ptr %2, align 8, !tbaa !11
  br label %43, !llvm.loop !13

55:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %56

56:                                               ; preds = %70, %55
  %57 = load i64, ptr %3, align 8, !tbaa !11
  %58 = load i64, ptr @H, align 8, !tbaa !11
  %59 = icmp slt i64 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %73

61:                                               ; preds = %56
  %62 = load i64, ptr %3, align 8, !tbaa !11
  %63 = getelementptr inbounds [100 x [101 x i8]], ptr @ans, i64 0, i64 %62
  %64 = getelementptr inbounds [101 x i8], ptr %63, i64 0, i64 0
  %65 = load i64, ptr %3, align 8, !tbaa !11
  %66 = getelementptr inbounds [100 x [101 x i8]], ptr @ans, i64 0, i64 %65
  %67 = getelementptr inbounds [101 x i8], ptr %66, i64 0, i64 0
  %68 = load i64, ptr @W, align 8, !tbaa !11
  %69 = getelementptr inbounds i8, ptr %67, i64 %68
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
  store i8 48, ptr %4, align 1, !tbaa !15
  call void @_ZSt4fillIPccEvT_S1_RKT0_(ptr noundef %64, ptr noundef %69, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  br label %70

70:                                               ; preds = %61
  %71 = load i64, ptr %3, align 8, !tbaa !11
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %3, align 8, !tbaa !11
  br label %56, !llvm.loop !16

73:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %74

74:                                               ; preds = %305, %73
  %75 = load i64, ptr %6, align 8, !tbaa !11
  %76 = load i64, ptr @H, align 8, !tbaa !11
  %77 = icmp slt i64 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %308

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %80

80:                                               ; preds = %291, %79
  %81 = load i64, ptr %8, align 8, !tbaa !11
  %82 = load i64, ptr @W, align 8, !tbaa !11
  %83 = icmp slt i64 %81, %82
  br i1 %83, label %85, label %84

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

85:                                               ; preds = %80
  %86 = load i64, ptr %6, align 8, !tbaa !11
  %87 = getelementptr inbounds [100 x [100 x i8]], ptr @vis, i64 0, i64 %86
  %88 = load i64, ptr %8, align 8, !tbaa !11
  %89 = getelementptr inbounds [100 x i8], ptr %87, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !17, !range !19, !noundef !20
  %91 = trunc i8 %90 to i1
  br i1 %91, label %100, label %92

92:                                               ; preds = %85
  %93 = load i64, ptr %6, align 8, !tbaa !11
  %94 = getelementptr inbounds [100 x %"class.std::__cxx11::basic_string"], ptr @_Z1BB5cxx11, i64 0, i64 %93
  %95 = load i64, ptr %8, align 8, !tbaa !11
  %96 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %94, i64 noundef %95)
  %97 = load i8, ptr %96, align 1, !tbaa !15
  %98 = sext i8 %97 to i32
  %99 = icmp eq i32 %98, 48
  br i1 %99, label %100, label %101

100:                                              ; preds = %92, %85
  br label %291

101:                                              ; preds = %92
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @pos) #7
  %102 = load i64, ptr %6, align 8, !tbaa !11
  %103 = load i64, ptr %8, align 8, !tbaa !11
  call void @_Z2ffxx(i64 noundef %102, i64 noundef %103)
  call void @llvm.lifetime.start.p0(i64 192, ptr %9) #7
  %104 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i32 0, i32 0
  %105 = getelementptr inbounds %"class.std::vector", ptr %104, i64 8
  br label %106

106:                                              ; preds = %106, %101
  %107 = phi ptr [ %104, %101 ], [ %108, %106 ]
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %107) #7
  %108 = getelementptr inbounds %"class.std::vector", ptr %107, i64 1
  %109 = icmp eq ptr %108, %105
  br i1 %109, label %110, label %106

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %111

111:                                              ; preds = %129, %110
  %112 = load i64, ptr %10, align 8, !tbaa !11
  %113 = icmp slt i64 %112, 4
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %136

115:                                              ; preds = %111
  invoke void @_Z3cvtv()
          to label %116 unwind label %132

116:                                              ; preds = %115
  %117 = load i64, ptr %10, align 8, !tbaa !11
  %118 = mul nsw i64 2, %117
  %119 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i64 0, i64 %118
  %120 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %121 unwind label %132

121:                                              ; preds = %116
  call void @_Z4flipv()
  invoke void @_Z3cvtv()
          to label %122 unwind label %132

122:                                              ; preds = %121
  %123 = load i64, ptr %10, align 8, !tbaa !11
  %124 = mul nsw i64 2, %123
  %125 = add nsw i64 %124, 1
  %126 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i64 0, i64 %125
  %127 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %128 unwind label %132

128:                                              ; preds = %122
  call void @_Z4flipv()
  call void @_Z3rotv()
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %10, align 8, !tbaa !11
  %131 = add nsw i64 %130, 1
  store i64 %131, ptr %10, align 8, !tbaa !11
  br label %111, !llvm.loop !21

132:                                              ; preds = %122, %121, %116, %115
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %11, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %296

136:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 -1, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %137

137:                                              ; preds = %223, %136
  %138 = load i64, ptr %14, align 8, !tbaa !11
  %139 = icmp slt i64 %138, 8
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  store i32 17, ptr %7, align 4
  br label %228

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  %142 = getelementptr inbounds %struct.dat, ptr %15, i32 0, i32 0
  store i8 97, ptr %142, align 8, !tbaa !22
  %143 = getelementptr inbounds %struct.dat, ptr %15, i32 0, i32 1
  %144 = load i64, ptr %14, align 8, !tbaa !11
  %145 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i64 0, i64 %144
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 8 dereferenceable(24) %145)
          to label %146 unwind label %165

146:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %147 = call ptr @_ZNSt6vectorI3datSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %18, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  %149 = call ptr @_ZNSt6vectorI3datSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %150 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %19, i32 0, i32 0
  store ptr %149, ptr %150, align 8
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %18, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %19, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8
  %155 = invoke ptr @"_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIP3datSt6vectorIS2_SaIS2_EEEES2_Z4mainE3$_0ET_S9_S9_RKT0_T1_"(ptr %152, ptr %154, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %156 unwind label %169

156:                                              ; preds = %146
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %17, i32 0, i32 0
  store ptr %155, ptr %157, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %158 = call ptr @_ZNSt6vectorI3datSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %159 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %21, i32 0, i32 0
  store ptr %158, ptr %159, align 8
  %160 = call noundef i64 @_ZN9__gnu_cxxmiIP3datSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  store i64 %160, ptr %16, align 8, !tbaa !11
  %161 = load i64, ptr %16, align 8, !tbaa !11
  %162 = call noundef i64 @_ZNKSt6vectorI3datSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %163 = icmp uge i64 %161, %162
  br i1 %163, label %164, label %173

164:                                              ; preds = %156
  store i32 19, ptr %7, align 4
  br label %220

165:                                              ; preds = %141
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %11, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %12, align 4
  br label %227

169:                                              ; preds = %146
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %11, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %226

173:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  store i8 0, ptr %22, align 1, !tbaa !17
  %174 = load i64, ptr %16, align 8, !tbaa !11
  %175 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI3datSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %174) #7
  %176 = getelementptr inbounds %struct.dat, ptr %175, i32 0, i32 1
  %177 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #7
  %178 = load i64, ptr %14, align 8, !tbaa !11
  %179 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i64 0, i64 %178
  %180 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %179) #7
  %181 = icmp eq i64 %177, %180
  br i1 %181, label %182, label %213

182:                                              ; preds = %173
  store i8 1, ptr %22, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 0, ptr %23, align 8, !tbaa !11
  br label %183

183:                                              ; preds = %208, %182
  %184 = load i64, ptr %23, align 8, !tbaa !11
  %185 = load i64, ptr %14, align 8, !tbaa !11
  %186 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i64 0, i64 %185
  %187 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #7
  %188 = icmp ult i64 %184, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %183
  store i32 20, ptr %7, align 4
  br label %211

190:                                              ; preds = %183
  %191 = load i64, ptr %16, align 8, !tbaa !11
  %192 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI3datSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %191) #7
  %193 = getelementptr inbounds %struct.dat, ptr %192, i32 0, i32 1
  %194 = load i64, ptr %23, align 8, !tbaa !11
  %195 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %194) #7
  %196 = load i64, ptr %14, align 8, !tbaa !11
  %197 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i64 0, i64 %196
  %198 = load i64, ptr %23, align 8, !tbaa !11
  %199 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %197, i64 noundef %198) #7
  %200 = invoke noundef zeroext i1 @_ZStneIxxEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(16) %195, ptr noundef nonnull align 8 dereferenceable(16) %199)
          to label %201 unwind label %203

201:                                              ; preds = %190
  br i1 %200, label %202, label %207

202:                                              ; preds = %201
  store i8 0, ptr %22, align 1, !tbaa !17
  store i32 20, ptr %7, align 4
  br label %211

203:                                              ; preds = %190
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %11, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %226

207:                                              ; preds = %201
  br label %208

208:                                              ; preds = %207
  %209 = load i64, ptr %23, align 8, !tbaa !11
  %210 = add nsw i64 %209, 1
  store i64 %210, ptr %23, align 8, !tbaa !11
  br label %183, !llvm.loop !28

211:                                              ; preds = %202, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212, %173
  %214 = load i8, ptr %22, align 1, !tbaa !17, !range !19, !noundef !20
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %218

216:                                              ; preds = %213
  %217 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %217, ptr %13, align 8, !tbaa !11
  store i32 17, ptr %7, align 4
  br label %219

218:                                              ; preds = %213
  store i32 0, ptr %7, align 4
  br label %219

219:                                              ; preds = %218, %216
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %220

220:                                              ; preds = %219, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  %221 = load i32, ptr %7, align 4
  switch i32 %221, label %228 [
    i32 0, label %222
    i32 19, label %223
  ]

222:                                              ; preds = %220
  br label %223

223:                                              ; preds = %222, %220
  %224 = load i64, ptr %14, align 8, !tbaa !11
  %225 = add nsw i64 %224, 1
  store i64 %225, ptr %14, align 8, !tbaa !11
  br label %137, !llvm.loop !29

226:                                              ; preds = %203, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %227

227:                                              ; preds = %226, %165
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %295

228:                                              ; preds = %220, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %229

229:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  store i8 0, ptr %24, align 1, !tbaa !15
  %230 = load i64, ptr %13, align 8, !tbaa !11
  %231 = xor i64 %230, -1
  %232 = icmp ne i64 %231, 0
  br i1 %232, label %233, label %238

233:                                              ; preds = %229
  %234 = load i64, ptr %13, align 8, !tbaa !11
  %235 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI3datSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %234) #7
  %236 = getelementptr inbounds %struct.dat, ptr %235, i32 0, i32 0
  %237 = load i8, ptr %236, align 8, !tbaa !22
  store i8 %237, ptr %24, align 1, !tbaa !15
  br label %279

238:                                              ; preds = %229
  %239 = load i8, ptr @let, align 1, !tbaa !15
  %240 = add i8 %239, 1
  store i8 %240, ptr @let, align 1, !tbaa !15
  store i8 %239, ptr %24, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store i64 0, ptr %25, align 8, !tbaa !11
  br label %241

241:                                              ; preds = %253, %238
  %242 = load i64, ptr %25, align 8, !tbaa !11
  %243 = icmp slt i64 %242, 8
  br i1 %243, label %245, label %244

244:                                              ; preds = %241
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %265

245:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #7
  %246 = getelementptr inbounds %struct.dat, ptr %26, i32 0, i32 0
  %247 = load i8, ptr %24, align 1, !tbaa !15
  store i8 %247, ptr %246, align 8, !tbaa !22
  %248 = getelementptr inbounds %struct.dat, ptr %26, i32 0, i32 1
  %249 = load i64, ptr %25, align 8, !tbaa !11
  %250 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i64 0, i64 %249
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %248, ptr noundef nonnull align 8 dereferenceable(24) %250)
          to label %251 unwind label %256

251:                                              ; preds = %245
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %252 unwind label %260

252:                                              ; preds = %251
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  br label %253

253:                                              ; preds = %252
  %254 = load i64, ptr %25, align 8, !tbaa !11
  %255 = add nsw i64 %254, 1
  store i64 %255, ptr %25, align 8, !tbaa !11
  br label %241, !llvm.loop !30

256:                                              ; preds = %245
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %11, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %12, align 4
  br label %264

260:                                              ; preds = %251
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %11, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %12, align 4
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  br label %264

264:                                              ; preds = %260, %256
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %294

265:                                              ; preds = %244
  %266 = call ptr @_ZNSt6vectorI3datSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %267 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %27, i32 0, i32 0
  store ptr %266, ptr %267, align 8
  %268 = call ptr @_ZNSt6vectorI3datSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %269 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %28, i32 0, i32 0
  store ptr %268, ptr %269, align 8
  %270 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %27, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8
  %272 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %28, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3datSt6vectorIS2_SaIS2_EEEEZ4mainE3$_0EvT_S9_T0_"(ptr %271, ptr %273)
          to label %274 unwind label %275

274:                                              ; preds = %265
  br label %279

275:                                              ; preds = %279, %265
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %11, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %12, align 4
  br label %294

279:                                              ; preds = %274, %233
  %280 = load i64, ptr %6, align 8, !tbaa !11
  %281 = load i64, ptr %8, align 8, !tbaa !11
  %282 = load i8, ptr %24, align 1, !tbaa !15
  invoke void @_Z3ff2xxc(i64 noundef %280, i64 noundef %281, i8 noundef signext %282)
          to label %283 unwind label %275

283:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %284 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i32 0, i32 0
  %285 = getelementptr inbounds %"class.std::vector", ptr %284, i64 8
  br label %286

286:                                              ; preds = %286, %283
  %287 = phi ptr [ %285, %283 ], [ %288, %286 ]
  %288 = getelementptr inbounds %"class.std::vector", ptr %287, i64 -1
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %288) #7
  %289 = icmp eq ptr %288, %284
  br i1 %289, label %290, label %286

290:                                              ; preds = %286
  call void @llvm.lifetime.end.p0(i64 192, ptr %9) #7
  br label %291

291:                                              ; preds = %290, %100
  %292 = load i64, ptr %8, align 8, !tbaa !11
  %293 = add nsw i64 %292, 1
  store i64 %293, ptr %8, align 8, !tbaa !11
  br label %80, !llvm.loop !31

294:                                              ; preds = %275, %264
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  br label %295

295:                                              ; preds = %294, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %296

296:                                              ; preds = %295, %132
  %297 = getelementptr inbounds [8 x %"class.std::vector"], ptr %9, i32 0, i32 0
  %298 = getelementptr inbounds %"class.std::vector", ptr %297, i64 8
  br label %299

299:                                              ; preds = %299, %296
  %300 = phi ptr [ %298, %296 ], [ %301, %299 ]
  %301 = getelementptr inbounds %"class.std::vector", ptr %300, i64 -1
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %301) #7
  %302 = icmp eq ptr %301, %297
  br i1 %302, label %303, label %299

303:                                              ; preds = %299
  call void @llvm.lifetime.end.p0(i64 192, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  br label %325

304:                                              ; preds = %84
  br label %305

305:                                              ; preds = %304
  %306 = load i64, ptr %6, align 8, !tbaa !11
  %307 = add nsw i64 %306, 1
  store i64 %307, ptr %6, align 8, !tbaa !11
  br label %74, !llvm.loop !32

308:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store i64 0, ptr %30, align 8, !tbaa !11
  br label %309

309:                                              ; preds = %320, %308
  %310 = load i64, ptr %30, align 8, !tbaa !11
  %311 = load i64, ptr @H, align 8, !tbaa !11
  %312 = icmp slt i64 %310, %311
  br i1 %312, label %314, label %313

313:                                              ; preds = %309
  store i32 26, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %323

314:                                              ; preds = %309
  %315 = load i64, ptr %30, align 8, !tbaa !11
  %316 = getelementptr inbounds [100 x [101 x i8]], ptr @ans, i64 0, i64 %315
  %317 = getelementptr inbounds [101 x i8], ptr %316, i64 0, i64 0
  %318 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %317)
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %318, i8 noundef signext 10)
  br label %320

320:                                              ; preds = %314
  %321 = load i64, ptr %30, align 8, !tbaa !11
  %322 = add nsw i64 %321, 1
  store i64 %322, ptr %30, align 8, !tbaa !11
  br label %309, !llvm.loop !33

323:                                              ; preds = %313
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  %324 = load i32, ptr %1, align 4
  ret i32 %324

325:                                              ; preds = %303
  %326 = load ptr, ptr %11, align 8
  %327 = load i32, ptr %12, align 4
  %328 = insertvalue { ptr, i32 } poison, ptr %326, 0
  %329 = insertvalue { ptr, i32 } %328, i32 %327, 1
  resume { ptr, i32 } %329
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #4

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPccEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #5

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIP3datSt6vectorIS2_SaIS2_EEEES2_Z4mainE3$_0ET_S9_S9_RKT0_T1_"(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(32)) #5

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !14}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !14}
!22 = !{!23, !10, i64 0}
!23 = !{!"_ZTS3dat", !10, i64 0, !24, i64 8}
!24 = !{!"_ZTSSt6vectorISt4pairIxxESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt4pairIxxESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt4pairIxxESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt4pairIxxESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !14}
!32 = distinct !{!32, !14}
!33 = distinct !{!33, !14}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<dat, std::allocator<dat>>::_Vector_impl" }
%"struct.std::_Vector_base<dat, std::allocator<dat>>::_Vector_impl" = type { %"struct.std::_Vector_base<dat, std::allocator<dat>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dat, std::allocator<dat>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.dat = type { i8, %"class.std::vector" }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }

@W = external dso_local global i64, align 8
@H = external dso_local global i64, align 8
@_Z1BB5cxx11 = external dso_local global [100 x %"class.std::__cxx11::basic_string"], align 16
@vis = external dso_local local_unnamed_addr global [100 x [100 x i8]], align 16
@ans = external dso_local global [100 x [101 x i8]], align 16
@pos = external dso_local global %"class.std::vector", align 8
@let = external dso_local local_unnamed_addr global i8, align 1
@D = external dso_local global %"class.std::vector.3", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3ff2xxc(i64 noundef, i64 noundef, i8 noundef signext) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3cvtv() local_unnamed_addr #1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i8, align 1
  %2 = alloca [8 x %"class.std::vector"], align 16
  %3 = alloca %struct.dat, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %6 = alloca %struct.dat, align 8
  %7 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  %12 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %13 = load ptr, ptr @stdin, align 8, !tbaa !8
  %14 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.4, ptr noundef %13)
  %15 = load ptr, ptr @stdout, align 8, !tbaa !8
  %16 = tail call ptr @freopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef %15)
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @W)
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(8) @H)
  %19 = load i64, ptr @H, align 8, !tbaa !11
  %20 = icmp sgt i64 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge138

.preheader113:                                    ; preds = %.lr.ph
  %21 = icmp sgt i64 %25, 0
  br i1 %21, label %.lr.ph124, label %._crit_edge138

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.055122 = phi i64 [ %24, %.lr.ph ], [ 0, %0 ]
  %22 = getelementptr inbounds [100 x %"class.std::__cxx11::basic_string"], ptr @_Z1BB5cxx11, i64 0, i64 %.055122
  %23 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %22)
  %24 = add nuw nsw i64 %.055122, 1
  %25 = load i64, ptr @H, align 8, !tbaa !11
  %26 = icmp slt i64 %24, %25
  br i1 %26, label %.lr.ph, label %.preheader113, !llvm.loop !13

.preheader112:                                    ; preds = %.lr.ph124
  %27 = icmp sgt i64 %43, 0
  br i1 %27, label %.preheader111.lr.ph, label %._crit_edge138

.preheader111.lr.ph:                              ; preds = %.preheader112
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = getelementptr inbounds i8, ptr %6, i64 8
  %30 = load i64, ptr @W, align 8, !tbaa !11
  %31 = icmp sgt i64 %30, 0
  br i1 %31, label %.preheader111.preheader, label %.lr.ph137.preheader

.preheader111.preheader:                          ; preds = %.preheader111.lr.ph
  %.ptr.1 = getelementptr inbounds i8, ptr %2, i64 24
  %.ptr.2 = getelementptr inbounds i8, ptr %2, i64 48
  %.ptr.3 = getelementptr inbounds i8, ptr %2, i64 72
  %.ptr.4 = getelementptr inbounds i8, ptr %2, i64 96
  %.ptr.5 = getelementptr inbounds i8, ptr %2, i64 120
  %.ptr.6 = getelementptr inbounds i8, ptr %2, i64 144
  %.ptr.7 = getelementptr inbounds i8, ptr %2, i64 168
  %32 = getelementptr inbounds i8, ptr %2, i64 168
  %33 = getelementptr inbounds i8, ptr %2, i64 144
  %34 = getelementptr inbounds i8, ptr %2, i64 120
  %35 = getelementptr inbounds i8, ptr %2, i64 96
  %36 = getelementptr inbounds i8, ptr %2, i64 72
  %37 = getelementptr inbounds i8, ptr %2, i64 48
  %38 = getelementptr inbounds i8, ptr %2, i64 24
  br label %.preheader111

.lr.ph124:                                        ; preds = %.preheader113, %.lr.ph124
  %.056123 = phi i64 [ %42, %.lr.ph124 ], [ 0, %.preheader113 ]
  %39 = getelementptr inbounds [100 x [101 x i8]], ptr @ans, i64 0, i64 %.056123
  %40 = load i64, ptr @W, align 8, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %39, i64 %40
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %1) #7
  store i8 48, ptr %1, align 1, !tbaa !15
  call void @_ZSt4fillIPccEvT_S1_RKT0_(ptr noundef nonnull %39, ptr noundef nonnull %41, ptr noundef nonnull align 1 dereferenceable(1) %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #7
  %42 = add nuw nsw i64 %.056123, 1
  %43 = load i64, ptr @H, align 8, !tbaa !11
  %44 = icmp slt i64 %42, %43
  br i1 %44, label %.lr.ph124, label %.preheader112, !llvm.loop !16

.preheader111:                                    ; preds = %.preheader111.preheader, %._crit_edge134
  %45 = phi i64 [ %50, %._crit_edge134 ], [ %43, %.preheader111.preheader ]
  %46 = phi i64 [ %51, %._crit_edge134 ], [ %30, %.preheader111.preheader ]
  %.061135 = phi i64 [ %52, %._crit_edge134 ], [ 0, %.preheader111.preheader ]
  %47 = icmp sgt i64 %46, 0
  br i1 %47, label %.lr.ph133, label %._crit_edge134

.lr.ph133:                                        ; preds = %.preheader111
  %48 = getelementptr inbounds [100 x %"class.std::__cxx11::basic_string"], ptr @_Z1BB5cxx11, i64 0, i64 %.061135
  br label %54

.preheader:                                       ; preds = %._crit_edge134
  %49 = icmp sgt i64 %50, 0
  br i1 %49, label %.lr.ph137.preheader, label %._crit_edge138

.lr.ph137.preheader:                              ; preds = %.preheader111.lr.ph, %.preheader
  br label %.lr.ph137

._crit_edge134.loopexit:                          ; preds = %149
  %.pre = load i64, ptr @H, align 8, !tbaa !11
  br label %._crit_edge134

._crit_edge134:                                   ; preds = %._crit_edge134.loopexit, %.preheader111
  %50 = phi i64 [ %.pre, %._crit_edge134.loopexit ], [ %45, %.preheader111 ]
  %51 = phi i64 [ %151, %._crit_edge134.loopexit ], [ %46, %.preheader111 ]
  %52 = add nuw nsw i64 %.061135, 1
  %53 = icmp slt i64 %52, %50
  br i1 %53, label %.preheader111, label %.preheader, !llvm.loop !17

54:                                               ; preds = %.lr.ph133, %149
  %.064132 = phi i64 [ 0, %.lr.ph133 ], [ %150, %149 ]
  %55 = getelementptr inbounds [100 x [100 x i8]], ptr @vis, i64 0, i64 %.061135, i64 %.064132
  %56 = load i8, ptr %55, align 1, !tbaa !19, !range !21, !noundef !22
  %57 = trunc nuw i8 %56 to i1
  br i1 %57, label %149, label %58

58:                                               ; preds = %54
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %48, i64 noundef %.064132)
  %60 = load i8, ptr %59, align 1, !tbaa !15
  %61 = icmp eq i8 %60, 48
  br i1 %61, label %149, label %.preheader110.preheader

.preheader110.preheader:                          ; preds = %58
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @pos) #7
  call void @_Z2ffxx(i64 noundef %.061135, i64 noundef %.064132)
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %2) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7) #7
  invoke void @_Z3cvtv()
          to label %62 unwind label %82

62:                                               ; preds = %.preheader110.preheader
  %63 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %64 unwind label %82

64:                                               ; preds = %62
  call void @_Z4flipv()
  invoke void @_Z3cvtv()
          to label %65 unwind label %82

65:                                               ; preds = %64
  %66 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %.preheader110.1 unwind label %82

.preheader110.1:                                  ; preds = %65
  call void @_Z4flipv()
  call void @_Z3rotv()
  invoke void @_Z3cvtv()
          to label %67 unwind label %82

67:                                               ; preds = %.preheader110.1
  %68 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %69 unwind label %82

69:                                               ; preds = %67
  call void @_Z4flipv()
  invoke void @_Z3cvtv()
          to label %70 unwind label %82

70:                                               ; preds = %69
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %.preheader110.2 unwind label %82

.preheader110.2:                                  ; preds = %70
  call void @_Z4flipv()
  call void @_Z3rotv()
  invoke void @_Z3cvtv()
          to label %72 unwind label %82

72:                                               ; preds = %.preheader110.2
  %73 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %74 unwind label %82

74:                                               ; preds = %72
  call void @_Z4flipv()
  invoke void @_Z3cvtv()
          to label %75 unwind label %82

75:                                               ; preds = %74
  %76 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %.preheader110.3 unwind label %82

.preheader110.3:                                  ; preds = %75
  call void @_Z4flipv()
  call void @_Z3rotv()
  invoke void @_Z3cvtv()
          to label %77 unwind label %82

77:                                               ; preds = %.preheader110.3
  %78 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %79 unwind label %82

79:                                               ; preds = %77
  call void @_Z4flipv()
  invoke void @_Z3cvtv()
          to label %80 unwind label %82

80:                                               ; preds = %79
  %81 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7, ptr noundef nonnull align 8 dereferenceable(24) @pos)
          to label %.preheader109.preheader unwind label %82

.preheader109.preheader:                          ; preds = %80
  call void @_Z4flipv()
  call void @_Z3rotv()
  br label %.preheader109

82:                                               ; preds = %80, %79, %77, %.preheader110.3, %75, %74, %72, %.preheader110.2, %70, %69, %67, %.preheader110.1, %65, %64, %62, %.preheader110.preheader
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %153

.preheader109:                                    ; preds = %.preheader109.preheader, %.loopexit
  %.065130 = phi i64 [ %115, %.loopexit ], [ 0, %.preheader109.preheader ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  store i8 97, ptr %3, align 8, !tbaa !23
  %84 = getelementptr inbounds [8 x %"class.std::vector"], ptr %2, i64 0, i64 %.065130
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %84)
          to label %85 unwind label %93

85:                                               ; preds = %.preheader109
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %86 = call ptr @_ZNSt6vectorI3datSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %87 = call ptr @_ZNSt6vectorI3datSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %88 = invoke ptr @"_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIP3datSt6vectorIS2_SaIS2_EEEES2_Z4mainE3$_0ET_S9_S9_RKT0_T1_"(ptr %86, ptr %87, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %89 unwind label %95

89:                                               ; preds = %85
  store ptr %88, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %90 = call ptr @_ZNSt6vectorI3datSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  store ptr %90, ptr %5, align 8
  %91 = call noundef i64 @_ZN9__gnu_cxxmiIP3datSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %92 = call noundef i64 @_ZNKSt6vectorI3datSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %.not = icmp ult i64 %91, %92
  br i1 %.not, label %97, label %.loopexit

93:                                               ; preds = %.preheader109
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %117

95:                                               ; preds = %85
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %116

97:                                               ; preds = %89
  %98 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI3datSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %91) #7
  %99 = getelementptr inbounds i8, ptr %98, i64 8
  %100 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #7
  %101 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #7
  %102 = icmp eq i64 %100, %101
  br i1 %102, label %.preheader107, label %.loopexit

.preheader107:                                    ; preds = %97
  %103 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #7
  %.not106126.not = icmp eq i64 %103, 0
  br i1 %.not106126.not, label %.preheader107._crit_edge.thread, label %.lr.ph128

.preheader107._crit_edge.thread:                  ; preds = %.preheader107
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %118

104:                                              ; preds = %112
  %105 = add nuw nsw i64 %.059127, 1
  %106 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #7
  %.not106 = icmp ult i64 %105, %106
  br i1 %.not106, label %.lr.ph128, label %.preheader107._crit_edge, !llvm.loop !29

.lr.ph128:                                        ; preds = %.preheader107, %104
  %.059127 = phi i64 [ %105, %104 ], [ 0, %.preheader107 ]
  %107 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI3datSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %91) #7
  %108 = getelementptr inbounds i8, ptr %107, i64 8
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %.059127) #7
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %.059127) #7
  %111 = invoke noundef zeroext i1 @_ZStneIxxEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull align 8 dereferenceable(16) %110)
          to label %112 unwind label %113

112:                                              ; preds = %.lr.ph128
  br i1 %111, label %.loopexit, label %104

113:                                              ; preds = %.lr.ph128
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %116

.loopexit:                                        ; preds = %112, %89, %97
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  %115 = add nuw nsw i64 %.065130, 1
  %exitcond.not = icmp eq i64 %115, 8
  br i1 %exitcond.not, label %.thread103, label %.preheader109, !llvm.loop !30

116:                                              ; preds = %113, %95
  %.pn = phi { ptr, i32 } [ %114, %113 ], [ %96, %95 ]
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %117

117:                                              ; preds = %116, %93
  %.pn.pn = phi { ptr, i32 } [ %.pn, %116 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %153

.preheader107._crit_edge:                         ; preds = %104
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  %.not86 = icmp eq i64 %91, -1
  br i1 %.not86, label %.thread103, label %118

118:                                              ; preds = %.preheader107._crit_edge.thread, %.preheader107._crit_edge
  %119 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI3datSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %91) #7
  %120 = load i8, ptr %119, align 8, !tbaa !23
  br label %148

.thread103:                                       ; preds = %.loopexit, %.preheader107._crit_edge
  %121 = load i8, ptr @let, align 1, !tbaa !15
  %122 = add i8 %121, 1
  store i8 %122, ptr @let, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  store i8 %121, ptr %6, align 8, !tbaa !23
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %123 unwind label %141

123:                                              ; preds = %.thread103
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %124 unwind label %143

124:                                              ; preds = %123
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  store i8 %121, ptr %6, align 8, !tbaa !23
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
          to label %125 unwind label %141

125:                                              ; preds = %124
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %126 unwind label %143

126:                                              ; preds = %125
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  store i8 %121, ptr %6, align 8, !tbaa !23
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
          to label %127 unwind label %141

127:                                              ; preds = %126
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %128 unwind label %143

128:                                              ; preds = %127
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  store i8 %121, ptr %6, align 8, !tbaa !23
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3)
          to label %129 unwind label %141

129:                                              ; preds = %128
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %130 unwind label %143

130:                                              ; preds = %129
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  store i8 %121, ptr %6, align 8, !tbaa !23
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4)
          to label %131 unwind label %141

131:                                              ; preds = %130
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %132 unwind label %143

132:                                              ; preds = %131
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  store i8 %121, ptr %6, align 8, !tbaa !23
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5)
          to label %133 unwind label %141

133:                                              ; preds = %132
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %134 unwind label %143

134:                                              ; preds = %133
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  store i8 %121, ptr %6, align 8, !tbaa !23
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6)
          to label %135 unwind label %141

135:                                              ; preds = %134
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %136 unwind label %143

136:                                              ; preds = %135
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  store i8 %121, ptr %6, align 8, !tbaa !23
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7)
          to label %137 unwind label %141

137:                                              ; preds = %136
  invoke void @_ZNSt6vectorI3datSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %138 unwind label %143

138:                                              ; preds = %137
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  %139 = call ptr @_ZNSt6vectorI3datSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  %140 = call ptr @_ZNSt6vectorI3datSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #7
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3datSt6vectorIS2_SaIS2_EEEEZ4mainE3$_0EvT_S9_T0_"(ptr %139, ptr %140)
          to label %148 unwind label %146

141:                                              ; preds = %136, %134, %132, %130, %128, %126, %124, %.thread103
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %145

143:                                              ; preds = %137, %135, %133, %131, %129, %127, %125, %123
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %145

145:                                              ; preds = %143, %141
  %.pn87 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %153

146:                                              ; preds = %148, %138
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %153

148:                                              ; preds = %138, %118
  %.058 = phi i8 [ %120, %118 ], [ %121, %138 ]
  invoke void @_Z3ff2xxc(i64 noundef %.061135, i64 noundef %.064132, i8 noundef signext %.058)
          to label %.preheader108.preheader unwind label %146

.preheader108.preheader:                          ; preds = %148
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %2) #7
  br label %149

149:                                              ; preds = %54, %58, %.preheader108.preheader
  %150 = add nuw nsw i64 %.064132, 1
  %151 = load i64, ptr @W, align 8, !tbaa !11
  %152 = icmp slt i64 %150, %151
  br i1 %152, label %54, label %._crit_edge134.loopexit, !llvm.loop !31

153:                                              ; preds = %117, %146, %145, %82
  %.pn92 = phi { ptr, i32 } [ %83, %82 ], [ %.pn.pn, %117 ], [ %147, %146 ], [ %.pn87, %145 ]
  %154 = getelementptr inbounds i8, ptr %2, i64 168
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %154) #7
  %155 = getelementptr inbounds i8, ptr %2, i64 144
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %155) #7
  %156 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %156) #7
  %157 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %157) #7
  %158 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %158) #7
  %159 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %159) #7
  %160 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %160) #7
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn92

._crit_edge138:                                   ; preds = %.lr.ph137, %0, %.preheader113, %.preheader112, %.preheader
  ret i32 0

.lr.ph137:                                        ; preds = %.lr.ph137.preheader, %.lr.ph137
  %.0136 = phi i64 [ %164, %.lr.ph137 ], [ 0, %.lr.ph137.preheader ]
  %161 = getelementptr inbounds [100 x [101 x i8]], ptr @ans, i64 0, i64 %.0136
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %161)
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %162, i8 noundef signext 10)
  %164 = add nuw nsw i64 %.0136, 1
  %165 = load i64, ptr @H, align 8, !tbaa !11
  %166 = icmp slt i64 %164, %165
  br i1 %166, label %.lr.ph137, label %._crit_edge138, !llvm.loop !32
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #4

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPccEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIP3datSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIP3datSt6vectorIS2_SaIS2_EEEES2_Z4mainE3$_0ET_S9_S9_RKT0_T1_"(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3datD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

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

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

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

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

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

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

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


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