; LLVM IR from xirc/cp-algorithm :: atcoder/abc047/B (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.4" = type { i8 }
%"class.std::allocator" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@_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 %"class.std::vector", align 8
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::allocator.4", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::_Bit_reference", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::_Bit_reference", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::_Bit_reference", align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"struct.std::_Bit_reference", align 8
  store i32 0, ptr %1, align 4
  %33 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %34 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %35 = getelementptr i8, ptr %34, i64 -24
  %36 = load i64, ptr %35, align 8
  %37 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %36
  %38 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %37, ptr noundef null)
  %39 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %40 = getelementptr i8, ptr %39, i64 -24
  %41 = load i64, ptr %40, align 8
  %42 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %41
  %43 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %42, ptr noundef null)
  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
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  %47 = load i32, ptr %3, align 4, !tbaa !8
  %48 = sext i32 %47 to i64
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #6
  %49 = load i32, ptr %2, align 4, !tbaa !8
  %50 = sext i32 %49 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  store i8 1, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %50, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %51 unwind label %58

51:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @_ZNSaISt6vectorIbSaIbEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt6vectorIS_IbSaIbEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %48, ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %52 unwind label %62

52:                                               ; preds = %51
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #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 40, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %53

53:                                               ; preds = %243, %52
  %54 = load i32, ptr %12, align 4, !tbaa !8
  %55 = load i32, ptr %4, align 4, !tbaa !8
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %67, label %57

57:                                               ; preds = %53
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %247

58:                                               ; preds = %0
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %9, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %10, align 4
  br label %66

62:                                               ; preds = %51
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  br label %66

66:                                               ; preds = %62, %58
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #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 40, ptr %6) #6
  br label %300

67:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %69 unwind label %82

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %71 unwind label %82

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %73 unwind label %82

73:                                               ; preds = %71
  %74 = load i32, ptr %16, align 4, !tbaa !8
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %76, label %117

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

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

81:                                               ; preds = %77
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %116

82:                                               ; preds = %71, %69, %67
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %9, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %10, align 4
  br label %246

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

87:                                               ; preds = %105, %86
  %88 = load i32, ptr %18, align 4, !tbaa !8
  %89 = load i32, ptr %14, align 4, !tbaa !8
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %112

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %93 = load i32, ptr %17, align 4, !tbaa !8
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %94) #6
  %96 = load i32, ptr %18, align 4, !tbaa !8
  %97 = sext i32 %96 to i64
  %98 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %95, i64 noundef %97)
          to label %99 unwind label %108

99:                                               ; preds = %92
  %100 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %101 = extractvalue { ptr, i64 } %98, 0
  store ptr %101, ptr %100, align 8
  %102 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %103 = extractvalue { ptr, i64 } %98, 1
  store i64 %103, ptr %102, align 8
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %19, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %105

105:                                              ; preds = %99
  %106 = load i32, ptr %18, align 4, !tbaa !8
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %18, align 4, !tbaa !8
  br label %87, !llvm.loop !13

108:                                              ; preds = %92
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %9, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %246

112:                                              ; preds = %91
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %17, align 4, !tbaa !8
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %17, align 4, !tbaa !8
  br label %77, !llvm.loop !15

116:                                              ; preds = %81
  br label %242

117:                                              ; preds = %73
  %118 = load i32, ptr %16, align 4, !tbaa !8
  %119 = icmp eq i32 %118, 2
  br i1 %119, label %120, label %158

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

121:                                              ; preds = %154, %120
  %122 = load i32, ptr %20, align 4, !tbaa !8
  %123 = load i32, ptr %3, align 4, !tbaa !8
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %157

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %127 = load i32, ptr %14, align 4, !tbaa !8
  store i32 %127, ptr %21, align 4, !tbaa !8
  br label %128

128:                                              ; preds = %146, %126
  %129 = load i32, ptr %21, align 4, !tbaa !8
  %130 = load i32, ptr %2, align 4, !tbaa !8
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %153

133:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %134 = load i32, ptr %20, align 4, !tbaa !8
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %135) #6
  %137 = load i32, ptr %21, align 4, !tbaa !8
  %138 = sext i32 %137 to i64
  %139 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %136, i64 noundef %138)
          to label %140 unwind label %149

140:                                              ; preds = %133
  %141 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %142 = extractvalue { ptr, i64 } %139, 0
  store ptr %142, ptr %141, align 8
  %143 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %144 = extractvalue { ptr, i64 } %139, 1
  store i64 %144, ptr %143, align 8
  %145 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %22, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %146

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

149:                                              ; preds = %133
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %9, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %246

153:                                              ; preds = %132
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %20, align 4, !tbaa !8
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %20, align 4, !tbaa !8
  br label %121, !llvm.loop !17

157:                                              ; preds = %125
  br label %241

158:                                              ; preds = %117
  %159 = load i32, ptr %16, align 4, !tbaa !8
  %160 = icmp eq i32 %159, 3
  br i1 %160, label %161, label %198

161:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !8
  br label %162

162:                                              ; preds = %194, %161
  %163 = load i32, ptr %23, align 4, !tbaa !8
  %164 = load i32, ptr %15, align 4, !tbaa !8
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %197

167:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !8
  br label %168

168:                                              ; preds = %186, %167
  %169 = load i32, ptr %24, align 4, !tbaa !8
  %170 = load i32, ptr %2, align 4, !tbaa !8
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %193

173:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %174 = load i32, ptr %23, align 4, !tbaa !8
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %175) #6
  %177 = load i32, ptr %24, align 4, !tbaa !8
  %178 = sext i32 %177 to i64
  %179 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %176, i64 noundef %178)
          to label %180 unwind label %189

180:                                              ; preds = %173
  %181 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %182 = extractvalue { ptr, i64 } %179, 0
  store ptr %182, ptr %181, align 8
  %183 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %184 = extractvalue { ptr, i64 } %179, 1
  store i64 %184, ptr %183, align 8
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %25, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %186

186:                                              ; preds = %180
  %187 = load i32, ptr %24, align 4, !tbaa !8
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %24, align 4, !tbaa !8
  br label %168, !llvm.loop !18

189:                                              ; preds = %173
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %246

193:                                              ; preds = %172
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %23, align 4, !tbaa !8
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %23, align 4, !tbaa !8
  br label %162, !llvm.loop !19

197:                                              ; preds = %166
  br label %240

198:                                              ; preds = %158
  %199 = load i32, ptr %16, align 4, !tbaa !8
  %200 = icmp eq i32 %199, 4
  br i1 %200, label %201, label %239

201:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %202 = load i32, ptr %15, align 4, !tbaa !8
  store i32 %202, ptr %26, align 4, !tbaa !8
  br label %203

203:                                              ; preds = %235, %201
  %204 = load i32, ptr %26, align 4, !tbaa !8
  %205 = load i32, ptr %3, align 4, !tbaa !8
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  store i32 23, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %238

208:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !8
  br label %209

209:                                              ; preds = %227, %208
  %210 = load i32, ptr %27, align 4, !tbaa !8
  %211 = load i32, ptr %2, align 4, !tbaa !8
  %212 = icmp slt i32 %210, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %209
  store i32 26, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %234

214:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %215 = load i32, ptr %26, align 4, !tbaa !8
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %216) #6
  %218 = load i32, ptr %27, align 4, !tbaa !8
  %219 = sext i32 %218 to i64
  %220 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %217, i64 noundef %219)
          to label %221 unwind label %230

221:                                              ; preds = %214
  %222 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %223 = extractvalue { ptr, i64 } %220, 0
  store ptr %223, ptr %222, align 8
  %224 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %225 = extractvalue { ptr, i64 } %220, 1
  store i64 %225, ptr %224, align 8
  %226 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %28, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %227

227:                                              ; preds = %221
  %228 = load i32, ptr %27, align 4, !tbaa !8
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %27, align 4, !tbaa !8
  br label %209, !llvm.loop !20

230:                                              ; preds = %214
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %9, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %246

234:                                              ; preds = %213
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %26, align 4, !tbaa !8
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %26, align 4, !tbaa !8
  br label %203, !llvm.loop !21

238:                                              ; preds = %207
  br label %239

239:                                              ; preds = %238, %198
  br label %240

240:                                              ; preds = %239, %197
  br label %241

241:                                              ; preds = %240, %157
  br label %242

242:                                              ; preds = %241, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %12, align 4, !tbaa !8
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %12, align 4, !tbaa !8
  br label %53, !llvm.loop !22

246:                                              ; preds = %230, %189, %149, %108, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %299

247:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !8
  br label %248

248:                                              ; preds = %284, %247
  %249 = load i32, ptr %30, align 4, !tbaa !8
  %250 = load i32, ptr %3, align 4, !tbaa !8
  %251 = icmp slt i32 %249, %250
  br i1 %251, label %253, label %252

252:                                              ; preds = %248
  store i32 29, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %287

253:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !8
  br label %254

254:                                              ; preds = %276, %253
  %255 = load i32, ptr %31, align 4, !tbaa !8
  %256 = load i32, ptr %2, align 4, !tbaa !8
  %257 = icmp slt i32 %255, %256
  br i1 %257, label %259, label %258

258:                                              ; preds = %254
  store i32 32, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %283

259:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  %260 = load i32, ptr %30, align 4, !tbaa !8
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %261) #6
  %263 = load i32, ptr %31, align 4, !tbaa !8
  %264 = sext i32 %263 to i64
  %265 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %262, i64 noundef %264)
          to label %266 unwind label %279

266:                                              ; preds = %259
  %267 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 0
  %268 = extractvalue { ptr, i64 } %265, 0
  store ptr %268, ptr %267, align 8
  %269 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 1
  %270 = extractvalue { ptr, i64 } %265, 1
  store i64 %270, ptr %269, align 8
  %271 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  %272 = zext i1 %271 to i64
  %273 = select i1 %271, i32 1, i32 0
  %274 = load i32, ptr %29, align 4, !tbaa !8
  %275 = add nsw i32 %274, %273
  store i32 %275, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br label %276

276:                                              ; preds = %266
  %277 = load i32, ptr %31, align 4, !tbaa !8
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %31, align 4, !tbaa !8
  br label %254, !llvm.loop !23

279:                                              ; preds = %259
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %9, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %298

283:                                              ; preds = %258
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %30, align 4, !tbaa !8
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %30, align 4, !tbaa !8
  br label %248, !llvm.loop !24

287:                                              ; preds = %252
  %288 = load i32, ptr %29, align 4, !tbaa !8
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %288)
          to label %290 unwind label %294

290:                                              ; preds = %287
  %291 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %289, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %292 unwind label %294

292:                                              ; preds = %290
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, 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
  %293 = load i32, ptr %1, align 4
  ret i32 %293

294:                                              ; preds = %290, %287
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %9, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %10, align 4
  br label %298

298:                                              ; preds = %294, %279
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %299

299:                                              ; preds = %298, %246
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %300

300:                                              ; preds = %299, %66
  call void @llvm.lifetime.end.p0(i64 24, 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 %301

301:                                              ; preds = %300
  %302 = load ptr, ptr %9, align 8
  %303 = load i32, ptr %10, align 4
  %304 = insertvalue { ptr, i32 } poison, ptr %302, 0
  %305 = insertvalue { ptr, i32 } %304, i32 %303, 1
  resume { ptr, i32 } %305
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

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

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

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

; 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 dso_local void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.4" = type { i8 }
%"class.std::allocator" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@_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 %"class.std::vector", align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::allocator.4", align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::_Bit_reference", align 8
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca %"struct.std::_Bit_reference", align 8
  %17 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %20
  %22 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %21, ptr noundef null)
  %23 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %25
  %27 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  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
  %28 = 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)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %31 = load i32, ptr %2, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  %32 = load i32, ptr %1, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  store i8 1, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %33, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %34 unwind label %48

34:                                               ; preds = %0
  %35 = sext i32 %31 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaISt6vectorIbSaIbEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIS_IbSaIbEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %35, ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %36 unwind label %50

36:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @_ZNSt15__new_allocatorIbED2Ev(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 40, ptr nonnull %5) #6
  %37 = load i32, ptr %3, align 4, !tbaa !8
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph92, label %.preheader62

.lr.ph92:                                         ; preds = %36
  %39 = getelementptr inbounds i8, ptr %15, i64 8
  %40 = getelementptr inbounds i8, ptr %14, i64 8
  %41 = getelementptr inbounds i8, ptr %13, i64 8
  %42 = getelementptr inbounds i8, ptr %12, i64 8
  br label %53

.preheader62:                                     ; preds = %.loopexit, %36
  %43 = load i32, ptr %2, align 4, !tbaa !8
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.preheader.lr.ph, label %._crit_edge99

.preheader.lr.ph:                                 ; preds = %.preheader62
  %45 = getelementptr inbounds i8, ptr %16, i64 8
  %46 = load i32, ptr %1, align 4, !tbaa !8
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.preheader, label %._crit_edge99

48:                                               ; preds = %0
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %34
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  br label %52

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @_ZNSt15__new_allocatorIbED2Ev(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 40, ptr nonnull %5) #6
  br label %189

53:                                               ; preds = %.lr.ph92, %.loopexit
  %.04690 = phi i32 [ 0, %.lr.ph92 ], [ %158, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %55 unwind label %77

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %57 unwind label %77

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %59 unwind label %77

59:                                               ; preds = %57
  %60 = load i32, ptr %11, align 4, !tbaa !8
  switch i32 %60, label %.loopexit [
    i32 1, label %.preheader66
    i32 2, label %.preheader67
    i32 3, label %.preheader69
    i32 4, label %133
  ]

.preheader69:                                     ; preds = %59
  %61 = load i32, ptr %10, align 4, !tbaa !8
  %62 = icmp sgt i32 %61, 0
  %63 = load i32, ptr %1, align 4
  %64 = icmp sgt i32 %63, 0
  %or.cond = select i1 %62, i1 %64, i1 false
  br i1 %or.cond, label %.preheader64, label %.loopexit

.preheader67:                                     ; preds = %59
  %65 = load i32, ptr %2, align 4, !tbaa !8
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph85, label %.loopexit

.lr.ph85:                                         ; preds = %.preheader67
  %67 = load i32, ptr %9, align 4, !tbaa !8
  %68 = load i32, ptr %1, align 4, !tbaa !8
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %.lr.ph85.split, label %.loopexit

.preheader66:                                     ; preds = %59
  %70 = load i32, ptr %2, align 4, !tbaa !8
  %71 = icmp sgt i32 %70, 0
  %72 = load i32, ptr %9, align 4
  %73 = icmp sgt i32 %72, 0
  %or.cond151 = select i1 %71, i1 %73, i1 false
  br i1 %or.cond151, label %.preheader63, label %.loopexit

.preheader63:                                     ; preds = %.preheader66, %._crit_edge88
  %74 = phi i32 [ %79, %._crit_edge88 ], [ %70, %.preheader66 ]
  %75 = phi i32 [ %80, %._crit_edge88 ], [ %72, %.preheader66 ]
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %._crit_edge88 ], [ 0, %.preheader66 ]
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.lr.ph87, label %._crit_edge88

77:                                               ; preds = %57, %55, %53
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %161

._crit_edge88.loopexit:                           ; preds = %85
  %.pre139 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge88

._crit_edge88:                                    ; preds = %._crit_edge88.loopexit, %.preheader63
  %79 = phi i32 [ %.pre139, %._crit_edge88.loopexit ], [ %74, %.preheader63 ]
  %80 = phi i32 [ %89, %._crit_edge88.loopexit ], [ %75, %.preheader63 ]
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %81 = sext i32 %79 to i64
  %82 = icmp slt i64 %indvars.iv.next129, %81
  br i1 %82, label %.preheader63, label %.loopexit, !llvm.loop !13

.lr.ph87:                                         ; preds = %.preheader63, %85
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %85 ], [ 0, %.preheader63 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %83 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv128) #6
  %84 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %83, i64 noundef %indvars.iv125)
          to label %85 unwind label %92

85:                                               ; preds = %.lr.ph87
  %86 = extractvalue { ptr, i64 } %84, 0
  store ptr %86, ptr %12, align 8
  %87 = extractvalue { ptr, i64 } %84, 1
  store i64 %87, ptr %42, align 8
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %12, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %89 = load i32, ptr %9, align 4, !tbaa !8
  %90 = sext i32 %89 to i64
  %91 = icmp slt i64 %indvars.iv.next126, %90
  br i1 %91, label %.lr.ph87, label %._crit_edge88.loopexit, !llvm.loop !16

92:                                               ; preds = %.lr.ph87
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %161

.lr.ph85.split:                                   ; preds = %.lr.ph85, %._crit_edge83
  %94 = phi i32 [ %99, %._crit_edge83 ], [ %65, %.lr.ph85 ]
  %95 = phi i32 [ %100, %._crit_edge83 ], [ %68, %.lr.ph85 ]
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %._crit_edge83 ], [ 0, %.lr.ph85 ]
  %96 = load i32, ptr %9, align 4, !tbaa !8
  %97 = icmp slt i32 %96, %95
  br i1 %97, label %.lr.ph82, label %._crit_edge83

.lr.ph82:                                         ; preds = %.lr.ph85.split
  %98 = sext i32 %96 to i64
  br label %103

._crit_edge83.loopexit:                           ; preds = %106
  %.pre138 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge83

._crit_edge83:                                    ; preds = %._crit_edge83.loopexit, %.lr.ph85.split
  %99 = phi i32 [ %.pre138, %._crit_edge83.loopexit ], [ %94, %.lr.ph85.split ]
  %100 = phi i32 [ %110, %._crit_edge83.loopexit ], [ %95, %.lr.ph85.split ]
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %101 = sext i32 %99 to i64
  %102 = icmp slt i64 %indvars.iv.next123, %101
  br i1 %102, label %.lr.ph85.split, label %.loopexit, !llvm.loop !17

103:                                              ; preds = %.lr.ph82, %106
  %indvars.iv119 = phi i64 [ %98, %.lr.ph82 ], [ %indvars.iv.next120, %106 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %104 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv122) #6
  %105 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %104, i64 noundef %indvars.iv119)
          to label %106 unwind label %113

106:                                              ; preds = %103
  %107 = extractvalue { ptr, i64 } %105, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i64 } %105, 1
  store i64 %108, ptr %41, align 8
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %indvars.iv.next120 = add nsw i64 %indvars.iv119, 1
  %110 = load i32, ptr %1, align 4, !tbaa !8
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %indvars.iv.next120, %111
  br i1 %112, label %103, label %._crit_edge83.loopexit, !llvm.loop !18

113:                                              ; preds = %103
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %161

.preheader64:                                     ; preds = %.preheader69, %._crit_edge78
  %115 = phi i32 [ %118, %._crit_edge78 ], [ %61, %.preheader69 ]
  %116 = phi i32 [ %119, %._crit_edge78 ], [ %63, %.preheader69 ]
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %._crit_edge78 ], [ 0, %.preheader69 ]
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %.lr.ph77, label %._crit_edge78

._crit_edge78.loopexit:                           ; preds = %124
  %.pre137 = load i32, ptr %10, align 4, !tbaa !8
  br label %._crit_edge78

._crit_edge78:                                    ; preds = %._crit_edge78.loopexit, %.preheader64
  %118 = phi i32 [ %.pre137, %._crit_edge78.loopexit ], [ %115, %.preheader64 ]
  %119 = phi i32 [ %128, %._crit_edge78.loopexit ], [ %116, %.preheader64 ]
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %120 = sext i32 %118 to i64
  %121 = icmp slt i64 %indvars.iv.next117, %120
  br i1 %121, label %.preheader64, label %.loopexit, !llvm.loop !19

.lr.ph77:                                         ; preds = %.preheader64, %124
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %124 ], [ 0, %.preheader64 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %122 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv116) #6
  %123 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %122, i64 noundef %indvars.iv113)
          to label %124 unwind label %131

124:                                              ; preds = %.lr.ph77
  %125 = extractvalue { ptr, i64 } %123, 0
  store ptr %125, ptr %14, align 8
  %126 = extractvalue { ptr, i64 } %123, 1
  store i64 %126, ptr %40, align 8
  %127 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %128 = load i32, ptr %1, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = icmp slt i64 %indvars.iv.next114, %129
  br i1 %130, label %.lr.ph77, label %._crit_edge78.loopexit, !llvm.loop !20

131:                                              ; preds = %.lr.ph77
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %161

133:                                              ; preds = %59
  %134 = load i32, ptr %10, align 4, !tbaa !8
  %135 = load i32, ptr %2, align 4, !tbaa !8
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %.preheader65.lr.ph, label %.loopexit

.preheader65.lr.ph:                               ; preds = %133
  %137 = load i32, ptr %1, align 4, !tbaa !8
  %138 = icmp sgt i32 %137, 0
  br i1 %138, label %.preheader65.preheader, label %.loopexit

.preheader65.preheader:                           ; preds = %.preheader65.lr.ph
  %139 = sext i32 %134 to i64
  br label %.preheader65

.preheader65:                                     ; preds = %.preheader65.preheader, %._crit_edge
  %140 = phi i32 [ %135, %.preheader65.preheader ], [ %143, %._crit_edge ]
  %141 = phi i32 [ %137, %.preheader65.preheader ], [ %144, %._crit_edge ]
  %indvars.iv110 = phi i64 [ %139, %.preheader65.preheader ], [ %indvars.iv.next111, %._crit_edge ]
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %149
  %.pre = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader65
  %143 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %140, %.preheader65 ]
  %144 = phi i32 [ %153, %._crit_edge.loopexit ], [ %141, %.preheader65 ]
  %indvars.iv.next111 = add nsw i64 %indvars.iv110, 1
  %145 = sext i32 %143 to i64
  %146 = icmp slt i64 %indvars.iv.next111, %145
  br i1 %146, label %.preheader65, label %.loopexit, !llvm.loop !21

.lr.ph:                                           ; preds = %.preheader65, %149
  %indvars.iv = phi i64 [ %indvars.iv.next, %149 ], [ 0, %.preheader65 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %147 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv110) #6
  %148 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %147, i64 noundef %indvars.iv)
          to label %149 unwind label %156

149:                                              ; preds = %.lr.ph
  %150 = extractvalue { ptr, i64 } %148, 0
  store ptr %150, ptr %15, align 8
  %151 = extractvalue { ptr, i64 } %148, 1
  store i64 %151, ptr %39, align 8
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %153 = load i32, ptr %1, align 4, !tbaa !8
  %154 = sext i32 %153 to i64
  %155 = icmp slt i64 %indvars.iv.next, %154
  br i1 %155, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !22

156:                                              ; preds = %.lr.ph
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %161

.loopexit:                                        ; preds = %._crit_edge, %._crit_edge78, %._crit_edge83, %._crit_edge88, %.preheader65.lr.ph, %.lr.ph85, %133, %.preheader69, %.preheader67, %.preheader66, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %158 = add nuw nsw i32 %.04690, 1
  %159 = load i32, ptr %3, align 4, !tbaa !8
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %53, label %.preheader62, !llvm.loop !23

161:                                              ; preds = %156, %131, %113, %92, %77
  %.pn58 = phi { ptr, i32 } [ %93, %92 ], [ %114, %113 ], [ %132, %131 ], [ %157, %156 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %188

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge96
  %162 = phi i32 [ %166, %._crit_edge96 ], [ %43, %.preheader.lr.ph ]
  %163 = phi i32 [ %167, %._crit_edge96 ], [ %46, %.preheader.lr.ph ]
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %._crit_edge96 ], [ 0, %.preheader.lr.ph ]
  %.03797 = phi i32 [ %.1.lcssa, %._crit_edge96 ], [ 0, %.preheader.lr.ph ]
  %164 = icmp sgt i32 %163, 0
  br i1 %164, label %.lr.ph95, label %._crit_edge96

._crit_edge99:                                    ; preds = %._crit_edge96, %.preheader.lr.ph, %.preheader62
  %.037.lcssa = phi i32 [ 0, %.preheader62 ], [ 0, %.preheader.lr.ph ], [ %.1.lcssa, %._crit_edge96 ]
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.037.lcssa)
          to label %183 unwind label %186

._crit_edge96.loopexit:                           ; preds = %172
  %.pre140 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge96

._crit_edge96:                                    ; preds = %._crit_edge96.loopexit, %.preheader
  %166 = phi i32 [ %162, %.preheader ], [ %.pre140, %._crit_edge96.loopexit ]
  %167 = phi i32 [ %163, %.preheader ], [ %178, %._crit_edge96.loopexit ]
  %.1.lcssa = phi i32 [ %.03797, %.preheader ], [ %177, %._crit_edge96.loopexit ]
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %168 = sext i32 %166 to i64
  %169 = icmp slt i64 %indvars.iv.next135, %168
  br i1 %169, label %.preheader, label %._crit_edge99, !llvm.loop !24

.lr.ph95:                                         ; preds = %.preheader, %172
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %172 ], [ 0, %.preheader ]
  %.193 = phi i32 [ %177, %172 ], [ %.03797, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  %170 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv134) #6
  %171 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %170, i64 noundef %indvars.iv131)
          to label %172 unwind label %181

172:                                              ; preds = %.lr.ph95
  %173 = extractvalue { ptr, i64 } %171, 0
  store ptr %173, ptr %16, align 8
  %174 = extractvalue { ptr, i64 } %171, 1
  store i64 %174, ptr %45, align 8
  %175 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  %176 = zext i1 %175 to i32
  %177 = add nsw i32 %.193, %176
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %178 = load i32, ptr %1, align 4, !tbaa !8
  %179 = sext i32 %178 to i64
  %180 = icmp slt i64 %indvars.iv.next132, %179
  br i1 %180, label %.lr.ph95, label %._crit_edge96.loopexit, !llvm.loop !25

181:                                              ; preds = %.lr.ph95
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  br label %188

183:                                              ; preds = %._crit_edge99
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %185 unwind label %186

185:                                              ; preds = %183
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, 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

186:                                              ; preds = %183, %._crit_edge99
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %188

188:                                              ; preds = %181, %186, %161
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %161 ], [ %182, %181 ], [ %187, %186 ]
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %189

189:                                              ; preds = %188, %52
  %.pn58.pn.pn = phi { ptr, i32 } [ %.pn58.pn, %188 ], [ %.pn, %52 ]
  call void @llvm.lifetime.end.p0(i64 24, 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 } %.pn58.pn.pn
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #4 align 2

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

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

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

; 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 dso_local void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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


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