; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/Neps Academy/Caverna de Ordinskaya (OBI2016) (main)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = 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 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 %"class.std::vector", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %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 i8, align 1
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 -1, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %31 = load i64, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKyRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %31, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %32 unwind label %40

32:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %33 = load i64, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKyRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %33, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %34 unwind label %44

34:                                               ; preds = %32
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %58, %34
  %36 = load i64, ptr %16, align 8, !tbaa !5
  %37 = load i64, ptr %3, align 8, !tbaa !5
  %38 = icmp ult i64 %36, %37
  br i1 %38, label %48, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %65

40:                                               ; preds = %0
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %11, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %316

44:                                               ; preds = %32
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %11, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %315

48:                                               ; preds = %35
  %49 = load i64, ptr %16, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %49) #6
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %52 unwind label %61

52:                                               ; preds = %48
  %53 = load i64, ptr %16, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %53) #6
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = load i64, ptr %16, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %56) #6
  store i64 %55, ptr %57, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %52
  %59 = load i64, ptr %16, align 8, !tbaa !5
  %60 = add i64 %59, 1
  store i64 %60, ptr %16, align 8, !tbaa !5
  br label %35, !llvm.loop !9

61:                                               ; preds = %48
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %11, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %314

65:                                               ; preds = %39
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #6
  %67 = load i64, ptr %66, align 8, !tbaa !5
  store i64 %67, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 1, ptr %17, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %289, %65
  %69 = load i32, ptr %17, align 4, !tbaa !11
  %70 = sext i32 %69 to i64
  %71 = load i64, ptr %3, align 8, !tbaa !5
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %68
  store i32 5, ptr %18, align 4
  br label %293

74:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %75 = load i32, ptr %17, align 4, !tbaa !11
  %76 = sub nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %77) #6
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %81 = load i64, ptr %4, align 8, !tbaa !5
  %82 = load i32, ptr %17, align 4, !tbaa !11
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %84) #6
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = sub i64 %81, %86
  %88 = trunc i64 %87 to i32
  store i32 %88, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %89 = load i32, ptr %17, align 4, !tbaa !11
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %90) #6
  %92 = load i64, ptr %91, align 8, !tbaa !5
  %93 = trunc i64 %92 to i32
  store i32 %93, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %94 = load i64, ptr %4, align 8, !tbaa !5
  %95 = load i32, ptr %17, align 4, !tbaa !11
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %96) #6
  %98 = load i64, ptr %97, align 8, !tbaa !5
  %99 = sub i64 %94, %98
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 2147483647, ptr %23, align 4, !tbaa !11
  %101 = load i32, ptr %19, align 4, !tbaa !11
  %102 = load i32, ptr %21, align 4, !tbaa !11
  %103 = icmp sle i32 %101, %102
  br i1 %103, label %104, label %115

104:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %105 = load i32, ptr %19, align 4, !tbaa !11
  %106 = load i32, ptr %21, align 4, !tbaa !11
  %107 = add nsw i32 %105, %106
  store i32 %107, ptr %24, align 4, !tbaa !11
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %109 unwind label %111

109:                                              ; preds = %104
  %110 = load i32, ptr %108, align 4, !tbaa !11
  store i32 %110, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %115

111:                                              ; preds = %104
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %11, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %292

115:                                              ; preds = %109, %74
  %116 = load i32, ptr %19, align 4, !tbaa !11
  %117 = load i32, ptr %22, align 4, !tbaa !11
  %118 = icmp sle i32 %116, %117
  br i1 %118, label %119, label %130

119:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %120 = load i32, ptr %19, align 4, !tbaa !11
  %121 = load i32, ptr %22, align 4, !tbaa !11
  %122 = add nsw i32 %120, %121
  store i32 %122, ptr %25, align 4, !tbaa !11
  %123 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %124 unwind label %126

124:                                              ; preds = %119
  %125 = load i32, ptr %123, align 4, !tbaa !11
  store i32 %125, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %130

126:                                              ; preds = %119
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %11, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %292

130:                                              ; preds = %124, %115
  %131 = load i32, ptr %20, align 4, !tbaa !11
  %132 = load i32, ptr %21, align 4, !tbaa !11
  %133 = icmp sle i32 %131, %132
  br i1 %133, label %134, label %175

134:                                              ; preds = %130
  %135 = load i32, ptr %17, align 4, !tbaa !11
  %136 = sub nsw i32 %135, 2
  %137 = icmp sge i32 %136, 0
  br i1 %137, label %138, label %159

138:                                              ; preds = %134
  %139 = load i32, ptr %17, align 4, !tbaa !11
  %140 = sub nsw i32 %139, 2
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %141) #6
  %143 = load i64, ptr %142, align 8, !tbaa !5
  %144 = load i32, ptr %20, align 4, !tbaa !11
  %145 = sext i32 %144 to i64
  %146 = icmp ule i64 %143, %145
  br i1 %146, label %147, label %159

147:                                              ; preds = %138
  %148 = load i32, ptr %17, align 4, !tbaa !11
  %149 = sub nsw i32 %148, 1
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %150) #6
  %152 = load i64, ptr %151, align 8, !tbaa !5
  %153 = load i32, ptr %17, align 4, !tbaa !11
  %154 = sub nsw i32 %153, 1
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %155) #6
  %157 = load i64, ptr %156, align 8, !tbaa !5
  %158 = icmp eq i64 %152, %157
  br i1 %158, label %163, label %159

159:                                              ; preds = %147, %138, %134
  %160 = load i32, ptr %17, align 4, !tbaa !11
  %161 = sub nsw i32 %160, 1
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %174

163:                                              ; preds = %159, %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %164 = load i32, ptr %20, align 4, !tbaa !11
  %165 = load i32, ptr %21, align 4, !tbaa !11
  %166 = add nsw i32 %164, %165
  store i32 %166, ptr %26, align 4, !tbaa !11
  %167 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %168 unwind label %170

168:                                              ; preds = %163
  %169 = load i32, ptr %167, align 4, !tbaa !11
  store i32 %169, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %174

170:                                              ; preds = %163
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %11, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %292

174:                                              ; preds = %168, %159
  br label %175

175:                                              ; preds = %174, %130
  %176 = load i32, ptr %20, align 4, !tbaa !11
  %177 = load i32, ptr %22, align 4, !tbaa !11
  %178 = icmp sle i32 %176, %177
  br i1 %178, label %179, label %220

179:                                              ; preds = %175
  %180 = load i32, ptr %17, align 4, !tbaa !11
  %181 = sub nsw i32 %180, 2
  %182 = icmp sge i32 %181, 0
  br i1 %182, label %183, label %204

183:                                              ; preds = %179
  %184 = load i32, ptr %17, align 4, !tbaa !11
  %185 = sub nsw i32 %184, 2
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %186) #6
  %188 = load i64, ptr %187, align 8, !tbaa !5
  %189 = load i32, ptr %20, align 4, !tbaa !11
  %190 = sext i32 %189 to i64
  %191 = icmp ule i64 %188, %190
  br i1 %191, label %192, label %204

192:                                              ; preds = %183
  %193 = load i32, ptr %17, align 4, !tbaa !11
  %194 = sub nsw i32 %193, 1
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %195) #6
  %197 = load i64, ptr %196, align 8, !tbaa !5
  %198 = load i32, ptr %17, align 4, !tbaa !11
  %199 = sub nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %200) #6
  %202 = load i64, ptr %201, align 8, !tbaa !5
  %203 = icmp eq i64 %197, %202
  br i1 %203, label %208, label %204

204:                                              ; preds = %192, %183, %179
  %205 = load i32, ptr %17, align 4, !tbaa !11
  %206 = sub nsw i32 %205, 1
  %207 = icmp eq i32 %206, 0
  br i1 %207, label %208, label %219

208:                                              ; preds = %204, %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %209 = load i32, ptr %20, align 4, !tbaa !11
  %210 = load i32, ptr %22, align 4, !tbaa !11
  %211 = add nsw i32 %209, %210
  store i32 %211, ptr %27, align 4, !tbaa !11
  %212 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %213 unwind label %215

213:                                              ; preds = %208
  %214 = load i32, ptr %212, align 4, !tbaa !11
  store i32 %214, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %219

215:                                              ; preds = %208
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %11, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %292

219:                                              ; preds = %213, %204
  br label %220

220:                                              ; preds = %219, %175
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  store i8 0, ptr %28, align 1, !tbaa !13
  %221 = load i32, ptr %23, align 4, !tbaa !11
  %222 = load i32, ptr %19, align 4, !tbaa !11
  %223 = load i32, ptr %21, align 4, !tbaa !11
  %224 = add nsw i32 %222, %223
  %225 = icmp eq i32 %221, %224
  br i1 %225, label %226, label %229

226:                                              ; preds = %220
  %227 = load i32, ptr %21, align 4, !tbaa !11
  %228 = sext i32 %227 to i64
  store i64 %228, ptr %6, align 8, !tbaa !5
  br label %260

229:                                              ; preds = %220
  %230 = load i32, ptr %23, align 4, !tbaa !11
  %231 = load i32, ptr %19, align 4, !tbaa !11
  %232 = load i32, ptr %22, align 4, !tbaa !11
  %233 = add nsw i32 %231, %232
  %234 = icmp eq i32 %230, %233
  br i1 %234, label %235, label %238

235:                                              ; preds = %229
  %236 = load i32, ptr %22, align 4, !tbaa !11
  %237 = sext i32 %236 to i64
  store i64 %237, ptr %6, align 8, !tbaa !5
  br label %259

238:                                              ; preds = %229
  %239 = load i32, ptr %23, align 4, !tbaa !11
  %240 = load i32, ptr %20, align 4, !tbaa !11
  %241 = load i32, ptr %21, align 4, !tbaa !11
  %242 = add nsw i32 %240, %241
  %243 = icmp eq i32 %239, %242
  br i1 %243, label %244, label %247

244:                                              ; preds = %238
  store i8 1, ptr %28, align 1, !tbaa !13
  %245 = load i32, ptr %21, align 4, !tbaa !11
  %246 = sext i32 %245 to i64
  store i64 %246, ptr %6, align 8, !tbaa !5
  br label %258

247:                                              ; preds = %238
  %248 = load i32, ptr %23, align 4, !tbaa !11
  %249 = load i32, ptr %20, align 4, !tbaa !11
  %250 = load i32, ptr %22, align 4, !tbaa !11
  %251 = add nsw i32 %249, %250
  %252 = icmp eq i32 %248, %251
  br i1 %252, label %253, label %256

253:                                              ; preds = %247
  store i8 1, ptr %28, align 1, !tbaa !13
  %254 = load i32, ptr %22, align 4, !tbaa !11
  %255 = sext i32 %254 to i64
  store i64 %255, ptr %6, align 8, !tbaa !5
  br label %257

256:                                              ; preds = %247
  store i64 1, ptr %7, align 8, !tbaa !5
  store i32 5, ptr %18, align 4
  br label %286

257:                                              ; preds = %253
  br label %258

258:                                              ; preds = %257, %244
  br label %259

259:                                              ; preds = %258, %235
  br label %260

260:                                              ; preds = %259, %226
  %261 = load i8, ptr %28, align 1, !tbaa !13, !range !15, !noundef !16
  %262 = trunc i8 %261 to i1
  br i1 %262, label %263, label %278

263:                                              ; preds = %260
  %264 = load i32, ptr %20, align 4, !tbaa !11
  %265 = sext i32 %264 to i64
  %266 = load i32, ptr %17, align 4, !tbaa !11
  %267 = sub nsw i32 %266, 1
  %268 = sext i32 %267 to i64
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %268) #6
  store i64 %265, ptr %269, align 8, !tbaa !5
  %270 = load i32, ptr %19, align 4, !tbaa !11
  %271 = sext i32 %270 to i64
  %272 = load i64, ptr %2, align 8, !tbaa !5
  %273 = sub i64 %272, %271
  store i64 %273, ptr %2, align 8, !tbaa !5
  %274 = load i32, ptr %20, align 4, !tbaa !11
  %275 = sext i32 %274 to i64
  %276 = load i64, ptr %2, align 8, !tbaa !5
  %277 = add i64 %276, %275
  store i64 %277, ptr %2, align 8, !tbaa !5
  br label %278

278:                                              ; preds = %263, %260
  %279 = load i64, ptr %6, align 8, !tbaa !5
  %280 = load i32, ptr %17, align 4, !tbaa !11
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %281) #6
  store i64 %279, ptr %282, align 8, !tbaa !5
  %283 = load i64, ptr %6, align 8, !tbaa !5
  %284 = load i64, ptr %2, align 8, !tbaa !5
  %285 = add i64 %284, %283
  store i64 %285, ptr %2, align 8, !tbaa !5
  store i32 0, ptr %18, align 4
  br label %286

286:                                              ; preds = %278, %256
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %287 = load i32, ptr %18, align 4
  switch i32 %287, label %293 [
    i32 0, label %288
  ]

288:                                              ; preds = %286
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %17, align 4, !tbaa !11
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %17, align 4, !tbaa !11
  br label %68, !llvm.loop !17

292:                                              ; preds = %215, %170, %126, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %314

293:                                              ; preds = %286, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %294

294:                                              ; preds = %293
  %295 = load i64, ptr %7, align 8, !tbaa !5
  %296 = icmp ne i64 %295, 0
  br i1 %296, label %297, label %306

297:                                              ; preds = %294
  %298 = 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 %299 unwind label %302

299:                                              ; preds = %297
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %298, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %301 unwind label %302

301:                                              ; preds = %299
  br label %312

302:                                              ; preds = %309, %306, %299, %297
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %11, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %12, align 4
  br label %314

306:                                              ; preds = %294
  %307 = load i64, ptr %2, align 8, !tbaa !5
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %307)
          to label %309 unwind label %302

309:                                              ; preds = %306
  %310 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %308, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %311 unwind label %302

311:                                              ; preds = %309
  br label %312

312:                                              ; preds = %311, %301
  store i32 0, ptr %1, align 4
  store i32 1, ptr %18, align 4
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, 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 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %313 = load i32, ptr %1, align 4
  ret i32 %313

314:                                              ; preds = %302, %292, %61
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %315

315:                                              ; preds = %314, %44
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %316

316:                                              ; preds = %315, %40
  call void @llvm.lifetime.end.p0(i64 24, 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 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %317

317:                                              ; preds = %316
  %318 = load ptr, ptr %11, align 8
  %319 = load i32, ptr %12, align 4
  %320 = insertvalue { ptr, i32 } poison, ptr %318, 0
  %321 = insertvalue { ptr, i32 } %320, i32 %319, 1
  resume { ptr, i32 } %321
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; 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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

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

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

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

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

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


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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = 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 i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %16 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKyRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %16, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %17 unwind label %85

17:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %18 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKyRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %18, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %19 unwind label %87

19:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %20 = load i64, ptr %1, align 8, !tbaa !5
  %.not139 = icmp eq i64 %20, 0
  br i1 %.not139, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %91, %19
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %22 = load i64, ptr %21, align 8, !tbaa !5
  %23 = load i64, ptr %1, align 8, !tbaa !5
  %24 = icmp ugt i64 %23, 1
  br i1 %24, label %.lr.ph137.preheader, label %._crit_edge138

.lr.ph137.preheader:                              ; preds = %._crit_edge
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %26 = load i64, ptr %25, align 8, !tbaa !5
  %27 = trunc i64 %26 to i32
  %28 = load i64, ptr %2, align 8, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = sub i64 %28, %30
  %32 = trunc i64 %31 to i32
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = trunc i64 %34 to i32
  %36 = load i64, ptr %2, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %39 = sub i64 %36, %38
  %40 = trunc i64 %39 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 2147483647, ptr %9, align 4, !tbaa !9
  %.not.peel = icmp sgt i32 %27, %35
  br i1 %.not.peel, label %45, label %41

41:                                               ; preds = %.lr.ph137.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %42 = add nsw i32 %35, %27
  store i32 %42, ptr %10, align 4, !tbaa !9
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %44 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %44, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %45

45:                                               ; preds = %41, %.lr.ph137.preheader
  %46 = phi i32 [ %44, %41 ], [ 2147483647, %.lr.ph137.preheader ]
  %.not93.peel = icmp sgt i32 %27, %40
  br i1 %.not93.peel, label %51, label %47

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %48 = add nsw i32 %40, %27
  store i32 %48, ptr %11, align 4, !tbaa !9
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %50 = load i32, ptr %49, align 4, !tbaa !9
  store i32 %50, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %51

51:                                               ; preds = %47, %45
  %52 = phi i32 [ %50, %47 ], [ %46, %45 ]
  %.not94.peel = icmp sgt i32 %32, %35
  br i1 %.not94.peel, label %56, label %.thread.peel

.thread.peel:                                     ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %53 = add nsw i32 %35, %32
  store i32 %53, ptr %12, align 4, !tbaa !9
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %55 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %55, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  br label %56

56:                                               ; preds = %.thread.peel, %51
  %57 = phi i32 [ %55, %.thread.peel ], [ %52, %51 ]
  %.not96.peel = icmp sgt i32 %32, %40
  br i1 %.not96.peel, label %61, label %.thread112.peel

.thread112.peel:                                  ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %58 = add nsw i32 %40, %32
  store i32 %58, ptr %13, align 4, !tbaa !9
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %60 = load i32, ptr %59, align 4, !tbaa !9
  store i32 %60, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br label %61

61:                                               ; preds = %.thread112.peel, %56
  %62 = phi i32 [ %60, %.thread112.peel ], [ %57, %56 ]
  %63 = add nsw i32 %35, %27
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %80, label %65

65:                                               ; preds = %61
  %66 = add nsw i32 %40, %27
  %67 = icmp eq i32 %62, %66
  br i1 %67, label %80, label %68

68:                                               ; preds = %65
  %69 = add nsw i32 %35, %32
  %70 = icmp eq i32 %62, %69
  br i1 %70, label %74, label %71

71:                                               ; preds = %68
  %72 = add nsw i32 %40, %32
  %73 = icmp eq i32 %62, %72
  br i1 %73, label %74, label %.loopexit

74:                                               ; preds = %71, %68
  %.068.in.in.ph.peel = phi i64 [ %39, %71 ], [ %34, %68 ]
  %sext103.peel = shl i64 %31, 32
  %75 = ashr exact i64 %sext103.peel, 32
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  store i64 %75, ptr %76, align 8, !tbaa !5
  %sext104.peel = shl i64 %26, 32
  %77 = ashr exact i64 %sext104.peel, 32
  %78 = sub i64 %22, %77
  %79 = add i64 %78, %75
  br label %80

80:                                               ; preds = %74, %65, %61
  %.068119.in.in.peel = phi i64 [ %.068.in.in.ph.peel, %74 ], [ %34, %61 ], [ %39, %65 ]
  %.1.peel = phi i64 [ %79, %74 ], [ %22, %61 ], [ %22, %65 ]
  %.068119.in.peel = shl i64 %.068119.in.in.peel, 32
  %.068119.peel = ashr exact i64 %.068119.in.peel, 32
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  store i64 %.068119.peel, ptr %81, align 8, !tbaa !5
  %82 = add i64 %.068119.peel, %.1.peel
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %83 = load i64, ptr %1, align 8, !tbaa !5
  %84 = icmp ugt i64 %83, 2
  br i1 %84, label %.lr.ph137, label %._crit_edge138

85:                                               ; preds = %0
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %189

87:                                               ; preds = %17
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %188

.lr.ph:                                           ; preds = %19, %91
  %.074133 = phi i64 [ %95, %91 ], [ 0, %19 ]
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.074133) #6
  %90 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %89)
          to label %91 unwind label %98

91:                                               ; preds = %.lr.ph
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.074133) #6
  %93 = load i64, ptr %92, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.074133) #6
  store i64 %93, ptr %94, align 8, !tbaa !5
  %95 = add nuw i64 %.074133, 1
  %96 = load i64, ptr %1, align 8, !tbaa !5
  %97 = icmp ult i64 %95, %96
  br i1 %97, label %.lr.ph, label %._crit_edge, !llvm.loop !11

98:                                               ; preds = %.lr.ph
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %187

.lr.ph137:                                        ; preds = %80, %175
  %indvars.iv = phi i64 [ %indvars.iv.next, %175 ], [ 2, %80 ]
  %.067135 = phi i64 [ %177, %175 ], [ %82, %80 ]
  %100 = add nsw i64 %indvars.iv, -1
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %100) #6
  %102 = load i64, ptr %101, align 8, !tbaa !5
  %103 = trunc i64 %102 to i32
  %104 = load i64, ptr %2, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %100) #6
  %106 = load i64, ptr %105, align 8, !tbaa !5
  %107 = sub i64 %104, %106
  %108 = trunc i64 %107 to i32
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %110 = load i64, ptr %109, align 8, !tbaa !5
  %111 = trunc i64 %110 to i32
  %112 = load i64, ptr %2, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %114 = load i64, ptr %113, align 8, !tbaa !5
  %115 = sub i64 %112, %114
  %116 = trunc i64 %115 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 2147483647, ptr %9, align 4, !tbaa !9
  %.not = icmp sgt i32 %103, %111
  br i1 %.not, label %121, label %117

117:                                              ; preds = %.lr.ph137
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %118 = add nsw i32 %111, %103
  store i32 %118, ptr %10, align 4, !tbaa !9
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %120 = load i32, ptr %119, align 4, !tbaa !9
  store i32 %120, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %121

121:                                              ; preds = %117, %.lr.ph137
  %.not93 = icmp sgt i32 %103, %116
  br i1 %.not93, label %126, label %122

122:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %123 = add nsw i32 %116, %103
  store i32 %123, ptr %11, align 4, !tbaa !9
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %125 = load i32, ptr %124, align 4, !tbaa !9
  store i32 %125, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %126

126:                                              ; preds = %122, %121
  %.not94 = icmp sgt i32 %108, %111
  br i1 %.not94, label %141, label %127

127:                                              ; preds = %126
  %128 = add nsw i64 %indvars.iv, -2
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %128) #6
  %130 = load i64, ptr %129, align 8, !tbaa !5
  %sext = shl i64 %107, 32
  %131 = ashr exact i64 %sext, 32
  %.not95 = icmp ugt i64 %130, %131
  br i1 %.not95, label %141, label %132

132:                                              ; preds = %127
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %100) #6
  %134 = load i64, ptr %133, align 8, !tbaa !5
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %100) #6
  %136 = load i64, ptr %135, align 8, !tbaa !5
  %137 = icmp eq i64 %134, %136
  br i1 %137, label %.thread, label %141

.thread:                                          ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %138 = add nsw i32 %111, %108
  store i32 %138, ptr %12, align 4, !tbaa !9
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %140 = load i32, ptr %139, align 4, !tbaa !9
  store i32 %140, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  br label %141

141:                                              ; preds = %127, %132, %.thread, %126
  %.not96 = icmp sgt i32 %108, %116
  br i1 %.not96, label %156, label %142

142:                                              ; preds = %141
  %143 = add nsw i64 %indvars.iv, -2
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %143) #6
  %145 = load i64, ptr %144, align 8, !tbaa !5
  %sext97 = shl i64 %107, 32
  %146 = ashr exact i64 %sext97, 32
  %.not98 = icmp ugt i64 %145, %146
  br i1 %.not98, label %156, label %147

147:                                              ; preds = %142
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %100) #6
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %100) #6
  %151 = load i64, ptr %150, align 8, !tbaa !5
  %152 = icmp eq i64 %149, %151
  br i1 %152, label %.thread112, label %156

.thread112:                                       ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %153 = add nsw i32 %116, %108
  store i32 %153, ptr %13, align 4, !tbaa !9
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %155 = load i32, ptr %154, align 4, !tbaa !9
  store i32 %155, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br label %156

156:                                              ; preds = %142, %147, %.thread112, %141
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = add nsw i32 %111, %103
  %159 = icmp eq i32 %157, %158
  br i1 %159, label %175, label %160

160:                                              ; preds = %156
  %161 = add nsw i32 %116, %103
  %162 = icmp eq i32 %157, %161
  br i1 %162, label %175, label %163

163:                                              ; preds = %160
  %164 = add nsw i32 %111, %108
  %165 = icmp eq i32 %157, %164
  br i1 %165, label %169, label %166

166:                                              ; preds = %163
  %167 = add nsw i32 %116, %108
  %168 = icmp eq i32 %157, %167
  br i1 %168, label %169, label %.loopexit

169:                                              ; preds = %163, %166
  %.068.in.in.ph = phi i64 [ %115, %166 ], [ %110, %163 ]
  %sext103 = shl i64 %107, 32
  %170 = ashr exact i64 %sext103, 32
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %100) #6
  store i64 %170, ptr %171, align 8, !tbaa !5
  %sext104 = shl i64 %102, 32
  %172 = ashr exact i64 %sext104, 32
  %173 = sub i64 %.067135, %172
  %174 = add i64 %173, %170
  br label %175

175:                                              ; preds = %156, %160, %169
  %.068119.in.in = phi i64 [ %.068.in.in.ph, %169 ], [ %110, %156 ], [ %115, %160 ]
  %.1 = phi i64 [ %174, %169 ], [ %.067135, %156 ], [ %.067135, %160 ]
  %.068119.in = shl i64 %.068119.in.in, 32
  %.068119 = ashr exact i64 %.068119.in, 32
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  store i64 %.068119, ptr %176, align 8, !tbaa !5
  %177 = add i64 %.068119, %.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %178 = load i64, ptr %1, align 8, !tbaa !5
  %179 = icmp ugt i64 %178, %indvars.iv.next
  br i1 %179, label %.lr.ph137, label %._crit_edge138, !llvm.loop !13

.loopexit:                                        ; preds = %166, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %180 = 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 %.invoke unwind label %181

181:                                              ; preds = %.invoke, %._crit_edge138, %.loopexit
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %187

._crit_edge138:                                   ; preds = %175, %80, %._crit_edge
  %.067.lcssa = phi i64 [ %22, %._crit_edge ], [ %82, %80 ], [ %177, %175 ]
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.067.lcssa)
          to label %.invoke unwind label %181

.invoke:                                          ; preds = %.loopexit, %._crit_edge138
  %184 = phi ptr [ %183, %._crit_edge138 ], [ %180, %.loopexit ]
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %186 unwind label %181

186:                                              ; preds = %.invoke
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

187:                                              ; preds = %181, %98
  %.pn = phi { ptr, i32 } [ %99, %98 ], [ %182, %181 ]
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %188

188:                                              ; preds = %187, %87
  %.pn.pn = phi { ptr, i32 } [ %.pn, %187 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %189

189:                                              ; preds = %188, %85
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %188 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; 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

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

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

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

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

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

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

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

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


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