; LLVM IR from eyangch/competitive-programming :: USACOcontests/gold/2019.12 (pump)

; 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::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 }
%struct.dat = type { i32, i32, i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl" }
%"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl" = type { %"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl_data" }
%"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@__const.main.tmp_dat = external hidden unnamed_addr constant %struct.dat, align 4
@__const.main.fill_dat = external hidden unnamed_addr constant %struct.dat, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

51:                                               ; preds = %0
  %52 = getelementptr inbounds %"struct.std::pair", ptr %49, i64 %47
  br label %53

53:                                               ; preds = %53, %51
  %54 = phi ptr [ %49, %51 ], [ %55, %53 ]
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %54)
  %55 = getelementptr inbounds %"struct.std::pair", ptr %54, i64 1
  %56 = icmp eq ptr %55, %52
  br i1 %56, label %57, label %53

57:                                               ; preds = %53, %0
  %58 = load i32, ptr %2, align 4, !tbaa !11
  %59 = zext i32 %58 to i64
  %60 = alloca %"class.std::vector", i64 %59, align 16
  store i64 %59, ptr %6, align 8
  %61 = icmp eq i64 %59, 0
  br i1 %61, label %68, label %62

62:                                               ; preds = %57
  %63 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %59
  br label %64

64:                                               ; preds = %64, %62
  %65 = phi ptr [ %60, %62 ], [ %66, %64 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %65) #9
  %66 = getelementptr inbounds %"class.std::vector", ptr %65, i64 1
  %67 = icmp eq ptr %66, %63
  br i1 %67, label %68, label %64

68:                                               ; preds = %64, %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %104, %68
  %70 = load i32, ptr %7, align 4, !tbaa !11
  %71 = load i32, ptr %3, align 4, !tbaa !11
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %124

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %75 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %76 unwind label %107

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %78 unwind label %107

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %80 unwind label %107

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %79, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %82 unwind label %107

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %83 unwind label %111

83:                                               ; preds = %82
  %84 = load i32, ptr %7, align 4, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %"struct.std::pair", ptr %49, i64 %85
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %86, ptr noundef nonnull align 4 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  %88 = load i32, ptr %8, align 4, !tbaa !11
  %89 = sub nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %92 = load i32, ptr %9, align 4, !tbaa !11
  %93 = sub nsw i32 %92, 1
  store i32 %93, ptr %16, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_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) %16, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %94 unwind label %115

94:                                               ; preds = %83
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %95 unwind label %115

95:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  %96 = load i32, ptr %9, align 4, !tbaa !11
  %97 = sub nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %100 = load i32, ptr %8, align 4, !tbaa !11
  %101 = sub nsw i32 %100, 1
  store i32 %101, ptr %18, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_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) %18, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %102 unwind label %119

102:                                              ; preds = %95
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %99, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %103 unwind label %119

103:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %7, align 4, !tbaa !11
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %7, align 4, !tbaa !11
  br label %69, !llvm.loop !13

107:                                              ; preds = %80, %78, %76, %74
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  br label %123

111:                                              ; preds = %82
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %123

115:                                              ; preds = %94, %83
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %123

119:                                              ; preds = %102, %95
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %123

123:                                              ; preds = %119, %115, %111, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %357

124:                                              ; preds = %73
  %125 = load i32, ptr %3, align 4, !tbaa !11
  %126 = zext i32 %125 to i64
  %127 = alloca i8, i64 %126, align 16
  store i64 %126, ptr %19, align 8
  %128 = load i32, ptr %3, align 4, !tbaa !11
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds i8, ptr %127, i64 %129
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #9
  store i8 1, ptr %20, align 1, !tbaa !15
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %127, ptr noundef %130, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %131 unwind label %165

131:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  store i64 0, ptr %21, align 8, !tbaa !17
  br label %132

132:                                              ; preds = %330, %131
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %2, align 4, !tbaa !11
  %135 = zext i32 %134 to i64
  %136 = call ptr @llvm.stacksave.p0()
  store ptr %136, ptr %22, align 8
  %137 = alloca %struct.dat, i64 %135, align 16
  store i64 %135, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr %24) #9
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %138 unwind label %169

138:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 @__const.main.tmp_dat, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 @__const.main.fill_dat, i64 16, i1 false)
  %139 = load i32, ptr %2, align 4, !tbaa !11
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %struct.dat, ptr %137, i64 %140
  invoke void @_ZSt4fillIP3datS0_EvT_S2_RKT0_(ptr noundef %137, ptr noundef %141, ptr noundef nonnull align 4 dereferenceable(16) %26)
          to label %142 unwind label %173

142:                                              ; preds = %138
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 4 dereferenceable(16) %25)
          to label %143 unwind label %173

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %288, %143
  %145 = invoke noundef zeroext i1 @_ZNKSt5queueI3datSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %146 unwind label %173

146:                                              ; preds = %144
  %147 = xor i1 %145, true
  br i1 %147, label %148, label %290

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %149 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %150 unwind label %177

150:                                              ; preds = %148
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %149, i64 16, i1 false), !tbaa.struct !19
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %151 unwind label %177

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %152 = getelementptr inbounds %struct.dat, ptr %27, i32 0, i32 0
  %153 = load i32, ptr %152, align 4, !tbaa !20
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %154
  store ptr %155, ptr %28, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %156 = load ptr, ptr %28, align 8, !tbaa !8
  %157 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #9
  %158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %157, ptr %158, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %159 = load ptr, ptr %28, align 8, !tbaa !8
  %160 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %159) #9
  %161 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %160, ptr %161, align 8
  br label %162

162:                                              ; preds = %286, %151
  %163 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  br i1 %163, label %181, label %164

164:                                              ; preds = %162
  store i32 9, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %288

165:                                              ; preds = %124
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %12, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  br label %357

169:                                              ; preds = %133
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %12, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %13, align 4
  br label %336

173:                                              ; preds = %144, %142, %138
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %12, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %13, align 4
  br label %335

177:                                              ; preds = %150, %148
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %12, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %13, align 4
  br label %289

181:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %182 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %182, i64 8, i1 false)
  %183 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 1
  %184 = load i32, ptr %183, align 4, !tbaa !22
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i8, ptr %127, i64 %185
  %187 = load i8, ptr %186, align 1, !tbaa !15, !range !24, !noundef !25
  %188 = trunc i8 %187 to i1
  br i1 %188, label %190, label %189

189:                                              ; preds = %181
  store i32 10, ptr %31, align 4
  br label %283

190:                                              ; preds = %181
  %191 = getelementptr inbounds %struct.dat, ptr %27, i32 0, i32 1
  %192 = load i32, ptr %191, align 4, !tbaa !26
  %193 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !22
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %"struct.std::pair", ptr %49, i64 %195
  %197 = getelementptr inbounds %"struct.std::pair", ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 8, !tbaa !27
  %199 = add nsw i32 %192, %198
  %200 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %201 = load i32, ptr %200, align 4, !tbaa !27
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds %struct.dat, ptr %137, i64 %202
  %204 = getelementptr inbounds %struct.dat, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !26
  %206 = icmp slt i32 %199, %205
  br i1 %206, label %207, label %282

207:                                              ; preds = %190
  %208 = getelementptr inbounds %struct.dat, ptr %27, i32 0, i32 1
  %209 = load i32, ptr %208, align 4, !tbaa !26
  %210 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 1
  %211 = load i32, ptr %210, align 4, !tbaa !22
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds %"struct.std::pair", ptr %49, i64 %212
  %214 = getelementptr inbounds %"struct.std::pair", ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 8, !tbaa !27
  %216 = add nsw i32 %209, %215
  %217 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %218 = load i32, ptr %217, align 4, !tbaa !27
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds %struct.dat, ptr %137, i64 %219
  %221 = getelementptr inbounds %struct.dat, ptr %220, i32 0, i32 1
  store i32 %216, ptr %221, align 4, !tbaa !26
  %222 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %223 = load i32, ptr %222, align 4, !tbaa !27
  %224 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !27
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds %struct.dat, ptr %137, i64 %226
  %228 = getelementptr inbounds %struct.dat, ptr %227, i32 0, i32 0
  store i32 %223, ptr %228, align 16, !tbaa !20
  %229 = getelementptr inbounds %struct.dat, ptr %27, i32 0, i32 2
  %230 = load i32, ptr %229, align 4, !tbaa !28
  %231 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 1
  %232 = load i32, ptr %231, align 4, !tbaa !22
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds %"struct.std::pair", ptr %49, i64 %233
  %235 = getelementptr inbounds %"struct.std::pair", ptr %234, i32 0, i32 1
  %236 = load i32, ptr %235, align 4, !tbaa !22
  %237 = icmp slt i32 %230, %236
  br i1 %237, label %238, label %253

238:                                              ; preds = %207
  %239 = getelementptr inbounds %struct.dat, ptr %27, i32 0, i32 2
  %240 = load i32, ptr %239, align 4, !tbaa !28
  %241 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %242 = load i32, ptr %241, align 4, !tbaa !27
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %struct.dat, ptr %137, i64 %243
  %245 = getelementptr inbounds %struct.dat, ptr %244, i32 0, i32 2
  store i32 %240, ptr %245, align 8, !tbaa !28
  %246 = getelementptr inbounds %struct.dat, ptr %27, i32 0, i32 3
  %247 = load i32, ptr %246, align 4, !tbaa !29
  %248 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %249 = load i32, ptr %248, align 4, !tbaa !27
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds %struct.dat, ptr %137, i64 %250
  %252 = getelementptr inbounds %struct.dat, ptr %251, i32 0, i32 3
  store i32 %247, ptr %252, align 4, !tbaa !29
  br label %272

253:                                              ; preds = %207
  %254 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 1
  %255 = load i32, ptr %254, align 4, !tbaa !22
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds %"struct.std::pair", ptr %49, i64 %256
  %258 = getelementptr inbounds %"struct.std::pair", ptr %257, i32 0, i32 1
  %259 = load i32, ptr %258, align 4, !tbaa !22
  %260 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %261 = load i32, ptr %260, align 4, !tbaa !27
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds %struct.dat, ptr %137, i64 %262
  %264 = getelementptr inbounds %struct.dat, ptr %263, i32 0, i32 2
  store i32 %259, ptr %264, align 8, !tbaa !28
  %265 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 1
  %266 = load i32, ptr %265, align 4, !tbaa !22
  %267 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %268 = load i32, ptr %267, align 4, !tbaa !27
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %struct.dat, ptr %137, i64 %269
  %271 = getelementptr inbounds %struct.dat, ptr %270, i32 0, i32 3
  store i32 %266, ptr %271, align 4, !tbaa !29
  br label %272

272:                                              ; preds = %253, %238
  %273 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %274 = load i32, ptr %273, align 4, !tbaa !27
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds %struct.dat, ptr %137, i64 %275
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 4 dereferenceable(16) %276)
          to label %277 unwind label %278

277:                                              ; preds = %272
  br label %282

278:                                              ; preds = %272
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %12, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %289

282:                                              ; preds = %277, %190
  store i32 0, ptr %31, align 4
  br label %283

283:                                              ; preds = %282, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  %284 = load i32, ptr %31, align 4
  switch i32 %284, label %370 [
    i32 0, label %285
    i32 10, label %286
  ]

285:                                              ; preds = %283
  br label %286

286:                                              ; preds = %285, %283
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  br label %162

288:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %144, !llvm.loop !30

289:                                              ; preds = %278, %177
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %335

290:                                              ; preds = %146
  %291 = load i32, ptr %2, align 4, !tbaa !11
  %292 = sub nsw i32 %291, 1
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds %struct.dat, ptr %137, i64 %293
  %295 = getelementptr inbounds %struct.dat, ptr %294, i32 0, i32 0
  %296 = load i32, ptr %295, align 16, !tbaa !20
  %297 = icmp eq i32 %296, -1
  br i1 %297, label %298, label %299

298:                                              ; preds = %290
  store i32 6, ptr %31, align 4
  br label %327

299:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %300 = load i32, ptr %2, align 4, !tbaa !11
  %301 = sub nsw i32 %300, 1
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds %struct.dat, ptr %137, i64 %302
  %304 = getelementptr inbounds %struct.dat, ptr %303, i32 0, i32 2
  %305 = load i32, ptr %304, align 8, !tbaa !28
  %306 = sext i32 %305 to i64
  %307 = mul nsw i64 1000000, %306
  %308 = load i32, ptr %2, align 4, !tbaa !11
  %309 = sub nsw i32 %308, 1
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds %struct.dat, ptr %137, i64 %310
  %312 = getelementptr inbounds %struct.dat, ptr %311, i32 0, i32 1
  %313 = load i32, ptr %312, align 4, !tbaa !26
  %314 = sext i32 %313 to i64
  %315 = sdiv i64 %307, %314
  store i64 %315, ptr %33, align 8, !tbaa !17
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %317 unwind label %331

317:                                              ; preds = %299
  %318 = load i64, ptr %316, align 8, !tbaa !17
  store i64 %318, ptr %21, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  %319 = load i32, ptr %2, align 4, !tbaa !11
  %320 = sub nsw i32 %319, 1
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds %struct.dat, ptr %137, i64 %321
  %323 = getelementptr inbounds %struct.dat, ptr %322, i32 0, i32 3
  %324 = load i32, ptr %323, align 4, !tbaa !29
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds i8, ptr %127, i64 %325
  store i8 0, ptr %326, align 1, !tbaa !15
  store i32 0, ptr %31, align 4
  br label %327

327:                                              ; preds = %317, %298
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #9
  %328 = load ptr, ptr %22, align 8
  call void @llvm.stackrestore.p0(ptr %328)
  %329 = load i32, ptr %31, align 4
  switch i32 %329, label %370 [
    i32 0, label %330
    i32 6, label %337
  ]

330:                                              ; preds = %327
  br label %132, !llvm.loop !31

331:                                              ; preds = %299
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %12, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %335

335:                                              ; preds = %331, %289, %173
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #9
  br label %336

336:                                              ; preds = %335, %169
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #9
  br label %349

337:                                              ; preds = %327
  %338 = load i64, ptr %21, align 8, !tbaa !17
  %339 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %338)
          to label %340 unwind label %345

340:                                              ; preds = %337
  %341 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %339, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %342 unwind label %345

342:                                              ; preds = %340
  store i32 0, ptr %1, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  %343 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %59
  %344 = icmp eq ptr %60, %343
  br i1 %344, label %354, label %350

345:                                              ; preds = %340, %337
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %12, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %13, align 4
  br label %349

349:                                              ; preds = %345, %336
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %357

350:                                              ; preds = %350, %342
  %351 = phi ptr [ %343, %342 ], [ %352, %350 ]
  %352 = getelementptr inbounds %"class.std::vector", ptr %351, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %352) #9
  %353 = icmp eq ptr %352, %60
  br i1 %353, label %354, label %350

354:                                              ; preds = %350, %342
  %355 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %355)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %356 = load i32, ptr %1, align 4
  ret i32 %356

357:                                              ; preds = %349, %165, %123
  %358 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %59
  %359 = icmp eq ptr %60, %358
  br i1 %359, label %364, label %360

360:                                              ; preds = %360, %357
  %361 = phi ptr [ %358, %357 ], [ %362, %360 ]
  %362 = getelementptr inbounds %"class.std::vector", ptr %361, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %362) #9
  %363 = icmp eq ptr %362, %60
  br i1 %363, label %364, label %360

364:                                              ; preds = %360, %357
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %365

365:                                              ; preds = %364
  %366 = load ptr, ptr %12, align 8
  %367 = load i32, ptr %13, align 4
  %368 = insertvalue { ptr, i32 } poison, ptr %366, 0
  %369 = insertvalue { ptr, i32 } %368, i32 %367, 1
  resume { ptr, i32 } %369

370:                                              ; preds = %327, %283
  unreachable
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

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

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2

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

; 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)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { 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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { 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 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !10, i64 0}
!19 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 12, i64 4, !11}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTS3dat", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!22 = !{!23, !12, i64 4}
!23 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!21, !12, i64 4}
!27 = !{!23, !12, i64 0}
!28 = !{!21, !12, i64 8}
!29 = !{!21, !12, i64 12}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !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::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 }
%struct.dat = type { i32, i32, i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl" }
%"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl" = type { %"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl_data" }
%"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@__const.main.tmp_dat = external hidden unnamed_addr constant %struct.dat, align 4
@__const.main.fill_dat = external hidden unnamed_addr constant %struct.dat, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

38:                                               ; preds = %0
  %39 = getelementptr inbounds %"struct.std::pair", ptr %36, i64 %34
  br label %40

40:                                               ; preds = %40, %38
  %41 = phi ptr [ %36, %38 ], [ %42, %40 ]
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %41)
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = icmp eq ptr %42, %39
  br i1 %43, label %.loopexit45, label %40

.loopexit45:                                      ; preds = %40, %0
  %44 = load i32, ptr %1, align 4, !tbaa !11
  %45 = zext i32 %44 to i64
  %46 = alloca %"class.std::vector", i64 %45, align 16
  %47 = icmp eq i32 %44, 0
  br i1 %47, label %.loopexit44, label %48

48:                                               ; preds = %.loopexit45
  %49 = getelementptr inbounds %"class.std::vector", ptr %46, i64 %45
  br label %50

50:                                               ; preds = %50, %48
  %51 = phi ptr [ %46, %48 ], [ %52, %50 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #10
  %52 = getelementptr inbounds i8, ptr %51, i64 24
  %53 = icmp eq ptr %52, %49
  br i1 %53, label %.loopexit44, label %50

.loopexit44:                                      ; preds = %50, %.loopexit45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #10
  %invariant.gep = getelementptr i8, ptr %46, i64 -24
  store i32 0, ptr %3, align 4, !tbaa !11
  %54 = load i32, ptr %2, align 4, !tbaa !11
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %81, %.loopexit44
  %.lcssa = phi i32 [ %54, %.loopexit44 ], [ %84, %81 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  %56 = zext i32 %.lcssa to i64
  %57 = alloca i8, i64 %56, align 16
  %58 = sext i32 %.lcssa to i64
  %59 = getelementptr inbounds i8, ptr %57, i64 %58
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #10
  store i8 1, ptr %13, align 1, !tbaa !13
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %57, ptr noundef nonnull %59, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %93 unwind label %112

.lr.ph:                                           ; preds = %.loopexit44, %81
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #10
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %61 unwind label %86

61:                                               ; preds = %.lr.ph
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %63 unwind label %86

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %65 unwind label %86

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %67 unwind label %86

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %68 = load i32, ptr %3, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %"struct.std::pair", ptr %36, i64 %69
  %71 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %70, ptr noundef nonnull align 4 dereferenceable(8) %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  %72 = load i32, ptr %4, align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %gep = getelementptr %"class.std::vector", ptr %invariant.gep, i64 %73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #10
  %74 = load i32, ptr %5, align 4, !tbaa !11
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %10, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %gep, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %76 unwind label %88

76:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  %77 = load i32, ptr %5, align 4, !tbaa !11
  %78 = sext i32 %77 to i64
  %gep53 = getelementptr %"class.std::vector", ptr %invariant.gep, i64 %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #10
  %79 = load i32, ptr %4, align 4, !tbaa !11
  %80 = add nsw i32 %79, -1
  store i32 %80, ptr %12, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %3)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %gep53, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %81 unwind label %90

81:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  %82 = load i32, ptr %3, align 4, !tbaa !11
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %3, align 4, !tbaa !11
  %84 = load i32, ptr %2, align 4, !tbaa !11
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %.lr.ph, label %._crit_edge, !llvm.loop !15

86:                                               ; preds = %65, %63, %61, %.lr.ph
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %92

88:                                               ; preds = %67
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %92

90:                                               ; preds = %76
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  br label %92

92:                                               ; preds = %90, %88, %86
  %.pn38 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  br label %180

93:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #10
  store i64 0, ptr %14, align 8, !tbaa !17
  br label %94

94:                                               ; preds = %148, %93
  %95 = load i32, ptr %1, align 4, !tbaa !11
  %96 = zext i32 %95 to i64
  %97 = call ptr @llvm.stacksave.p0()
  %98 = alloca %struct.dat, i64 %96, align 16
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #10
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
          to label %99 unwind label %114

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) @__const.main.tmp_dat, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(16) @__const.main.fill_dat, i64 16, i1 false)
  %100 = load i32, ptr %1, align 4, !tbaa !11
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.dat, ptr %98, i64 %101
  invoke void @_ZSt4fillIP3datS0_EvT_S2_RKT0_(ptr noundef nonnull %98, ptr noundef nonnull %102, ptr noundef nonnull align 4 dereferenceable(16) %17)
          to label %103 unwind label %116

103:                                              ; preds = %99
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %.preheader43 unwind label %116

.preheader43:                                     ; preds = %103
  %104 = call noundef zeroext i1 @_ZNKSt5queueI3datSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br i1 %104, label %._crit_edge58, label %.lr.ph57

.lr.ph57:                                         ; preds = %.preheader43, %._crit_edge56
  %105 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  %.sroa.015.0.copyload = load i32, ptr %105, align 4, !tbaa !11
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 4
  %.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !11
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 8
  %.sroa.7.0.copyload = load i32, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !11
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 12
  %.sroa.9.0.copyload = load i32, ptr %.sroa.9.0..sroa_idx, align 4, !tbaa !11
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  %106 = sext i32 %.sroa.015.0.copyload to i64
  %107 = getelementptr inbounds %"class.std::vector", ptr %46, i64 %106
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  %108 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #10
  store ptr %108, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #10
  %109 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #10
  store ptr %109, ptr %19, align 8
  %110 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  br i1 %110, label %.lr.ph55, label %._crit_edge56

._crit_edge56:                                    ; preds = %140, %.lr.ph57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  %111 = call noundef zeroext i1 @_ZNKSt5queueI3datSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br i1 %111, label %._crit_edge58, label %.lr.ph57, !llvm.loop !19

112:                                              ; preds = %._crit_edge
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #10
  br label %180

114:                                              ; preds = %94
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %167

116:                                              ; preds = %103, %99
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %166

.lr.ph55:                                         ; preds = %.lr.ph57, %140
  %118 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  %.sroa.0.0.copyload = load i32, ptr %118, align 4
  %.sroa.13.0..sroa_idx = getelementptr inbounds i8, ptr %118, i64 4
  %.sroa.13.0.copyload = load i32, ptr %.sroa.13.0..sroa_idx, align 4
  %119 = sext i32 %.sroa.13.0.copyload to i64
  %120 = getelementptr inbounds i8, ptr %57, i64 %119
  %121 = load i8, ptr %120, align 1, !tbaa !13, !range !20, !noundef !21
  %122 = trunc nuw i8 %121 to i1
  br i1 %122, label %123, label %140

123:                                              ; preds = %.lr.ph55
  %124 = getelementptr inbounds %"struct.std::pair", ptr %36, i64 %119
  %125 = load i32, ptr %124, align 8, !tbaa !22
  %126 = add nsw i32 %125, %.sroa.5.0.copyload
  %127 = sext i32 %.sroa.0.0.copyload to i64
  %128 = getelementptr inbounds %struct.dat, ptr %98, i64 %127
  %129 = getelementptr inbounds i8, ptr %128, i64 4
  %130 = load i32, ptr %129, align 4, !tbaa !24
  %131 = icmp slt i32 %126, %130
  br i1 %131, label %132, label %140

132:                                              ; preds = %123
  store i32 %126, ptr %129, align 4, !tbaa !24
  store i32 %.sroa.0.0.copyload, ptr %128, align 16, !tbaa !26
  %133 = getelementptr inbounds i8, ptr %124, i64 4
  %134 = load i32, ptr %133, align 4, !tbaa !27
  %135 = icmp slt i32 %.sroa.7.0.copyload, %134
  %spec.select = call i32 @llvm.smin.i32(i32 %.sroa.7.0.copyload, i32 %134)
  %spec.select69 = select i1 %135, i32 %.sroa.9.0.copyload, i32 %.sroa.13.0.copyload
  %136 = getelementptr inbounds i8, ptr %128, i64 8
  store i32 %spec.select, ptr %136, align 8
  %137 = getelementptr inbounds i8, ptr %128, i64 12
  store i32 %spec.select69, ptr %137, align 4
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull align 4 dereferenceable(16) %128)
          to label %140 unwind label %138

138:                                              ; preds = %132
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  br label %166

140:                                              ; preds = %123, %132, %.lr.ph55
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  %142 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  br i1 %142, label %.lr.ph55, label %._crit_edge56

._crit_edge58:                                    ; preds = %._crit_edge56, %.preheader43
  %143 = load i32, ptr %1, align 4, !tbaa !11
  %144 = sext i32 %143 to i64
  %145 = getelementptr %struct.dat, ptr %98, i64 %144
  %146 = getelementptr i8, ptr %145, i64 -16
  %147 = load i32, ptr %146, align 16, !tbaa !26
  %.not = icmp eq i32 %147, -1
  br i1 %.not, label %.critedge, label %148

148:                                              ; preds = %._crit_edge58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #10
  %149 = getelementptr i8, ptr %145, i64 -8
  %150 = load i32, ptr %149, align 8, !tbaa !28
  %151 = sext i32 %150 to i64
  %152 = mul nsw i64 %151, 1000000
  %153 = getelementptr i8, ptr %145, i64 -12
  %154 = load i32, ptr %153, align 4, !tbaa !24
  %155 = sext i32 %154 to i64
  %156 = sdiv i64 %152, %155
  store i64 %156, ptr %20, align 8, !tbaa !17
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %158 = load i64, ptr %157, align 8, !tbaa !17
  store i64 %158, ptr %14, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  %159 = load i32, ptr %1, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr %struct.dat, ptr %98, i64 %160
  %162 = getelementptr i8, ptr %161, i64 -4
  %163 = load i32, ptr %162, align 4, !tbaa !29
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i8, ptr %57, i64 %164
  store i8 0, ptr %165, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #10
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #10
  call void @llvm.stackrestore.p0(ptr %97)
  br label %94

166:                                              ; preds = %138, %116
  %.pn = phi { ptr, i32 } [ %139, %138 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #10
  br label %167

167:                                              ; preds = %166, %114
  %.pn.pn = phi { ptr, i32 } [ %.pn, %166 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #10
  br label %176

.critedge:                                        ; preds = %._crit_edge58
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #10
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #10
  call void @llvm.stackrestore.p0(ptr %97)
  %168 = load i64, ptr %14, align 8, !tbaa !17
  %169 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %168)
          to label %170 unwind label %174

170:                                              ; preds = %.critedge
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %172 unwind label %174

172:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  br i1 %47, label %.loopexit42, label %.preheader41.preheader

.preheader41.preheader:                           ; preds = %172
  %173 = getelementptr inbounds %"class.std::vector", ptr %46, i64 %45
  br label %.preheader41

174:                                              ; preds = %170, %.critedge
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %176

176:                                              ; preds = %174, %167
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %167 ], [ %175, %174 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  br label %180

.preheader41:                                     ; preds = %.preheader41.preheader, %.preheader41
  %177 = phi ptr [ %178, %.preheader41 ], [ %173, %.preheader41.preheader ]
  %178 = getelementptr inbounds i8, ptr %177, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %178) #10
  %179 = icmp eq ptr %178, %46
  br i1 %179, label %.loopexit42, label %.preheader41

.loopexit42:                                      ; preds = %.preheader41, %172
  call void @llvm.stackrestore.p0(ptr %35)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  ret i32 0

180:                                              ; preds = %176, %112, %92
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %92 ], [ %.pn.pn.pn, %176 ], [ %113, %112 ]
  br i1 %47, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %180
  %181 = getelementptr inbounds %"class.std::vector", ptr %46, i64 %45
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %182 = phi ptr [ %183, %.preheader ], [ %181, %.preheader.preheader ]
  %183 = getelementptr inbounds i8, ptr %182, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %183) #10
  %184 = icmp eq ptr %183, %46
  br i1 %184, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  resume { ptr, i32 } %.pn38.pn
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

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

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

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

; 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 #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

; Function Attrs: mustprogress 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) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #9

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { 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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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 = !{!"int", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !10, i64 0}
!19 = distinct !{!19, !16}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !12, i64 0}
!23 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!24 = !{!25, !12, i64 4}
!25 = !{!"_ZTS3dat", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!26 = !{!25, !12, i64 0}
!27 = !{!23, !12, i64 4}
!28 = !{!25, !12, i64 8}
!29 = !{!25, !12, i64 12}


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