; LLVM IR from imteekay/algorithms :: competitive-programming/uri (stick_collector_robot)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 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 %"class.std::__cxx11::basic_string", align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %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 i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  br label %19

19:                                               ; preds = %478, %0
  %20 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %21 unwind label %49

21:                                               ; preds = %19
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %23 unwind label %49

23:                                               ; preds = %21
  %24 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %25 unwind label %49

25:                                               ; preds = %23
  %26 = load ptr, ptr %24, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %24, i64 %28
  %30 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %29)
          to label %31 unwind label %49

31:                                               ; preds = %25
  br i1 %30, label %32, label %39

32:                                               ; preds = %31
  %33 = load i32, ptr %2, align 4, !tbaa !8
  %34 = load i32, ptr %3, align 4, !tbaa !8
  %35 = add nsw i32 %33, %34
  %36 = load i32, ptr %4, align 4, !tbaa !8
  %37 = add nsw i32 %35, %36
  %38 = icmp ne i32 %37, 0
  br label %39

39:                                               ; preds = %32, %31
  %40 = phi i1 [ false, %31 ], [ %38, %32 ]
  br i1 %40, label %41, label %481

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin)
          to label %43 unwind label %53

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %44

44:                                               ; preds = %61, %43
  %45 = load i32, ptr %13, align 4, !tbaa !8
  %46 = load i32, ptr %2, align 4, !tbaa !8
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %57, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %68

49:                                               ; preds = %25, %23, %21, %19
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %9, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %10, align 4
  br label %483

53:                                               ; preds = %68, %41
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %9, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %10, align 4
  br label %480

57:                                               ; preds = %44
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %12)
          to label %59 unwind label %64

59:                                               ; preds = %57
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %60 unwind label %64

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %13, align 4, !tbaa !8
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %13, align 4, !tbaa !8
  br label %44, !llvm.loop !11

64:                                               ; preds = %59, %57
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %480

68:                                               ; preds = %48
  %69 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %7)
          to label %70 unwind label %53

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !8
  br label %71

71:                                               ; preds = %150, %70
  %72 = load i32, ptr %14, align 4, !tbaa !8
  %73 = load i32, ptr %2, align 4, !tbaa !8
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  store i32 7, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %153

76:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %77

77:                                               ; preds = %146, %76
  %78 = load i32, ptr %16, align 4, !tbaa !8
  %79 = load i32, ptr %3, align 4, !tbaa !8
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 10, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %149

82:                                               ; preds = %77
  %83 = load i32, ptr %14, align 4, !tbaa !8
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %84) #6
  %86 = load i32, ptr %16, align 4, !tbaa !8
  %87 = sext i32 %86 to i64
  %88 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %85, i64 noundef %87)
          to label %89 unwind label %96

89:                                               ; preds = %82
  %90 = load i8, ptr %88, align 1, !tbaa !13
  %91 = sext i8 %90 to i32
  %92 = icmp eq i32 %91, 78
  br i1 %92, label %93, label %100

93:                                               ; preds = %89
  store i8 78, ptr %8, align 1, !tbaa !13
  %94 = load i32, ptr %16, align 4, !tbaa !8
  store i32 %94, ptr %5, align 4, !tbaa !8
  %95 = load i32, ptr %14, align 4, !tbaa !8
  store i32 %95, ptr %6, align 4, !tbaa !8
  br label %145

96:                                               ; preds = %128, %114, %100, %82
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %480

100:                                              ; preds = %89
  %101 = load i32, ptr %14, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %102) #6
  %104 = load i32, ptr %16, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %103, i64 noundef %105)
          to label %107 unwind label %96

107:                                              ; preds = %100
  %108 = load i8, ptr %106, align 1, !tbaa !13
  %109 = sext i8 %108 to i32
  %110 = icmp eq i32 %109, 83
  br i1 %110, label %111, label %114

111:                                              ; preds = %107
  store i8 83, ptr %8, align 1, !tbaa !13
  %112 = load i32, ptr %16, align 4, !tbaa !8
  store i32 %112, ptr %5, align 4, !tbaa !8
  %113 = load i32, ptr %14, align 4, !tbaa !8
  store i32 %113, ptr %6, align 4, !tbaa !8
  br label %144

114:                                              ; preds = %107
  %115 = load i32, ptr %14, align 4, !tbaa !8
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %116) #6
  %118 = load i32, ptr %16, align 4, !tbaa !8
  %119 = sext i32 %118 to i64
  %120 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %117, i64 noundef %119)
          to label %121 unwind label %96

121:                                              ; preds = %114
  %122 = load i8, ptr %120, align 1, !tbaa !13
  %123 = sext i8 %122 to i32
  %124 = icmp eq i32 %123, 76
  br i1 %124, label %125, label %128

125:                                              ; preds = %121
  store i8 76, ptr %8, align 1, !tbaa !13
  %126 = load i32, ptr %16, align 4, !tbaa !8
  store i32 %126, ptr %5, align 4, !tbaa !8
  %127 = load i32, ptr %14, align 4, !tbaa !8
  store i32 %127, ptr %6, align 4, !tbaa !8
  br label %143

128:                                              ; preds = %121
  %129 = load i32, ptr %14, align 4, !tbaa !8
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %130) #6
  %132 = load i32, ptr %16, align 4, !tbaa !8
  %133 = sext i32 %132 to i64
  %134 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %131, i64 noundef %133)
          to label %135 unwind label %96

135:                                              ; preds = %128
  %136 = load i8, ptr %134, align 1, !tbaa !13
  %137 = sext i8 %136 to i32
  %138 = icmp eq i32 %137, 79
  br i1 %138, label %139, label %142

139:                                              ; preds = %135
  store i8 79, ptr %8, align 1, !tbaa !13
  %140 = load i32, ptr %16, align 4, !tbaa !8
  store i32 %140, ptr %5, align 4, !tbaa !8
  %141 = load i32, ptr %14, align 4, !tbaa !8
  store i32 %141, ptr %6, align 4, !tbaa !8
  br label %142

142:                                              ; preds = %139, %135
  br label %143

143:                                              ; preds = %142, %125
  br label %144

144:                                              ; preds = %143, %111
  br label %145

145:                                              ; preds = %144, %93
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %16, align 4, !tbaa !8
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %16, align 4, !tbaa !8
  br label %77, !llvm.loop !14

149:                                              ; preds = %81
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %14, align 4, !tbaa !8
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %14, align 4, !tbaa !8
  br label %71, !llvm.loop !15

153:                                              ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !8
  %154 = load i32, ptr %6, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %155) #6
  %157 = load i32, ptr %5, align 4, !tbaa !8
  %158 = sext i32 %157 to i64
  %159 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %156, i64 noundef %158)
          to label %160 unwind label %167

160:                                              ; preds = %153
  store i8 46, ptr %159, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !8
  br label %161

161:                                              ; preds = %470, %160
  %162 = load i32, ptr %18, align 4, !tbaa !8
  %163 = sext i32 %162 to i64
  %164 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %165 = icmp ult i64 %163, %164
  br i1 %165, label %171, label %166

166:                                              ; preds = %161
  store i32 13, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %473

167:                                              ; preds = %476, %473, %153
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %9, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %10, align 4
  br label %479

171:                                              ; preds = %161
  %172 = load i8, ptr %8, align 1, !tbaa !13
  %173 = sext i8 %172 to i32
  %174 = icmp eq i32 %173, 78
  br i1 %174, label %175, label %249

175:                                              ; preds = %171
  %176 = load i32, ptr %18, align 4, !tbaa !8
  %177 = sext i32 %176 to i64
  %178 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %177)
          to label %179 unwind label %184

179:                                              ; preds = %175
  %180 = load i8, ptr %178, align 1, !tbaa !13
  %181 = sext i8 %180 to i32
  %182 = icmp eq i32 %181, 68
  br i1 %182, label %183, label %188

183:                                              ; preds = %179
  store i8 76, ptr %8, align 1, !tbaa !13
  br label %248

184:                                              ; preds = %449, %437, %422, %406, %397, %379, %367, %352, %336, %327, %305, %293, %278, %262, %253, %231, %219, %204, %188, %175
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %9, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %479

188:                                              ; preds = %179
  %189 = load i32, ptr %18, align 4, !tbaa !8
  %190 = sext i32 %189 to i64
  %191 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %190)
          to label %192 unwind label %184

192:                                              ; preds = %188
  %193 = load i8, ptr %191, align 1, !tbaa !13
  %194 = sext i8 %193 to i32
  %195 = icmp eq i32 %194, 69
  br i1 %195, label %196, label %197

196:                                              ; preds = %192
  store i8 79, ptr %8, align 1, !tbaa !13
  br label %247

197:                                              ; preds = %192
  %198 = load i32, ptr %5, align 4, !tbaa !8
  %199 = load i32, ptr %6, align 4, !tbaa !8
  %200 = sub nsw i32 %199, 1
  %201 = load i32, ptr %2, align 4, !tbaa !8
  %202 = load i32, ptr %3, align 4, !tbaa !8
  %203 = call noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef %198, i32 noundef %200, i32 noundef %201, i32 noundef %202)
  br i1 %203, label %204, label %246

204:                                              ; preds = %197
  %205 = load i32, ptr %6, align 4, !tbaa !8
  %206 = sub nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %207) #6
  %209 = load i32, ptr %5, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %208, i64 noundef %210)
          to label %212 unwind label %184

212:                                              ; preds = %204
  %213 = load i8, ptr %211, align 1, !tbaa !13
  %214 = sext i8 %213 to i32
  %215 = icmp eq i32 %214, 46
  br i1 %215, label %216, label %219

216:                                              ; preds = %212
  %217 = load i32, ptr %6, align 4, !tbaa !8
  %218 = add nsw i32 %217, -1
  store i32 %218, ptr %6, align 4, !tbaa !8
  br label %245

219:                                              ; preds = %212
  %220 = load i32, ptr %6, align 4, !tbaa !8
  %221 = sub nsw i32 %220, 1
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %222) #6
  %224 = load i32, ptr %5, align 4, !tbaa !8
  %225 = sext i32 %224 to i64
  %226 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %223, i64 noundef %225)
          to label %227 unwind label %184

227:                                              ; preds = %219
  %228 = load i8, ptr %226, align 1, !tbaa !13
  %229 = sext i8 %228 to i32
  %230 = icmp eq i32 %229, 42
  br i1 %230, label %231, label %244

231:                                              ; preds = %227
  %232 = load i32, ptr %6, align 4, !tbaa !8
  %233 = sub nsw i32 %232, 1
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %234) #6
  %236 = load i32, ptr %5, align 4, !tbaa !8
  %237 = sext i32 %236 to i64
  %238 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %235, i64 noundef %237)
          to label %239 unwind label %184

239:                                              ; preds = %231
  store i8 46, ptr %238, align 1, !tbaa !13
  %240 = load i32, ptr %6, align 4, !tbaa !8
  %241 = add nsw i32 %240, -1
  store i32 %241, ptr %6, align 4, !tbaa !8
  %242 = load i32, ptr %17, align 4, !tbaa !8
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %17, align 4, !tbaa !8
  br label %244

244:                                              ; preds = %239, %227
  br label %245

245:                                              ; preds = %244, %216
  br label %246

246:                                              ; preds = %245, %197
  br label %247

247:                                              ; preds = %246, %196
  br label %248

248:                                              ; preds = %247, %183
  br label %469

249:                                              ; preds = %171
  %250 = load i8, ptr %8, align 1, !tbaa !13
  %251 = sext i8 %250 to i32
  %252 = icmp eq i32 %251, 83
  br i1 %252, label %253, label %323

253:                                              ; preds = %249
  %254 = load i32, ptr %18, align 4, !tbaa !8
  %255 = sext i32 %254 to i64
  %256 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %255)
          to label %257 unwind label %184

257:                                              ; preds = %253
  %258 = load i8, ptr %256, align 1, !tbaa !13
  %259 = sext i8 %258 to i32
  %260 = icmp eq i32 %259, 68
  br i1 %260, label %261, label %262

261:                                              ; preds = %257
  store i8 79, ptr %8, align 1, !tbaa !13
  br label %322

262:                                              ; preds = %257
  %263 = load i32, ptr %18, align 4, !tbaa !8
  %264 = sext i32 %263 to i64
  %265 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %264)
          to label %266 unwind label %184

266:                                              ; preds = %262
  %267 = load i8, ptr %265, align 1, !tbaa !13
  %268 = sext i8 %267 to i32
  %269 = icmp eq i32 %268, 69
  br i1 %269, label %270, label %271

270:                                              ; preds = %266
  store i8 76, ptr %8, align 1, !tbaa !13
  br label %321

271:                                              ; preds = %266
  %272 = load i32, ptr %5, align 4, !tbaa !8
  %273 = load i32, ptr %6, align 4, !tbaa !8
  %274 = add nsw i32 %273, 1
  %275 = load i32, ptr %2, align 4, !tbaa !8
  %276 = load i32, ptr %3, align 4, !tbaa !8
  %277 = call noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef %272, i32 noundef %274, i32 noundef %275, i32 noundef %276)
  br i1 %277, label %278, label %320

278:                                              ; preds = %271
  %279 = load i32, ptr %6, align 4, !tbaa !8
  %280 = add nsw i32 %279, 1
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %281) #6
  %283 = load i32, ptr %5, align 4, !tbaa !8
  %284 = sext i32 %283 to i64
  %285 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %282, i64 noundef %284)
          to label %286 unwind label %184

286:                                              ; preds = %278
  %287 = load i8, ptr %285, align 1, !tbaa !13
  %288 = sext i8 %287 to i32
  %289 = icmp eq i32 %288, 46
  br i1 %289, label %290, label %293

290:                                              ; preds = %286
  %291 = load i32, ptr %6, align 4, !tbaa !8
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %6, align 4, !tbaa !8
  br label %319

293:                                              ; preds = %286
  %294 = load i32, ptr %6, align 4, !tbaa !8
  %295 = add nsw i32 %294, 1
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %296) #6
  %298 = load i32, ptr %5, align 4, !tbaa !8
  %299 = sext i32 %298 to i64
  %300 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %297, i64 noundef %299)
          to label %301 unwind label %184

301:                                              ; preds = %293
  %302 = load i8, ptr %300, align 1, !tbaa !13
  %303 = sext i8 %302 to i32
  %304 = icmp eq i32 %303, 42
  br i1 %304, label %305, label %318

305:                                              ; preds = %301
  %306 = load i32, ptr %6, align 4, !tbaa !8
  %307 = add nsw i32 %306, 1
  %308 = sext i32 %307 to i64
  %309 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %308) #6
  %310 = load i32, ptr %5, align 4, !tbaa !8
  %311 = sext i32 %310 to i64
  %312 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %309, i64 noundef %311)
          to label %313 unwind label %184

313:                                              ; preds = %305
  store i8 46, ptr %312, align 1, !tbaa !13
  %314 = load i32, ptr %6, align 4, !tbaa !8
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %6, align 4, !tbaa !8
  %316 = load i32, ptr %17, align 4, !tbaa !8
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %17, align 4, !tbaa !8
  br label %318

318:                                              ; preds = %313, %301
  br label %319

319:                                              ; preds = %318, %290
  br label %320

320:                                              ; preds = %319, %271
  br label %321

321:                                              ; preds = %320, %270
  br label %322

322:                                              ; preds = %321, %261
  br label %468

323:                                              ; preds = %249
  %324 = load i8, ptr %8, align 1, !tbaa !13
  %325 = sext i8 %324 to i32
  %326 = icmp eq i32 %325, 76
  br i1 %326, label %327, label %397

327:                                              ; preds = %323
  %328 = load i32, ptr %18, align 4, !tbaa !8
  %329 = sext i32 %328 to i64
  %330 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %329)
          to label %331 unwind label %184

331:                                              ; preds = %327
  %332 = load i8, ptr %330, align 1, !tbaa !13
  %333 = sext i8 %332 to i32
  %334 = icmp eq i32 %333, 68
  br i1 %334, label %335, label %336

335:                                              ; preds = %331
  store i8 83, ptr %8, align 1, !tbaa !13
  br label %396

336:                                              ; preds = %331
  %337 = load i32, ptr %18, align 4, !tbaa !8
  %338 = sext i32 %337 to i64
  %339 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %338)
          to label %340 unwind label %184

340:                                              ; preds = %336
  %341 = load i8, ptr %339, align 1, !tbaa !13
  %342 = sext i8 %341 to i32
  %343 = icmp eq i32 %342, 69
  br i1 %343, label %344, label %345

344:                                              ; preds = %340
  store i8 78, ptr %8, align 1, !tbaa !13
  br label %395

345:                                              ; preds = %340
  %346 = load i32, ptr %5, align 4, !tbaa !8
  %347 = add nsw i32 %346, 1
  %348 = load i32, ptr %6, align 4, !tbaa !8
  %349 = load i32, ptr %2, align 4, !tbaa !8
  %350 = load i32, ptr %3, align 4, !tbaa !8
  %351 = call noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef %347, i32 noundef %348, i32 noundef %349, i32 noundef %350)
  br i1 %351, label %352, label %394

352:                                              ; preds = %345
  %353 = load i32, ptr %6, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %354) #6
  %356 = load i32, ptr %5, align 4, !tbaa !8
  %357 = add nsw i32 %356, 1
  %358 = sext i32 %357 to i64
  %359 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %355, i64 noundef %358)
          to label %360 unwind label %184

360:                                              ; preds = %352
  %361 = load i8, ptr %359, align 1, !tbaa !13
  %362 = sext i8 %361 to i32
  %363 = icmp eq i32 %362, 46
  br i1 %363, label %364, label %367

364:                                              ; preds = %360
  %365 = load i32, ptr %5, align 4, !tbaa !8
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %5, align 4, !tbaa !8
  br label %393

367:                                              ; preds = %360
  %368 = load i32, ptr %6, align 4, !tbaa !8
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %369) #6
  %371 = load i32, ptr %5, align 4, !tbaa !8
  %372 = add nsw i32 %371, 1
  %373 = sext i32 %372 to i64
  %374 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %370, i64 noundef %373)
          to label %375 unwind label %184

375:                                              ; preds = %367
  %376 = load i8, ptr %374, align 1, !tbaa !13
  %377 = sext i8 %376 to i32
  %378 = icmp eq i32 %377, 42
  br i1 %378, label %379, label %392

379:                                              ; preds = %375
  %380 = load i32, ptr %6, align 4, !tbaa !8
  %381 = sext i32 %380 to i64
  %382 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %381) #6
  %383 = load i32, ptr %5, align 4, !tbaa !8
  %384 = add nsw i32 %383, 1
  %385 = sext i32 %384 to i64
  %386 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %382, i64 noundef %385)
          to label %387 unwind label %184

387:                                              ; preds = %379
  store i8 46, ptr %386, align 1, !tbaa !13
  %388 = load i32, ptr %5, align 4, !tbaa !8
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %5, align 4, !tbaa !8
  %390 = load i32, ptr %17, align 4, !tbaa !8
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr %17, align 4, !tbaa !8
  br label %392

392:                                              ; preds = %387, %375
  br label %393

393:                                              ; preds = %392, %364
  br label %394

394:                                              ; preds = %393, %345
  br label %395

395:                                              ; preds = %394, %344
  br label %396

396:                                              ; preds = %395, %335
  br label %467

397:                                              ; preds = %323
  %398 = load i32, ptr %18, align 4, !tbaa !8
  %399 = sext i32 %398 to i64
  %400 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %399)
          to label %401 unwind label %184

401:                                              ; preds = %397
  %402 = load i8, ptr %400, align 1, !tbaa !13
  %403 = sext i8 %402 to i32
  %404 = icmp eq i32 %403, 68
  br i1 %404, label %405, label %406

405:                                              ; preds = %401
  store i8 78, ptr %8, align 1, !tbaa !13
  br label %466

406:                                              ; preds = %401
  %407 = load i32, ptr %18, align 4, !tbaa !8
  %408 = sext i32 %407 to i64
  %409 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %408)
          to label %410 unwind label %184

410:                                              ; preds = %406
  %411 = load i8, ptr %409, align 1, !tbaa !13
  %412 = sext i8 %411 to i32
  %413 = icmp eq i32 %412, 69
  br i1 %413, label %414, label %415

414:                                              ; preds = %410
  store i8 83, ptr %8, align 1, !tbaa !13
  br label %465

415:                                              ; preds = %410
  %416 = load i32, ptr %5, align 4, !tbaa !8
  %417 = sub nsw i32 %416, 1
  %418 = load i32, ptr %6, align 4, !tbaa !8
  %419 = load i32, ptr %2, align 4, !tbaa !8
  %420 = load i32, ptr %3, align 4, !tbaa !8
  %421 = call noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef %417, i32 noundef %418, i32 noundef %419, i32 noundef %420)
  br i1 %421, label %422, label %464

422:                                              ; preds = %415
  %423 = load i32, ptr %6, align 4, !tbaa !8
  %424 = sext i32 %423 to i64
  %425 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %424) #6
  %426 = load i32, ptr %5, align 4, !tbaa !8
  %427 = sub nsw i32 %426, 1
  %428 = sext i32 %427 to i64
  %429 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %425, i64 noundef %428)
          to label %430 unwind label %184

430:                                              ; preds = %422
  %431 = load i8, ptr %429, align 1, !tbaa !13
  %432 = sext i8 %431 to i32
  %433 = icmp eq i32 %432, 46
  br i1 %433, label %434, label %437

434:                                              ; preds = %430
  %435 = load i32, ptr %5, align 4, !tbaa !8
  %436 = add nsw i32 %435, -1
  store i32 %436, ptr %5, align 4, !tbaa !8
  br label %463

437:                                              ; preds = %430
  %438 = load i32, ptr %6, align 4, !tbaa !8
  %439 = sext i32 %438 to i64
  %440 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %439) #6
  %441 = load i32, ptr %5, align 4, !tbaa !8
  %442 = sub nsw i32 %441, 1
  %443 = sext i32 %442 to i64
  %444 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %440, i64 noundef %443)
          to label %445 unwind label %184

445:                                              ; preds = %437
  %446 = load i8, ptr %444, align 1, !tbaa !13
  %447 = sext i8 %446 to i32
  %448 = icmp eq i32 %447, 42
  br i1 %448, label %449, label %462

449:                                              ; preds = %445
  %450 = load i32, ptr %6, align 4, !tbaa !8
  %451 = sext i32 %450 to i64
  %452 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %451) #6
  %453 = load i32, ptr %5, align 4, !tbaa !8
  %454 = sub nsw i32 %453, 1
  %455 = sext i32 %454 to i64
  %456 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %452, i64 noundef %455)
          to label %457 unwind label %184

457:                                              ; preds = %449
  store i8 46, ptr %456, align 1, !tbaa !13
  %458 = load i32, ptr %5, align 4, !tbaa !8
  %459 = add nsw i32 %458, -1
  store i32 %459, ptr %5, align 4, !tbaa !8
  %460 = load i32, ptr %17, align 4, !tbaa !8
  %461 = add nsw i32 %460, 1
  store i32 %461, ptr %17, align 4, !tbaa !8
  br label %462

462:                                              ; preds = %457, %445
  br label %463

463:                                              ; preds = %462, %434
  br label %464

464:                                              ; preds = %463, %415
  br label %465

465:                                              ; preds = %464, %414
  br label %466

466:                                              ; preds = %465, %405
  br label %467

467:                                              ; preds = %466, %396
  br label %468

468:                                              ; preds = %467, %322
  br label %469

469:                                              ; preds = %468, %248
  br label %470

470:                                              ; preds = %469
  %471 = load i32, ptr %18, align 4, !tbaa !8
  %472 = add nsw i32 %471, 1
  store i32 %472, ptr %18, align 4, !tbaa !8
  br label %161, !llvm.loop !16

473:                                              ; preds = %166
  %474 = load i32, ptr %17, align 4, !tbaa !8
  %475 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %474)
          to label %476 unwind label %167

476:                                              ; preds = %473
  %477 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %475, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %478 unwind label %167

478:                                              ; preds = %476
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %19, !llvm.loop !17

479:                                              ; preds = %184, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %480

480:                                              ; preds = %479, %96, %64, %53
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %483

481:                                              ; preds = %39
  store i32 0, ptr %1, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %482 = load i32, ptr %1, align 4
  ret i32 %482

483:                                              ; preds = %480, %49
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %484

484:                                              ; preds = %483
  %485 = load ptr, ptr %9, align 8
  %486 = load i32, ptr %10, align 4
  %487 = insertvalue { ptr, i32 } poison, ptr %485, 0
  %488 = insertvalue { ptr, i32 } %487, i32 %486, 1
  resume { ptr, i32 } %488
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #4 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEv(ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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 uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

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

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

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

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

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

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

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

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

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

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

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


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %7

7:                                                ; preds = %188, %0
  %.0100 = phi i32 [ undef, %0 ], [ %.4104.lcssa, %188 ]
  %.094 = phi i32 [ undef, %0 ], [ %.498.lcssa, %188 ]
  %.092 = phi i8 [ undef, %0 ], [ %.4.lcssa, %188 ]
  %8 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %9 unwind label %35

9:                                                ; preds = %7
  %10 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %11 unwind label %35

11:                                               ; preds = %9
  %12 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %13 unwind label %35

13:                                               ; preds = %11
  %14 = load ptr, ptr %12, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr %12, i64 %16
  %18 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %17)
          to label %19 unwind label %35

19:                                               ; preds = %13
  br i1 %18, label %20, label %.critedge

20:                                               ; preds = %19
  %21 = load i32, ptr %1, align 4, !tbaa !8
  %22 = load i32, ptr %2, align 4, !tbaa !8
  %23 = add nsw i32 %22, %21
  %24 = load i32, ptr %3, align 4, !tbaa !8
  %25 = sub i32 0, %24
  %.not = icmp eq i32 %23, %25
  br i1 %.not, label %.critedge, label %26

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin)
          to label %.preheader111 unwind label %37

.preheader111:                                    ; preds = %26
  %28 = load i32, ptr %1, align 4, !tbaa !8
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %41, %.preheader111
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %4)
          to label %.preheader110 unwind label %37

.preheader110:                                    ; preds = %._crit_edge
  %31 = load i32, ptr %1, align 4, !tbaa !8
  %32 = icmp sgt i32 %31, 0
  %33 = load i32, ptr %2, align 4
  %34 = icmp sgt i32 %33, 0
  %or.cond = select i1 %32, i1 %34, i1 false
  br i1 %or.cond, label %.preheader, label %._crit_edge125

35:                                               ; preds = %13, %11, %9, %7
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %190

37:                                               ; preds = %._crit_edge, %26
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %189

.lr.ph:                                           ; preds = %.preheader111, %41
  %.087112 = phi i32 [ %42, %41 ], [ 0, %.preheader111 ]
  %39 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %6)
          to label %40 unwind label %45

40:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %41 unwind label %45

41:                                               ; preds = %40
  %42 = add nuw nsw i32 %.087112, 1
  %43 = load i32, ptr %1, align 4, !tbaa !8
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %.lr.ph, label %._crit_edge, !llvm.loop !11

45:                                               ; preds = %40, %.lr.ph
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %189

.preheader:                                       ; preds = %.preheader110, %._crit_edge118
  %47 = phi i32 [ %56, %._crit_edge118 ], [ %31, %.preheader110 ]
  %48 = phi i32 [ %57, %._crit_edge118 ], [ %33, %.preheader110 ]
  %indvars.iv145 = phi i64 [ %indvars.iv.next146, %._crit_edge118 ], [ 0, %.preheader110 ]
  %.193123 = phi i8 [ %.2.lcssa, %._crit_edge118 ], [ %.092, %.preheader110 ]
  %.195122 = phi i32 [ %.296.lcssa, %._crit_edge118 ], [ %.094, %.preheader110 ]
  %.1101121 = phi i32 [ %.2102.lcssa, %._crit_edge118 ], [ %.0100, %.preheader110 ]
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph117, label %._crit_edge118

.lr.ph117:                                        ; preds = %.preheader
  %50 = trunc nuw nsw i64 %indvars.iv145 to i32
  br label %60

._crit_edge125:                                   ; preds = %._crit_edge118, %.preheader110
  %.1101.lcssa = phi i32 [ %.0100, %.preheader110 ], [ %.2102.lcssa, %._crit_edge118 ]
  %.195.lcssa = phi i32 [ %.094, %.preheader110 ], [ %.296.lcssa, %._crit_edge118 ]
  %.193.lcssa = phi i8 [ %.092, %.preheader110 ], [ %.2.lcssa, %._crit_edge118 ]
  %51 = sext i32 %.195.lcssa to i64
  %52 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %51) #6
  %53 = sext i32 %.1101.lcssa to i64
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %52, i64 noundef %53)
  store i8 46, ptr %54, align 1, !tbaa !13
  %55 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %.not143 = icmp eq i64 %55, 0
  br i1 %.not143, label %._crit_edge138, label %.lr.ph137

._crit_edge118.loopexit:                          ; preds = %82
  %.pre = load i32, ptr %1, align 4, !tbaa !8
  br label %._crit_edge118

._crit_edge118:                                   ; preds = %._crit_edge118.loopexit, %.preheader
  %56 = phi i32 [ %47, %.preheader ], [ %.pre, %._crit_edge118.loopexit ]
  %57 = phi i32 [ %48, %.preheader ], [ %83, %._crit_edge118.loopexit ]
  %.2102.lcssa = phi i32 [ %.1101121, %.preheader ], [ %.3103, %._crit_edge118.loopexit ]
  %.296.lcssa = phi i32 [ %.195122, %.preheader ], [ %.397, %._crit_edge118.loopexit ]
  %.2.lcssa = phi i8 [ %.193123, %.preheader ], [ %.3, %._crit_edge118.loopexit ]
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %58 = sext i32 %56 to i64
  %59 = icmp slt i64 %indvars.iv.next146, %58
  br i1 %59, label %.preheader, label %._crit_edge125, !llvm.loop !14

60:                                               ; preds = %.lr.ph117, %82
  %indvars.iv = phi i64 [ 0, %.lr.ph117 ], [ %indvars.iv.next, %82 ]
  %.2115 = phi i8 [ %.193123, %.lr.ph117 ], [ %.3, %82 ]
  %.296114 = phi i32 [ %.195122, %.lr.ph117 ], [ %.397, %82 ]
  %.2102113 = phi i32 [ %.1101121, %.lr.ph117 ], [ %.3103, %82 ]
  %61 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv145) #6
  %62 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %61, i64 noundef %indvars.iv)
  %63 = load i8, ptr %62, align 1, !tbaa !13
  %64 = icmp eq i8 %63, 78
  %65 = trunc nuw nsw i64 %indvars.iv to i32
  br i1 %64, label %82, label %66

66:                                               ; preds = %60
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv145) #6
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %indvars.iv)
  %69 = load i8, ptr %68, align 1, !tbaa !13
  %70 = icmp eq i8 %69, 83
  br i1 %70, label %82, label %71

71:                                               ; preds = %66
  %72 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv145) #6
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %72, i64 noundef %indvars.iv)
  %74 = load i8, ptr %73, align 1, !tbaa !13
  %75 = icmp eq i8 %74, 76
  br i1 %75, label %82, label %76

76:                                               ; preds = %71
  %77 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv145) #6
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %77, i64 noundef %indvars.iv)
  %79 = load i8, ptr %78, align 1, !tbaa !13
  %80 = icmp eq i8 %79, 79
  br i1 %80, label %81, label %82

81:                                               ; preds = %76
  br label %82

82:                                               ; preds = %71, %66, %60, %81, %76
  %.3103 = phi i32 [ %65, %81 ], [ %.2102113, %76 ], [ %65, %60 ], [ %65, %66 ], [ %65, %71 ]
  %.397 = phi i32 [ %50, %81 ], [ %.296114, %76 ], [ %50, %60 ], [ %50, %66 ], [ %50, %71 ]
  %.3 = phi i8 [ 79, %81 ], [ %.2115, %76 ], [ 78, %60 ], [ 83, %66 ], [ 76, %71 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %83 = load i32, ptr %2, align 4, !tbaa !8
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next, %84
  br i1 %85, label %60, label %._crit_edge118.loopexit, !llvm.loop !16

._crit_edge138:                                   ; preds = %183, %._crit_edge125
  %.4104.lcssa = phi i32 [ %.1101.lcssa, %._crit_edge125 ], [ %.5105, %183 ]
  %.498.lcssa = phi i32 [ %.195.lcssa, %._crit_edge125 ], [ %.599, %183 ]
  %.4.lcssa = phi i8 [ %.193.lcssa, %._crit_edge125 ], [ %.5, %183 ]
  %.084.lcssa = phi i32 [ 0, %._crit_edge125 ], [ %.1, %183 ]
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.084.lcssa)
          to label %186 unwind label %87

87:                                               ; preds = %186, %._crit_edge138
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %189

.lr.ph137:                                        ; preds = %._crit_edge125, %183
  %indvars.iv147 = phi i64 [ %indvars.iv.next148, %183 ], [ 0, %._crit_edge125 ]
  %.084134 = phi i32 [ %.1, %183 ], [ 0, %._crit_edge125 ]
  %.4133 = phi i8 [ %.5, %183 ], [ %.193.lcssa, %._crit_edge125 ]
  %.498132 = phi i32 [ %.599, %183 ], [ %.195.lcssa, %._crit_edge125 ]
  %.4104131 = phi i32 [ %.5105, %183 ], [ %.1101.lcssa, %._crit_edge125 ]
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %indvars.iv147)
  %90 = load i8, ptr %89, align 1, !tbaa !13
  %91 = icmp eq i8 %90, 68
  switch i8 %.4133, label %158 [
    i8 78, label %92
    i8 83, label %114
    i8 76, label %136
  ]

92:                                               ; preds = %.lr.ph137
  br i1 %91, label %183, label %93

93:                                               ; preds = %92
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %indvars.iv147)
  %95 = load i8, ptr %94, align 1, !tbaa !13
  %96 = icmp eq i8 %95, 69
  br i1 %96, label %183, label %97

97:                                               ; preds = %93
  %98 = add nsw i32 %.498132, -1
  %99 = load i32, ptr %1, align 4, !tbaa !8
  %100 = load i32, ptr %2, align 4, !tbaa !8
  %101 = call noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef %.4104131, i32 noundef %98, i32 noundef %99, i32 noundef %100)
  br i1 %101, label %102, label %183

102:                                              ; preds = %97
  %103 = sext i32 %98 to i64
  %104 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %103) #6
  %105 = sext i32 %.4104131 to i64
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %104, i64 noundef %105)
  %107 = load i8, ptr %106, align 1, !tbaa !13
  %108 = icmp eq i8 %107, 46
  br i1 %108, label %183, label %109

109:                                              ; preds = %102
  %110 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %103) #6
  %111 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %110, i64 noundef %105)
  %112 = load i8, ptr %111, align 1, !tbaa !13
  %113 = icmp eq i8 %112, 42
  br i1 %113, label %.sink.split, label %183

114:                                              ; preds = %.lr.ph137
  br i1 %91, label %183, label %115

115:                                              ; preds = %114
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %indvars.iv147)
  %117 = load i8, ptr %116, align 1, !tbaa !13
  %118 = icmp eq i8 %117, 69
  br i1 %118, label %183, label %119

119:                                              ; preds = %115
  %120 = add nsw i32 %.498132, 1
  %121 = load i32, ptr %1, align 4, !tbaa !8
  %122 = load i32, ptr %2, align 4, !tbaa !8
  %123 = call noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef %.4104131, i32 noundef %120, i32 noundef %121, i32 noundef %122)
  br i1 %123, label %124, label %183

124:                                              ; preds = %119
  %125 = sext i32 %120 to i64
  %126 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %125) #6
  %127 = sext i32 %.4104131 to i64
  %128 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %126, i64 noundef %127)
  %129 = load i8, ptr %128, align 1, !tbaa !13
  %130 = icmp eq i8 %129, 46
  br i1 %130, label %183, label %131

131:                                              ; preds = %124
  %132 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %125) #6
  %133 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %132, i64 noundef %127)
  %134 = load i8, ptr %133, align 1, !tbaa !13
  %135 = icmp eq i8 %134, 42
  br i1 %135, label %.sink.split, label %183

136:                                              ; preds = %.lr.ph137
  br i1 %91, label %183, label %137

137:                                              ; preds = %136
  %138 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %indvars.iv147)
  %139 = load i8, ptr %138, align 1, !tbaa !13
  %140 = icmp eq i8 %139, 69
  br i1 %140, label %183, label %141

141:                                              ; preds = %137
  %142 = add nsw i32 %.4104131, 1
  %143 = load i32, ptr %1, align 4, !tbaa !8
  %144 = load i32, ptr %2, align 4, !tbaa !8
  %145 = call noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef %142, i32 noundef %.498132, i32 noundef %143, i32 noundef %144)
  br i1 %145, label %146, label %183

146:                                              ; preds = %141
  %147 = sext i32 %.498132 to i64
  %148 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %147) #6
  %149 = sext i32 %142 to i64
  %150 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %148, i64 noundef %149)
  %151 = load i8, ptr %150, align 1, !tbaa !13
  %152 = icmp eq i8 %151, 46
  br i1 %152, label %183, label %153

153:                                              ; preds = %146
  %154 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %147) #6
  %155 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %154, i64 noundef %149)
  %156 = load i8, ptr %155, align 1, !tbaa !13
  %157 = icmp eq i8 %156, 42
  br i1 %157, label %.sink.split, label %183

158:                                              ; preds = %.lr.ph137
  br i1 %91, label %183, label %159

159:                                              ; preds = %158
  %160 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %indvars.iv147)
  %161 = load i8, ptr %160, align 1, !tbaa !13
  %162 = icmp eq i8 %161, 69
  br i1 %162, label %183, label %163

163:                                              ; preds = %159
  %164 = add nsw i32 %.4104131, -1
  %165 = load i32, ptr %1, align 4, !tbaa !8
  %166 = load i32, ptr %2, align 4, !tbaa !8
  %167 = call noundef zeroext i1 @_Z12isInsideGridiiii(i32 noundef %164, i32 noundef %.498132, i32 noundef %165, i32 noundef %166)
  br i1 %167, label %168, label %183

168:                                              ; preds = %163
  %169 = sext i32 %.498132 to i64
  %170 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %169) #6
  %171 = sext i32 %164 to i64
  %172 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %170, i64 noundef %171)
  %173 = load i8, ptr %172, align 1, !tbaa !13
  %174 = icmp eq i8 %173, 46
  br i1 %174, label %183, label %175

175:                                              ; preds = %168
  %176 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %169) #6
  %177 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %176, i64 noundef %171)
  %178 = load i8, ptr %177, align 1, !tbaa !13
  %179 = icmp eq i8 %178, 42
  br i1 %179, label %.sink.split, label %183

.sink.split:                                      ; preds = %175, %153, %131, %109
  %.sink = phi i64 [ %103, %109 ], [ %125, %131 ], [ %147, %153 ], [ %169, %175 ]
  %.sink150 = phi i64 [ %105, %109 ], [ %127, %131 ], [ %149, %153 ], [ %171, %175 ]
  %.5105.ph = phi i32 [ %.4104131, %109 ], [ %.4104131, %131 ], [ %142, %153 ], [ %164, %175 ]
  %.599.ph = phi i32 [ %98, %109 ], [ %120, %131 ], [ %.498132, %153 ], [ %.498132, %175 ]
  %.5.ph = phi i8 [ 78, %109 ], [ 83, %131 ], [ 76, %153 ], [ %.4133, %175 ]
  %180 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink) #6
  %181 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %180, i64 noundef %.sink150)
  store i8 46, ptr %181, align 1, !tbaa !13
  %182 = add nsw i32 %.084134, 1
  br label %183

183:                                              ; preds = %.sink.split, %168, %102, %159, %158, %146, %137, %136, %124, %115, %114, %93, %92, %109, %97, %153, %141, %175, %163, %119, %131
  %.5105 = phi i32 [ %.4104131, %109 ], [ %.4104131, %97 ], [ %.4104131, %131 ], [ %.4104131, %119 ], [ %.4104131, %153 ], [ %.4104131, %141 ], [ %.4104131, %175 ], [ %.4104131, %163 ], [ %.4104131, %92 ], [ %.4104131, %93 ], [ %.4104131, %114 ], [ %.4104131, %115 ], [ %.4104131, %124 ], [ %.4104131, %136 ], [ %.4104131, %137 ], [ %142, %146 ], [ %.4104131, %158 ], [ %.4104131, %159 ], [ %.4104131, %102 ], [ %164, %168 ], [ %.5105.ph, %.sink.split ]
  %.599 = phi i32 [ %.498132, %109 ], [ %.498132, %97 ], [ %.498132, %131 ], [ %.498132, %119 ], [ %.498132, %153 ], [ %.498132, %141 ], [ %.498132, %175 ], [ %.498132, %163 ], [ %.498132, %92 ], [ %.498132, %93 ], [ %.498132, %114 ], [ %.498132, %115 ], [ %120, %124 ], [ %.498132, %136 ], [ %.498132, %137 ], [ %.498132, %146 ], [ %.498132, %158 ], [ %.498132, %159 ], [ %98, %102 ], [ %.498132, %168 ], [ %.599.ph, %.sink.split ]
  %.5 = phi i8 [ 78, %109 ], [ 78, %97 ], [ 83, %131 ], [ 83, %119 ], [ 76, %153 ], [ 76, %141 ], [ %.4133, %175 ], [ %.4133, %163 ], [ 76, %92 ], [ 79, %93 ], [ 79, %114 ], [ 76, %115 ], [ 83, %124 ], [ 83, %136 ], [ 78, %137 ], [ 76, %146 ], [ 78, %158 ], [ 83, %159 ], [ 78, %102 ], [ %.4133, %168 ], [ %.5.ph, %.sink.split ]
  %.1 = phi i32 [ %.084134, %109 ], [ %.084134, %97 ], [ %.084134, %131 ], [ %.084134, %119 ], [ %.084134, %153 ], [ %.084134, %141 ], [ %.084134, %175 ], [ %.084134, %163 ], [ %.084134, %92 ], [ %.084134, %93 ], [ %.084134, %114 ], [ %.084134, %115 ], [ %.084134, %124 ], [ %.084134, %136 ], [ %.084134, %137 ], [ %.084134, %146 ], [ %.084134, %158 ], [ %.084134, %159 ], [ %.084134, %102 ], [ %.084134, %168 ], [ %182, %.sink.split ]
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %184 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %185 = icmp ugt i64 %184, %indvars.iv.next148
  br i1 %185, label %.lr.ph137, label %._crit_edge138, !llvm.loop !17

186:                                              ; preds = %._crit_edge138
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %188 unwind label %87

188:                                              ; preds = %186
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %7, !llvm.loop !18

189:                                              ; preds = %87, %45, %37
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %88, %87 ], [ %38, %37 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %190

.critedge:                                        ; preds = %19, %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

190:                                              ; preds = %189, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %189 ], [ %36, %35 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #4 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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 uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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


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