; LLVM IR from kazunetakahashi/atcoder :: 2020/0207_ABC143/past (E)

; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.10", %"struct.std::_Head_base.11" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i64 }
%"struct.std::_Head_base.11" = type { i64 }
%"class.std::tuple.12" = type { %"struct.std::_Tuple_impl.13" }
%"struct.std::_Tuple_impl.13" = type { %"struct.std::_Tuple_impl.14", %"struct.std::_Head_base.16" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base.15" }
%"struct.std::_Head_base.15" = type { ptr }
%"struct.std::_Head_base.16" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZL5infty = external hidden constant i64, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; 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) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 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)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 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 %"class.std::vector", align 8
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca %"class.std::allocator.2", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::vector.5", align 8
  %17 = alloca %"class.std::allocator.7", align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::tuple", align 8
  %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 %"class.std::vector", align 8
  %29 = alloca %"class.std::vector.0", align 8
  %30 = alloca %"class.std::allocator.2", align 1
  %31 = alloca %"class.std::allocator", align 1
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i64, align 8
  %43 = alloca i64, align 8
  %44 = alloca %"class.std::tuple.12", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  %48 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  %49 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %49, ptr noundef nonnull align 8 dereferenceable(8) @_ZL5infty, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %50 unwind label %58

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

51:                                               ; preds = %50
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %88, %51
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = load i64, ptr %3, align 8, !tbaa !5
  %56 = icmp slt i64 %54, %55
  br i1 %56, label %67, label %57

57:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %95

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

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

66:                                               ; preds = %62, %58
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %526

67:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %69 unwind label %91

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %71 unwind label %91

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

73:                                               ; preds = %71
  %74 = load i64, ptr %12, align 8, !tbaa !5
  %75 = add nsw i64 %74, -1
  store i64 %75, ptr %12, align 8, !tbaa !5
  %76 = load i64, ptr %13, align 8, !tbaa !5
  %77 = add nsw i64 %76, -1
  store i64 %77, ptr %13, align 8, !tbaa !5
  %78 = load i64, ptr %14, align 8, !tbaa !5
  %79 = load i64, ptr %12, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %79) #6
  %81 = load i64, ptr %13, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %81) #6
  store i64 %78, ptr %82, align 8, !tbaa !5
  %83 = load i64, ptr %14, align 8, !tbaa !5
  %84 = load i64, ptr %13, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %84) #6
  %86 = load i64, ptr %12, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %86) #6
  store i64 %83, ptr %87, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %88

88:                                               ; preds = %73
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %11, align 4, !tbaa !9
  br label %52, !llvm.loop !11

91:                                               ; preds = %71, %69, %67
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %8, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %525

95:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %96 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %97 unwind label %106

97:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %98 = load i64, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaISt5tupleIJxxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %98, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %99 unwind label %110

99:                                               ; preds = %97
  call void @_ZNSt15__new_allocatorISt5tupleIJxxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %127, %99
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = load i64, ptr %15, align 8, !tbaa !5
  %104 = icmp slt i64 %102, %103
  br i1 %104, label %114, label %105

105:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %134

106:                                              ; preds = %95
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %8, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %9, align 4
  br label %524

110:                                              ; preds = %97
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt5tupleIJxxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %523

114:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %115 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %116 unwind label %130

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %115, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %118 unwind label %130

118:                                              ; preds = %116
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = add nsw i32 %119, -1
  store i32 %120, ptr %19, align 4, !tbaa !9
  %121 = load i32, ptr %20, align 4, !tbaa !9
  %122 = add nsw i32 %121, -1
  store i32 %122, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @_ZNSt5tupleIJxxEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20) #6
  %123 = load i32, ptr %18, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %124) #6
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJxxEEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %125, ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, 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
  br label %127

127:                                              ; preds = %118
  %128 = load i32, ptr %18, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %18, align 4, !tbaa !9
  br label %100, !llvm.loop !13

130:                                              ; preds = %116, %114
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %8, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %9, align 4
  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 %18) #6
  br label %522

134:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %204, %134
  %136 = load i32, ptr %22, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = load i64, ptr %2, align 8, !tbaa !5
  %139 = icmp slt i64 %137, %138
  br i1 %139, label %141, label %140

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

141:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %200, %141
  %143 = load i32, ptr %24, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = load i64, ptr %2, align 8, !tbaa !5
  %146 = icmp slt i64 %144, %145
  br i1 %146, label %148, label %147

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

148:                                              ; preds = %142
  %149 = load i32, ptr %24, align 4, !tbaa !9
  %150 = load i32, ptr %22, align 4, !tbaa !9
  %151 = icmp eq i32 %149, %150
  br i1 %151, label %152, label %153

152:                                              ; preds = %148
  br label %200

153:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %192, %153
  %155 = load i32, ptr %25, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = load i64, ptr %2, align 8, !tbaa !5
  %158 = icmp slt i64 %156, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %154
  store i32 14, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %199

160:                                              ; preds = %154
  %161 = load i32, ptr %24, align 4, !tbaa !9
  %162 = load i32, ptr %25, align 4, !tbaa !9
  %163 = icmp eq i32 %161, %162
  br i1 %163, label %168, label %164

164:                                              ; preds = %160
  %165 = load i32, ptr %25, align 4, !tbaa !9
  %166 = load i32, ptr %22, align 4, !tbaa !9
  %167 = icmp eq i32 %165, %166
  br i1 %167, label %168, label %169

168:                                              ; preds = %164, %160
  br label %192

169:                                              ; preds = %164
  %170 = load i32, ptr %24, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %171) #6
  %173 = load i32, ptr %25, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174) #6
  %176 = load i32, ptr %24, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %177) #6
  %179 = load i32, ptr %22, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %180) #6
  %182 = load i64, ptr %181, align 8, !tbaa !5
  %183 = load i32, ptr %22, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %184) #6
  %186 = load i32, ptr %25, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %187) #6
  %189 = load i64, ptr %188, align 8, !tbaa !5
  %190 = add nsw i64 %182, %189
  invoke void @_Z6ch_minIxEvRT_S0_(ptr noundef nonnull align 8 dereferenceable(8) %175, i64 noundef %190)
          to label %191 unwind label %195

191:                                              ; preds = %169
  br label %192

192:                                              ; preds = %191, %168
  %193 = load i32, ptr %25, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %25, align 4, !tbaa !9
  br label %154, !llvm.loop !14

195:                                              ; preds = %169
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %8, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %522

199:                                              ; preds = %159
  br label %200

200:                                              ; preds = %199, %152
  %201 = load i32, ptr %24, align 4, !tbaa !9
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %24, align 4, !tbaa !9
  br label %142, !llvm.loop !15

203:                                              ; preds = %147
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %22, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %22, align 4, !tbaa !9
  br label %135, !llvm.loop !16

207:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %253, %207
  %209 = load i32, ptr %26, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = load i64, ptr %2, align 8, !tbaa !5
  %212 = icmp slt i64 %210, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %208
  store i32 17, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %256

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

215:                                              ; preds = %245, %214
  %216 = load i32, ptr %27, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = load i64, ptr %2, align 8, !tbaa !5
  %219 = icmp slt i64 %217, %218
  br i1 %219, label %221, label %220

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

221:                                              ; preds = %215
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
          to label %223 unwind label %248

223:                                              ; preds = %221
  %224 = load i32, ptr %26, align 4, !tbaa !9
  %225 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %222, i32 noundef %224)
          to label %226 unwind label %248

226:                                              ; preds = %223
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %225, ptr noundef @.str.3)
          to label %228 unwind label %248

228:                                              ; preds = %226
  %229 = load i32, ptr %27, align 4, !tbaa !9
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %227, i32 noundef %229)
          to label %231 unwind label %248

231:                                              ; preds = %228
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %230, ptr noundef @.str.4)
          to label %233 unwind label %248

233:                                              ; preds = %231
  %234 = load i32, ptr %26, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %235) #6
  %237 = load i32, ptr %27, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %238) #6
  %240 = load i64, ptr %239, align 8, !tbaa !5
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %232, i64 noundef %240)
          to label %242 unwind label %248

242:                                              ; preds = %233
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %241, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %244 unwind label %248

244:                                              ; preds = %242
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %27, align 4, !tbaa !9
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %27, align 4, !tbaa !9
  br label %215, !llvm.loop !17

248:                                              ; preds = %242, %233, %231, %228, %226, %223, %221
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %8, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %522

252:                                              ; preds = %220
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %26, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %26, align 4, !tbaa !9
  br label %208, !llvm.loop !18

256:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #6
  %257 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #6
  %258 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %258, ptr noundef nonnull align 8 dereferenceable(8) @_ZL5infty, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %259 unwind label %267

259:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  call void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %257, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %260 unwind label %271

260:                                              ; preds = %259
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %305, %260
  %262 = load i32, ptr %32, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = load i64, ptr %2, align 8, !tbaa !5
  %265 = icmp slt i64 %263, %264
  br i1 %265, label %276, label %266

266:                                              ; preds = %261
  store i32 23, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %308

267:                                              ; preds = %256
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %8, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %9, align 4
  br label %275

271:                                              ; preds = %259
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %8, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %275

275:                                              ; preds = %271, %267
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  br label %521

276:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %301, %276
  %278 = load i32, ptr %33, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = load i64, ptr %2, align 8, !tbaa !5
  %281 = icmp slt i64 %279, %280
  br i1 %281, label %283, label %282

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

283:                                              ; preds = %277
  %284 = load i32, ptr %32, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %285) #6
  %287 = load i32, ptr %33, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %286, i64 noundef %288) #6
  %290 = load i64, ptr %289, align 8, !tbaa !5
  %291 = load i64, ptr %4, align 8, !tbaa !5
  %292 = icmp sle i64 %290, %291
  br i1 %292, label %293, label %300

293:                                              ; preds = %283
  %294 = load i32, ptr %32, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %295) #6
  %297 = load i32, ptr %33, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %296, i64 noundef %298) #6
  store i64 1, ptr %299, align 8, !tbaa !5
  br label %300

300:                                              ; preds = %293, %283
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %33, align 4, !tbaa !9
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %33, align 4, !tbaa !9
  br label %277, !llvm.loop !19

304:                                              ; preds = %282
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %32, align 4, !tbaa !9
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %32, align 4, !tbaa !9
  br label %261, !llvm.loop !20

308:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %309

309:                                              ; preds = %354, %308
  %310 = load i32, ptr %34, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = load i64, ptr %2, align 8, !tbaa !5
  %313 = icmp slt i64 %311, %312
  br i1 %313, label %315, label %314

314:                                              ; preds = %309
  store i32 29, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %357

315:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %316

316:                                              ; preds = %346, %315
  %317 = load i32, ptr %35, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = load i64, ptr %2, align 8, !tbaa !5
  %320 = icmp slt i64 %318, %319
  br i1 %320, label %322, label %321

321:                                              ; preds = %316
  store i32 32, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %353

322:                                              ; preds = %316
  %323 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
          to label %324 unwind label %349

324:                                              ; preds = %322
  %325 = load i32, ptr %34, align 4, !tbaa !9
  %326 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %323, i32 noundef %325)
          to label %327 unwind label %349

327:                                              ; preds = %324
  %328 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %326, ptr noundef @.str.3)
          to label %329 unwind label %349

329:                                              ; preds = %327
  %330 = load i32, ptr %35, align 4, !tbaa !9
  %331 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %328, i32 noundef %330)
          to label %332 unwind label %349

332:                                              ; preds = %329
  %333 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef @.str.4)
          to label %334 unwind label %349

334:                                              ; preds = %332
  %335 = load i32, ptr %34, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %336) #6
  %338 = load i32, ptr %35, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %337, i64 noundef %339) #6
  %341 = load i64, ptr %340, align 8, !tbaa !5
  %342 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %333, i64 noundef %341)
          to label %343 unwind label %349

343:                                              ; preds = %334
  %344 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %342, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %345 unwind label %349

345:                                              ; preds = %343
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %35, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %35, align 4, !tbaa !9
  br label %316, !llvm.loop !21

349:                                              ; preds = %343, %334, %332, %329, %327, %324, %322
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %8, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %520

353:                                              ; preds = %321
  br label %354

354:                                              ; preds = %353
  %355 = load i32, ptr %34, align 4, !tbaa !9
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %34, align 4, !tbaa !9
  br label %309, !llvm.loop !22

357:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %358

358:                                              ; preds = %427, %357
  %359 = load i32, ptr %36, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = load i64, ptr %2, align 8, !tbaa !5
  %362 = icmp slt i64 %360, %361
  br i1 %362, label %364, label %363

363:                                              ; preds = %358
  store i32 35, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %430

364:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %365

365:                                              ; preds = %423, %364
  %366 = load i32, ptr %37, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = load i64, ptr %2, align 8, !tbaa !5
  %369 = icmp slt i64 %367, %368
  br i1 %369, label %371, label %370

370:                                              ; preds = %365
  store i32 38, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %426

371:                                              ; preds = %365
  %372 = load i32, ptr %37, align 4, !tbaa !9
  %373 = load i32, ptr %36, align 4, !tbaa !9
  %374 = icmp eq i32 %372, %373
  br i1 %374, label %375, label %376

375:                                              ; preds = %371
  br label %423

376:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %377

377:                                              ; preds = %415, %376
  %378 = load i32, ptr %38, align 4, !tbaa !9
  %379 = sext i32 %378 to i64
  %380 = load i64, ptr %2, align 8, !tbaa !5
  %381 = icmp slt i64 %379, %380
  br i1 %381, label %383, label %382

382:                                              ; preds = %377
  store i32 41, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %422

383:                                              ; preds = %377
  %384 = load i32, ptr %37, align 4, !tbaa !9
  %385 = load i32, ptr %38, align 4, !tbaa !9
  %386 = icmp eq i32 %384, %385
  br i1 %386, label %391, label %387

387:                                              ; preds = %383
  %388 = load i32, ptr %38, align 4, !tbaa !9
  %389 = load i32, ptr %36, align 4, !tbaa !9
  %390 = icmp eq i32 %388, %389
  br i1 %390, label %391, label %392

391:                                              ; preds = %387, %383
  br label %415

392:                                              ; preds = %387
  %393 = load i32, ptr %37, align 4, !tbaa !9
  %394 = sext i32 %393 to i64
  %395 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %394) #6
  %396 = load i32, ptr %38, align 4, !tbaa !9
  %397 = sext i32 %396 to i64
  %398 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %395, i64 noundef %397) #6
  %399 = load i32, ptr %37, align 4, !tbaa !9
  %400 = sext i32 %399 to i64
  %401 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %400) #6
  %402 = load i32, ptr %36, align 4, !tbaa !9
  %403 = sext i32 %402 to i64
  %404 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %401, i64 noundef %403) #6
  %405 = load i64, ptr %404, align 8, !tbaa !5
  %406 = load i32, ptr %36, align 4, !tbaa !9
  %407 = sext i32 %406 to i64
  %408 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %407) #6
  %409 = load i32, ptr %38, align 4, !tbaa !9
  %410 = sext i32 %409 to i64
  %411 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %408, i64 noundef %410) #6
  %412 = load i64, ptr %411, align 8, !tbaa !5
  %413 = add nsw i64 %405, %412
  invoke void @_Z6ch_minIxEvRT_S0_(ptr noundef nonnull align 8 dereferenceable(8) %398, i64 noundef %413)
          to label %414 unwind label %418

414:                                              ; preds = %392
  br label %415

415:                                              ; preds = %414, %391
  %416 = load i32, ptr %38, align 4, !tbaa !9
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %38, align 4, !tbaa !9
  br label %377, !llvm.loop !23

418:                                              ; preds = %392
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %8, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %520

422:                                              ; preds = %382
  br label %423

423:                                              ; preds = %422, %375
  %424 = load i32, ptr %37, align 4, !tbaa !9
  %425 = add nsw i32 %424, 1
  store i32 %425, ptr %37, align 4, !tbaa !9
  br label %365, !llvm.loop !24

426:                                              ; preds = %370
  br label %427

427:                                              ; preds = %426
  %428 = load i32, ptr %36, align 4, !tbaa !9
  %429 = add nsw i32 %428, 1
  store i32 %429, ptr %36, align 4, !tbaa !9
  br label %358, !llvm.loop !25

430:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %431

431:                                              ; preds = %476, %430
  %432 = load i32, ptr %39, align 4, !tbaa !9
  %433 = sext i32 %432 to i64
  %434 = load i64, ptr %2, align 8, !tbaa !5
  %435 = icmp slt i64 %433, %434
  br i1 %435, label %437, label %436

436:                                              ; preds = %431
  store i32 44, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %479

437:                                              ; preds = %431
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %438

438:                                              ; preds = %468, %437
  %439 = load i32, ptr %40, align 4, !tbaa !9
  %440 = sext i32 %439 to i64
  %441 = load i64, ptr %2, align 8, !tbaa !5
  %442 = icmp slt i64 %440, %441
  br i1 %442, label %444, label %443

443:                                              ; preds = %438
  store i32 47, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %475

444:                                              ; preds = %438
  %445 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
          to label %446 unwind label %471

446:                                              ; preds = %444
  %447 = load i32, ptr %39, align 4, !tbaa !9
  %448 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %445, i32 noundef %447)
          to label %449 unwind label %471

449:                                              ; preds = %446
  %450 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %448, ptr noundef @.str.3)
          to label %451 unwind label %471

451:                                              ; preds = %449
  %452 = load i32, ptr %40, align 4, !tbaa !9
  %453 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %450, i32 noundef %452)
          to label %454 unwind label %471

454:                                              ; preds = %451
  %455 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %453, ptr noundef @.str.4)
          to label %456 unwind label %471

456:                                              ; preds = %454
  %457 = load i32, ptr %39, align 4, !tbaa !9
  %458 = sext i32 %457 to i64
  %459 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %458) #6
  %460 = load i32, ptr %40, align 4, !tbaa !9
  %461 = sext i32 %460 to i64
  %462 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %459, i64 noundef %461) #6
  %463 = load i64, ptr %462, align 8, !tbaa !5
  %464 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %455, i64 noundef %463)
          to label %465 unwind label %471

465:                                              ; preds = %456
  %466 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %464, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %467 unwind label %471

467:                                              ; preds = %465
  br label %468

468:                                              ; preds = %467
  %469 = load i32, ptr %40, align 4, !tbaa !9
  %470 = add nsw i32 %469, 1
  store i32 %470, ptr %40, align 4, !tbaa !9
  br label %438, !llvm.loop !26

471:                                              ; preds = %465, %456, %454, %451, %449, %446, %444
  %472 = landingpad { ptr, i32 }
          cleanup
  %473 = extractvalue { ptr, i32 } %472, 0
  store ptr %473, ptr %8, align 8
  %474 = extractvalue { ptr, i32 } %472, 1
  store i32 %474, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %520

475:                                              ; preds = %443
  br label %476

476:                                              ; preds = %475
  %477 = load i32, ptr %39, align 4, !tbaa !9
  %478 = add nsw i32 %477, 1
  store i32 %478, ptr %39, align 4, !tbaa !9
  br label %431, !llvm.loop !27

479:                                              ; preds = %436
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %480

480:                                              ; preds = %511, %479
  %481 = load i32, ptr %41, align 4, !tbaa !9
  %482 = sext i32 %481 to i64
  %483 = load i64, ptr %15, align 8, !tbaa !5
  %484 = icmp slt i64 %482, %483
  br i1 %484, label %486, label %485

485:                                              ; preds = %480
  store i32 50, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %518

486:                                              ; preds = %480
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %487 = load i32, ptr %41, align 4, !tbaa !9
  %488 = sext i32 %487 to i64
  %489 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %488) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  call void @_ZSt3tieIJxxEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind writable sret(%"class.std::tuple.12") align 8 %44, ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #6
  %490 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRxS0_EEaSIxxEENSt9enable_ifIXcl12__assignableIRKT_RKT0_EEERS1_E4typeERKS_IJS4_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %489) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  %491 = load i64, ptr %42, align 8, !tbaa !5
  %492 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %491) #6
  %493 = load i64, ptr %43, align 8, !tbaa !5
  %494 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %492, i64 noundef %493) #6
  %495 = load i64, ptr %494, align 8, !tbaa !5
  %496 = icmp slt i64 %495, 1000000000000000
  br i1 %496, label %497, label %504

497:                                              ; preds = %486
  %498 = load i64, ptr %42, align 8, !tbaa !5
  %499 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %498) #6
  %500 = load i64, ptr %43, align 8, !tbaa !5
  %501 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %499, i64 noundef %500) #6
  %502 = load i64, ptr %501, align 8, !tbaa !5
  %503 = sub nsw i64 %502, 1
  br label %505

504:                                              ; preds = %486
  br label %505

505:                                              ; preds = %504, %497
  %506 = phi i64 [ %503, %497 ], [ -1, %504 ]
  %507 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %506)
          to label %508 unwind label %514

508:                                              ; preds = %505
  %509 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %507, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %510 unwind label %514

510:                                              ; preds = %508
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %511

511:                                              ; preds = %510
  %512 = load i32, ptr %41, align 4, !tbaa !9
  %513 = add nsw i32 %512, 1
  store i32 %513, ptr %41, align 4, !tbaa !9
  br label %480, !llvm.loop !28

514:                                              ; preds = %508, %505
  %515 = landingpad { ptr, i32 }
          cleanup
  %516 = extractvalue { ptr, i32 } %515, 0
  store ptr %516, ptr %8, align 8
  %517 = extractvalue { ptr, i32 } %515, 1
  store i32 %517, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %520

518:                                              ; preds = %485
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  call void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 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
  %519 = load i32, ptr %1, align 4
  ret i32 %519

520:                                              ; preds = %514, %471, %418, %349
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  br label %521

521:                                              ; preds = %520, %275
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  br label %522

522:                                              ; preds = %521, %248, %195, %130
  call void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %523

523:                                              ; preds = %522, %110
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %524

524:                                              ; preds = %523, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %525

525:                                              ; preds = %524, %91
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %526

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

527:                                              ; preds = %526
  %528 = load ptr, ptr %8, align 8
  %529 = load i32, ptr %9, align 4
  %530 = insertvalue { ptr, i32 } poison, ptr %528, 0
  %531 = insertvalue { ptr, i32 } %530, i32 %529, 1
  resume { ptr, i32 } %531
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(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 #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJxxEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.12") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !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::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.10", %"struct.std::_Head_base.11" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i64 }
%"struct.std::_Head_base.11" = type { i64 }
%"class.std::tuple.12" = type { %"struct.std::_Tuple_impl.13" }
%"struct.std::_Tuple_impl.13" = type { %"struct.std::_Tuple_impl.14", %"struct.std::_Head_base.16" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base.15" }
%"struct.std::_Head_base.15" = type { ptr }
%"struct.std::_Head_base.16" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZL5infty = external hidden constant i64, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; 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 #0

; 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 #1 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)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::vector.5", align 8
  %13 = alloca %"class.std::allocator.7", align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::tuple", align 8
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::vector.0", align 8
  %19 = alloca %"class.std::allocator.2", align 1
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"class.std::tuple.12", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %27 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %27, ptr noundef nonnull align 8 dereferenceable(8) @_ZL5infty, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %28 unwind label %33

28:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %27, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %29 unwind label %35

29:                                               ; preds = %28
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %30 = load i64, ptr %2, align 8, !tbaa !5
  %31 = icmp sgt i64 %30, 0
  br i1 %31, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %43, %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %61 unwind label %68

33:                                               ; preds = %0
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %28
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %37

37:                                               ; preds = %35, %33
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %289

.lr.ph:                                           ; preds = %29, %43
  %indvars.iv = phi i64 [ %indvars.iv.next, %43 ], [ 0, %29 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %39 unwind label %59

39:                                               ; preds = %.lr.ph
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %41 unwind label %59

41:                                               ; preds = %39
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %43 unwind label %59

43:                                               ; preds = %41
  %44 = load i64, ptr %8, align 8, !tbaa !5
  %45 = add nsw i64 %44, -1
  store i64 %45, ptr %8, align 8, !tbaa !5
  %46 = load i64, ptr %9, align 8, !tbaa !5
  %47 = add nsw i64 %46, -1
  store i64 %47, ptr %9, align 8, !tbaa !5
  %48 = load i64, ptr %10, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %45) #6
  %50 = load i64, ptr %9, align 8, !tbaa !5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %50) #6
  store i64 %48, ptr %51, align 8, !tbaa !5
  %52 = load i64, ptr %10, align 8, !tbaa !5
  %53 = load i64, ptr %9, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %53) #6
  %55 = load i64, ptr %8, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %55) #6
  store i64 %52, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i64, ptr %2, align 8, !tbaa !5
  %58 = icmp sgt i64 %57, %indvars.iv.next
  br i1 %58, label %.lr.ph, label %._crit_edge, !llvm.loop !9

59:                                               ; preds = %41, %39, %.lr.ph
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %288

61:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  %62 = load i64, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaISt5tupleIJxxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %62, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %63 unwind label %70

63:                                               ; preds = %61
  call void @_ZNSt15__new_allocatorISt5tupleIJxxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  %64 = load i64, ptr %11, align 8, !tbaa !5
  %65 = icmp sgt i64 %64, 0
  br i1 %65, label %.lr.ph152, label %.preheader147

.preheader147:                                    ; preds = %75, %63
  %66 = load i64, ptr %1, align 8
  %67 = icmp sgt i64 %66, 0
  br i1 %67, label %.preheader146, label %._crit_edge164

68:                                               ; preds = %._crit_edge
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %287

70:                                               ; preds = %61
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt5tupleIJxxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  br label %286

.lr.ph152:                                        ; preds = %63, %75
  %indvars.iv199 = phi i64 [ %indvars.iv.next200, %75 ], [ 0, %63 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %73 unwind label %84

73:                                               ; preds = %.lr.ph152
  %74 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %75 unwind label %84

75:                                               ; preds = %73
  %76 = load i32, ptr %14, align 4, !tbaa !11
  %77 = add nsw i32 %76, -1
  store i32 %77, ptr %14, align 4, !tbaa !11
  %78 = load i32, ptr %15, align 4, !tbaa !11
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @_ZNSt5tupleIJxxEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15) #6
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv199) #6
  %81 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJxxEEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %80, ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %82 = load i64, ptr %11, align 8, !tbaa !5
  %83 = icmp sgt i64 %82, %indvars.iv.next200
  br i1 %83, label %.lr.ph152, label %.preheader147, !llvm.loop !13

84:                                               ; preds = %73, %.lr.ph152
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %285

.preheader146:                                    ; preds = %.preheader147, %._crit_edge158
  %86 = phi i64 [ %89, %._crit_edge158 ], [ %66, %.preheader147 ]
  %indvars.iv211 = phi i64 [ %indvars.iv.next212, %._crit_edge158 ], [ 0, %.preheader147 ]
  %87 = icmp sgt i64 %86, 0
  br i1 %87, label %.lr.ph157, label %._crit_edge158

.preheader143:                                    ; preds = %._crit_edge158
  %88 = icmp sgt i64 %89, 0
  br i1 %88, label %.preheader142, label %._crit_edge164

._crit_edge158:                                   ; preds = %.loopexit145, %.preheader146
  %89 = phi i64 [ %86, %.preheader146 ], [ %115, %.loopexit145 ]
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %90 = icmp sgt i64 %89, %indvars.iv.next212
  br i1 %90, label %.preheader146, label %.preheader143, !llvm.loop !14

.lr.ph157:                                        ; preds = %.preheader146, %.loopexit145
  %91 = phi i64 [ %115, %.loopexit145 ], [ %86, %.preheader146 ]
  %92 = phi i64 [ %116, %.loopexit145 ], [ %86, %.preheader146 ]
  %indvars.iv208 = phi i64 [ %indvars.iv.next209, %.loopexit145 ], [ 0, %.preheader146 ]
  %93 = icmp ne i64 %indvars.iv208, %indvars.iv211
  %94 = icmp sgt i64 %92, 0
  %or.cond188 = and i1 %93, %94
  br i1 %or.cond188, label %.lr.ph154, label %.loopexit145

.lr.ph154:                                        ; preds = %.lr.ph157, %110
  %95 = phi i64 [ %111, %110 ], [ %91, %.lr.ph157 ]
  %96 = phi i64 [ %112, %110 ], [ %92, %.lr.ph157 ]
  %97 = phi i64 [ %113, %110 ], [ %92, %.lr.ph157 ]
  %indvars.iv205 = phi i64 [ %indvars.iv.next206, %110 ], [ 0, %.lr.ph157 ]
  %98 = icmp eq i64 %indvars.iv208, %indvars.iv205
  %99 = icmp eq i64 %indvars.iv205, %indvars.iv211
  %or.cond = or i1 %98, %99
  br i1 %or.cond, label %110, label %100

100:                                              ; preds = %.lr.ph154
  %101 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv208) #6
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %indvars.iv205) #6
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv208) #6
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %indvars.iv211) #6
  %105 = load i64, ptr %104, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv211) #6
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %indvars.iv205) #6
  %108 = load i64, ptr %107, align 8, !tbaa !5
  %109 = add nsw i64 %108, %105
  call void @_Z6ch_minIxEvRT_S0_(ptr noundef nonnull align 8 dereferenceable(8) %102, i64 noundef %109)
  %.pre = load i64, ptr %1, align 8
  br label %110

110:                                              ; preds = %.lr.ph154, %100
  %111 = phi i64 [ %95, %.lr.ph154 ], [ %.pre, %100 ]
  %112 = phi i64 [ %96, %.lr.ph154 ], [ %.pre, %100 ]
  %113 = phi i64 [ %97, %.lr.ph154 ], [ %.pre, %100 ]
  %indvars.iv.next206 = add nuw nsw i64 %indvars.iv205, 1
  %114 = icmp sgt i64 %113, %indvars.iv.next206
  br i1 %114, label %.lr.ph154, label %.loopexit145, !llvm.loop !16

.loopexit145:                                     ; preds = %110, %.lr.ph157
  %115 = phi i64 [ %91, %.lr.ph157 ], [ %111, %110 ]
  %116 = phi i64 [ %92, %.lr.ph157 ], [ %112, %110 ]
  %indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
  %117 = icmp sgt i64 %116, %indvars.iv.next209
  br i1 %117, label %.lr.ph157, label %._crit_edge158, !llvm.loop !17

.preheader142:                                    ; preds = %.preheader143, %._crit_edge162
  %118 = phi i64 [ %121, %._crit_edge162 ], [ %89, %.preheader143 ]
  %indvars.iv220 = phi i64 [ %indvars.iv.next221, %._crit_edge162 ], [ 0, %.preheader143 ]
  %119 = icmp sgt i64 %118, 0
  br i1 %119, label %.lr.ph161.preheader, label %._crit_edge162

.lr.ph161.preheader:                              ; preds = %.preheader142
  %120 = trunc nuw nsw i64 %indvars.iv220 to i32
  br label %.lr.ph161

._crit_edge164:                                   ; preds = %._crit_edge162, %.preheader147, %.preheader143
  %.lcssa = phi i64 [ %89, %.preheader143 ], [ %66, %.preheader147 ], [ %121, %._crit_edge162 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %.lcssa, ptr noundef nonnull align 8 dereferenceable(8) @_ZL5infty, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %145 unwind label %152

._crit_edge162:                                   ; preds = %140, %.preheader142
  %121 = phi i64 [ %118, %.preheader142 ], [ %141, %140 ]
  %indvars.iv.next221 = add nuw nsw i64 %indvars.iv220, 1
  %122 = icmp sgt i64 %121, %indvars.iv.next221
  br i1 %122, label %.preheader142, label %._crit_edge164, !llvm.loop !18

.lr.ph161:                                        ; preds = %.lr.ph161.preheader, %140
  %indvars.iv217 = phi i64 [ 0, %.lr.ph161.preheader ], [ %indvars.iv.next218, %140 ]
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
          to label %124 unwind label %143

124:                                              ; preds = %.lr.ph161
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %123, i32 noundef %120)
          to label %126 unwind label %143

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @.str.3)
          to label %128 unwind label %143

128:                                              ; preds = %126
  %129 = trunc nuw nsw i64 %indvars.iv217 to i32
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %127, i32 noundef %129)
          to label %131 unwind label %143

131:                                              ; preds = %128
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.4)
          to label %133 unwind label %143

133:                                              ; preds = %131
  %134 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv220) #6
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %indvars.iv217) #6
  %136 = load i64, ptr %135, align 8, !tbaa !5
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %132, i64 noundef %136)
          to label %138 unwind label %143

138:                                              ; preds = %133
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %140 unwind label %143

140:                                              ; preds = %138
  %indvars.iv.next218 = add nuw nsw i64 %indvars.iv217, 1
  %141 = load i64, ptr %1, align 8, !tbaa !5
  %142 = icmp sgt i64 %141, %indvars.iv.next218
  br i1 %142, label %.lr.ph161, label %._crit_edge162, !llvm.loop !19

143:                                              ; preds = %138, %133, %131, %128, %126, %124, %.lr.ph161
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %285

145:                                              ; preds = %._crit_edge164
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #6
  call void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.lcssa, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %146 unwind label %154

146:                                              ; preds = %145
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  %147 = load i64, ptr %1, align 8
  %148 = icmp sgt i64 %147, 0
  br i1 %148, label %.preheader141, label %.preheader

.preheader141:                                    ; preds = %146, %._crit_edge167
  %149 = phi i64 [ %157, %._crit_edge167 ], [ %147, %146 ]
  %indvars.iv229 = phi i64 [ %indvars.iv.next230, %._crit_edge167 ], [ 0, %146 ]
  %150 = icmp sgt i64 %149, 0
  br i1 %150, label %.lr.ph166, label %._crit_edge167

.preheader140:                                    ; preds = %._crit_edge167
  %151 = icmp sgt i64 %157, 0
  br i1 %151, label %.preheader139, label %.preheader

152:                                              ; preds = %._crit_edge164
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %156

154:                                              ; preds = %145
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %156

156:                                              ; preds = %154, %152
  %.pn121 = phi { ptr, i32 } [ %155, %154 ], [ %153, %152 ]
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  br label %284

._crit_edge167:                                   ; preds = %166, %.preheader141
  %157 = phi i64 [ %149, %.preheader141 ], [ %167, %166 ]
  %indvars.iv.next230 = add nuw nsw i64 %indvars.iv229, 1
  %158 = icmp sgt i64 %157, %indvars.iv.next230
  br i1 %158, label %.preheader141, label %.preheader140, !llvm.loop !20

.lr.ph166:                                        ; preds = %.preheader141, %166
  %indvars.iv226 = phi i64 [ %indvars.iv.next227, %166 ], [ 0, %.preheader141 ]
  %159 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv229) #6
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %indvars.iv226) #6
  %161 = load i64, ptr %160, align 8, !tbaa !5
  %162 = load i64, ptr %3, align 8, !tbaa !5
  %.not = icmp sgt i64 %161, %162
  br i1 %.not, label %166, label %163

163:                                              ; preds = %.lr.ph166
  %164 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv229) #6
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %164, i64 noundef %indvars.iv226) #6
  store i64 1, ptr %165, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %.lr.ph166, %163
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %167 = load i64, ptr %1, align 8
  %168 = icmp sgt i64 %167, %indvars.iv.next227
  br i1 %168, label %.lr.ph166, label %._crit_edge167, !llvm.loop !21

.preheader139:                                    ; preds = %.preheader140, %._crit_edge171
  %169 = phi i64 [ %173, %._crit_edge171 ], [ %157, %.preheader140 ]
  %indvars.iv238 = phi i64 [ %indvars.iv.next239, %._crit_edge171 ], [ 0, %.preheader140 ]
  %170 = icmp sgt i64 %169, 0
  br i1 %170, label %.lr.ph170.preheader, label %._crit_edge171

.lr.ph170.preheader:                              ; preds = %.preheader139
  %171 = trunc nuw nsw i64 %indvars.iv238 to i32
  br label %.lr.ph170

.preheader138:                                    ; preds = %._crit_edge171
  %172 = icmp sgt i64 %173, 0
  br i1 %172, label %.preheader137, label %.preheader

._crit_edge171:                                   ; preds = %192, %.preheader139
  %173 = phi i64 [ %169, %.preheader139 ], [ %193, %192 ]
  %indvars.iv.next239 = add nuw nsw i64 %indvars.iv238, 1
  %174 = icmp sgt i64 %173, %indvars.iv.next239
  br i1 %174, label %.preheader139, label %.preheader138, !llvm.loop !22

.lr.ph170:                                        ; preds = %.lr.ph170.preheader, %192
  %indvars.iv235 = phi i64 [ 0, %.lr.ph170.preheader ], [ %indvars.iv.next236, %192 ]
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.5)
          to label %176 unwind label %195

176:                                              ; preds = %.lr.ph170
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %175, i32 noundef %171)
          to label %178 unwind label %195

178:                                              ; preds = %176
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef nonnull @.str.3)
          to label %180 unwind label %195

180:                                              ; preds = %178
  %181 = trunc nuw nsw i64 %indvars.iv235 to i32
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %179, i32 noundef %181)
          to label %183 unwind label %195

183:                                              ; preds = %180
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @.str.4)
          to label %185 unwind label %195

185:                                              ; preds = %183
  %186 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv238) #6
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %indvars.iv235) #6
  %188 = load i64, ptr %187, align 8, !tbaa !5
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %184, i64 noundef %188)
          to label %190 unwind label %195

190:                                              ; preds = %185
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %192 unwind label %195

192:                                              ; preds = %190
  %indvars.iv.next236 = add nuw nsw i64 %indvars.iv235, 1
  %193 = load i64, ptr %1, align 8
  %194 = icmp sgt i64 %193, %indvars.iv.next236
  br i1 %194, label %.lr.ph170, label %._crit_edge171, !llvm.loop !23

195:                                              ; preds = %190, %185, %183, %180, %178, %176, %.lr.ph170
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %283

.preheader137:                                    ; preds = %.preheader138, %._crit_edge178
  %197 = phi i64 [ %200, %._crit_edge178 ], [ %173, %.preheader138 ]
  %indvars.iv250 = phi i64 [ %indvars.iv.next251, %._crit_edge178 ], [ 0, %.preheader138 ]
  %198 = icmp sgt i64 %197, 0
  br i1 %198, label %.lr.ph177, label %._crit_edge178

.preheader135:                                    ; preds = %._crit_edge178
  %199 = icmp sgt i64 %200, 0
  br i1 %199, label %.preheader134, label %.preheader

._crit_edge178:                                   ; preds = %.loopexit, %.preheader137
  %200 = phi i64 [ %197, %.preheader137 ], [ %226, %.loopexit ]
  %indvars.iv.next251 = add nuw nsw i64 %indvars.iv250, 1
  %201 = icmp sgt i64 %200, %indvars.iv.next251
  br i1 %201, label %.preheader137, label %.preheader135, !llvm.loop !24

.lr.ph177:                                        ; preds = %.preheader137, %.loopexit
  %202 = phi i64 [ %226, %.loopexit ], [ %197, %.preheader137 ]
  %203 = phi i64 [ %227, %.loopexit ], [ %197, %.preheader137 ]
  %indvars.iv247 = phi i64 [ %indvars.iv.next248, %.loopexit ], [ 0, %.preheader137 ]
  %204 = icmp ne i64 %indvars.iv247, %indvars.iv250
  %205 = icmp sgt i64 %203, 0
  %or.cond190 = and i1 %204, %205
  br i1 %or.cond190, label %.lr.ph174, label %.loopexit

.lr.ph174:                                        ; preds = %.lr.ph177, %221
  %206 = phi i64 [ %222, %221 ], [ %202, %.lr.ph177 ]
  %207 = phi i64 [ %223, %221 ], [ %203, %.lr.ph177 ]
  %208 = phi i64 [ %224, %221 ], [ %203, %.lr.ph177 ]
  %indvars.iv244 = phi i64 [ %indvars.iv.next245, %221 ], [ 0, %.lr.ph177 ]
  %209 = icmp eq i64 %indvars.iv247, %indvars.iv244
  %210 = icmp eq i64 %indvars.iv244, %indvars.iv250
  %or.cond133 = or i1 %209, %210
  br i1 %or.cond133, label %221, label %211

211:                                              ; preds = %.lr.ph174
  %212 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv247) #6
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %indvars.iv244) #6
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv247) #6
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %indvars.iv250) #6
  %216 = load i64, ptr %215, align 8, !tbaa !5
  %217 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv250) #6
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef %indvars.iv244) #6
  %219 = load i64, ptr %218, align 8, !tbaa !5
  %220 = add nsw i64 %219, %216
  call void @_Z6ch_minIxEvRT_S0_(ptr noundef nonnull align 8 dereferenceable(8) %213, i64 noundef %220)
  %.pre265 = load i64, ptr %1, align 8
  br label %221

221:                                              ; preds = %.lr.ph174, %211
  %222 = phi i64 [ %206, %.lr.ph174 ], [ %.pre265, %211 ]
  %223 = phi i64 [ %207, %.lr.ph174 ], [ %.pre265, %211 ]
  %224 = phi i64 [ %208, %.lr.ph174 ], [ %.pre265, %211 ]
  %indvars.iv.next245 = add nuw nsw i64 %indvars.iv244, 1
  %225 = icmp sgt i64 %224, %indvars.iv.next245
  br i1 %225, label %.lr.ph174, label %.loopexit, !llvm.loop !25

.loopexit:                                        ; preds = %221, %.lr.ph177
  %226 = phi i64 [ %202, %.lr.ph177 ], [ %222, %221 ]
  %227 = phi i64 [ %203, %.lr.ph177 ], [ %223, %221 ]
  %indvars.iv.next248 = add nuw nsw i64 %indvars.iv247, 1
  %228 = icmp sgt i64 %227, %indvars.iv.next248
  br i1 %228, label %.lr.ph177, label %._crit_edge178, !llvm.loop !26

.preheader134:                                    ; preds = %.preheader135, %._crit_edge182
  %229 = phi i64 [ %234, %._crit_edge182 ], [ %200, %.preheader135 ]
  %indvars.iv259 = phi i64 [ %indvars.iv.next260, %._crit_edge182 ], [ 0, %.preheader135 ]
  %230 = icmp sgt i64 %229, 0
  br i1 %230, label %.lr.ph181.preheader, label %._crit_edge182

.lr.ph181.preheader:                              ; preds = %.preheader134
  %231 = trunc nuw nsw i64 %indvars.iv259 to i32
  br label %.lr.ph181

.preheader:                                       ; preds = %._crit_edge182, %146, %.preheader140, %.preheader138, %.preheader135
  %232 = load i64, ptr %11, align 8, !tbaa !5
  %233 = icmp sgt i64 %232, 0
  br i1 %233, label %.lr.ph185, label %._crit_edge186

._crit_edge182:                                   ; preds = %253, %.preheader134
  %234 = phi i64 [ %229, %.preheader134 ], [ %254, %253 ]
  %indvars.iv.next260 = add nuw nsw i64 %indvars.iv259, 1
  %235 = icmp sgt i64 %234, %indvars.iv.next260
  br i1 %235, label %.preheader134, label %.preheader, !llvm.loop !27

.lr.ph181:                                        ; preds = %.lr.ph181.preheader, %253
  %indvars.iv256 = phi i64 [ 0, %.lr.ph181.preheader ], [ %indvars.iv.next257, %253 ]
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.5)
          to label %237 unwind label %256

237:                                              ; preds = %.lr.ph181
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %236, i32 noundef %231)
          to label %239 unwind label %256

239:                                              ; preds = %237
  %240 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %238, ptr noundef nonnull @.str.3)
          to label %241 unwind label %256

241:                                              ; preds = %239
  %242 = trunc nuw nsw i64 %indvars.iv256 to i32
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %240, i32 noundef %242)
          to label %244 unwind label %256

244:                                              ; preds = %241
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef nonnull @.str.4)
          to label %246 unwind label %256

246:                                              ; preds = %244
  %247 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv259) #6
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %indvars.iv256) #6
  %249 = load i64, ptr %248, align 8, !tbaa !5
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %245, i64 noundef %249)
          to label %251 unwind label %256

251:                                              ; preds = %246
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %253 unwind label %256

253:                                              ; preds = %251
  %indvars.iv.next257 = add nuw nsw i64 %indvars.iv256, 1
  %254 = load i64, ptr %1, align 8, !tbaa !5
  %255 = icmp sgt i64 %254, %indvars.iv.next257
  br i1 %255, label %.lr.ph181, label %._crit_edge182, !llvm.loop !28

256:                                              ; preds = %251, %246, %244, %241, %239, %237, %.lr.ph181
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %283

._crit_edge186:                                   ; preds = %278, %.preheader
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  call void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, 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

.lr.ph185:                                        ; preds = %.preheader, %278
  %indvars.iv262 = phi i64 [ %indvars.iv.next263, %278 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  %258 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv262) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  call void @_ZSt3tieIJxxEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.12") align 8 %23, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  %259 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRxS0_EEaSIxxEENSt9enable_ifIXcl12__assignableIRKT_RKT0_EEERS1_E4typeERKS_IJS4_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %258) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  %260 = load i64, ptr %21, align 8, !tbaa !5
  %261 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %260) #6
  %262 = load i64, ptr %22, align 8, !tbaa !5
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %262) #6
  %264 = load i64, ptr %263, align 8, !tbaa !5
  %265 = icmp slt i64 %264, 1000000000000000
  br i1 %265, label %266, label %273

266:                                              ; preds = %.lr.ph185
  %267 = load i64, ptr %21, align 8, !tbaa !5
  %268 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %267) #6
  %269 = load i64, ptr %22, align 8, !tbaa !5
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %268, i64 noundef %269) #6
  %271 = load i64, ptr %270, align 8, !tbaa !5
  %272 = add nsw i64 %271, -1
  br label %273

273:                                              ; preds = %.lr.ph185, %266
  %274 = phi i64 [ %272, %266 ], [ -1, %.lr.ph185 ]
  %275 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %274)
          to label %276 unwind label %281

276:                                              ; preds = %273
  %277 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %275, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %278 unwind label %281

278:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  %indvars.iv.next263 = add nuw nsw i64 %indvars.iv262, 1
  %279 = load i64, ptr %11, align 8, !tbaa !5
  %280 = icmp sgt i64 %279, %indvars.iv.next263
  br i1 %280, label %.lr.ph185, label %._crit_edge186, !llvm.loop !29

281:                                              ; preds = %276, %273
  %282 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %283

283:                                              ; preds = %281, %256, %195
  %.pn123 = phi { ptr, i32 } [ %196, %195 ], [ %257, %256 ], [ %282, %281 ]
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  br label %284

284:                                              ; preds = %283, %156
  %.pn123.pn = phi { ptr, i32 } [ %.pn123, %283 ], [ %.pn121, %156 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  br label %285

285:                                              ; preds = %284, %143, %84
  %.pn126 = phi { ptr, i32 } [ %85, %84 ], [ %144, %143 ], [ %.pn123.pn, %284 ]
  call void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %286

286:                                              ; preds = %285, %70
  %.pn126.pn = phi { ptr, i32 } [ %.pn126, %285 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  br label %287

287:                                              ; preds = %286, %68
  %.pn126.pn.pn = phi { ptr, i32 } [ %.pn126.pn, %286 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %288

288:                                              ; preds = %287, %59
  %.pn130 = phi { ptr, i32 } [ %60, %59 ], [ %.pn126.pn.pn, %287 ]
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %289

289:                                              ; preds = %288, %37
  %.pn130.pn = phi { ptr, i32 } [ %.pn130, %288 ], [ %.pn, %37 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn130.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(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 #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJxxEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.12") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

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

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


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