; LLVM IR from abeaumont/competitive-programming :: codejam/2008-round-1b (a)

; 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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"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 }
%"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
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

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

45:                                               ; preds = %300, %0
  %46 = load i32, ptr %3, align 4, !tbaa !8
  %47 = load i32, ptr %2, align 4, !tbaa !8
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %311

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 9, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %59 unwind label %68

59:                                               ; preds = %50
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %60 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %60, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %61 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %61, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !8
  br label %62

62:                                               ; preds = %96, %59
  %63 = load i32, ptr %19, align 4, !tbaa !8
  %64 = sext i32 %63 to i64
  %65 = load i64, ptr %5, align 8, !tbaa !11
  %66 = icmp slt i64 %64, %65
  br i1 %66, label %72, label %67

67:                                               ; preds = %62
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %99

68:                                               ; preds = %50
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %15, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %310

72:                                               ; preds = %62
  %73 = load i64, ptr %17, align 8, !tbaa !11
  %74 = srem i64 %73, 3
  %75 = mul nsw i64 %74, 3
  %76 = load i64, ptr %18, align 8, !tbaa !11
  %77 = srem i64 %76, 3
  %78 = add nsw i64 %75, %77
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %78) #6
  %80 = load i64, ptr %79, align 8, !tbaa !11
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %79, align 8, !tbaa !11
  %82 = load i64, ptr %6, align 8, !tbaa !11
  %83 = load i64, ptr %17, align 8, !tbaa !11
  %84 = mul nsw i64 %82, %83
  %85 = load i64, ptr %7, align 8, !tbaa !11
  %86 = add nsw i64 %84, %85
  %87 = load i64, ptr %12, align 8, !tbaa !11
  %88 = srem i64 %86, %87
  store i64 %88, ptr %17, align 8, !tbaa !11
  %89 = load i64, ptr %8, align 8, !tbaa !11
  %90 = load i64, ptr %18, align 8, !tbaa !11
  %91 = mul nsw i64 %89, %90
  %92 = load i64, ptr %9, align 8, !tbaa !11
  %93 = add nsw i64 %91, %92
  %94 = load i64, ptr %12, align 8, !tbaa !11
  %95 = srem i64 %93, %94
  store i64 %95, ptr %18, align 8, !tbaa !11
  br label %96

96:                                               ; preds = %72
  %97 = load i32, ptr %19, align 4, !tbaa !8
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %19, align 4, !tbaa !8
  br label %62, !llvm.loop !13

99:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef 729, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %100 unwind label %105

100:                                              ; preds = %99
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !8
  br label %101

101:                                              ; preds = %212, %100
  %102 = load i32, ptr %22, align 4, !tbaa !8
  %103 = icmp slt i32 %102, 3
  br i1 %103, label %109, label %104

104:                                              ; preds = %101
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %215

105:                                              ; preds = %99
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %15, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %309

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

110:                                              ; preds = %208, %109
  %111 = load i32, ptr %23, align 4, !tbaa !8
  %112 = icmp slt i32 %111, 3
  br i1 %112, label %114, label %113

113:                                              ; preds = %110
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %211

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

115:                                              ; preds = %204, %114
  %116 = load i32, ptr %24, align 4, !tbaa !8
  %117 = icmp slt i32 %116, 3
  br i1 %117, label %119, label %118

118:                                              ; preds = %115
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %207

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

120:                                              ; preds = %200, %119
  %121 = load i32, ptr %25, align 4, !tbaa !8
  %122 = icmp slt i32 %121, 3
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %203

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

125:                                              ; preds = %196, %124
  %126 = load i32, ptr %26, align 4, !tbaa !8
  %127 = icmp slt i32 %126, 3
  br i1 %127, label %129, label %128

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

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

130:                                              ; preds = %192, %129
  %131 = load i32, ptr %27, align 4, !tbaa !8
  %132 = icmp slt i32 %131, 3
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %195

134:                                              ; preds = %130
  %135 = load i32, ptr %22, align 4, !tbaa !8
  %136 = load i32, ptr %24, align 4, !tbaa !8
  %137 = add nsw i32 %135, %136
  %138 = load i32, ptr %26, align 4, !tbaa !8
  %139 = add nsw i32 %137, %138
  %140 = srem i32 %139, 3
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %191

142:                                              ; preds = %134
  %143 = load i32, ptr %23, align 4, !tbaa !8
  %144 = load i32, ptr %25, align 4, !tbaa !8
  %145 = add nsw i32 %143, %144
  %146 = load i32, ptr %27, align 4, !tbaa !8
  %147 = add nsw i32 %145, %146
  %148 = srem i32 %147, 3
  %149 = icmp eq i32 %148, 0
  br i1 %149, label %150, label %191

150:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %151 = load i32, ptr %22, align 4, !tbaa !8
  %152 = mul nsw i32 %151, 3
  %153 = load i32, ptr %23, align 4, !tbaa !8
  %154 = add nsw i32 %152, %153
  store i32 %154, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %155 = load i32, ptr %24, align 4, !tbaa !8
  %156 = mul nsw i32 %155, 3
  %157 = load i32, ptr %25, align 4, !tbaa !8
  %158 = add nsw i32 %156, %157
  store i32 %158, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %159 = load i32, ptr %26, align 4, !tbaa !8
  %160 = mul nsw i32 %159, 3
  %161 = load i32, ptr %27, align 4, !tbaa !8
  %162 = add nsw i32 %160, %161
  store i32 %162, ptr %30, align 4, !tbaa !8
  %163 = load i32, ptr %28, align 4, !tbaa !8
  %164 = load i32, ptr %29, align 4, !tbaa !8
  %165 = icmp sle i32 %163, %164
  br i1 %165, label %166, label %190

166:                                              ; preds = %150
  %167 = load i32, ptr %29, align 4, !tbaa !8
  %168 = load i32, ptr %30, align 4, !tbaa !8
  %169 = icmp sle i32 %167, %168
  br i1 %169, label %170, label %190

170:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  %171 = load i32, ptr %28, align 4, !tbaa !8
  %172 = mul nsw i32 %171, 81
  %173 = load i32, ptr %29, align 4, !tbaa !8
  %174 = mul nsw i32 %173, 9
  %175 = add nsw i32 %172, %174
  %176 = load i32, ptr %30, align 4, !tbaa !8
  %177 = add nsw i32 %175, %176
  %178 = sext i32 %177 to i64
  %179 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef %178)
          to label %180 unwind label %186

180:                                              ; preds = %170
  %181 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %182 = extractvalue { ptr, i64 } %179, 0
  store ptr %182, ptr %181, align 8
  %183 = getelementptr inbounds { ptr, i64 }, ptr %31, 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) %31, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %190

186:                                              ; preds = %170
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %15, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %308

190:                                              ; preds = %180, %166, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %191

191:                                              ; preds = %190, %142, %134
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %27, align 4, !tbaa !8
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %27, align 4, !tbaa !8
  br label %130, !llvm.loop !15

195:                                              ; preds = %133
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %26, align 4, !tbaa !8
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %26, align 4, !tbaa !8
  br label %125, !llvm.loop !16

199:                                              ; preds = %128
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %25, align 4, !tbaa !8
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %25, align 4, !tbaa !8
  br label %120, !llvm.loop !17

203:                                              ; preds = %123
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %24, align 4, !tbaa !8
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %24, align 4, !tbaa !8
  br label %115, !llvm.loop !18

207:                                              ; preds = %118
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %23, align 4, !tbaa !8
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %23, align 4, !tbaa !8
  br label %110, !llvm.loop !19

211:                                              ; preds = %113
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %22, align 4, !tbaa !8
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %22, align 4, !tbaa !8
  br label %101, !llvm.loop !20

215:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  store i64 0, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !8
  br label %216

216:                                              ; preds = %284, %215
  %217 = load i32, ptr %33, align 4, !tbaa !8
  %218 = icmp slt i32 %217, 729
  br i1 %218, label %220, label %219

219:                                              ; preds = %216
  store i32 26, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %287

220:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %221 = load i32, ptr %33, align 4, !tbaa !8
  %222 = sext i32 %221 to i64
  %223 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef %222)
          to label %224 unwind label %261

224:                                              ; preds = %220
  %225 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %226 = extractvalue { ptr, i64 } %223, 0
  store ptr %226, ptr %225, align 8
  %227 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %228 = extractvalue { ptr, i64 } %223, 1
  store i64 %228, ptr %227, align 8
  %229 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br i1 %229, label %230, label %283

230:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %231 = load i32, ptr %33, align 4, !tbaa !8
  %232 = sdiv i32 %231, 81
  store i32 %232, ptr %35, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %233 = load i32, ptr %33, align 4, !tbaa !8
  %234 = srem i32 %233, 81
  %235 = sdiv i32 %234, 9
  store i32 %235, ptr %36, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %236 = load i32, ptr %33, align 4, !tbaa !8
  %237 = srem i32 %236, 9
  store i32 %237, ptr %37, align 4, !tbaa !8
  %238 = load i32, ptr %35, align 4, !tbaa !8
  %239 = load i32, ptr %36, align 4, !tbaa !8
  %240 = icmp eq i32 %238, %239
  br i1 %240, label %241, label %265

241:                                              ; preds = %230
  %242 = load i32, ptr %35, align 4, !tbaa !8
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %243) #6
  %245 = load i64, ptr %244, align 8, !tbaa !11
  %246 = load i32, ptr %35, align 4, !tbaa !8
  %247 = sext i32 %246 to i64
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %247) #6
  %249 = load i64, ptr %248, align 8, !tbaa !11
  %250 = sub nsw i64 %249, 1
  %251 = mul nsw i64 %245, %250
  %252 = load i32, ptr %35, align 4, !tbaa !8
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %253) #6
  %255 = load i64, ptr %254, align 8, !tbaa !11
  %256 = sub nsw i64 %255, 2
  %257 = mul nsw i64 %251, %256
  %258 = sdiv i64 %257, 6
  %259 = load i64, ptr %32, align 8, !tbaa !11
  %260 = add nsw i64 %259, %258
  store i64 %260, ptr %32, align 8, !tbaa !11
  br label %282

261:                                              ; preds = %220
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %15, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %307

265:                                              ; preds = %230
  %266 = load i32, ptr %35, align 4, !tbaa !8
  %267 = sext i32 %266 to i64
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %267) #6
  %269 = load i64, ptr %268, align 8, !tbaa !11
  %270 = load i32, ptr %36, align 4, !tbaa !8
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %271) #6
  %273 = load i64, ptr %272, align 8, !tbaa !11
  %274 = mul nsw i64 %269, %273
  %275 = load i32, ptr %37, align 4, !tbaa !8
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %276) #6
  %278 = load i64, ptr %277, align 8, !tbaa !11
  %279 = mul nsw i64 %274, %278
  %280 = load i64, ptr %32, align 8, !tbaa !11
  %281 = add nsw i64 %280, %279
  store i64 %281, ptr %32, align 8, !tbaa !11
  br label %282

282:                                              ; preds = %265, %241
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %283

283:                                              ; preds = %282, %224
  br label %284

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

287:                                              ; preds = %219
  %288 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %289 unwind label %303

289:                                              ; preds = %287
  %290 = load i32, ptr %3, align 4, !tbaa !8
  %291 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %288, i32 noundef %290)
          to label %292 unwind label %303

292:                                              ; preds = %289
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %291, ptr noundef @.str.1)
          to label %294 unwind label %303

294:                                              ; preds = %292
  %295 = load i64, ptr %32, align 8, !tbaa !11
  %296 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %293, i64 noundef %295)
          to label %297 unwind label %303

297:                                              ; preds = %294
  %298 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %296, i8 noundef signext 10)
          to label %299 unwind label %303

299:                                              ; preds = %297
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %300

300:                                              ; preds = %299
  %301 = load i32, ptr %3, align 4, !tbaa !8
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %3, align 4, !tbaa !8
  br label %45, !llvm.loop !22

303:                                              ; preds = %297, %294, %292, %289, %287
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %15, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %16, align 4
  br label %307

307:                                              ; preds = %303, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %308

308:                                              ; preds = %307, %186
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  br label %309

309:                                              ; preds = %308, %105
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %310

310:                                              ; preds = %309, %68
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #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 %313

311:                                              ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %312 = load i32, ptr %1, align 4
  ret i32 %312

313:                                              ; preds = %310
  %314 = load ptr, ptr %15, align 8
  %315 = load i32, ptr %16, align 4
  %316 = insertvalue { ptr, i32 } poison, ptr %314, 0
  %317 = insertvalue { ptr, i32 } %316, i32 %315, 1
  resume { ptr, i32 } %317
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #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)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

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

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 @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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 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 #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 = { 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 = !{!"long long", !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}


; 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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"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 }
%"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
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; 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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::vector.0", align 8
  %13 = alloca %"class.std::allocator.4", align 1
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %18
  %20 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  %21 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %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) %1)
  %23 = load i32, ptr %1, align 4, !tbaa !8
  %.not121 = icmp slt i32 %23, 1
  br i1 %.not121, label %._crit_edge125, label %.lr.ph124

.lr.ph124:                                        ; preds = %0
  %24 = getelementptr inbounds i8, ptr %14, i64 8
  %25 = getelementptr inbounds i8, ptr %15, i64 8
  br label %26

._crit_edge125:                                   ; preds = %240, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

26:                                               ; preds = %.lr.ph124, %240
  %.0122 = phi i32 [ 1, %.lr.ph124 ], [ %241, %240 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 9, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %35 unwind label %40

35:                                               ; preds = %26
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  %36 = load i64, ptr %2, align 8, !tbaa !11
  %37 = icmp sgt i64 %36, 0
  br i1 %37, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %35
  %38 = load i64, ptr %8, align 8, !tbaa !11
  %39 = load i64, ptr %7, align 8, !tbaa !11
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %35
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef 729, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %62 unwind label %64

40:                                               ; preds = %26
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  br label %247

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.068105 = phi i64 [ %39, %.lr.ph.preheader ], [ %54, %.lr.ph ]
  %.069104 = phi i64 [ %38, %.lr.ph.preheader ], [ %59, %.lr.ph ]
  %42 = srem i64 %.068105, 3
  %43 = mul nsw i64 %42, 3
  %44 = srem i64 %.069104, 3
  %45 = add nsw i64 %43, %44
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %45) #6
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = add nsw i64 %47, 1
  store i64 %48, ptr %46, align 8, !tbaa !11
  %49 = load i64, ptr %3, align 8, !tbaa !11
  %50 = mul nsw i64 %49, %.068105
  %51 = load i64, ptr %4, align 8, !tbaa !11
  %52 = add nsw i64 %50, %51
  %53 = load i64, ptr %9, align 8, !tbaa !11
  %54 = srem i64 %52, %53
  %55 = load i64, ptr %5, align 8, !tbaa !11
  %56 = mul nsw i64 %55, %.069104
  %57 = load i64, ptr %6, align 8, !tbaa !11
  %58 = add nsw i64 %56, %57
  %59 = srem i64 %58, %53
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %60 = load i64, ptr %2, align 8, !tbaa !11
  %61 = icmp sgt i64 %60, %indvars.iv.next
  br i1 %61, label %.lr.ph, label %._crit_edge, !llvm.loop !13

62:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  br label %.preheader100

.preheader100:                                    ; preds = %62, %68
  %indvars.iv151 = phi i64 [ 0, %62 ], [ %indvars.iv.next152, %68 ]
  %63 = mul nuw nsw i64 %indvars.iv151, 3
  br label %.preheader99

64:                                               ; preds = %._crit_edge
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  br label %246

.preheader99:                                     ; preds = %.preheader100, %82
  %indvars.iv147 = phi i64 [ 0, %.preheader100 ], [ %indvars.iv.next148, %82 ]
  %66 = add nuw nsw i64 %indvars.iv147, %63
  %67 = mul nuw nsw i64 %66, 81
  br label %.preheader98

68:                                               ; preds = %82
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %exitcond154.not = icmp eq i64 %indvars.iv.next152, 3
  br i1 %exitcond154.not, label %.preheader101, label %.preheader100, !llvm.loop !15

.preheader98:                                     ; preds = %.preheader99, %87
  %indvars.iv143 = phi i64 [ 0, %.preheader99 ], [ %indvars.iv.next144, %87 ]
  %69 = add nuw nsw i64 %indvars.iv143, %indvars.iv151
  %70 = mul nuw nsw i64 %indvars.iv143, 3
  %71 = trunc nuw nsw i64 %69 to i32
  %72 = urem i32 %71, 3
  %73 = icmp eq i32 %72, 0
  %74 = trunc i64 %69 to i32
  %75 = add i32 %74, 1
  %76 = urem i32 %75, 3
  %77 = icmp eq i32 %76, 0
  %78 = trunc i64 %69 to i32
  %79 = add i32 %78, 2
  %80 = urem i32 %79, 3
  %81 = icmp eq i32 %80, 0
  br label %.preheader97

82:                                               ; preds = %87
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond150.not = icmp eq i64 %indvars.iv.next148, 3
  br i1 %exitcond150.not, label %68, label %.preheader99, !llvm.loop !16

.preheader97:                                     ; preds = %.preheader98, %.split.us113
  %indvars.iv140 = phi i64 [ 0, %.preheader98 ], [ %indvars.iv.next141, %.split.us113 ]
  %83 = add nuw nsw i64 %indvars.iv140, %indvars.iv147
  %84 = add nuw nsw i64 %indvars.iv140, %70
  %.not85 = icmp ugt i64 %66, %84
  %85 = mul nuw nsw i64 %84, 9
  %86 = add nuw nsw i64 %85, %67
  %.not85.fr = freeze i1 %.not85
  br i1 %.not85.fr, label %.split.us113, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader97
  br i1 %73, label %.preheader.split.us.preheader, label %.split108.us.split

87:                                               ; preds = %.split.us113
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next144, 3
  br i1 %exitcond146.not, label %82, label %.preheader98, !llvm.loop !17

.preheader.split.us.preheader:                    ; preds = %.preheader.preheader
  %88 = trunc nuw nsw i64 %83 to i32
  %89 = urem i32 %88, 3
  %90 = icmp eq i32 %89, 0
  %.not86.us.not = icmp eq i64 %84, 0
  %or.cond = select i1 %90, i1 %.not86.us.not, i1 false
  br i1 %or.cond, label %91, label %.preheader.split.us.1

91:                                               ; preds = %.preheader.split.us.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %92 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %86)
          to label %.preheader.split.us.1.thread unwind label %.split.us

.preheader.split.us.1:                            ; preds = %.preheader.split.us.preheader
  %93 = trunc i64 %83 to i32
  %94 = add i32 %93, 1
  %95 = urem i32 %94, 3
  %96 = icmp ne i32 %95, 0
  %.not86.us.1 = icmp ugt i64 %84, 1
  %or.cond162 = select i1 %96, i1 true, i1 %.not86.us.1
  br i1 %or.cond162, label %.preheader.split.us.2, label %.thread

.preheader.split.us.1.thread:                     ; preds = %91
  %97 = extractvalue { ptr, i64 } %92, 0
  store ptr %97, ptr %14, align 8
  %98 = extractvalue { ptr, i64 } %92, 1
  store i64 %98, ptr %24, align 8
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  %100 = trunc i64 %83 to i32
  %101 = add i32 %100, 1
  %102 = urem i32 %101, 3
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %.thread, label %.preheader.split.us.2.thread

.thread:                                          ; preds = %.preheader.split.us.1, %.preheader.split.us.1.thread
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %104 = add nuw nsw i64 %86, 1
  %105 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %104)
          to label %106 unwind label %.split.us

106:                                              ; preds = %.thread
  %107 = extractvalue { ptr, i64 } %105, 0
  store ptr %107, ptr %14, align 8
  %108 = extractvalue { ptr, i64 } %105, 1
  store i64 %108, ptr %24, align 8
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.preheader.split.us.2

.preheader.split.us.2:                            ; preds = %106, %.preheader.split.us.1
  %110 = trunc i64 %83 to i32
  %111 = add i32 %110, 2
  %112 = urem i32 %111, 3
  %113 = icmp ne i32 %112, 0
  %.not86.us.2 = icmp ugt i64 %84, 2
  %or.cond163 = select i1 %113, i1 true, i1 %.not86.us.2
  br i1 %or.cond163, label %.split108.us.split, label %.thread160

.preheader.split.us.2.thread:                     ; preds = %.preheader.split.us.1.thread
  %114 = trunc i64 %83 to i32
  %115 = add i32 %114, 2
  %116 = urem i32 %115, 3
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %.thread160, label %.split108.us.split

.thread160:                                       ; preds = %.preheader.split.us.2, %.preheader.split.us.2.thread
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %118 = add nuw nsw i64 %86, 2
  %119 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %118)
          to label %120 unwind label %.split.us

120:                                              ; preds = %.thread160
  %121 = extractvalue { ptr, i64 } %119, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i64 } %119, 1
  store i64 %122, ptr %24, align 8
  %123 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.split108.us.split

.split.us:                                        ; preds = %182, %171, %160, %150, %139, %128, %.thread160, %.thread, %91
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %245

.split.us113:                                     ; preds = %.split108.us.split.1, %185, %.preheader.split.us.2.2, %.preheader97
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next141, 3
  br i1 %exitcond.not, label %87, label %.preheader97, !llvm.loop !18

.split108.us.split:                               ; preds = %.preheader.split.us.2, %120, %.preheader.split.us.2.thread, %.preheader.preheader
  br i1 %77, label %.preheader.split.us.preheader.1, label %.split108.us.split.1

.preheader.split.us.preheader.1:                  ; preds = %.split108.us.split
  %125 = trunc nuw nsw i64 %83 to i32
  %126 = urem i32 %125, 3
  %127 = icmp ne i32 %126, 0
  %.not86.us.1137 = icmp ugt i64 %84, 3
  %or.cond164 = select i1 %127, i1 true, i1 %.not86.us.1137
  br i1 %or.cond164, label %.preheader.split.us.1.1, label %128

128:                                              ; preds = %.preheader.split.us.preheader.1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %129 = add nuw nsw i64 %86, 3
  %130 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %129)
          to label %131 unwind label %.split.us

131:                                              ; preds = %128
  %132 = extractvalue { ptr, i64 } %130, 0
  store ptr %132, ptr %14, align 8
  %133 = extractvalue { ptr, i64 } %130, 1
  store i64 %133, ptr %24, align 8
  %134 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.preheader.split.us.1.1

.preheader.split.us.1.1:                          ; preds = %131, %.preheader.split.us.preheader.1
  %135 = trunc i64 %83 to i32
  %136 = add i32 %135, 1
  %137 = urem i32 %136, 3
  %138 = icmp ne i32 %137, 0
  %.not86.us.1.1 = icmp ugt i64 %84, 4
  %or.cond165 = select i1 %138, i1 true, i1 %.not86.us.1.1
  br i1 %or.cond165, label %.preheader.split.us.2.1, label %139

139:                                              ; preds = %.preheader.split.us.1.1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %140 = add nuw nsw i64 %86, 4
  %141 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %140)
          to label %142 unwind label %.split.us

142:                                              ; preds = %139
  %143 = extractvalue { ptr, i64 } %141, 0
  store ptr %143, ptr %14, align 8
  %144 = extractvalue { ptr, i64 } %141, 1
  store i64 %144, ptr %24, align 8
  %145 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.preheader.split.us.2.1

.preheader.split.us.2.1:                          ; preds = %142, %.preheader.split.us.1.1
  %146 = trunc i64 %83 to i32
  %147 = add i32 %146, 2
  %148 = urem i32 %147, 3
  %149 = icmp ne i32 %148, 0
  %.not86.us.2.1 = icmp ugt i64 %84, 5
  %or.cond166 = select i1 %149, i1 true, i1 %.not86.us.2.1
  br i1 %or.cond166, label %.split108.us.split.1, label %150

150:                                              ; preds = %.preheader.split.us.2.1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %151 = add nuw nsw i64 %86, 5
  %152 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %151)
          to label %153 unwind label %.split.us

153:                                              ; preds = %150
  %154 = extractvalue { ptr, i64 } %152, 0
  store ptr %154, ptr %14, align 8
  %155 = extractvalue { ptr, i64 } %152, 1
  store i64 %155, ptr %24, align 8
  %156 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.split108.us.split.1

.split108.us.split.1:                             ; preds = %.preheader.split.us.2.1, %153, %.split108.us.split
  br i1 %81, label %.preheader.split.us.preheader.2, label %.split.us113

.preheader.split.us.preheader.2:                  ; preds = %.split108.us.split.1
  %157 = trunc nuw nsw i64 %83 to i32
  %158 = urem i32 %157, 3
  %159 = icmp ne i32 %158, 0
  %.not86.us.2139 = icmp ugt i64 %84, 6
  %or.cond167 = select i1 %159, i1 true, i1 %.not86.us.2139
  br i1 %or.cond167, label %.preheader.split.us.1.2, label %160

160:                                              ; preds = %.preheader.split.us.preheader.2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %161 = add nuw nsw i64 %86, 6
  %162 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %161)
          to label %163 unwind label %.split.us

163:                                              ; preds = %160
  %164 = extractvalue { ptr, i64 } %162, 0
  store ptr %164, ptr %14, align 8
  %165 = extractvalue { ptr, i64 } %162, 1
  store i64 %165, ptr %24, align 8
  %166 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.preheader.split.us.1.2

.preheader.split.us.1.2:                          ; preds = %163, %.preheader.split.us.preheader.2
  %167 = trunc i64 %83 to i32
  %168 = add i32 %167, 1
  %169 = urem i32 %168, 3
  %170 = icmp ne i32 %169, 0
  %.not86.us.1.2 = icmp ugt i64 %84, 7
  %or.cond168 = select i1 %170, i1 true, i1 %.not86.us.1.2
  br i1 %or.cond168, label %.preheader.split.us.2.2, label %171

171:                                              ; preds = %.preheader.split.us.1.2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %172 = add nuw nsw i64 %86, 7
  %173 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %172)
          to label %174 unwind label %.split.us

174:                                              ; preds = %171
  %175 = extractvalue { ptr, i64 } %173, 0
  store ptr %175, ptr %14, align 8
  %176 = extractvalue { ptr, i64 } %173, 1
  store i64 %176, ptr %24, align 8
  %177 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.preheader.split.us.2.2

.preheader.split.us.2.2:                          ; preds = %174, %.preheader.split.us.1.2
  %178 = trunc i64 %83 to i32
  %179 = add i32 %178, 2
  %180 = urem i32 %179, 3
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %.split.us113

182:                                              ; preds = %.preheader.split.us.2.2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %183 = add nuw nsw i64 %86, 8
  %184 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %183)
          to label %185 unwind label %.split.us

185:                                              ; preds = %182
  %186 = extractvalue { ptr, i64 } %184, 0
  store ptr %186, ptr %14, align 8
  %187 = extractvalue { ptr, i64 } %184, 1
  store i64 %187, ptr %24, align 8
  %188 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.split.us113

189:                                              ; preds = %231
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %232 unwind label %243

.preheader101:                                    ; preds = %68, %231
  %indvars.iv155 = phi i64 [ %indvars.iv.next156, %231 ], [ 0, %68 ]
  %.061118 = phi i64 [ %.263, %231 ], [ 0, %68 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %191 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %indvars.iv155)
          to label %192 unwind label %215

192:                                              ; preds = %.preheader101
  %193 = extractvalue { ptr, i64 } %191, 0
  store ptr %193, ptr %15, align 8
  %194 = extractvalue { ptr, i64 } %191, 1
  store i64 %194, ptr %25, align 8
  %195 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br i1 %195, label %196, label %231

196:                                              ; preds = %192
  %.lhs.trunc = trunc i64 %indvars.iv155 to i16
  %197 = udiv i16 %.lhs.trunc, 81
  %198 = urem i16 %.lhs.trunc, 81
  %.lhs.trunc93 = trunc nuw nsw i16 %198 to i8
  %199 = udiv i8 %.lhs.trunc93, 9
  %200 = zext nneg i8 %199 to i16
  %201 = icmp eq i16 %197, %200
  br i1 %201, label %202, label %217

202:                                              ; preds = %196
  %203 = zext nneg i16 %197 to i64
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %203) #6
  %205 = load i64, ptr %204, align 8, !tbaa !11
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %203) #6
  %207 = load i64, ptr %206, align 8, !tbaa !11
  %208 = add nsw i64 %207, -1
  %209 = mul nsw i64 %208, %205
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %203) #6
  %211 = load i64, ptr %210, align 8, !tbaa !11
  %212 = add nsw i64 %211, -2
  %213 = mul nsw i64 %209, %212
  %214 = sdiv i64 %213, 6
  br label %230

215:                                              ; preds = %.preheader101
  %216 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %245

217:                                              ; preds = %196
  %218 = urem i16 %.lhs.trunc, 9
  %219 = zext nneg i16 %197 to i64
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %219) #6
  %221 = load i64, ptr %220, align 8, !tbaa !11
  %222 = zext nneg i8 %199 to i64
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %222) #6
  %224 = load i64, ptr %223, align 8, !tbaa !11
  %225 = mul nsw i64 %224, %221
  %226 = zext nneg i16 %218 to i64
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %226) #6
  %228 = load i64, ptr %227, align 8, !tbaa !11
  %229 = mul nsw i64 %225, %228
  br label %230

230:                                              ; preds = %217, %202
  %.pn84 = phi i64 [ %214, %202 ], [ %229, %217 ]
  %.162 = add nsw i64 %.pn84, %.061118
  br label %231

231:                                              ; preds = %192, %230
  %.263 = phi i64 [ %.162, %230 ], [ %.061118, %192 ]
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %exitcond158.not = icmp eq i64 %indvars.iv.next156, 729
  br i1 %exitcond158.not, label %189, label %.preheader101, !llvm.loop !19

232:                                              ; preds = %189
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %190, i32 noundef %.0122)
          to label %234 unwind label %243

234:                                              ; preds = %232
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef nonnull @.str.1)
          to label %236 unwind label %243

236:                                              ; preds = %234
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %235, i64 noundef %.263)
          to label %238 unwind label %243

238:                                              ; preds = %236
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %237, i8 noundef signext 10)
          to label %240 unwind label %243

240:                                              ; preds = %238
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %241 = add nuw nsw i32 %.0122, 1
  %242 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.0122, %242
  br i1 %.not.not, label %26, label %._crit_edge125, !llvm.loop !20

243:                                              ; preds = %238, %236, %234, %232, %189
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %245

245:                                              ; preds = %215, %243, %.split.us
  %.pn87 = phi { ptr, i32 } [ %124, %.split.us ], [ %216, %215 ], [ %244, %243 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  br label %246

246:                                              ; preds = %245, %64
  %.pn87.pn = phi { ptr, i32 } [ %.pn87, %245 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %247

247:                                              ; preds = %246, %40
  %.pn87.pn.pn = phi { ptr, i32 } [ %.pn87.pn, %246 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn87.pn.pn
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #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 #2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

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

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 @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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 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 #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 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 = !{!"long long", !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}


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