; LLVM IR from eyangch/competitive-programming :: USACOcontests/silver/2012.11 (distant)

; 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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }
%"struct.std::pair" = type { i32, i32 }
%"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] }

@dx = external dso_local global [4 x i32], align 16
@dy = external dso_local global [4 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [11 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 [12 x i8], align 1
@.str.3 = 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 uwtable
declare dso_local noundef i32 @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEi(i32 noundef, ptr noundef, i32 noundef) #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

38:                                               ; preds = %38, %0
  %39 = phi ptr [ %36, %0 ], [ %40, %38 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  %40 = getelementptr inbounds %"class.std::vector", ptr %39, i64 1
  %41 = icmp eq ptr %40, %37
  br i1 %41, label %42, label %38

42:                                               ; preds = %38
  %43 = load i32, ptr %2, align 4, !tbaa !11
  %44 = zext i32 %43 to i64
  %45 = call ptr @llvm.stacksave.p0()
  store ptr %45, ptr %6, align 8
  %46 = alloca %"class.std::__cxx11::basic_string", i64 %44, align 16
  store i64 %44, ptr %7, align 8
  %47 = icmp eq i64 %44, 0
  br i1 %47, label %54, label %48

48:                                               ; preds = %42
  %49 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %46, i64 %44
  br label %50

50:                                               ; preds = %50, %48
  %51 = phi ptr [ %46, %48 ], [ %52, %50 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #8
  %52 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %51, i64 1
  %53 = icmp eq ptr %52, %49
  br i1 %53, label %54, label %50

54:                                               ; preds = %50, %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %55

55:                                               ; preds = %66, %54
  %56 = load i32, ptr %8, align 4, !tbaa !11
  %57 = load i32, ptr %2, align 4, !tbaa !11
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %73

60:                                               ; preds = %55
  %61 = load i32, ptr %8, align 4, !tbaa !11
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %46, i64 %62
  %64 = invoke 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) %63)
          to label %65 unwind label %69

65:                                               ; preds = %60
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %8, align 4, !tbaa !11
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %8, align 4, !tbaa !11
  br label %55, !llvm.loop !13

69:                                               ; preds = %60
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %223

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

74:                                               ; preds = %175, %73
  %75 = load i32, ptr %11, align 4, !tbaa !11
  %76 = load i32, ptr %2, align 4, !tbaa !11
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %79, label %78

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

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

80:                                               ; preds = %171, %79
  %81 = load i32, ptr %13, align 4, !tbaa !11
  %82 = load i32, ptr %2, align 4, !tbaa !11
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

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

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %162, %85
  %87 = load i32, ptr %14, align 4, !tbaa !11
  %88 = icmp slt i32 %87, 4
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %170

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %91 = load i32, ptr %11, align 4, !tbaa !11
  %92 = load i32, ptr %14, align 4, !tbaa !11
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = add nsw i32 %91, %95
  store i32 %96, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %97 = load i32, ptr %13, align 4, !tbaa !11
  %98 = load i32, ptr %14, align 4, !tbaa !11
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !11
  %102 = add nsw i32 %97, %101
  store i32 %102, ptr %16, align 4, !tbaa !11
  %103 = load i32, ptr %15, align 4, !tbaa !11
  %104 = icmp slt i32 %103, 0
  br i1 %104, label %116, label %105

105:                                              ; preds = %90
  %106 = load i32, ptr %15, align 4, !tbaa !11
  %107 = load i32, ptr %2, align 4, !tbaa !11
  %108 = icmp sge i32 %106, %107
  br i1 %108, label %116, label %109

109:                                              ; preds = %105
  %110 = load i32, ptr %16, align 4, !tbaa !11
  %111 = icmp slt i32 %110, 0
  br i1 %111, label %116, label %112

112:                                              ; preds = %109
  %113 = load i32, ptr %16, align 4, !tbaa !11
  %114 = load i32, ptr %2, align 4, !tbaa !11
  %115 = icmp sge i32 %113, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %112, %109, %105, %90
  store i32 13, ptr %12, align 4
  br label %159

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %118 = load i32, ptr %3, align 4, !tbaa !11
  store i32 %118, ptr %17, align 4, !tbaa !11
  %119 = load i32, ptr %11, align 4, !tbaa !11
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %46, i64 %120
  %122 = load i32, ptr %13, align 4, !tbaa !11
  %123 = sext i32 %122 to i64
  %124 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %121, i64 noundef %123)
          to label %125 unwind label %140

125:                                              ; preds = %117
  %126 = load i8, ptr %124, align 1, !tbaa !15
  %127 = sext i8 %126 to i32
  %128 = load i32, ptr %15, align 4, !tbaa !11
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %46, i64 %129
  %131 = load i32, ptr %16, align 4, !tbaa !11
  %132 = sext i32 %131 to i64
  %133 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %130, i64 noundef %132)
          to label %134 unwind label %140

134:                                              ; preds = %125
  %135 = load i8, ptr %133, align 1, !tbaa !15
  %136 = sext i8 %135 to i32
  %137 = icmp ne i32 %127, %136
  br i1 %137, label %138, label %144

138:                                              ; preds = %134
  %139 = load i32, ptr %4, align 4, !tbaa !11
  store i32 %139, ptr %17, align 4, !tbaa !11
  br label %144

140:                                              ; preds = %125, %117
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %169

144:                                              ; preds = %138, %134
  %145 = load i32, ptr %2, align 4, !tbaa !11
  %146 = load i32, ptr %11, align 4, !tbaa !11
  %147 = mul nsw i32 %145, %146
  %148 = load i32, ptr %13, align 4, !tbaa !11
  %149 = add nsw i32 %147, %148
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [1600 x %"class.std::vector"], ptr %5, i64 0, i64 %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %152 = load i32, ptr %2, align 4, !tbaa !11
  %153 = load i32, ptr %15, align 4, !tbaa !11
  %154 = mul nsw i32 %152, %153
  %155 = load i32, ptr %16, align 4, !tbaa !11
  %156 = add nsw i32 %154, %155
  store i32 %156, ptr %19, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %157 unwind label %165

157:                                              ; preds = %144
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %158 unwind label %165

158:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  store i32 0, ptr %12, align 4
  br label %159

159:                                              ; preds = %158, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  %160 = load i32, ptr %12, align 4
  switch i32 %160, label %249 [
    i32 0, label %161
    i32 13, label %162
  ]

161:                                              ; preds = %159
  br label %162

162:                                              ; preds = %161, %159
  %163 = load i32, ptr %14, align 4, !tbaa !11
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %14, align 4, !tbaa !11
  br label %86, !llvm.loop !16

165:                                              ; preds = %157, %144
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %9, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %169

169:                                              ; preds = %165, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %223

170:                                              ; preds = %89
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %13, align 4, !tbaa !11
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %13, align 4, !tbaa !11
  br label %80, !llvm.loop !17

174:                                              ; preds = %84
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %11, align 4, !tbaa !11
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %11, align 4, !tbaa !11
  br label %74, !llvm.loop !18

178:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %179

179:                                              ; preds = %195, %178
  %180 = load i32, ptr %21, align 4, !tbaa !11
  %181 = load i32, ptr %2, align 4, !tbaa !11
  %182 = load i32, ptr %2, align 4, !tbaa !11
  %183 = mul nsw i32 %181, %182
  %184 = icmp slt i32 %180, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %179
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %202

186:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %187 = load i32, ptr %2, align 4, !tbaa !11
  %188 = getelementptr inbounds [1600 x %"class.std::vector"], ptr %5, i64 0, i64 0
  %189 = load i32, ptr %21, align 4, !tbaa !11
  %190 = invoke noundef i32 @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEi(i32 noundef %187, ptr noundef %188, i32 noundef %189)
          to label %191 unwind label %198

191:                                              ; preds = %186
  store i32 %190, ptr %22, align 4, !tbaa !11
  %192 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %193 unwind label %198

193:                                              ; preds = %191
  %194 = load i32, ptr %192, align 4, !tbaa !11
  store i32 %194, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %195

195:                                              ; preds = %193
  %196 = load i32, ptr %21, align 4, !tbaa !11
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %21, align 4, !tbaa !11
  br label %179, !llvm.loop !19

198:                                              ; preds = %191, %186
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %9, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %214

202:                                              ; preds = %185
  %203 = load i32, ptr %20, align 4, !tbaa !11
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %203)
          to label %205 unwind label %210

205:                                              ; preds = %202
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %207 unwind label %210

207:                                              ; preds = %205
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  %208 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %46, i64 %44
  %209 = icmp eq ptr %46, %208
  br i1 %209, label %219, label %215

210:                                              ; preds = %205, %202
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %9, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %10, align 4
  br label %214

214:                                              ; preds = %210, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %223

215:                                              ; preds = %215, %207
  %216 = phi ptr [ %208, %207 ], [ %217, %215 ]
  %217 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %216, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %217) #8
  %218 = icmp eq ptr %217, %46
  br i1 %218, label %219, label %215

219:                                              ; preds = %215, %207
  %220 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %220)
  %221 = getelementptr inbounds [1600 x %"class.std::vector"], ptr %5, i32 0, i32 0
  %222 = getelementptr inbounds %"class.std::vector", ptr %221, i64 1600
  br label %233

223:                                              ; preds = %214, %169, %69
  %224 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %46, i64 %44
  %225 = icmp eq ptr %46, %224
  br i1 %225, label %230, label %226

226:                                              ; preds = %226, %223
  %227 = phi ptr [ %224, %223 ], [ %228, %226 ]
  %228 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %227, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %228) #8
  %229 = icmp eq ptr %228, %46
  br i1 %229, label %230, label %226

230:                                              ; preds = %226, %223
  %231 = getelementptr inbounds [1600 x %"class.std::vector"], ptr %5, i32 0, i32 0
  %232 = getelementptr inbounds %"class.std::vector", ptr %231, i64 1600
  br label %239

233:                                              ; preds = %233, %219
  %234 = phi ptr [ %222, %219 ], [ %235, %233 ]
  %235 = getelementptr inbounds %"class.std::vector", ptr %234, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %235) #8
  %236 = icmp eq ptr %235, %221
  br i1 %236, label %237, label %233

237:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 38400, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %238 = load i32, ptr %1, align 4
  ret i32 %238

239:                                              ; preds = %239, %230
  %240 = phi ptr [ %232, %230 ], [ %241, %239 ]
  %241 = getelementptr inbounds %"class.std::vector", ptr %240, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %241) #8
  %242 = icmp eq ptr %241, %231
  br i1 %242, label %243, label %239

243:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 38400, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %244

244:                                              ; preds = %243
  %245 = load ptr, ptr %9, align 8
  %246 = load i32, ptr %10, align 4
  %247 = insertvalue { ptr, i32 } poison, ptr %245, 0
  %248 = insertvalue { ptr, i32 } %247, i32 %246, 1
  resume { ptr, i32 } %248

249:                                              ; preds = %159
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 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)) #5

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 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)) #7

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { 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 #4 = { 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 #5 = { "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 = { 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 = { 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 #8 = { 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 = !{!10, !10, i64 0}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }
%"struct.std::pair" = type { i32, i32 }
%"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] }

@dx = external dso_local local_unnamed_addr global [4 x i32], align 16
@dy = external dso_local local_unnamed_addr global [4 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [11 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 [12 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
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEi(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [1600 x %"class.std::vector"], align 16
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = load ptr, ptr @stdin, align 8, !tbaa !8
  %17 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %16)
  %18 = load ptr, ptr @stdout, align 8, !tbaa !8
  %19 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %20 = 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)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 38400, ptr nonnull %4) #8
  br label %23

23:                                               ; preds = %23, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %23 ]
  %.ptr = getelementptr inbounds i8, ptr %4, i64 %.idx
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #8
  %.add = add nuw nsw i64 %.idx, 24
  %24 = icmp eq i64 %.add, 38400
  br i1 %24, label %25, label %23

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %4, i64 38400
  %27 = load i32, ptr %1, align 4, !tbaa !11
  %28 = zext i32 %27 to i64
  %29 = call ptr @llvm.stacksave.p0()
  %30 = alloca %"class.std::__cxx11::basic_string", i64 %28, align 16
  %31 = icmp eq i32 %27, 0
  br i1 %31, label %.loopexit64, label %32

32:                                               ; preds = %25
  %33 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %28
  br label %34

34:                                               ; preds = %34, %32
  %35 = phi ptr [ %30, %32 ], [ %36, %34 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  %36 = getelementptr inbounds i8, ptr %35, i64 32
  %37 = icmp eq ptr %36, %33
  br i1 %37, label %.loopexit64, label %34

.loopexit64:                                      ; preds = %34, %25
  %38 = load i32, ptr %1, align 4, !tbaa !11
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph, label %._crit_edge69

.preheader63:                                     ; preds = %43
  %40 = icmp sgt i32 %44, 0
  br i1 %40, label %.preheader62, label %._crit_edge69

.lr.ph:                                           ; preds = %.loopexit64, %43
  %indvars.iv = phi i64 [ %indvars.iv.next, %43 ], [ 0, %.loopexit64 ]
  %41 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %indvars.iv
  %42 = invoke 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) %41)
          to label %43 unwind label %47

43:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = load i32, ptr %1, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next, %45
  br i1 %46, label %.lr.ph, label %.preheader63, !llvm.loop !13

47:                                               ; preds = %.lr.ph
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %205

.preheader62:                                     ; preds = %.preheader63, %._crit_edge
  %.pre86.pre87.pre8991 = phi i32 [ %.pre86.pre87.pre8992, %._crit_edge ], [ %44, %.preheader63 ]
  %49 = phi i32 [ %61, %._crit_edge ], [ %44, %.preheader63 ]
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %._crit_edge ], [ 0, %.preheader63 ]
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.preheader61.lr.ph, label %.preheader62.._crit_edge_crit_edge

.preheader62.._crit_edge_crit_edge:               ; preds = %.preheader62
  %.pre98 = sext i32 %49 to i64
  br label %._crit_edge

.preheader61.lr.ph:                               ; preds = %.preheader62
  %51 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %indvars.iv83
  %52 = trunc nuw nsw i64 %indvars.iv83 to i32
  br label %.preheader61

._crit_edge69:                                    ; preds = %._crit_edge, %.loopexit64, %.preheader63
  %53 = phi i32 [ %44, %.preheader63 ], [ %38, %.loopexit64 ], [ %61, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 0, ptr %8, align 4, !tbaa !11
  %.not74 = icmp eq i32 %53, 0
  br i1 %.not74, label %._crit_edge73, label %.lr.ph72

.preheader61:                                     ; preds = %.preheader61.lr.ph, %177
  %.pre86.pre87.pre8993 = phi i32 [ %.pre86.pre87.pre8991, %.preheader61.lr.ph ], [ %.pre86.pre87.pre8994, %177 ]
  %54 = phi i32 [ %49, %.preheader61.lr.ph ], [ %.pre86.pre87.pre8994, %177 ]
  %indvars.iv80 = phi i64 [ 0, %.preheader61.lr.ph ], [ %indvars.iv.next81, %177 ]
  %55 = load i32, ptr @dx, align 16, !tbaa !11
  %56 = add nsw i32 %55, %52
  %57 = load i32, ptr @dy, align 16, !tbaa !11
  %58 = trunc nuw nsw i64 %indvars.iv80 to i32
  %59 = add nsw i32 %57, %58
  %60 = icmp slt i32 %56, 0
  br i1 %60, label %87, label %63

._crit_edge:                                      ; preds = %177, %.preheader62.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre98, %.preheader62.._crit_edge_crit_edge ], [ %178, %177 ]
  %.pre86.pre87.pre8992 = phi i32 [ %.pre86.pre87.pre8991, %.preheader62.._crit_edge_crit_edge ], [ %.pre86.pre87.pre8994, %177 ]
  %61 = phi i32 [ %49, %.preheader62.._crit_edge_crit_edge ], [ %.pre86.pre87.pre8994, %177 ]
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %62 = icmp slt i64 %indvars.iv.next84, %.pre-phi
  br i1 %62, label %.preheader62, label %._crit_edge69, !llvm.loop !15

63:                                               ; preds = %.preheader61
  %64 = icmp slt i32 %56, %54
  %65 = icmp sgt i32 %59, -1
  %.not = icmp slt i32 %59, %54
  %66 = and i1 %65, %.not
  %or.cond55 = select i1 %64, i1 %66, i1 false
  br i1 %or.cond55, label %67, label %87

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %68 = load i32, ptr %2, align 4, !tbaa !11
  store i32 %68, ptr %5, align 4, !tbaa !11
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef %indvars.iv80)
  %70 = load i8, ptr %69, align 1, !tbaa !17
  %71 = zext nneg i32 %56 to i64
  %72 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %71
  %73 = zext nneg i32 %59 to i64
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %72, i64 noundef %73)
  %75 = load i8, ptr %74, align 1, !tbaa !17
  %.not51 = icmp eq i8 %70, %75
  br i1 %.not51, label %78, label %76

76:                                               ; preds = %67
  %77 = load i32, ptr %3, align 4, !tbaa !11
  store i32 %77, ptr %5, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %76, %67
  %79 = load i32, ptr %1, align 4, !tbaa !11
  %80 = mul nsw i32 %79, %52
  %81 = add nsw i32 %80, %58
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1600 x %"class.std::vector"], ptr %4, i64 0, i64 %82
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %84 = mul nsw i32 %79, %56
  %85 = add nsw i32 %84, %59
  store i32 %85, ptr %7, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %86 unwind label %180

86:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %.pre86.pre87.pre89.pre = load i32, ptr %1, align 4, !tbaa !11
  br label %87

87:                                               ; preds = %.preheader61, %63, %86
  %.pre86.pre87.pre89 = phi i32 [ %.pre86.pre87.pre8993, %.preheader61 ], [ %.pre86.pre87.pre8993, %63 ], [ %.pre86.pre87.pre89.pre, %86 ]
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 4), align 4, !tbaa !11
  %89 = add nsw i32 %88, %52
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 4), align 4, !tbaa !11
  %91 = add nsw i32 %90, %58
  %92 = icmp slt i32 %89, 0
  br i1 %92, label %117, label %93

93:                                               ; preds = %87
  %94 = icmp slt i32 %89, %.pre86.pre87.pre89
  %95 = icmp sgt i32 %91, -1
  %.not.1 = icmp slt i32 %91, %.pre86.pre87.pre89
  %96 = and i1 %95, %.not.1
  %or.cond55.1 = select i1 %94, i1 %96, i1 false
  br i1 %or.cond55.1, label %97, label %117

97:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %98 = load i32, ptr %2, align 4, !tbaa !11
  store i32 %98, ptr %5, align 4, !tbaa !11
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef %indvars.iv80)
  %100 = load i8, ptr %99, align 1, !tbaa !17
  %101 = zext nneg i32 %89 to i64
  %102 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %101
  %103 = zext nneg i32 %91 to i64
  %104 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %102, i64 noundef %103)
  %105 = load i8, ptr %104, align 1, !tbaa !17
  %.not51.1 = icmp eq i8 %100, %105
  br i1 %.not51.1, label %108, label %106

106:                                              ; preds = %97
  %107 = load i32, ptr %3, align 4, !tbaa !11
  store i32 %107, ptr %5, align 4, !tbaa !11
  br label %108

108:                                              ; preds = %106, %97
  %109 = load i32, ptr %1, align 4, !tbaa !11
  %110 = mul nsw i32 %109, %52
  %111 = add nsw i32 %110, %58
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [1600 x %"class.std::vector"], ptr %4, i64 0, i64 %112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %114 = mul nsw i32 %109, %89
  %115 = add nsw i32 %114, %91
  store i32 %115, ptr %7, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %116 unwind label %180

116:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %.pre86.pre87.pre = load i32, ptr %1, align 4, !tbaa !11
  br label %117

117:                                              ; preds = %116, %93, %87
  %.pre86.pre87.pre8996 = phi i32 [ %.pre86.pre87.pre, %116 ], [ %.pre86.pre87.pre89, %93 ], [ %.pre86.pre87.pre89, %87 ]
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 8), align 8, !tbaa !11
  %119 = add nsw i32 %118, %52
  %120 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 8), align 8, !tbaa !11
  %121 = add nsw i32 %120, %58
  %122 = icmp slt i32 %119, 0
  br i1 %122, label %147, label %123

123:                                              ; preds = %117
  %124 = icmp slt i32 %119, %.pre86.pre87.pre8996
  %125 = icmp sgt i32 %121, -1
  %.not.2 = icmp slt i32 %121, %.pre86.pre87.pre8996
  %126 = and i1 %125, %.not.2
  %or.cond55.2 = select i1 %124, i1 %126, i1 false
  br i1 %or.cond55.2, label %127, label %147

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %128 = load i32, ptr %2, align 4, !tbaa !11
  store i32 %128, ptr %5, align 4, !tbaa !11
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef %indvars.iv80)
  %130 = load i8, ptr %129, align 1, !tbaa !17
  %131 = zext nneg i32 %119 to i64
  %132 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %131
  %133 = zext nneg i32 %121 to i64
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %132, i64 noundef %133)
  %135 = load i8, ptr %134, align 1, !tbaa !17
  %.not51.2 = icmp eq i8 %130, %135
  br i1 %.not51.2, label %138, label %136

136:                                              ; preds = %127
  %137 = load i32, ptr %3, align 4, !tbaa !11
  store i32 %137, ptr %5, align 4, !tbaa !11
  br label %138

138:                                              ; preds = %136, %127
  %139 = load i32, ptr %1, align 4, !tbaa !11
  %140 = mul nsw i32 %139, %52
  %141 = add nsw i32 %140, %58
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [1600 x %"class.std::vector"], ptr %4, i64 0, i64 %142
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %144 = mul nsw i32 %139, %119
  %145 = add nsw i32 %144, %121
  store i32 %145, ptr %7, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %146 unwind label %180

146:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %.pre86.pre = load i32, ptr %1, align 4, !tbaa !11
  br label %147

147:                                              ; preds = %146, %123, %117
  %.pre86.pre87.pre8995 = phi i32 [ %.pre86.pre, %146 ], [ %.pre86.pre87.pre8996, %123 ], [ %.pre86.pre87.pre8996, %117 ]
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 12), align 4, !tbaa !11
  %149 = add nsw i32 %148, %52
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 12), align 4, !tbaa !11
  %151 = add nsw i32 %150, %58
  %152 = icmp slt i32 %149, 0
  br i1 %152, label %177, label %153

153:                                              ; preds = %147
  %154 = icmp slt i32 %149, %.pre86.pre87.pre8995
  %155 = icmp sgt i32 %151, -1
  %.not.3 = icmp slt i32 %151, %.pre86.pre87.pre8995
  %156 = and i1 %155, %.not.3
  %or.cond55.3 = select i1 %154, i1 %156, i1 false
  br i1 %or.cond55.3, label %157, label %177

157:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %158 = load i32, ptr %2, align 4, !tbaa !11
  store i32 %158, ptr %5, align 4, !tbaa !11
  %159 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef %indvars.iv80)
  %160 = load i8, ptr %159, align 1, !tbaa !17
  %161 = zext nneg i32 %149 to i64
  %162 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %161
  %163 = zext nneg i32 %151 to i64
  %164 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %162, i64 noundef %163)
  %165 = load i8, ptr %164, align 1, !tbaa !17
  %.not51.3 = icmp eq i8 %160, %165
  br i1 %.not51.3, label %168, label %166

166:                                              ; preds = %157
  %167 = load i32, ptr %3, align 4, !tbaa !11
  store i32 %167, ptr %5, align 4, !tbaa !11
  br label %168

168:                                              ; preds = %166, %157
  %169 = load i32, ptr %1, align 4, !tbaa !11
  %170 = mul nsw i32 %169, %52
  %171 = add nsw i32 %170, %58
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [1600 x %"class.std::vector"], ptr %4, i64 0, i64 %172
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %174 = mul nsw i32 %169, %149
  %175 = add nsw i32 %174, %151
  store i32 %175, ptr %7, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %173, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %176 unwind label %180

176:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %.pre = load i32, ptr %1, align 4, !tbaa !11
  br label %177

177:                                              ; preds = %176, %153, %147
  %.pre86.pre87.pre8994 = phi i32 [ %.pre, %176 ], [ %.pre86.pre87.pre8995, %153 ], [ %.pre86.pre87.pre8995, %147 ]
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %178 = sext i32 %.pre86.pre87.pre8994 to i64
  %179 = icmp slt i64 %indvars.iv.next81, %178
  br i1 %179, label %.preheader61, label %._crit_edge, !llvm.loop !18

180:                                              ; preds = %168, %138, %108, %78
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %205

._crit_edge73:                                    ; preds = %186, %._crit_edge69
  %182 = phi i32 [ 0, %._crit_edge69 ], [ %188, %186 ]
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %182)
          to label %195 unwind label %199

.lr.ph72:                                         ; preds = %._crit_edge69, %186
  %184 = phi i32 [ %190, %186 ], [ %53, %._crit_edge69 ]
  %.070 = phi i32 [ %189, %186 ], [ 0, %._crit_edge69 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  %185 = invoke noundef i32 @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEi(i32 noundef %184, ptr noundef nonnull %4, i32 noundef %.070)
          to label %186 unwind label %193

186:                                              ; preds = %.lr.ph72
  store i32 %185, ptr %9, align 4, !tbaa !11
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %188 = load i32, ptr %187, align 4, !tbaa !11
  store i32 %188, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  %189 = add nuw nsw i32 %.070, 1
  %190 = load i32, ptr %1, align 4, !tbaa !11
  %191 = mul nsw i32 %190, %190
  %192 = icmp ult i32 %189, %191
  br i1 %192, label %.lr.ph72, label %._crit_edge73, !llvm.loop !19

193:                                              ; preds = %.lr.ph72
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %201

195:                                              ; preds = %._crit_edge73
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %197 unwind label %199

197:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br i1 %31, label %.loopexit60, label %.preheader59.preheader

.preheader59.preheader:                           ; preds = %197
  %198 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %28
  br label %.preheader59

199:                                              ; preds = %195, %._crit_edge73
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %201

201:                                              ; preds = %199, %193
  %.pn = phi { ptr, i32 } [ %194, %193 ], [ %200, %199 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %205

.preheader59:                                     ; preds = %.preheader59.preheader, %.preheader59
  %202 = phi ptr [ %203, %.preheader59 ], [ %198, %.preheader59.preheader ]
  %203 = getelementptr inbounds i8, ptr %202, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %203) #8
  %204 = icmp eq ptr %203, %30
  br i1 %204, label %.loopexit60, label %.preheader59

.loopexit60:                                      ; preds = %.preheader59, %197
  call void @llvm.stackrestore.p0(ptr %29)
  br label %210

205:                                              ; preds = %201, %180, %47
  %.pn52 = phi { ptr, i32 } [ %48, %47 ], [ %181, %180 ], [ %.pn, %201 ]
  br i1 %31, label %.loopexit.preheader, label %.preheader.preheader

.loopexit.preheader:                              ; preds = %.preheader, %205
  br label %.loopexit

.preheader.preheader:                             ; preds = %205
  %206 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %30, i64 %28
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %207 = phi ptr [ %208, %.preheader ], [ %206, %.preheader.preheader ]
  %208 = getelementptr inbounds i8, ptr %207, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %208) #8
  %209 = icmp eq ptr %208, %30
  br i1 %209, label %.loopexit.preheader, label %.preheader

210:                                              ; preds = %210, %.loopexit60
  %211 = phi ptr [ %26, %.loopexit60 ], [ %212, %210 ]
  %212 = getelementptr inbounds i8, ptr %211, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %212) #8
  %213 = icmp eq ptr %212, %4
  br i1 %213, label %214, label %210

214:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 38400, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

.loopexit:                                        ; preds = %.loopexit.preheader, %.loopexit
  %215 = phi ptr [ %216, %.loopexit ], [ %26, %.loopexit.preheader ]
  %216 = getelementptr inbounds i8, ptr %215, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %216) #8
  %217 = icmp eq ptr %216, %4
  br i1 %217, label %218, label %.loopexit

218:                                              ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 38400, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn52
}

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

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

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

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 #5

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 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 #5

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #3 = { 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 #4 = { 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 #5 = { "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 = { 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 = { 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 #8 = { 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 = distinct !{!15, !14, !16}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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