; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/URI (1121)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<char>, std::allocator<std::vector<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<char>, std::allocator<std::vector<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<char>, std::allocator<std::vector<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<char>, std::allocator<std::vector<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.12" = type { i8 }

@v = external dso_local global %"class.std::vector", align 8
@vi = external dso_local global %"class.std::vector.0", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca i8, align 1
  %12 = alloca %"class.std::allocator.7", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector.10", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::allocator.12", align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = 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 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  br label %21

21:                                               ; preds = %366, %0
  %22 = 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)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = getelementptr i8, ptr %25, i64 -24
  %27 = load i64, ptr %26, align 8
  %28 = getelementptr inbounds i8, ptr %24, i64 %27
  %29 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %28)
  br i1 %29, label %30, label %39

30:                                               ; preds = %21
  %31 = load i32, ptr %2, align 4, !tbaa !8
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %39

33:                                               ; preds = %30
  %34 = load i32, ptr %3, align 4, !tbaa !8
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load i32, ptr %4, align 4, !tbaa !8
  %38 = icmp ne i32 %37, 0
  br label %39

39:                                               ; preds = %36, %33, %30, %21
  %40 = phi i1 [ false, %33 ], [ false, %30 ], [ false, %21 ], [ %38, %36 ]
  br i1 %40, label %41, label %371

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !8
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %44 = load i32, ptr %3, align 4, !tbaa !8
  %45 = sext i32 %44 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 46, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIcSaIcEEC2EmRKcRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %45, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %46 unwind label %59

46:                                               ; preds = %41
  invoke void @_ZNSt6vectorIS_IcSaIcEESaIS1_EE6assignEmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %43, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %47 unwind label %63

47:                                               ; preds = %46
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  %48 = load i32, ptr %2, align 4, !tbaa !8
  %49 = sext i32 %48 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %50 = load i32, ptr %3, align 4, !tbaa !8
  %51 = sext i32 %50 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %51, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %52 unwind label %68

52:                                               ; preds = %47
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE6assignEmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) @vi, i64 noundef %49, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %53 unwind label %72

53:                                               ; preds = %52
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !8
  br label %54

54:                                               ; preds = %135, %53
  %55 = load i32, ptr %18, align 4, !tbaa !8
  %56 = load i32, ptr %2, align 4, !tbaa !8
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %77, label %58

58:                                               ; preds = %54
  store i32 4, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %138

59:                                               ; preds = %41
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %13, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %14, align 4
  br label %67

63:                                               ; preds = %46
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %13, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %14, align 4
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %67

67:                                               ; preds = %63, %59
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  br label %370

68:                                               ; preds = %47
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %13, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %14, align 4
  br label %76

72:                                               ; preds = %52
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %76

76:                                               ; preds = %72, %68
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %370

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

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

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

83:                                               ; preds = %78
  %84 = load i32, ptr %18, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %85) #6
  %87 = load i32, ptr %20, align 4, !tbaa !8
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88) #6
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %89)
  %91 = load i32, ptr %18, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %92) #6
  %94 = load i32, ptr %20, align 4, !tbaa !8
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95) #6
  %97 = load i8, ptr %96, align 1, !tbaa !11
  %98 = sext i8 %97 to i32
  %99 = icmp ne i32 %98, 42
  br i1 %99, label %100, label %130

100:                                              ; preds = %83
  %101 = load i32, ptr %18, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %102) #6
  %104 = load i32, ptr %20, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %105) #6
  %107 = load i8, ptr %106, align 1, !tbaa !11
  %108 = sext i8 %107 to i32
  %109 = icmp ne i32 %108, 35
  br i1 %109, label %110, label %130

110:                                              ; preds = %100
  %111 = load i32, ptr %18, align 4, !tbaa !8
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %112) #6
  %114 = load i32, ptr %20, align 4, !tbaa !8
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %115) #6
  %117 = load i8, ptr %116, align 1, !tbaa !11
  %118 = sext i8 %117 to i32
  %119 = icmp ne i32 %118, 46
  br i1 %119, label %120, label %130

120:                                              ; preds = %110
  %121 = load i32, ptr %18, align 4, !tbaa !8
  store i32 %121, ptr %5, align 4, !tbaa !8
  %122 = load i32, ptr %20, align 4, !tbaa !8
  store i32 %122, ptr %6, align 4, !tbaa !8
  %123 = load i32, ptr %18, align 4, !tbaa !8
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %124) #6
  %126 = load i32, ptr %20, align 4, !tbaa !8
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %127) #6
  %129 = load i8, ptr %128, align 1, !tbaa !11
  store i8 %129, ptr %8, align 1, !tbaa !11
  br label %130

130:                                              ; preds = %120, %110, %100, %83
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %20, align 4, !tbaa !8
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %20, align 4, !tbaa !8
  br label %78, !llvm.loop !12

134:                                              ; preds = %82
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %18, align 4, !tbaa !8
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %18, align 4, !tbaa !8
  br label %54, !llvm.loop !14

138:                                              ; preds = %58
  br label %139

139:                                              ; preds = %365, %138
  %140 = load i32, ptr %4, align 4, !tbaa !8
  %141 = add nsw i32 %140, -1
  store i32 %141, ptr %4, align 4, !tbaa !8
  %142 = icmp ne i32 %140, 0
  br i1 %142, label %143, label %366

143:                                              ; preds = %139
  %144 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %145 = load i8, ptr %7, align 1, !tbaa !11
  %146 = sext i8 %145 to i32
  %147 = icmp eq i32 %146, 68
  br i1 %147, label %148, label %167

148:                                              ; preds = %143
  %149 = load i8, ptr %8, align 1, !tbaa !11
  %150 = sext i8 %149 to i32
  %151 = icmp eq i32 %150, 78
  br i1 %151, label %152, label %153

152:                                              ; preds = %148
  store i8 76, ptr %8, align 1, !tbaa !11
  br label %166

153:                                              ; preds = %148
  %154 = load i8, ptr %8, align 1, !tbaa !11
  %155 = sext i8 %154 to i32
  %156 = icmp eq i32 %155, 76
  br i1 %156, label %157, label %158

157:                                              ; preds = %153
  store i8 83, ptr %8, align 1, !tbaa !11
  br label %165

158:                                              ; preds = %153
  %159 = load i8, ptr %8, align 1, !tbaa !11
  %160 = sext i8 %159 to i32
  %161 = icmp eq i32 %160, 83
  br i1 %161, label %162, label %163

162:                                              ; preds = %158
  store i8 79, ptr %8, align 1, !tbaa !11
  br label %164

163:                                              ; preds = %158
  store i8 78, ptr %8, align 1, !tbaa !11
  br label %164

164:                                              ; preds = %163, %162
  br label %165

165:                                              ; preds = %164, %157
  br label %166

166:                                              ; preds = %165, %152
  br label %365

167:                                              ; preds = %143
  %168 = load i8, ptr %7, align 1, !tbaa !11
  %169 = sext i8 %168 to i32
  %170 = icmp eq i32 %169, 69
  br i1 %170, label %171, label %190

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

175:                                              ; preds = %171
  store i8 79, ptr %8, align 1, !tbaa !11
  br label %189

176:                                              ; preds = %171
  %177 = load i8, ptr %8, align 1, !tbaa !11
  %178 = sext i8 %177 to i32
  %179 = icmp eq i32 %178, 79
  br i1 %179, label %180, label %181

180:                                              ; preds = %176
  store i8 83, ptr %8, align 1, !tbaa !11
  br label %188

181:                                              ; preds = %176
  %182 = load i8, ptr %8, align 1, !tbaa !11
  %183 = sext i8 %182 to i32
  %184 = icmp eq i32 %183, 83
  br i1 %184, label %185, label %186

185:                                              ; preds = %181
  store i8 76, ptr %8, align 1, !tbaa !11
  br label %187

186:                                              ; preds = %181
  store i8 78, ptr %8, align 1, !tbaa !11
  br label %187

187:                                              ; preds = %186, %185
  br label %188

188:                                              ; preds = %187, %180
  br label %189

189:                                              ; preds = %188, %175
  br label %364

190:                                              ; preds = %167
  %191 = load i8, ptr %8, align 1, !tbaa !11
  %192 = sext i8 %191 to i32
  %193 = icmp eq i32 %192, 78
  br i1 %193, label %194, label %232

194:                                              ; preds = %190
  %195 = load i32, ptr %5, align 4, !tbaa !8
  %196 = sub nsw i32 %195, 1
  %197 = icmp sge i32 %196, 0
  br i1 %197, label %198, label %231

198:                                              ; preds = %194
  %199 = load i32, ptr %5, align 4, !tbaa !8
  %200 = sub nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %201) #6
  %203 = load i32, ptr %6, align 4, !tbaa !8
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %204) #6
  %206 = load i8, ptr %205, align 1, !tbaa !11
  %207 = sext i8 %206 to i32
  %208 = icmp ne i32 %207, 35
  br i1 %208, label %209, label %231

209:                                              ; preds = %198
  %210 = load i32, ptr %5, align 4, !tbaa !8
  %211 = sub nsw i32 %210, 1
  store i32 %211, ptr %5, align 4, !tbaa !8
  %212 = load i32, ptr %5, align 4, !tbaa !8
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %213) #6
  %215 = load i32, ptr %6, align 4, !tbaa !8
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %216) #6
  %218 = load i8, ptr %217, align 1, !tbaa !11
  %219 = sext i8 %218 to i32
  %220 = icmp eq i32 %219, 42
  br i1 %220, label %221, label %230

221:                                              ; preds = %209
  %222 = load i32, ptr %5, align 4, !tbaa !8
  %223 = sext i32 %222 to i64
  %224 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %223) #6
  %225 = load i32, ptr %6, align 4, !tbaa !8
  %226 = sext i32 %225 to i64
  %227 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef %226) #6
  store i8 46, ptr %227, align 1, !tbaa !11
  %228 = load i32, ptr %9, align 4, !tbaa !8
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %9, align 4, !tbaa !8
  br label %230

230:                                              ; preds = %221, %209
  br label %231

231:                                              ; preds = %230, %198, %194
  br label %363

232:                                              ; preds = %190
  %233 = load i8, ptr %8, align 1, !tbaa !11
  %234 = sext i8 %233 to i32
  %235 = icmp eq i32 %234, 79
  br i1 %235, label %236, label %274

236:                                              ; preds = %232
  %237 = load i32, ptr %6, align 4, !tbaa !8
  %238 = sub nsw i32 %237, 1
  %239 = icmp sge i32 %238, 0
  br i1 %239, label %240, label %273

240:                                              ; preds = %236
  %241 = load i32, ptr %5, align 4, !tbaa !8
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %242) #6
  %244 = load i32, ptr %6, align 4, !tbaa !8
  %245 = sub nsw i32 %244, 1
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %246) #6
  %248 = load i8, ptr %247, align 1, !tbaa !11
  %249 = sext i8 %248 to i32
  %250 = icmp ne i32 %249, 35
  br i1 %250, label %251, label %273

251:                                              ; preds = %240
  %252 = load i32, ptr %6, align 4, !tbaa !8
  %253 = sub nsw i32 %252, 1
  store i32 %253, ptr %6, align 4, !tbaa !8
  %254 = load i32, ptr %5, align 4, !tbaa !8
  %255 = sext i32 %254 to i64
  %256 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %255) #6
  %257 = load i32, ptr %6, align 4, !tbaa !8
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %256, i64 noundef %258) #6
  %260 = load i8, ptr %259, align 1, !tbaa !11
  %261 = sext i8 %260 to i32
  %262 = icmp eq i32 %261, 42
  br i1 %262, label %263, label %272

263:                                              ; preds = %251
  %264 = load i32, ptr %5, align 4, !tbaa !8
  %265 = sext i32 %264 to i64
  %266 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %265) #6
  %267 = load i32, ptr %6, align 4, !tbaa !8
  %268 = sext i32 %267 to i64
  %269 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %268) #6
  store i8 46, ptr %269, align 1, !tbaa !11
  %270 = load i32, ptr %9, align 4, !tbaa !8
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %9, align 4, !tbaa !8
  br label %272

272:                                              ; preds = %263, %251
  br label %273

273:                                              ; preds = %272, %240, %236
  br label %362

274:                                              ; preds = %232
  %275 = load i8, ptr %8, align 1, !tbaa !11
  %276 = sext i8 %275 to i32
  %277 = icmp eq i32 %276, 83
  br i1 %277, label %278, label %317

278:                                              ; preds = %274
  %279 = load i32, ptr %5, align 4, !tbaa !8
  %280 = add nsw i32 %279, 1
  %281 = load i32, ptr %2, align 4, !tbaa !8
  %282 = icmp slt i32 %280, %281
  br i1 %282, label %283, label %316

283:                                              ; preds = %278
  %284 = load i32, ptr %5, align 4, !tbaa !8
  %285 = add nsw i32 %284, 1
  %286 = sext i32 %285 to i64
  %287 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %286) #6
  %288 = load i32, ptr %6, align 4, !tbaa !8
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %287, i64 noundef %289) #6
  %291 = load i8, ptr %290, align 1, !tbaa !11
  %292 = sext i8 %291 to i32
  %293 = icmp ne i32 %292, 35
  br i1 %293, label %294, label %316

294:                                              ; preds = %283
  %295 = load i32, ptr %5, align 4, !tbaa !8
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %5, align 4, !tbaa !8
  %297 = load i32, ptr %5, align 4, !tbaa !8
  %298 = sext i32 %297 to i64
  %299 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %298) #6
  %300 = load i32, ptr %6, align 4, !tbaa !8
  %301 = sext i32 %300 to i64
  %302 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %299, i64 noundef %301) #6
  %303 = load i8, ptr %302, align 1, !tbaa !11
  %304 = sext i8 %303 to i32
  %305 = icmp eq i32 %304, 42
  br i1 %305, label %306, label %315

306:                                              ; preds = %294
  %307 = load i32, ptr %5, align 4, !tbaa !8
  %308 = sext i32 %307 to i64
  %309 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %308) #6
  %310 = load i32, ptr %6, align 4, !tbaa !8
  %311 = sext i32 %310 to i64
  %312 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %309, i64 noundef %311) #6
  store i8 46, ptr %312, align 1, !tbaa !11
  %313 = load i32, ptr %9, align 4, !tbaa !8
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %9, align 4, !tbaa !8
  br label %315

315:                                              ; preds = %306, %294
  br label %316

316:                                              ; preds = %315, %283, %278
  br label %361

317:                                              ; preds = %274
  %318 = load i8, ptr %8, align 1, !tbaa !11
  %319 = sext i8 %318 to i32
  %320 = icmp eq i32 %319, 76
  br i1 %320, label %321, label %360

321:                                              ; preds = %317
  %322 = load i32, ptr %6, align 4, !tbaa !8
  %323 = add nsw i32 %322, 1
  %324 = load i32, ptr %3, align 4, !tbaa !8
  %325 = icmp slt i32 %323, %324
  br i1 %325, label %326, label %359

326:                                              ; preds = %321
  %327 = load i32, ptr %5, align 4, !tbaa !8
  %328 = sext i32 %327 to i64
  %329 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %328) #6
  %330 = load i32, ptr %6, align 4, !tbaa !8
  %331 = add nsw i32 %330, 1
  %332 = sext i32 %331 to i64
  %333 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %329, i64 noundef %332) #6
  %334 = load i8, ptr %333, align 1, !tbaa !11
  %335 = sext i8 %334 to i32
  %336 = icmp ne i32 %335, 35
  br i1 %336, label %337, label %359

337:                                              ; preds = %326
  %338 = load i32, ptr %6, align 4, !tbaa !8
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %6, align 4, !tbaa !8
  %340 = load i32, ptr %5, align 4, !tbaa !8
  %341 = sext i32 %340 to i64
  %342 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %341) #6
  %343 = load i32, ptr %6, align 4, !tbaa !8
  %344 = sext i32 %343 to i64
  %345 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %342, i64 noundef %344) #6
  %346 = load i8, ptr %345, align 1, !tbaa !11
  %347 = sext i8 %346 to i32
  %348 = icmp eq i32 %347, 42
  br i1 %348, label %349, label %358

349:                                              ; preds = %337
  %350 = load i32, ptr %5, align 4, !tbaa !8
  %351 = sext i32 %350 to i64
  %352 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %351) #6
  %353 = load i32, ptr %6, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %352, i64 noundef %354) #6
  store i8 46, ptr %355, align 1, !tbaa !11
  %356 = load i32, ptr %9, align 4, !tbaa !8
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %9, align 4, !tbaa !8
  br label %358

358:                                              ; preds = %349, %337
  br label %359

359:                                              ; preds = %358, %326, %321
  br label %360

360:                                              ; preds = %359, %317
  br label %361

361:                                              ; preds = %360, %316
  br label %362

362:                                              ; preds = %361, %273
  br label %363

363:                                              ; preds = %362, %231
  br label %364

364:                                              ; preds = %363, %189
  br label %365

365:                                              ; preds = %364, %166
  br label %139, !llvm.loop !15

366:                                              ; preds = %139
  %367 = load i32, ptr %9, align 4, !tbaa !8
  %368 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %367)
  %369 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %368, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %21, !llvm.loop !16

370:                                              ; preds = %76, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, 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 %373

371:                                              ; preds = %39
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, 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
  %372 = load i32, ptr %1, align 4
  ret i32 %372

373:                                              ; preds = %370
  %374 = load ptr, ptr %13, align 8
  %375 = load i32, ptr %14, align 4
  %376 = insertvalue { ptr, i32 } poison, ptr %374, 0
  %377 = insertvalue { ptr, i32 } %376, i32 %375, 1
  resume { ptr, i32 } %377
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 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 dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<char>, std::allocator<std::vector<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<char>, std::allocator<std::vector<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<char>, std::allocator<std::vector<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<char>, std::allocator<std::vector<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.12" = type { i8 }

@v = external dso_local global %"class.std::vector", align 8
@vi = external dso_local global %"class.std::vector.0", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %5 = alloca %"class.std::vector.5", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::allocator.7", align 1
  %8 = alloca %"class.std::vector.10", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::allocator.12", align 1
  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 1, ptr nonnull %4) #6
  br label %11

11:                                               ; preds = %._crit_edge134, %0
  %.086 = phi i32 [ undef, %0 ], [ %.490.lcssa, %._crit_edge134 ]
  %.080 = phi i32 [ undef, %0 ], [ %.484.lcssa, %._crit_edge134 ]
  %.077 = phi i8 [ undef, %0 ], [ %.4.lcssa, %._crit_edge134 ]
  %12 = 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)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr %14, i64 %17
  %19 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %18)
  %20 = load i32, ptr %1, align 4
  %21 = icmp ne i32 %20, 0
  %or.cond = select i1 %19, i1 %21, i1 false
  %22 = load i32, ptr %2, align 4
  %23 = icmp ne i32 %22, 0
  %or.cond3 = select i1 %or.cond, i1 %23, i1 false
  %24 = load i32, ptr %3, align 4
  %25 = icmp ne i32 %24, 0
  %or.cond5 = select i1 %or.cond3, i1 %25, i1 false
  br i1 %or.cond5, label %26, label %.critedge

26:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %27 = sext i32 %22 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  store i8 46, ptr %6, align 1, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIcSaIcEEC2EmRKcRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %28 unwind label %47

28:                                               ; preds = %26
  %29 = sext i32 %20 to i64
  invoke void @_ZNSt6vectorIS_IcSaIcEESaIS1_EE6assignEmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %29, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %30 unwind label %49

30:                                               ; preds = %28
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %31 = load i32, ptr %1, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  %32 = load i32, ptr %2, align 4, !tbaa !10
  %33 = sext i32 %32 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %33, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %34 unwind label %52

34:                                               ; preds = %30
  %35 = sext i32 %31 to i64
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE6assignEmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) @vi, i64 noundef %35, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %36 unwind label %54

36:                                               ; preds = %34
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  %37 = load i32, ptr %1, align 4, !tbaa !10
  %38 = icmp sgt i32 %37, 0
  %39 = load i32, ptr %2, align 4
  %40 = icmp sgt i32 %39, 0
  %or.cond143 = select i1 %38, i1 %40, i1 false
  br i1 %or.cond143, label %.preheader, label %.preheader112

.preheader112:                                    ; preds = %._crit_edge, %36
  %.187.lcssa = phi i32 [ %.086, %36 ], [ %.288.lcssa, %._crit_edge ]
  %.181.lcssa = phi i32 [ %.080, %36 ], [ %.282.lcssa, %._crit_edge ]
  %.178.lcssa = phi i8 [ %.077, %36 ], [ %.279.lcssa, %._crit_edge ]
  %41 = load i32, ptr %3, align 4, !tbaa !10
  %42 = add nsw i32 %41, -1
  store i32 %42, ptr %3, align 4, !tbaa !10
  %.not128 = icmp eq i32 %41, 0
  br i1 %.not128, label %._crit_edge134, label %.lr.ph133

.preheader:                                       ; preds = %36, %._crit_edge
  %43 = phi i32 [ %57, %._crit_edge ], [ %37, %36 ]
  %44 = phi i32 [ %58, %._crit_edge ], [ %39, %36 ]
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %._crit_edge ], [ 0, %36 ]
  %.178121 = phi i8 [ %.279.lcssa, %._crit_edge ], [ %.077, %36 ]
  %.181120 = phi i32 [ %.282.lcssa, %._crit_edge ], [ %.080, %36 ]
  %.187119 = phi i32 [ %.288.lcssa, %._crit_edge ], [ %.086, %36 ]
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %46 = trunc nuw nsw i64 %indvars.iv140 to i32
  br label %61

47:                                               ; preds = %26
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %28
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %51

51:                                               ; preds = %49, %47
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %175

52:                                               ; preds = %30
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %34
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %56

56:                                               ; preds = %54, %52
  %.pn102 = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %175

._crit_edge.loopexit:                             ; preds = %81
  %.pre = load i32, ptr %1, align 4, !tbaa !10
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %57 = phi i32 [ %43, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %58 = phi i32 [ %44, %.preheader ], [ %82, %._crit_edge.loopexit ]
  %.288.lcssa = phi i32 [ %.187119, %.preheader ], [ %.389, %._crit_edge.loopexit ]
  %.282.lcssa = phi i32 [ %.181120, %.preheader ], [ %.383, %._crit_edge.loopexit ]
  %.279.lcssa = phi i8 [ %.178121, %.preheader ], [ %.3, %._crit_edge.loopexit ]
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %59 = sext i32 %57 to i64
  %60 = icmp slt i64 %indvars.iv.next141, %59
  br i1 %60, label %.preheader, label %.preheader112, !llvm.loop !12

61:                                               ; preds = %.lr.ph, %81
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %81 ]
  %.279115 = phi i8 [ %.178121, %.lr.ph ], [ %.3, %81 ]
  %.282114 = phi i32 [ %.181120, %.lr.ph ], [ %.383, %81 ]
  %.288113 = phi i32 [ %.187119, %.lr.ph ], [ %.389, %81 ]
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %indvars.iv140) #6
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %indvars.iv) #6
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %63)
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %indvars.iv140) #6
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %indvars.iv) #6
  %67 = load i8, ptr %66, align 1, !tbaa !8
  %.not109 = icmp eq i8 %67, 42
  br i1 %.not109, label %81, label %68

68:                                               ; preds = %61
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %indvars.iv140) #6
  %70 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %indvars.iv) #6
  %71 = load i8, ptr %70, align 1, !tbaa !8
  %.not110 = icmp eq i8 %71, 35
  br i1 %.not110, label %81, label %72

72:                                               ; preds = %68
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %indvars.iv140) #6
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %indvars.iv) #6
  %75 = load i8, ptr %74, align 1, !tbaa !8
  %.not111 = icmp eq i8 %75, 46
  br i1 %.not111, label %81, label %76

76:                                               ; preds = %72
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %indvars.iv140) #6
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv) #6
  %79 = load i8, ptr %78, align 1, !tbaa !8
  %80 = trunc nuw nsw i64 %indvars.iv to i32
  br label %81

81:                                               ; preds = %61, %68, %72, %76
  %.389 = phi i32 [ %46, %76 ], [ %.288113, %72 ], [ %.288113, %68 ], [ %.288113, %61 ]
  %.383 = phi i32 [ %80, %76 ], [ %.282114, %72 ], [ %.282114, %68 ], [ %.282114, %61 ]
  %.3 = phi i8 [ %79, %76 ], [ %.279115, %72 ], [ %.279115, %68 ], [ %.279115, %61 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %82 = load i32, ptr %2, align 4, !tbaa !10
  %83 = sext i32 %82 to i64
  %84 = icmp slt i64 %indvars.iv.next, %83
  br i1 %84, label %61, label %._crit_edge.loopexit, !llvm.loop !15

.lr.ph133:                                        ; preds = %.preheader112, %170
  %.075132 = phi i32 [ %.176, %170 ], [ 0, %.preheader112 ]
  %.4131 = phi i8 [ %.5, %170 ], [ %.178.lcssa, %.preheader112 ]
  %.484130 = phi i32 [ %.585, %170 ], [ %.181.lcssa, %.preheader112 ]
  %.490129 = phi i32 [ %.591, %170 ], [ %.187.lcssa, %.preheader112 ]
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %4)
  %86 = load i8, ptr %4, align 1, !tbaa !8
  switch i8 %86, label %95 [
    i8 68, label %87
    i8 69, label %91
  ]

87:                                               ; preds = %.lr.ph133
  switch i8 %.4131, label %90 [
    i8 78, label %170
    i8 76, label %88
    i8 83, label %89
  ]

88:                                               ; preds = %87
  br label %170

89:                                               ; preds = %87
  br label %170

90:                                               ; preds = %87
  br label %170

91:                                               ; preds = %.lr.ph133
  switch i8 %.4131, label %94 [
    i8 78, label %170
    i8 79, label %92
    i8 83, label %93
  ]

92:                                               ; preds = %91
  br label %170

93:                                               ; preds = %91
  br label %170

94:                                               ; preds = %91
  br label %170

95:                                               ; preds = %.lr.ph133
  switch i8 %.4131, label %170 [
    i8 78, label %96
    i8 79, label %114
    i8 83, label %132
    i8 76, label %151
  ]

96:                                               ; preds = %95
  %97 = add nsw i32 %.490129, -1
  %98 = icmp sgt i32 %.490129, 0
  br i1 %98, label %99, label %170

99:                                               ; preds = %96
  %100 = zext nneg i32 %97 to i64
  %101 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %100) #6
  %102 = sext i32 %.484130 to i64
  %103 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %102) #6
  %104 = load i8, ptr %103, align 1, !tbaa !8
  %.not108 = icmp eq i8 %104, 35
  br i1 %.not108, label %170, label %105

105:                                              ; preds = %99
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %100) #6
  %107 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %102) #6
  %108 = load i8, ptr %107, align 1, !tbaa !8
  %109 = icmp eq i8 %108, 42
  br i1 %109, label %110, label %170

110:                                              ; preds = %105
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %100) #6
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %102) #6
  store i8 46, ptr %112, align 1, !tbaa !8
  %113 = add nsw i32 %.075132, 1
  br label %170

114:                                              ; preds = %95
  %115 = add nsw i32 %.484130, -1
  %116 = icmp sgt i32 %.484130, 0
  br i1 %116, label %117, label %170

117:                                              ; preds = %114
  %118 = sext i32 %.490129 to i64
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %118) #6
  %120 = zext nneg i32 %115 to i64
  %121 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %120) #6
  %122 = load i8, ptr %121, align 1, !tbaa !8
  %.not107 = icmp eq i8 %122, 35
  br i1 %.not107, label %170, label %123

123:                                              ; preds = %117
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %118) #6
  %125 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %120) #6
  %126 = load i8, ptr %125, align 1, !tbaa !8
  %127 = icmp eq i8 %126, 42
  br i1 %127, label %128, label %170

128:                                              ; preds = %123
  %129 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %118) #6
  %130 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %120) #6
  store i8 46, ptr %130, align 1, !tbaa !8
  %131 = add nsw i32 %.075132, 1
  br label %170

132:                                              ; preds = %95
  %133 = add nsw i32 %.490129, 1
  %134 = load i32, ptr %1, align 4, !tbaa !10
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %136, label %170

136:                                              ; preds = %132
  %137 = sext i32 %133 to i64
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %137) #6
  %139 = sext i32 %.484130 to i64
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %139) #6
  %141 = load i8, ptr %140, align 1, !tbaa !8
  %.not106 = icmp eq i8 %141, 35
  br i1 %.not106, label %170, label %142

142:                                              ; preds = %136
  %143 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %137) #6
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %139) #6
  %145 = load i8, ptr %144, align 1, !tbaa !8
  %146 = icmp eq i8 %145, 42
  br i1 %146, label %147, label %170

147:                                              ; preds = %142
  %148 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %137) #6
  %149 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef %139) #6
  store i8 46, ptr %149, align 1, !tbaa !8
  %150 = add nsw i32 %.075132, 1
  br label %170

151:                                              ; preds = %95
  %152 = add nsw i32 %.484130, 1
  %153 = load i32, ptr %2, align 4, !tbaa !10
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %155, label %170

155:                                              ; preds = %151
  %156 = sext i32 %.490129 to i64
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %156) #6
  %158 = sext i32 %152 to i64
  %159 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %158) #6
  %160 = load i8, ptr %159, align 1, !tbaa !8
  %.not105 = icmp eq i8 %160, 35
  br i1 %.not105, label %170, label %161

161:                                              ; preds = %155
  %162 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %156) #6
  %163 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %158) #6
  %164 = load i8, ptr %163, align 1, !tbaa !8
  %165 = icmp eq i8 %164, 42
  br i1 %165, label %166, label %170

166:                                              ; preds = %161
  %167 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IcSaIcEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %156) #6
  %168 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %158) #6
  store i8 46, ptr %168, align 1, !tbaa !8
  %169 = add nsw i32 %.075132, 1
  br label %170

170:                                              ; preds = %95, %91, %87, %92, %94, %93, %123, %128, %117, %114, %161, %166, %155, %151, %132, %136, %147, %142, %96, %99, %110, %105, %89, %90, %88
  %.591 = phi i32 [ %.490129, %88 ], [ %.490129, %89 ], [ %.490129, %90 ], [ %.490129, %92 ], [ %.490129, %93 ], [ %.490129, %94 ], [ %97, %110 ], [ %97, %105 ], [ %.490129, %99 ], [ %.490129, %96 ], [ %.490129, %128 ], [ %.490129, %123 ], [ %.490129, %117 ], [ %.490129, %114 ], [ %133, %147 ], [ %133, %142 ], [ %.490129, %136 ], [ %.490129, %132 ], [ %.490129, %166 ], [ %.490129, %161 ], [ %.490129, %155 ], [ %.490129, %151 ], [ %.490129, %87 ], [ %.490129, %91 ], [ %.490129, %95 ]
  %.585 = phi i32 [ %.484130, %88 ], [ %.484130, %89 ], [ %.484130, %90 ], [ %.484130, %92 ], [ %.484130, %93 ], [ %.484130, %94 ], [ %.484130, %110 ], [ %.484130, %105 ], [ %.484130, %99 ], [ %.484130, %96 ], [ %115, %128 ], [ %115, %123 ], [ %.484130, %117 ], [ %.484130, %114 ], [ %.484130, %147 ], [ %.484130, %142 ], [ %.484130, %136 ], [ %.484130, %132 ], [ %152, %166 ], [ %152, %161 ], [ %.484130, %155 ], [ %.484130, %151 ], [ %.484130, %87 ], [ %.484130, %91 ], [ %.484130, %95 ]
  %.5 = phi i8 [ 83, %88 ], [ 79, %89 ], [ 78, %90 ], [ 83, %92 ], [ 76, %93 ], [ 78, %94 ], [ 78, %110 ], [ 78, %105 ], [ 78, %99 ], [ 78, %96 ], [ 79, %128 ], [ 79, %123 ], [ 79, %117 ], [ 79, %114 ], [ 83, %147 ], [ 83, %142 ], [ 83, %136 ], [ 83, %132 ], [ 76, %166 ], [ 76, %161 ], [ 76, %155 ], [ 76, %151 ], [ 76, %87 ], [ 79, %91 ], [ %.4131, %95 ]
  %.176 = phi i32 [ %.075132, %88 ], [ %.075132, %89 ], [ %.075132, %90 ], [ %.075132, %92 ], [ %.075132, %93 ], [ %.075132, %94 ], [ %113, %110 ], [ %.075132, %105 ], [ %.075132, %99 ], [ %.075132, %96 ], [ %131, %128 ], [ %.075132, %123 ], [ %.075132, %117 ], [ %.075132, %114 ], [ %150, %147 ], [ %.075132, %142 ], [ %.075132, %136 ], [ %.075132, %132 ], [ %169, %166 ], [ %.075132, %161 ], [ %.075132, %155 ], [ %.075132, %151 ], [ %.075132, %87 ], [ %.075132, %91 ], [ %.075132, %95 ]
  %171 = load i32, ptr %3, align 4, !tbaa !10
  %172 = add nsw i32 %171, -1
  store i32 %172, ptr %3, align 4, !tbaa !10
  %.not = icmp eq i32 %171, 0
  br i1 %.not, label %._crit_edge134, label %.lr.ph133, !llvm.loop !16

._crit_edge134:                                   ; preds = %170, %.preheader112
  %.490.lcssa = phi i32 [ %.187.lcssa, %.preheader112 ], [ %.591, %170 ]
  %.484.lcssa = phi i32 [ %.181.lcssa, %.preheader112 ], [ %.585, %170 ]
  %.4.lcssa = phi i8 [ %.178.lcssa, %.preheader112 ], [ %.5, %170 ]
  %.075.lcssa = phi i32 [ 0, %.preheader112 ], [ %.176, %170 ]
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.075.lcssa)
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %11, !llvm.loop !17

175:                                              ; preds = %56, %51
  %.pn102.pn = phi { ptr, i32 } [ %.pn102, %56 ], [ %.pn, %51 ]
  call void @llvm.lifetime.end.p0(i64 1, 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 } %.pn102.pn

.critedge:                                        ; preds = %11
  call void @llvm.lifetime.end.p0(i64 1, 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
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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) #1

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 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 dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!"omnipotent char", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !9, i64 0}
!12 = distinct !{!12, !13, !14}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!"llvm.loop.unswitch.partial.disable"}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


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