; LLVM IR from VastoLorde95/Competitive-Programming :: Timus/1698 (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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::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" }

@num1 = external dso_local global %"class.std::vector", align 8
@num2 = external dso_local global %"class.std::vector", align 8
@n = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %13 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %14 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %16
  %18 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %17, ptr noundef null)
  %19 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %21
  %23 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %25 = load i32, ptr @n, align 4, !tbaa !8
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %27, label %30

27:                                               ; preds = %0
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 3)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  br label %262

30:                                               ; preds = %0
  %31 = load i32, ptr @n, align 4, !tbaa !8
  %32 = sext i32 %31 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %32, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef 0) #7
  store i32 5, ptr %33, align 4, !tbaa !8
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef 1) #7
  store i32 2, ptr %34, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !8
  br label %35

35:                                               ; preds = %127, %30
  %36 = load i32, ptr %3, align 4, !tbaa !8
  %37 = load i32, ptr @n, align 4, !tbaa !8
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %130

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %41 = load i32, ptr %3, align 4, !tbaa !8
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %42) #7
  %44 = load i32, ptr %43, align 4, !tbaa !8
  %45 = srem i32 %44, 10
  store i32 %45, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !8
  br label %46

46:                                               ; preds = %74, %40
  %47 = load i32, ptr %6, align 4, !tbaa !8
  %48 = load i32, ptr %3, align 4, !tbaa !8
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %50, label %56

50:                                               ; preds = %46
  %51 = load i32, ptr %3, align 4, !tbaa !8
  %52 = load i32, ptr %6, align 4, !tbaa !8
  %53 = add nsw i32 %51, %52
  %54 = load i32, ptr @n, align 4, !tbaa !8
  %55 = icmp slt i32 %53, %54
  br label %56

56:                                               ; preds = %50, %46
  %57 = phi i1 [ false, %46 ], [ %55, %50 ]
  br i1 %57, label %59, label %58

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

59:                                               ; preds = %56
  %60 = load i32, ptr %5, align 4, !tbaa !8
  %61 = load i32, ptr %6, align 4, !tbaa !8
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %62) #7
  %64 = load i32, ptr %63, align 4, !tbaa !8
  %65 = mul nsw i32 %60, %64
  %66 = mul nsw i32 %65, 2
  %67 = load i32, ptr %3, align 4, !tbaa !8
  %68 = load i32, ptr %6, align 4, !tbaa !8
  %69 = add nsw i32 %67, %68
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %70) #7
  %72 = load i32, ptr %71, align 4, !tbaa !8
  %73 = add nsw i32 %72, %66
  store i32 %73, ptr %71, align 4, !tbaa !8
  br label %74

74:                                               ; preds = %59
  %75 = load i32, ptr %6, align 4, !tbaa !8
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %6, align 4, !tbaa !8
  br label %46, !llvm.loop !11

77:                                               ; preds = %58
  %78 = load i32, ptr %3, align 4, !tbaa !8
  %79 = load i32, ptr %3, align 4, !tbaa !8
  %80 = add nsw i32 %78, %79
  %81 = load i32, ptr @n, align 4, !tbaa !8
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %83, label %94

83:                                               ; preds = %77
  %84 = load i32, ptr %5, align 4, !tbaa !8
  %85 = load i32, ptr %5, align 4, !tbaa !8
  %86 = mul nsw i32 %84, %85
  %87 = load i32, ptr %3, align 4, !tbaa !8
  %88 = load i32, ptr %3, align 4, !tbaa !8
  %89 = add nsw i32 %87, %88
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %90) #7
  %92 = load i32, ptr %91, align 4, !tbaa !8
  %93 = add nsw i32 %92, %86
  store i32 %93, ptr %91, align 4, !tbaa !8
  br label %94

94:                                               ; preds = %83, %77
  %95 = load i32, ptr %3, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %96) #7
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %99 = srem i32 %98, 10
  %100 = load i32, ptr %5, align 4, !tbaa !8
  %101 = icmp eq i32 %99, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %94
  br label %105

103:                                              ; preds = %94
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.3, i32 noundef 63, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

104:                                              ; No predecessors!
  br label %105

105:                                              ; preds = %104, %102
  %106 = load i32, ptr %3, align 4, !tbaa !8
  %107 = add nsw i32 %106, 1
  %108 = load i32, ptr @n, align 4, !tbaa !8
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %110, label %122

110:                                              ; preds = %105
  %111 = load i32, ptr %3, align 4, !tbaa !8
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %112) #7
  %114 = load i32, ptr %113, align 4, !tbaa !8
  %115 = sdiv i32 %114, 10
  %116 = load i32, ptr %3, align 4, !tbaa !8
  %117 = add nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %118) #7
  %120 = load i32, ptr %119, align 4, !tbaa !8
  %121 = add nsw i32 %120, %115
  store i32 %121, ptr %119, align 4, !tbaa !8
  br label %122

122:                                              ; preds = %110, %105
  %123 = load i32, ptr %5, align 4, !tbaa !8
  %124 = load i32, ptr %3, align 4, !tbaa !8
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %125) #7
  store i32 %123, ptr %126, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %127

127:                                              ; preds = %122
  %128 = load i32, ptr %3, align 4, !tbaa !8
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %3, align 4, !tbaa !8
  br label %35, !llvm.loop !13

130:                                              ; preds = %39
  %131 = load i32, ptr @n, align 4, !tbaa !8
  %132 = sext i32 %131 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %132, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef 0) #7
  store i32 6, ptr %133, align 4, !tbaa !8
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef 1) #7
  store i32 3, ptr %134, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !8
  br label %135

135:                                              ; preds = %229, %130
  %136 = load i32, ptr %8, align 4, !tbaa !8
  %137 = load i32, ptr @n, align 4, !tbaa !8
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %232

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %141 = load i32, ptr %8, align 4, !tbaa !8
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %142) #7
  %144 = load i32, ptr %143, align 4, !tbaa !8
  %145 = srem i32 %144, 10
  %146 = sub nsw i32 10, %145
  %147 = srem i32 %146, 10
  store i32 %147, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !8
  br label %148

148:                                              ; preds = %176, %140
  %149 = load i32, ptr %10, align 4, !tbaa !8
  %150 = load i32, ptr %8, align 4, !tbaa !8
  %151 = icmp slt i32 %149, %150
  br i1 %151, label %152, label %158

152:                                              ; preds = %148
  %153 = load i32, ptr %8, align 4, !tbaa !8
  %154 = load i32, ptr %10, align 4, !tbaa !8
  %155 = add nsw i32 %153, %154
  %156 = load i32, ptr @n, align 4, !tbaa !8
  %157 = icmp slt i32 %155, %156
  br label %158

158:                                              ; preds = %152, %148
  %159 = phi i1 [ false, %148 ], [ %157, %152 ]
  br i1 %159, label %161, label %160

160:                                              ; preds = %158
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %179

161:                                              ; preds = %158
  %162 = load i32, ptr %9, align 4, !tbaa !8
  %163 = load i32, ptr %10, align 4, !tbaa !8
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %164) #7
  %166 = load i32, ptr %165, align 4, !tbaa !8
  %167 = mul nsw i32 %162, %166
  %168 = mul nsw i32 %167, 2
  %169 = load i32, ptr %8, align 4, !tbaa !8
  %170 = load i32, ptr %10, align 4, !tbaa !8
  %171 = add nsw i32 %169, %170
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %172) #7
  %174 = load i32, ptr %173, align 4, !tbaa !8
  %175 = add nsw i32 %174, %168
  store i32 %175, ptr %173, align 4, !tbaa !8
  br label %176

176:                                              ; preds = %161
  %177 = load i32, ptr %10, align 4, !tbaa !8
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %10, align 4, !tbaa !8
  br label %148, !llvm.loop !14

179:                                              ; preds = %160
  %180 = load i32, ptr %8, align 4, !tbaa !8
  %181 = load i32, ptr %8, align 4, !tbaa !8
  %182 = add nsw i32 %180, %181
  %183 = load i32, ptr @n, align 4, !tbaa !8
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %185, label %196

185:                                              ; preds = %179
  %186 = load i32, ptr %9, align 4, !tbaa !8
  %187 = load i32, ptr %9, align 4, !tbaa !8
  %188 = mul nsw i32 %186, %187
  %189 = load i32, ptr %8, align 4, !tbaa !8
  %190 = load i32, ptr %8, align 4, !tbaa !8
  %191 = add nsw i32 %189, %190
  %192 = sext i32 %191 to i64
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %192) #7
  %194 = load i32, ptr %193, align 4, !tbaa !8
  %195 = add nsw i32 %194, %188
  store i32 %195, ptr %193, align 4, !tbaa !8
  br label %196

196:                                              ; preds = %185, %179
  %197 = load i32, ptr %8, align 4, !tbaa !8
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %198) #7
  %200 = load i32, ptr %199, align 4, !tbaa !8
  %201 = srem i32 %200, 10
  %202 = load i32, ptr %9, align 4, !tbaa !8
  %203 = icmp eq i32 %201, %202
  br i1 %203, label %204, label %205

204:                                              ; preds = %196
  br label %207

205:                                              ; preds = %196
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 83, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

206:                                              ; No predecessors!
  br label %207

207:                                              ; preds = %206, %204
  %208 = load i32, ptr %8, align 4, !tbaa !8
  %209 = add nsw i32 %208, 1
  %210 = load i32, ptr @n, align 4, !tbaa !8
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %212, label %224

212:                                              ; preds = %207
  %213 = load i32, ptr %8, align 4, !tbaa !8
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %214) #7
  %216 = load i32, ptr %215, align 4, !tbaa !8
  %217 = sdiv i32 %216, 10
  %218 = load i32, ptr %8, align 4, !tbaa !8
  %219 = add nsw i32 %218, 1
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %220) #7
  %222 = load i32, ptr %221, align 4, !tbaa !8
  %223 = add nsw i32 %222, %217
  store i32 %223, ptr %221, align 4, !tbaa !8
  br label %224

224:                                              ; preds = %212, %207
  %225 = load i32, ptr %9, align 4, !tbaa !8
  %226 = load i32, ptr %8, align 4, !tbaa !8
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %227) #7
  store i32 %225, ptr %228, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %229

229:                                              ; preds = %224
  %230 = load i32, ptr %8, align 4, !tbaa !8
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %8, align 4, !tbaa !8
  br label %135, !llvm.loop !15

232:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 3, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !8
  br label %233

233:                                              ; preds = %255, %232
  %234 = load i32, ptr %12, align 4, !tbaa !8
  %235 = load i32, ptr @n, align 4, !tbaa !8
  %236 = icmp slt i32 %234, %235
  br i1 %236, label %238, label %237

237:                                              ; preds = %233
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %258

238:                                              ; preds = %233
  %239 = load i32, ptr %12, align 4, !tbaa !8
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %240) #7
  %242 = load i32, ptr %241, align 4, !tbaa !8
  %243 = icmp sgt i32 %242, 0
  %244 = zext i1 %243 to i32
  %245 = load i32, ptr %11, align 4, !tbaa !8
  %246 = add nsw i32 %245, %244
  store i32 %246, ptr %11, align 4, !tbaa !8
  %247 = load i32, ptr %12, align 4, !tbaa !8
  %248 = sext i32 %247 to i64
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %248) #7
  %250 = load i32, ptr %249, align 4, !tbaa !8
  %251 = icmp sgt i32 %250, 0
  %252 = zext i1 %251 to i32
  %253 = load i32, ptr %11, align 4, !tbaa !8
  %254 = add nsw i32 %253, %252
  store i32 %254, ptr %11, align 4, !tbaa !8
  br label %255

255:                                              ; preds = %238
  %256 = load i32, ptr %12, align 4, !tbaa !8
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %12, align 4, !tbaa !8
  br label %233, !llvm.loop !16

258:                                              ; preds = %237
  %259 = load i32, ptr %11, align 4, !tbaa !8
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %259)
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %262

262:                                              ; preds = %258, %27
  %263 = load i32, ptr %1, align 4
  ret i32 %263
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::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" }

@num1 = external dso_local global %"class.std::vector", align 8
@num2 = external dso_local global %"class.std::vector", align 8
@n = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %4 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %6
  %8 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %7, ptr noundef null)
  %9 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %15 = load i32, ptr @n, align 4, !tbaa !8
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %20

17:                                               ; preds = %0
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 3)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %142

20:                                               ; preds = %0
  %21 = sext i32 %15 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %21, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef 0) #7
  store i32 5, ptr %22, align 4, !tbaa !8
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef 1) #7
  store i32 2, ptr %23, align 4, !tbaa !8
  %24 = load i32, ptr @n, align 4, !tbaa !8
  %25 = icmp sgt i32 %24, 1
  br i1 %25, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %20
  %.pre106 = sext i32 %24 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %72, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre106, %.._crit_edge_crit_edge ], [ %75, %72 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %.pre-phi, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef 0) #7
  store i32 6, ptr %26, align 4, !tbaa !8
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef 1) #7
  store i32 3, ptr %27, align 4, !tbaa !8
  %28 = load i32, ptr @n, align 4, !tbaa !8
  %29 = icmp sgt i32 %28, 1
  br i1 %29, label %.lr.ph83, label %._crit_edge87

.lr.ph:                                           ; preds = %20, %72
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %72 ], [ 1, %20 ]
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %indvars.iv92) #7
  %31 = load i32, ptr %30, align 4, !tbaa !8
  %32 = srem i32 %31, 10
  %33 = shl nsw i32 %32, 1
  br label %34

34:                                               ; preds = %.lr.ph, %43
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %43 ]
  %35 = add nuw nsw i64 %indvars.iv, %indvars.iv92
  %36 = load i32, ptr @n, align 4, !tbaa !8
  %37 = sext i32 %36 to i64
  %38 = icmp slt i64 %35, %37
  br i1 %38, label %43, label %.critedge

.critedge:                                        ; preds = %34, %..critedge_crit_edge
  %39 = phi i32 [ %.pre, %..critedge_crit_edge ], [ %36, %34 ]
  %40 = shl nuw nsw i64 %indvars.iv92, 1
  %41 = trunc nuw i64 %40 to i32
  %42 = icmp sgt i32 %39, %41
  br i1 %42, label %50, label %55

43:                                               ; preds = %34
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %indvars.iv) #7
  %45 = load i32, ptr %44, align 4, !tbaa !8
  %46 = mul i32 %33, %45
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %35) #7
  %48 = load i32, ptr %47, align 4, !tbaa !8
  %49 = add nsw i32 %48, %46
  store i32 %49, ptr %47, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv92
  br i1 %exitcond.not, label %..critedge_crit_edge, label %34, !llvm.loop !11

..critedge_crit_edge:                             ; preds = %43
  %.pre = load i32, ptr @n, align 4, !tbaa !8
  br label %.critedge

50:                                               ; preds = %.critedge
  %51 = mul nsw i32 %32, %32
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %40) #7
  %53 = load i32, ptr %52, align 4, !tbaa !8
  %54 = add nsw i32 %53, %51
  store i32 %54, ptr %52, align 4, !tbaa !8
  br label %55

55:                                               ; preds = %50, %.critedge
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %indvars.iv92) #7
  %57 = load i32, ptr %56, align 4, !tbaa !8
  %58 = srem i32 %57, 10
  %59 = icmp eq i32 %58, %32
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef 63, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

61:                                               ; preds = %55
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %62 = load i32, ptr @n, align 4, !tbaa !8
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next93, %63
  br i1 %64, label %65, label %72

65:                                               ; preds = %61
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %indvars.iv92) #7
  %67 = load i32, ptr %66, align 4, !tbaa !8
  %68 = sdiv i32 %67, 10
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %indvars.iv.next93) #7
  %70 = load i32, ptr %69, align 4, !tbaa !8
  %71 = add nsw i32 %70, %68
  store i32 %71, ptr %69, align 4, !tbaa !8
  br label %72

72:                                               ; preds = %65, %61
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %indvars.iv92) #7
  store i32 %32, ptr %73, align 4, !tbaa !8
  %74 = load i32, ptr @n, align 4, !tbaa !8
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next93, %75
  br i1 %76, label %.lr.ph, label %._crit_edge, !llvm.loop !13

.preheader:                                       ; preds = %122
  %77 = icmp sgt i32 %124, 1
  br i1 %77, label %.lr.ph86, label %._crit_edge87

.lr.ph83:                                         ; preds = %._crit_edge, %122
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %122 ], [ 1, %._crit_edge ]
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %indvars.iv99) #7
  %79 = load i32, ptr %78, align 4, !tbaa !8
  %.fr76 = freeze i32 %79
  %80 = srem i32 %.fr76, 10
  %81 = sub nsw i32 10, %80
  %.urem = sub nsw i32 0, %80
  %.cmp = icmp ult i32 %81, 10
  %82 = select i1 %.cmp, i32 %81, i32 %.urem
  %83 = shl nsw i32 %82, 1
  br label %84

84:                                               ; preds = %.lr.ph83, %93
  %indvars.iv95 = phi i64 [ 0, %.lr.ph83 ], [ %indvars.iv.next96, %93 ]
  %85 = add nuw nsw i64 %indvars.iv95, %indvars.iv99
  %86 = load i32, ptr @n, align 4, !tbaa !8
  %87 = sext i32 %86 to i64
  %88 = icmp slt i64 %85, %87
  br i1 %88, label %93, label %.critedge2

.critedge2:                                       ; preds = %84, %..critedge2_crit_edge
  %89 = phi i32 [ %.pre105, %..critedge2_crit_edge ], [ %86, %84 ]
  %90 = shl nuw nsw i64 %indvars.iv99, 1
  %91 = trunc nuw i64 %90 to i32
  %92 = icmp sgt i32 %89, %91
  br i1 %92, label %100, label %105

93:                                               ; preds = %84
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %indvars.iv95) #7
  %95 = load i32, ptr %94, align 4, !tbaa !8
  %96 = mul i32 %83, %95
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %85) #7
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %99 = add nsw i32 %98, %96
  store i32 %99, ptr %97, align 4, !tbaa !8
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next96, %indvars.iv99
  br i1 %exitcond98.not, label %..critedge2_crit_edge, label %84, !llvm.loop !14

..critedge2_crit_edge:                            ; preds = %93
  %.pre105 = load i32, ptr @n, align 4, !tbaa !8
  br label %.critedge2

100:                                              ; preds = %.critedge2
  %101 = mul nuw nsw i32 %82, %82
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %90) #7
  %103 = load i32, ptr %102, align 4, !tbaa !8
  %104 = add nsw i32 %103, %101
  store i32 %104, ptr %102, align 4, !tbaa !8
  br label %105

105:                                              ; preds = %100, %.critedge2
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %indvars.iv99) #7
  %107 = load i32, ptr %106, align 4, !tbaa !8
  %108 = srem i32 %107, 10
  %109 = icmp eq i32 %108, %82
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 83, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

111:                                              ; preds = %105
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %112 = load i32, ptr @n, align 4, !tbaa !8
  %113 = sext i32 %112 to i64
  %114 = icmp slt i64 %indvars.iv.next100, %113
  br i1 %114, label %115, label %122

115:                                              ; preds = %111
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %indvars.iv99) #7
  %117 = load i32, ptr %116, align 4, !tbaa !8
  %118 = sdiv i32 %117, 10
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %indvars.iv.next100) #7
  %120 = load i32, ptr %119, align 4, !tbaa !8
  %121 = add nsw i32 %120, %118
  store i32 %121, ptr %119, align 4, !tbaa !8
  br label %122

122:                                              ; preds = %115, %111
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %indvars.iv99) #7
  store i32 %82, ptr %123, align 4, !tbaa !8
  %124 = load i32, ptr @n, align 4, !tbaa !8
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next100, %125
  br i1 %126, label %.lr.ph83, label %.preheader, !llvm.loop !15

._crit_edge87:                                    ; preds = %.lr.ph86, %._crit_edge, %.preheader
  %.060.lcssa = phi i32 [ 3, %.preheader ], [ 3, %._crit_edge ], [ %138, %.lr.ph86 ]
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.060.lcssa)
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %142

.lr.ph86:                                         ; preds = %.preheader, %.lr.ph86
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %.lr.ph86 ], [ 1, %.preheader ]
  %.06084 = phi i32 [ %138, %.lr.ph86 ], [ 3, %.preheader ]
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num1, i64 noundef %indvars.iv102) #7
  %130 = load i32, ptr %129, align 4, !tbaa !8
  %131 = icmp sgt i32 %130, 0
  %132 = zext i1 %131 to i32
  %133 = add nsw i32 %.06084, %132
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @num2, i64 noundef %indvars.iv102) #7
  %135 = load i32, ptr %134, align 4, !tbaa !8
  %136 = icmp sgt i32 %135, 0
  %137 = zext i1 %136 to i32
  %138 = add nsw i32 %133, %137
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %139 = load i32, ptr @n, align 4, !tbaa !8
  %140 = sext i32 %139 to i64
  %141 = icmp slt i64 %indvars.iv.next103, %140
  br i1 %141, label %.lr.ph86, label %._crit_edge87, !llvm.loop !16

142:                                              ; preds = %._crit_edge87, %17
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

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

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


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