; LLVM IR from kazunetakahashi/atcoder :: 2020/0705_ABC173 (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<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.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%class.Mint = type { i64 }
%class.anon.3 = type { i8 }
%class.anon.5 = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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)) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator.0", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %class.anon, align 1
  %15 = alloca %"class.std::reverse_iterator", align 8
  %16 = alloca %"class.std::reverse_iterator", align 8
  %17 = alloca %class.Mint, align 8
  %18 = alloca i32, align 4
  %19 = alloca %class.Mint, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %class.anon.3, align 1
  %23 = alloca %"class.std::reverse_iterator", align 8
  %24 = alloca %"class.std::reverse_iterator", align 8
  %25 = alloca %class.anon.5, align 1
  %26 = alloca %class.Mint, align 8
  %27 = alloca i8, align 1
  %28 = alloca i32, align 4
  %29 = alloca %class.Mint, align 8
  %30 = alloca %class.Mint, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca %class.Mint, align 8
  %40 = alloca i32, align 4
  %41 = alloca %class.Mint, align 8
  %42 = alloca %class.Mint, align 8
  %43 = alloca %class.Mint, align 8
  %44 = alloca %class.Mint, align 8
  %45 = alloca %class.Mint, align 8
  %46 = alloca %class.Mint, align 8
  %47 = alloca %class.Mint, align 8
  %48 = alloca %class.Mint, align 8
  %49 = alloca %class.Mint, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %50 = 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)
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
  %52 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %52, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %53 unwind label %60

53:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %70, %53
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = load i64, ptr %2, align 8, !tbaa !5
  %58 = icmp slt i64 %56, %57
  br i1 %58, label %64, label %59

59:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %77

60:                                               ; preds = %0
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %6, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  br label %504

64:                                               ; preds = %54
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %66) #7
  %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) %67)
          to label %69 unwind label %73

69:                                               ; preds = %64
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %8, align 4, !tbaa !9
  br label %54, !llvm.loop !11

73:                                               ; preds = %64
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %6, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %503

77:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %94, %77
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = load i64, ptr %2, align 8, !tbaa !5
  %82 = icmp slt i64 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %97

84:                                               ; preds = %78
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %86) #7
  %88 = load i64, ptr %87, align 8, !tbaa !5
  %89 = icmp ne i64 %88, 0
  br i1 %89, label %90, label %93

90:                                               ; preds = %84
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %9, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %90, %84
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %10, align 4, !tbaa !9
  br label %78, !llvm.loop !13

97:                                               ; preds = %83
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = load i64, ptr %3, align 8, !tbaa !5
  %101 = icmp slt i64 %99, %100
  br i1 %101, label %102, label %111

102:                                              ; preds = %97
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %104 unwind label %107

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %106 unwind label %107

106:                                              ; preds = %104
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %500

107:                                              ; preds = %180, %177, %175, %160, %126, %111, %104, %102
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %6, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %7, align 4
  br label %502

111:                                              ; preds = %97
  %112 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %113 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %112, ptr %113, align 8
  %114 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  %116 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8
  %120 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEZ4mainE3$_0EbT_S8_T0_"(ptr %117, ptr %119)
          to label %121 unwind label %107

121:                                              ; preds = %111
  br i1 %120, label %122, label %160

122:                                              ; preds = %121
  %123 = load i64, ptr %3, align 8, !tbaa !5
  %124 = srem i64 %123, 2
  %125 = icmp eq i64 %124, 1
  br i1 %125, label %126, label %160

126:                                              ; preds = %122
  call void @_ZNSt6vectorIxSaIxEE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @_ZNSt6vectorIxSaIxEE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  invoke void @_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEEvT_S9_(ptr noundef %15, ptr noundef %16)
          to label %127 unwind label %107

127:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef 1)
          to label %128 unwind label %135

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %147, %128
  %130 = load i32, ptr %18, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = load i64, ptr %3, align 8, !tbaa !5
  %133 = icmp slt i64 %131, %132
  br i1 %133, label %139, label %134

134:                                              ; preds = %129
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %154

135:                                              ; preds = %156, %154, %127
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %6, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %7, align 4
  br label %159

139:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %141) #7
  %143 = load i64, ptr %142, align 8, !tbaa !5
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef %143)
          to label %144 unwind label %150

144:                                              ; preds = %139
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %146 unwind label %150

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %18, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %18, align 4, !tbaa !9
  br label %129, !llvm.loop !14

150:                                              ; preds = %144, %139
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %6, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %159

154:                                              ; preds = %134
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %156 unwind label %135

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %158 unwind label %135

158:                                              ; preds = %156
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %500

159:                                              ; preds = %150, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %502

160:                                              ; preds = %122, %121
  %161 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  %163 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  %165 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8
  %167 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8
  %169 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEZ4mainE3$_1EbT_S8_T0_"(ptr %166, ptr %168)
          to label %170 unwind label %107

170:                                              ; preds = %160
  br i1 %169, label %171, label %180

171:                                              ; preds = %170
  %172 = load i64, ptr %3, align 8, !tbaa !5
  %173 = srem i64 %172, 2
  %174 = icmp eq i64 %173, 1
  br i1 %174, label %175, label %180

175:                                              ; preds = %171
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %177 unwind label %107

177:                                              ; preds = %175
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %179 unwind label %107

179:                                              ; preds = %177
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %500

180:                                              ; preds = %171, %170
  call void @_ZNSt6vectorIxSaIxEE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @_ZNSt6vectorIxSaIxEE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  invoke void @"_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEZ4mainE3$_2EvT_SA_T0_"(ptr noundef %23, ptr noundef %24)
          to label %181 unwind label %107

181:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %26, i64 noundef 1)
          to label %182 unwind label %189

182:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  store i8 0, ptr %27, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %218, %182
  %184 = load i32, ptr %28, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = load i64, ptr %3, align 8, !tbaa !5
  %187 = icmp slt i64 %185, %186
  br i1 %187, label %193, label %188

188:                                              ; preds = %183
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %221

189:                                              ; preds = %181
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %6, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %7, align 4
  br label %499

193:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %194 = load i32, ptr %28, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %195) #7
  %197 = load i64, ptr %196, align 8, !tbaa !5
  %198 = invoke noundef i64 @_ZSt3absx(i64 noundef %197)
          to label %199 unwind label %213

199:                                              ; preds = %193
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %29, i64 noundef %198)
          to label %200 unwind label %213

200:                                              ; preds = %199
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %202 unwind label %213

202:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  %203 = load i32, ptr %28, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %204) #7
  %206 = load i64, ptr %205, align 8, !tbaa !5
  %207 = icmp slt i64 %206, 0
  br i1 %207, label %208, label %217

208:                                              ; preds = %202
  %209 = load i8, ptr %27, align 1, !tbaa !15, !range !17, !noundef !18
  %210 = trunc i8 %209 to i1
  %211 = xor i1 %210, true
  %212 = zext i1 %211 to i8
  store i8 %212, ptr %27, align 1, !tbaa !15
  br label %217

213:                                              ; preds = %200, %199, %193
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %6, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %498

217:                                              ; preds = %208, %202
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %28, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %28, align 4, !tbaa !9
  br label %183, !llvm.loop !19

221:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %30, i64 noundef 0)
          to label %222 unwind label %230

222:                                              ; preds = %221
  %223 = invoke noundef zeroext i1 @_ZNK4MintILx1000000007EEeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %224 unwind label %230

224:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br i1 %223, label %225, label %238

225:                                              ; preds = %224
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %227 unwind label %234

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %229 unwind label %234

229:                                              ; preds = %227
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %497

230:                                              ; preds = %222, %221
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %6, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %498

234:                                              ; preds = %243, %241, %227, %225
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %6, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %7, align 4
  br label %498

238:                                              ; preds = %224
  %239 = load i8, ptr %27, align 1, !tbaa !15, !range !17, !noundef !18
  %240 = trunc i8 %239 to i1
  br i1 %240, label %246, label %241

241:                                              ; preds = %238
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %243 unwind label %234

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

245:                                              ; preds = %243
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %497

246:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store i64 0, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  store i64 0, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store i64 0, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %247 = load i64, ptr %3, align 8, !tbaa !5
  %248 = sub nsw i64 %247, 1
  store i64 %248, ptr %35, align 8, !tbaa !5
  br label %249

249:                                              ; preds = %263, %246
  %250 = load i64, ptr %35, align 8, !tbaa !5
  %251 = icmp sge i64 %250, 0
  br i1 %251, label %253, label %252

252:                                              ; preds = %249
  store i32 14, ptr %11, align 4
  br label %266

253:                                              ; preds = %249
  %254 = load i64, ptr %35, align 8, !tbaa !5
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %254) #7
  %256 = load i64, ptr %255, align 8, !tbaa !5
  %257 = icmp slt i64 %256, 0
  br i1 %257, label %258, label %262

258:                                              ; preds = %253
  %259 = load i64, ptr %35, align 8, !tbaa !5
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %259) #7
  %261 = load i64, ptr %260, align 8, !tbaa !5
  store i64 %261, ptr %31, align 8, !tbaa !5
  store i32 14, ptr %11, align 4
  br label %266

262:                                              ; preds = %253
  br label %263

263:                                              ; preds = %262
  %264 = load i64, ptr %35, align 8, !tbaa !5
  %265 = add nsw i64 %264, -1
  store i64 %265, ptr %35, align 8, !tbaa !5
  br label %249, !llvm.loop !20

266:                                              ; preds = %258, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %267

267:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %268 = load i64, ptr %3, align 8, !tbaa !5
  %269 = sub nsw i64 %268, 1
  store i64 %269, ptr %36, align 8, !tbaa !5
  br label %270

270:                                              ; preds = %284, %267
  %271 = load i64, ptr %36, align 8, !tbaa !5
  %272 = icmp sge i64 %271, 0
  br i1 %272, label %274, label %273

273:                                              ; preds = %270
  store i32 17, ptr %11, align 4
  br label %287

274:                                              ; preds = %270
  %275 = load i64, ptr %36, align 8, !tbaa !5
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %275) #7
  %277 = load i64, ptr %276, align 8, !tbaa !5
  %278 = icmp sgt i64 %277, 0
  br i1 %278, label %279, label %283

279:                                              ; preds = %274
  %280 = load i64, ptr %36, align 8, !tbaa !5
  %281 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %280) #7
  %282 = load i64, ptr %281, align 8, !tbaa !5
  store i64 %282, ptr %33, align 8, !tbaa !5
  store i32 17, ptr %11, align 4
  br label %287

283:                                              ; preds = %274
  br label %284

284:                                              ; preds = %283
  %285 = load i64, ptr %36, align 8, !tbaa !5
  %286 = add nsw i64 %285, -1
  store i64 %286, ptr %36, align 8, !tbaa !5
  br label %270, !llvm.loop !21

287:                                              ; preds = %279, %273
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %288

288:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %289 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %289, ptr %37, align 8, !tbaa !5
  br label %290

290:                                              ; preds = %305, %288
  %291 = load i64, ptr %37, align 8, !tbaa !5
  %292 = load i64, ptr %2, align 8, !tbaa !5
  %293 = icmp slt i64 %291, %292
  br i1 %293, label %295, label %294

294:                                              ; preds = %290
  store i32 20, ptr %11, align 4
  br label %308

295:                                              ; preds = %290
  %296 = load i64, ptr %37, align 8, !tbaa !5
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %296) #7
  %298 = load i64, ptr %297, align 8, !tbaa !5
  %299 = icmp slt i64 %298, 0
  br i1 %299, label %300, label %304

300:                                              ; preds = %295
  %301 = load i64, ptr %37, align 8, !tbaa !5
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %301) #7
  %303 = load i64, ptr %302, align 8, !tbaa !5
  store i64 %303, ptr %32, align 8, !tbaa !5
  store i32 20, ptr %11, align 4
  br label %308

304:                                              ; preds = %295
  br label %305

305:                                              ; preds = %304
  %306 = load i64, ptr %37, align 8, !tbaa !5
  %307 = add nsw i64 %306, 1
  store i64 %307, ptr %37, align 8, !tbaa !5
  br label %290, !llvm.loop !22

308:                                              ; preds = %300, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %309

309:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %310 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %310, ptr %38, align 8, !tbaa !5
  br label %311

311:                                              ; preds = %326, %309
  %312 = load i64, ptr %38, align 8, !tbaa !5
  %313 = load i64, ptr %2, align 8, !tbaa !5
  %314 = icmp slt i64 %312, %313
  br i1 %314, label %316, label %315

315:                                              ; preds = %311
  store i32 23, ptr %11, align 4
  br label %329

316:                                              ; preds = %311
  %317 = load i64, ptr %38, align 8, !tbaa !5
  %318 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %317) #7
  %319 = load i64, ptr %318, align 8, !tbaa !5
  %320 = icmp sgt i64 %319, 0
  br i1 %320, label %321, label %325

321:                                              ; preds = %316
  %322 = load i64, ptr %38, align 8, !tbaa !5
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %322) #7
  %324 = load i64, ptr %323, align 8, !tbaa !5
  store i64 %324, ptr %34, align 8, !tbaa !5
  store i32 23, ptr %11, align 4
  br label %329

325:                                              ; preds = %316
  br label %326

326:                                              ; preds = %325
  %327 = load i64, ptr %38, align 8, !tbaa !5
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %38, align 8, !tbaa !5
  br label %311, !llvm.loop !23

329:                                              ; preds = %321, %315
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %330

330:                                              ; preds = %329
  %331 = load i64, ptr %31, align 8, !tbaa !5
  %332 = load i64, ptr %34, align 8, !tbaa !5
  %333 = mul nsw i64 %331, %332
  %334 = icmp eq i64 %333, 0
  br i1 %334, label %335, label %373

335:                                              ; preds = %330
  %336 = load i64, ptr %33, align 8, !tbaa !5
  %337 = load i64, ptr %32, align 8, !tbaa !5
  %338 = mul nsw i64 %336, %337
  %339 = icmp eq i64 %338, 0
  br i1 %339, label %340, label %373

340:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %39, i64 noundef 1)
          to label %341 unwind label %348

341:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %342

342:                                              ; preds = %360, %341
  %343 = load i32, ptr %40, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = load i64, ptr %3, align 8, !tbaa !5
  %346 = icmp slt i64 %344, %345
  br i1 %346, label %352, label %347

347:                                              ; preds = %342
  store i32 26, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %367

348:                                              ; preds = %369, %367, %340
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %6, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %7, align 4
  br label %372

352:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %353 = load i32, ptr %40, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %354) #7
  %356 = load i64, ptr %355, align 8, !tbaa !5
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %41, i64 noundef %356)
          to label %357 unwind label %363

357:                                              ; preds = %352
  %358 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %359 unwind label %363

359:                                              ; preds = %357
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %360

360:                                              ; preds = %359
  %361 = load i32, ptr %40, align 4, !tbaa !9
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %40, align 4, !tbaa !9
  br label %342, !llvm.loop !24

363:                                              ; preds = %357, %352
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %6, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %372

367:                                              ; preds = %347
  %368 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %369 unwind label %348

369:                                              ; preds = %367
  %370 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %368, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %371 unwind label %348

371:                                              ; preds = %369
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %495

372:                                              ; preds = %363, %348
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %496

373:                                              ; preds = %335, %330
  %374 = load i64, ptr %31, align 8, !tbaa !5
  %375 = load i64, ptr %34, align 8, !tbaa !5
  %376 = mul nsw i64 %374, %375
  %377 = icmp eq i64 %376, 0
  br i1 %377, label %378, label %407

378:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %379 = load i64, ptr %33, align 8, !tbaa !5
  %380 = invoke noundef i64 @_ZSt3absx(i64 noundef %379)
          to label %381 unwind label %395

381:                                              ; preds = %378
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %42, i64 noundef %380)
          to label %382 unwind label %395

382:                                              ; preds = %381
  %383 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEdVERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %384 unwind label %395

384:                                              ; preds = %382
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %385 = load i64, ptr %32, align 8, !tbaa !5
  %386 = invoke noundef i64 @_ZSt3absx(i64 noundef %385)
          to label %387 unwind label %399

387:                                              ; preds = %384
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %386)
          to label %388 unwind label %399

388:                                              ; preds = %387
  %389 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %390 unwind label %399

390:                                              ; preds = %388
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  %391 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %392 unwind label %403

392:                                              ; preds = %390
  %393 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %391, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %394 unwind label %403

394:                                              ; preds = %392
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %495

395:                                              ; preds = %382, %381, %378
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %6, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %496

399:                                              ; preds = %388, %387, %384
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %6, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br label %496

403:                                              ; preds = %484, %482, %459, %457, %426, %424, %392, %390
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %6, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %7, align 4
  br label %496

407:                                              ; preds = %373
  %408 = load i64, ptr %33, align 8, !tbaa !5
  %409 = load i64, ptr %32, align 8, !tbaa !5
  %410 = mul nsw i64 %408, %409
  %411 = icmp eq i64 %410, 0
  br i1 %411, label %412, label %437

412:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %413 = load i64, ptr %31, align 8, !tbaa !5
  %414 = invoke noundef i64 @_ZSt3absx(i64 noundef %413)
          to label %415 unwind label %429

415:                                              ; preds = %412
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %44, i64 noundef %414)
          to label %416 unwind label %429

416:                                              ; preds = %415
  %417 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEdVERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %418 unwind label %429

418:                                              ; preds = %416
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %419 = load i64, ptr %34, align 8, !tbaa !5
  %420 = invoke noundef i64 @_ZSt3absx(i64 noundef %419)
          to label %421 unwind label %433

421:                                              ; preds = %418
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %45, i64 noundef %420)
          to label %422 unwind label %433

422:                                              ; preds = %421
  %423 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %424 unwind label %433

424:                                              ; preds = %422
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  %425 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %426 unwind label %403

426:                                              ; preds = %424
  %427 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %425, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %428 unwind label %403

428:                                              ; preds = %426
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %495

429:                                              ; preds = %416, %415, %412
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %6, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  br label %496

433:                                              ; preds = %422, %421, %418
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %6, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %496

437:                                              ; preds = %407
  %438 = load i64, ptr %32, align 8, !tbaa !5
  %439 = load i64, ptr %31, align 8, !tbaa !5
  %440 = mul nsw i64 %438, %439
  %441 = load i64, ptr %34, align 8, !tbaa !5
  %442 = load i64, ptr %33, align 8, !tbaa !5
  %443 = mul nsw i64 %441, %442
  %444 = icmp sgt i64 %440, %443
  br i1 %444, label %445, label %470

445:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %446 = load i64, ptr %33, align 8, !tbaa !5
  %447 = invoke noundef i64 @_ZSt3absx(i64 noundef %446)
          to label %448 unwind label %462

448:                                              ; preds = %445
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %46, i64 noundef %447)
          to label %449 unwind label %462

449:                                              ; preds = %448
  %450 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEdVERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %451 unwind label %462

451:                                              ; preds = %449
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  %452 = load i64, ptr %32, align 8, !tbaa !5
  %453 = invoke noundef i64 @_ZSt3absx(i64 noundef %452)
          to label %454 unwind label %466

454:                                              ; preds = %451
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %47, i64 noundef %453)
          to label %455 unwind label %466

455:                                              ; preds = %454
  %456 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %457 unwind label %466

457:                                              ; preds = %455
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  %458 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %459 unwind label %403

459:                                              ; preds = %457
  %460 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %458, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %461 unwind label %403

461:                                              ; preds = %459
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %495

462:                                              ; preds = %449, %448, %445
  %463 = landingpad { ptr, i32 }
          cleanup
  %464 = extractvalue { ptr, i32 } %463, 0
  store ptr %464, ptr %6, align 8
  %465 = extractvalue { ptr, i32 } %463, 1
  store i32 %465, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br label %496

466:                                              ; preds = %455, %454, %451
  %467 = landingpad { ptr, i32 }
          cleanup
  %468 = extractvalue { ptr, i32 } %467, 0
  store ptr %468, ptr %6, align 8
  %469 = extractvalue { ptr, i32 } %467, 1
  store i32 %469, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  br label %496

470:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %471 = load i64, ptr %31, align 8, !tbaa !5
  %472 = invoke noundef i64 @_ZSt3absx(i64 noundef %471)
          to label %473 unwind label %487

473:                                              ; preds = %470
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %48, i64 noundef %472)
          to label %474 unwind label %487

474:                                              ; preds = %473
  %475 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEdVERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %476 unwind label %487

476:                                              ; preds = %474
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #7
  %477 = load i64, ptr %34, align 8, !tbaa !5
  %478 = invoke noundef i64 @_ZSt3absx(i64 noundef %477)
          to label %479 unwind label %491

479:                                              ; preds = %476
  invoke void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %49, i64 noundef %478)
          to label %480 unwind label %491

480:                                              ; preds = %479
  %481 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %482 unwind label %491

482:                                              ; preds = %480
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  %483 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %484 unwind label %403

484:                                              ; preds = %482
  %485 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %483, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %486 unwind label %403

486:                                              ; preds = %484
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %495

487:                                              ; preds = %474, %473, %470
  %488 = landingpad { ptr, i32 }
          cleanup
  %489 = extractvalue { ptr, i32 } %488, 0
  store ptr %489, ptr %6, align 8
  %490 = extractvalue { ptr, i32 } %488, 1
  store i32 %490, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  br label %496

491:                                              ; preds = %480, %479, %476
  %492 = landingpad { ptr, i32 }
          cleanup
  %493 = extractvalue { ptr, i32 } %492, 0
  store ptr %493, ptr %6, align 8
  %494 = extractvalue { ptr, i32 } %492, 1
  store i32 %494, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  br label %496

495:                                              ; preds = %486, %461, %428, %394, %371
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %497

496:                                              ; preds = %491, %487, %466, %462, %433, %429, %403, %399, %395, %372
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %498

497:                                              ; preds = %495, %245, %229
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %500

498:                                              ; preds = %496, %234, %230, %213
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  br label %499

499:                                              ; preds = %498, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %502

500:                                              ; preds = %497, %179, %158, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %501 = load i32, ptr %1, align 4
  ret i32 %501

502:                                              ; preds = %499, %159, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %503

503:                                              ; preds = %502, %73
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %504

504:                                              ; preds = %503, %60
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %505

505:                                              ; preds = %504
  %506 = load ptr, ptr %6, align 8
  %507 = load i32, ptr %7, align 4
  %508 = insertvalue { ptr, i32 } poison, ptr %506, 0
  %509 = insertvalue { ptr, i32 } %508, i32 %507, 1
  resume { ptr, i32 } %509
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEZ4mainE3$_0EbT_S8_T0_"(ptr, ptr) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEEvT_S9_(ptr noundef, ptr noundef) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEZ4mainE3$_1EbT_S8_T0_"(ptr, ptr) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEZ4mainE3$_2EvT_SA_T0_"(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) #6

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

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

; 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 void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !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<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.0" = type { i8 }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.Mint = type { i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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)) #2

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

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

.preheader:                                       ; preds = %35
  %30 = icmp sgt i64 %36, 0
  br i1 %30, label %.lr.ph110, label %._crit_edge

31:                                               ; preds = %0
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %219

.lr.ph:                                           ; preds = %27, %35
  %indvars.iv = phi i64 [ %indvars.iv.next, %35 ], [ 0, %27 ]
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #7
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %35 unwind label %38

35:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = load i64, ptr %1, align 8, !tbaa !5
  %37 = icmp sgt i64 %36, %indvars.iv.next
  br i1 %37, label %.lr.ph, label %.preheader, !llvm.loop !9

38:                                               ; preds = %.lr.ph
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %218

._crit_edge:                                      ; preds = %.lr.ph110, %27, %.preheader
  %.084.lcssa = phi i32 [ 0, %.preheader ], [ 0, %27 ], [ %spec.select, %.lr.ph110 ]
  %40 = sext i32 %.084.lcssa to i64
  %41 = load i64, ptr %2, align 8, !tbaa !5
  %42 = icmp sgt i64 %41, %40
  br i1 %42, label %.invoke150, label %50

.lr.ph110:                                        ; preds = %.preheader, %.lr.ph110
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %.lr.ph110 ], [ 0, %.preheader ]
  %.084108 = phi i32 [ %spec.select, %.lr.ph110 ], [ 0, %.preheader ]
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv134) #7
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %.not = icmp ne i64 %44, 0
  %45 = zext i1 %.not to i32
  %spec.select = add nuw nsw i32 %.084108, %45
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %46 = load i64, ptr %1, align 8, !tbaa !5
  %47 = icmp sgt i64 %46, %indvars.iv.next135
  br i1 %47, label %.lr.ph110, label %._crit_edge, !llvm.loop !11

48:                                               ; preds = %.invoke150, %.invoke, %85, %74, %59, %50
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %218

50:                                               ; preds = %._crit_edge
  %51 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %52 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %53 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEZ4mainE3$_0EbT_S8_T0_"(ptr %51, ptr %52)
          to label %54 unwind label %48

54:                                               ; preds = %50
  br i1 %53, label %55, label %74

55:                                               ; preds = %54
  %56 = load i64, ptr %2, align 8, !tbaa !5
  %57 = and i64 %56, -9223372036854775807
  %58 = icmp eq i64 %57, 1
  br i1 %58, label %59, label %74

59:                                               ; preds = %55
  call void @_ZNSt6vectorIxSaIxEE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @_ZNSt6vectorIxSaIxEE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEEvT_S9_(ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %60 unwind label %48

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef 1)
  %61 = load i64, ptr %2, align 8, !tbaa !5
  %62 = icmp sgt i64 %61, 0
  br i1 %62, label %.lr.ph129, label %._crit_edge130

._crit_edge130:                                   ; preds = %.lr.ph129, %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %71 unwind label %64

64:                                               ; preds = %71, %._crit_edge130
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %218

.lr.ph129:                                        ; preds = %60, %.lr.ph129
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %.lr.ph129 ], [ 0, %60 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv142) #7
  %67 = load i64, ptr %66, align 8, !tbaa !5
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %67)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %69 = load i64, ptr %2, align 8, !tbaa !5
  %70 = icmp sgt i64 %69, %indvars.iv.next143
  br i1 %70, label %.lr.ph129, label %._crit_edge130, !llvm.loop !12

71:                                               ; preds = %._crit_edge130
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %73 unwind label %64

73:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %217

74:                                               ; preds = %55, %54
  %75 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %76 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %77 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEZ4mainE3$_1EbT_S8_T0_"(ptr %75, ptr %76)
          to label %78 unwind label %48

78:                                               ; preds = %74
  br i1 %77, label %79, label %85

79:                                               ; preds = %78
  %80 = load i64, ptr %2, align 8, !tbaa !5
  %81 = and i64 %80, -9223372036854775807
  %82 = icmp eq i64 %81, 1
  br i1 %82, label %.invoke150, label %85

.invoke150:                                       ; preds = %._crit_edge, %79
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %.invoke unwind label %48

.invoke:                                          ; preds = %.invoke150
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %217 unwind label %48

85:                                               ; preds = %79, %78
  call void @_ZNSt6vectorIxSaIxEE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @_ZNSt6vectorIxSaIxEE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @"_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEZ4mainE3$_2EvT_SA_T0_"(ptr noundef nonnull %9, ptr noundef nonnull %10)
          to label %86 unwind label %48

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 1)
  %87 = load i64, ptr %2, align 8, !tbaa !5
  %88 = icmp sgt i64 %87, 0
  br i1 %88, label %.lr.ph114, label %._crit_edge115

._crit_edge115:                                   ; preds = %.lr.ph114, %86
  %.070.lcssa = phi i1 [ false, %86 ], [ %.1, %.lr.ph114 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef 0)
  %89 = call noundef zeroext i1 @_ZNK4MintILx1000000007EEeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %89, label %99, label %103

.lr.ph114:                                        ; preds = %86, %.lr.ph114
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %.lr.ph114 ], [ 0, %86 ]
  %.070111 = phi i1 [ %.1, %.lr.ph114 ], [ false, %86 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv137) #7
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = call noundef i64 @_ZSt3absx(i64 noundef %91)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %92)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv137) #7
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = icmp slt i64 %95, 0
  %.1 = xor i1 %.070111, %96
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %97 = load i64, ptr %2, align 8, !tbaa !5
  %98 = icmp sgt i64 %97, %indvars.iv.next138
  br i1 %98, label %.lr.ph114, label %._crit_edge115, !llvm.loop !13

99:                                               ; preds = %._crit_edge115
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %.invoke148 unwind label %101

101:                                              ; preds = %.invoke148, %104, %99
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %216

103:                                              ; preds = %._crit_edge115
  br i1 %.070.lcssa, label %108, label %104

104:                                              ; preds = %103
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %.invoke148 unwind label %101

.invoke148:                                       ; preds = %99, %104
  %106 = phi ptr [ %105, %104 ], [ %100, %99 ]
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %215 unwind label %101

108:                                              ; preds = %103
  %109 = load i64, ptr %2, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %112, %108
  %.064.in = phi i64 [ %109, %108 ], [ %.064, %112 ]
  %111 = icmp sgt i64 %.064.in, 0
  br i1 %111, label %112, label %.loopexit102

112:                                              ; preds = %110
  %.064 = add nsw i64 %.064.in, -1
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.064) #7
  %114 = load i64, ptr %113, align 8, !tbaa !5
  %115 = icmp slt i64 %114, 0
  br i1 %115, label %116, label %110, !llvm.loop !14

116:                                              ; preds = %112
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.064) #7
  %118 = load i64, ptr %117, align 8, !tbaa !5
  br label %.loopexit102

.loopexit102:                                     ; preds = %110, %116
  %.068 = phi i64 [ %118, %116 ], [ 0, %110 ]
  %119 = load i64, ptr %2, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %122, %.loopexit102
  %.063.in = phi i64 [ %119, %.loopexit102 ], [ %.063, %122 ]
  %121 = icmp sgt i64 %.063.in, 0
  br i1 %121, label %122, label %.loopexit101

122:                                              ; preds = %120
  %.063 = add nsw i64 %.063.in, -1
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.063) #7
  %124 = load i64, ptr %123, align 8, !tbaa !5
  %125 = icmp sgt i64 %124, 0
  br i1 %125, label %126, label %120, !llvm.loop !15

126:                                              ; preds = %122
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.063) #7
  %128 = load i64, ptr %127, align 8, !tbaa !5
  br label %.loopexit101

.loopexit101:                                     ; preds = %120, %126
  %.066 = phi i64 [ %128, %126 ], [ 0, %120 ]
  %129 = load i64, ptr %2, align 8, !tbaa !5
  %130 = load i64, ptr %1, align 8, !tbaa !5
  %131 = icmp slt i64 %129, %130
  br i1 %131, label %.lr.ph119, label %.loopexit100

.lr.ph119:                                        ; preds = %.loopexit101, %138
  %.062117 = phi i64 [ %139, %138 ], [ %129, %.loopexit101 ]
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.062117) #7
  %133 = load i64, ptr %132, align 8, !tbaa !5
  %134 = icmp slt i64 %133, 0
  br i1 %134, label %135, label %138

135:                                              ; preds = %.lr.ph119
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.062117) #7
  %137 = load i64, ptr %136, align 8, !tbaa !5
  %.pre = load i64, ptr %1, align 8, !tbaa !5
  br label %.loopexit100

138:                                              ; preds = %.lr.ph119
  %139 = add nsw i64 %.062117, 1
  %140 = load i64, ptr %1, align 8, !tbaa !5
  %141 = icmp slt i64 %139, %140
  br i1 %141, label %.lr.ph119, label %.loopexit100, !llvm.loop !16

.loopexit100:                                     ; preds = %138, %.loopexit101, %135
  %142 = phi i64 [ %.pre, %135 ], [ %130, %.loopexit101 ], [ %140, %138 ]
  %.067 = phi i64 [ %137, %135 ], [ 0, %.loopexit101 ], [ 0, %138 ]
  %143 = load i64, ptr %2, align 8, !tbaa !5
  %144 = icmp slt i64 %143, %142
  br i1 %144, label %.lr.ph122, label %.loopexit

.lr.ph122:                                        ; preds = %.loopexit100, %151
  %.061120 = phi i64 [ %152, %151 ], [ %143, %.loopexit100 ]
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.061120) #7
  %146 = load i64, ptr %145, align 8, !tbaa !5
  %147 = icmp sgt i64 %146, 0
  br i1 %147, label %148, label %151

148:                                              ; preds = %.lr.ph122
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.061120) #7
  %150 = load i64, ptr %149, align 8, !tbaa !5
  br label %.loopexit

151:                                              ; preds = %.lr.ph122
  %152 = add nsw i64 %.061120, 1
  %153 = load i64, ptr %1, align 8, !tbaa !5
  %154 = icmp slt i64 %152, %153
  br i1 %154, label %.lr.ph122, label %.loopexit, !llvm.loop !17

.loopexit:                                        ; preds = %151, %.loopexit100, %148
  %.065 = phi i64 [ %150, %148 ], [ 0, %.loopexit100 ], [ 0, %151 ]
  %155 = mul nsw i64 %.065, %.068
  %156 = icmp eq i64 %155, 0
  %157 = mul nsw i64 %.067, %.066
  %158 = icmp eq i64 %157, 0
  %or.cond = select i1 %156, i1 %158, i1 false
  br i1 %or.cond, label %159, label %173

159:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 1)
  %160 = load i64, ptr %2, align 8, !tbaa !5
  %161 = icmp sgt i64 %160, 0
  br i1 %161, label %.lr.ph125, label %._crit_edge126

._crit_edge126:                                   ; preds = %.lr.ph125, %159
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %170 unwind label %163

163:                                              ; preds = %170, %._crit_edge126
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %216

.lr.ph125:                                        ; preds = %159, %.lr.ph125
  %indvars.iv139 = phi i64 [ %indvars.iv.next140, %.lr.ph125 ], [ 0, %159 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv139) #7
  %166 = load i64, ptr %165, align 8, !tbaa !5
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %15, i64 noundef %166)
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %168 = load i64, ptr %2, align 8, !tbaa !5
  %169 = icmp sgt i64 %168, %indvars.iv.next140
  br i1 %169, label %.lr.ph125, label %._crit_edge126, !llvm.loop !18

170:                                              ; preds = %._crit_edge126
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %172 unwind label %163

172:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %215

173:                                              ; preds = %.loopexit
  br i1 %156, label %174, label %184

174:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %175 = call noundef i64 @_ZSt3absx(i64 noundef %.066)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef %175)
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEdVERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %177 unwind label %180

177:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %178 = call noundef i64 @_ZSt3absx(i64 noundef %.067)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %178)
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %.invoke151

180:                                              ; preds = %174
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %216

182:                                              ; preds = %.invoke151, %.invoke149
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %216

184:                                              ; preds = %173
  br i1 %158, label %185, label %193

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %186 = call noundef i64 @_ZSt3absx(i64 noundef %.068)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %186)
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEdVERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %188 unwind label %191

188:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %189 = call noundef i64 @_ZSt3absx(i64 noundef %.065)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef %189)
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %.invoke151

191:                                              ; preds = %185
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br label %216

193:                                              ; preds = %184
  %194 = mul nsw i64 %.067, %.068
  %195 = mul nsw i64 %.065, %.066
  %196 = icmp sgt i64 %194, %195
  br i1 %196, label %197, label %205

197:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %198 = call noundef i64 @_ZSt3absx(i64 noundef %.066)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %20, i64 noundef %198)
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEdVERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %200 unwind label %203

200:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %201 = call noundef i64 @_ZSt3absx(i64 noundef %.067)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %201)
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %.invoke151

203:                                              ; preds = %197
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  br label %216

205:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %206 = call noundef i64 @_ZSt3absx(i64 noundef %.068)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef %206)
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEdVERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %208 unwind label %213

208:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %209 = call noundef i64 @_ZSt3absx(i64 noundef %.065)
  call void @_ZN4MintILx1000000007EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %23, i64 noundef %209)
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx1000000007EEmLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br label %.invoke151

.invoke151:                                       ; preds = %177, %188, %200, %208
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx1000000007EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %.invoke149 unwind label %182

.invoke149:                                       ; preds = %.invoke151
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %215 unwind label %182

213:                                              ; preds = %205
  %214 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %216

215:                                              ; preds = %.invoke149, %.invoke148, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %217

216:                                              ; preds = %163, %180, %182, %191, %203, %213, %101
  %.pn92 = phi { ptr, i32 } [ %102, %101 ], [ %164, %163 ], [ %183, %182 ], [ %181, %180 ], [ %192, %191 ], [ %204, %203 ], [ %214, %213 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %218

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

218:                                              ; preds = %48, %64, %216, %38
  %.pn96 = phi { ptr, i32 } [ %39, %38 ], [ %49, %48 ], [ %65, %64 ], [ %.pn92, %216 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %219

219:                                              ; preds = %218, %31
  %.pn96.pn = phi { ptr, i32 } [ %.pn96, %218 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn96.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEZ4mainE3$_0EbT_S8_T0_"(ptr, ptr) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEEvT_S9_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEZ4mainE3$_1EbT_S8_T0_"(ptr, ptr) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEZ4mainE3$_2EvT_SA_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) local_unnamed_addr #6

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

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

; 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 void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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


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