; LLVM IR from eyangch/competitive-programming :: USACOcontests/silver/2014.12 (piggyback)

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

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5cdistxxRA40000_St6vectorIxSaIxEERA40000_x(i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(960000), ptr noundef nonnull align 8 dereferenceable(320000)) #0

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca [40000 x %"class.std::vector"], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca [40000 x i64], align 16
  %16 = alloca [40000 x i64], align 16
  %17 = alloca [40000 x i64], align 16
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %21 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %22 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %23 = getelementptr i8, ptr %22, i64 -24
  %24 = load i64, ptr %23, align 8
  %25 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %24
  %26 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %25, ptr noundef null)
  %27 = load ptr, ptr @stdin, align 8, !tbaa !8
  %28 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %27)
  %29 = load ptr, ptr @stdout, align 8, !tbaa !8
  %30 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %29)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %31 = 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)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 960000, ptr %7) #7
  %36 = getelementptr inbounds [40000 x %"class.std::vector"], ptr %7, i32 0, i32 0
  %37 = getelementptr inbounds %"class.std::vector", ptr %36, i64 40000
  br label %38

38:                                               ; preds = %38, %0
  %39 = phi ptr [ %36, %0 ], [ %40, %38 ]
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  %40 = getelementptr inbounds %"class.std::vector", ptr %39, i64 1
  %41 = icmp eq ptr %40, %37
  br i1 %41, label %42, label %38

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %43

43:                                               ; preds = %70, %42
  %44 = load i32, ptr %8, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = load i64, ptr %6, align 8, !tbaa !13
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %51 unwind label %73

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %53 unwind label %73

53:                                               ; preds = %51
  %54 = load i32, ptr %9, align 4, !tbaa !11
  %55 = sub nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [40000 x %"class.std::vector"], ptr %7, i64 0, i64 %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %58 = load i32, ptr %10, align 4, !tbaa !11
  %59 = sub nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  store i64 %60, ptr %13, align 8, !tbaa !13
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %61 unwind label %77

61:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %62 = load i32, ptr %10, align 4, !tbaa !11
  %63 = sub nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [40000 x %"class.std::vector"], ptr %7, i64 0, i64 %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %66 = load i32, ptr %9, align 4, !tbaa !11
  %67 = sub nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  store i64 %68, ptr %14, align 8, !tbaa !13
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %69 unwind label %81

69:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %70

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

73:                                               ; preds = %51, %49
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  br label %85

77:                                               ; preds = %53
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %85

81:                                               ; preds = %61
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %11, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %85

85:                                               ; preds = %81, %77, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %169

86:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 320000, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 320000, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 320000, ptr %17) #7
  %87 = load i64, ptr %5, align 8, !tbaa !13
  invoke void @_Z5cdistxxRA40000_St6vectorIxSaIxEERA40000_x(i64 noundef %87, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(960000) %7, ptr noundef nonnull align 8 dereferenceable(320000) %15)
          to label %88 unwind label %114

88:                                               ; preds = %86
  %89 = load i64, ptr %5, align 8, !tbaa !13
  invoke void @_Z5cdistxxRA40000_St6vectorIxSaIxEERA40000_x(i64 noundef %89, i64 noundef 1, ptr noundef nonnull align 8 dereferenceable(960000) %7, ptr noundef nonnull align 8 dereferenceable(320000) %16)
          to label %90 unwind label %114

90:                                               ; preds = %88
  %91 = load i64, ptr %5, align 8, !tbaa !13
  %92 = load i64, ptr %5, align 8, !tbaa !13
  %93 = sub nsw i64 %92, 1
  invoke void @_Z5cdistxxRA40000_St6vectorIxSaIxEERA40000_x(i64 noundef %91, i64 noundef %93, ptr noundef nonnull align 8 dereferenceable(960000) %7, ptr noundef nonnull align 8 dereferenceable(320000) %17)
          to label %94 unwind label %114

94:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %95 = load i64, ptr %5, align 8, !tbaa !13
  %96 = sub nsw i64 %95, 1
  %97 = getelementptr inbounds [40000 x i64], ptr %15, i64 0, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !13
  %99 = load i64, ptr %2, align 8, !tbaa !13
  %100 = mul nsw i64 %98, %99
  %101 = load i64, ptr %5, align 8, !tbaa !13
  %102 = sub nsw i64 %101, 1
  %103 = getelementptr inbounds [40000 x i64], ptr %16, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !13
  %105 = load i64, ptr %3, align 8, !tbaa !13
  %106 = mul nsw i64 %104, %105
  %107 = add nsw i64 %100, %106
  store i64 %107, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %108

108:                                              ; preds = %142, %94
  %109 = load i32, ptr %19, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = load i64, ptr %5, align 8, !tbaa !13
  %112 = icmp slt i64 %110, %111
  br i1 %112, label %118, label %113

113:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %149

114:                                              ; preds = %90, %88, %86
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %11, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %12, align 4
  br label %162

118:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %119 = load i32, ptr %19, align 4, !tbaa !11
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [40000 x i64], ptr %15, i64 0, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !13
  %123 = load i64, ptr %2, align 8, !tbaa !13
  %124 = mul nsw i64 %122, %123
  %125 = load i32, ptr %19, align 4, !tbaa !11
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [40000 x i64], ptr %16, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !13
  %129 = load i64, ptr %3, align 8, !tbaa !13
  %130 = mul nsw i64 %128, %129
  %131 = add nsw i64 %124, %130
  %132 = load i32, ptr %19, align 4, !tbaa !11
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [40000 x i64], ptr %17, i64 0, i64 %133
  %135 = load i64, ptr %134, align 8, !tbaa !13
  %136 = load i64, ptr %4, align 8, !tbaa !13
  %137 = mul nsw i64 %135, %136
  %138 = add nsw i64 %131, %137
  store i64 %138, ptr %20, align 8, !tbaa !13
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %140 unwind label %145

140:                                              ; preds = %118
  %141 = load i64, ptr %139, align 8, !tbaa !13
  store i64 %141, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %142

142:                                              ; preds = %140
  %143 = load i32, ptr %19, align 4, !tbaa !11
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %19, align 4, !tbaa !11
  br label %108, !llvm.loop !17

145:                                              ; preds = %118
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %11, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %161

149:                                              ; preds = %113
  %150 = load i64, ptr %18, align 8, !tbaa !13
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %150)
          to label %152 unwind label %157

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %154 unwind label %157

154:                                              ; preds = %152
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr %15) #7
  %155 = getelementptr inbounds [40000 x %"class.std::vector"], ptr %7, i32 0, i32 0
  %156 = getelementptr inbounds %"class.std::vector", ptr %155, i64 40000
  br label %163

157:                                              ; preds = %152, %149
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %11, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %12, align 4
  br label %161

161:                                              ; preds = %157, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %162

162:                                              ; preds = %161, %114
  call void @llvm.lifetime.end.p0(i64 320000, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr %15) #7
  br label %169

163:                                              ; preds = %163, %154
  %164 = phi ptr [ %156, %154 ], [ %165, %163 ]
  %165 = getelementptr inbounds %"class.std::vector", ptr %164, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %165) #7
  %166 = icmp eq ptr %165, %155
  br i1 %166, label %167, label %163

167:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 960000, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, 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
  %168 = load i32, ptr %1, align 4
  ret i32 %168

169:                                              ; preds = %162, %85
  %170 = getelementptr inbounds [40000 x %"class.std::vector"], ptr %7, i32 0, i32 0
  %171 = getelementptr inbounds %"class.std::vector", ptr %170, i64 40000
  br label %172

172:                                              ; preds = %172, %169
  %173 = phi ptr [ %171, %169 ], [ %174, %172 ]
  %174 = getelementptr inbounds %"class.std::vector", ptr %173, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %174) #7
  %175 = icmp eq ptr %174, %170
  br i1 %175, label %176, label %172

176:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 960000, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, 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 %177

177:                                              ; preds = %176
  %178 = load ptr, ptr %11, align 8
  %179 = load i32, ptr %12, align 4
  %180 = insertvalue { ptr, i32 } poison, ptr %178, 0
  %181 = insertvalue { ptr, i32 } %180, i32 %179, 1
  resume { ptr, i32 } %181
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #6 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5cdistxxRA40000_St6vectorIxSaIxEERA40000_x(i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(960000), ptr noundef nonnull align 8 dereferenceable(320000)) local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca [40000 x %"class.std::vector"], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca [40000 x i64], align 16
  %12 = alloca [40000 x i64], align 16
  %13 = alloca [40000 x i64], align 16
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %17 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %18 = getelementptr i8, ptr %17, i64 -24
  %19 = load i64, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %19
  %21 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %20, ptr noundef null)
  %22 = load ptr, ptr @stdin, align 8, !tbaa !8
  %23 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %22)
  %24 = load ptr, ptr @stdout, align 8, !tbaa !8
  %25 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %26 = 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)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 960000, ptr nonnull %6) #7
  br label %31

31:                                               ; preds = %31, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %31 ]
  %.ptr = getelementptr inbounds i8, ptr %6, i64 %.idx
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #7
  %.add = add nuw nsw i64 %.idx, 24
  %32 = icmp eq i64 %.add, 960000
  br i1 %32, label %.preheader, label %31

.preheader:                                       ; preds = %31
  %33 = getelementptr inbounds i8, ptr %6, i64 960000
  %34 = load i64, ptr %5, align 8, !tbaa !11
  %35 = icmp sgt i64 %34, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %56, %.preheader
  call void @llvm.lifetime.start.p0(i64 320000, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 320000, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 320000, ptr nonnull %13) #7
  %36 = load i64, ptr %4, align 8, !tbaa !11
  invoke void @_Z5cdistxxRA40000_St6vectorIxSaIxEERA40000_x(i64 noundef %36, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(960000) %6, ptr noundef nonnull align 8 dereferenceable(320000) %11)
          to label %66 unwind label %86

.lr.ph:                                           ; preds = %.preheader, %56
  %indvars.iv = phi i64 [ %indvars.iv.next, %56 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %38 unwind label %59

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

40:                                               ; preds = %38
  %41 = load i32, ptr %7, align 4, !tbaa !13
  %42 = add nsw i32 %41, -1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [40000 x %"class.std::vector"], ptr %6, i64 0, i64 %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %45 = load i32, ptr %8, align 4, !tbaa !13
  %46 = add nsw i32 %45, -1
  %47 = sext i32 %46 to i64
  store i64 %47, ptr %9, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %48 unwind label %61

48:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %49 = load i32, ptr %8, align 4, !tbaa !13
  %50 = add nsw i32 %49, -1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [40000 x %"class.std::vector"], ptr %6, i64 0, i64 %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %53 = load i32, ptr %7, align 4, !tbaa !13
  %54 = add nsw i32 %53, -1
  %55 = sext i32 %54 to i64
  store i64 %55, ptr %10, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %56 unwind label %63

56:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i64, ptr %5, align 8, !tbaa !11
  %58 = icmp sgt i64 %57, %indvars.iv.next
  br i1 %58, label %.lr.ph, label %._crit_edge, !llvm.loop !15

59:                                               ; preds = %38, %.lr.ph
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %65

61:                                               ; preds = %40
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %65

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

65:                                               ; preds = %63, %61, %59
  %.pn20 = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %117

66:                                               ; preds = %._crit_edge
  %67 = load i64, ptr %4, align 8, !tbaa !11
  invoke void @_Z5cdistxxRA40000_St6vectorIxSaIxEERA40000_x(i64 noundef %67, i64 noundef 1, ptr noundef nonnull align 8 dereferenceable(960000) %6, ptr noundef nonnull align 8 dereferenceable(320000) %12)
          to label %68 unwind label %86

68:                                               ; preds = %66
  %69 = load i64, ptr %4, align 8, !tbaa !11
  %70 = add nsw i64 %69, -1
  invoke void @_Z5cdistxxRA40000_St6vectorIxSaIxEERA40000_x(i64 noundef %69, i64 noundef %70, ptr noundef nonnull align 8 dereferenceable(960000) %6, ptr noundef nonnull align 8 dereferenceable(320000) %13)
          to label %71 unwind label %86

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %72 = load i64, ptr %4, align 8, !tbaa !11
  %73 = add nsw i64 %72, -1
  %74 = getelementptr inbounds [40000 x i64], ptr %11, i64 0, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !11
  %76 = load i64, ptr %1, align 8, !tbaa !11
  %77 = mul nsw i64 %76, %75
  %78 = getelementptr inbounds [40000 x i64], ptr %12, i64 0, i64 %73
  %79 = load i64, ptr %78, align 8, !tbaa !11
  %80 = load i64, ptr %2, align 8, !tbaa !11
  %81 = mul nsw i64 %80, %79
  %82 = add nsw i64 %81, %77
  store i64 %82, ptr %14, align 8, !tbaa !11
  %83 = icmp sgt i64 %72, 0
  br i1 %83, label %.lr.ph26, label %._crit_edge27

._crit_edge27:                                    ; preds = %.lr.ph26, %71
  %84 = phi i64 [ %82, %71 ], [ %103, %.lr.ph26 ]
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %84)
          to label %106 unwind label %109

86:                                               ; preds = %68, %66, %._crit_edge
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %111

.lr.ph26:                                         ; preds = %71, %.lr.ph26
  %indvars.iv29 = phi i64 [ %indvars.iv.next30, %.lr.ph26 ], [ 0, %71 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %88 = getelementptr inbounds [40000 x i64], ptr %11, i64 0, i64 %indvars.iv29
  %89 = load i64, ptr %88, align 8, !tbaa !11
  %90 = load i64, ptr %1, align 8, !tbaa !11
  %91 = mul nsw i64 %90, %89
  %92 = getelementptr inbounds [40000 x i64], ptr %12, i64 0, i64 %indvars.iv29
  %93 = load i64, ptr %92, align 8, !tbaa !11
  %94 = load i64, ptr %2, align 8, !tbaa !11
  %95 = mul nsw i64 %94, %93
  %96 = add nsw i64 %95, %91
  %97 = getelementptr inbounds [40000 x i64], ptr %13, i64 0, i64 %indvars.iv29
  %98 = load i64, ptr %97, align 8, !tbaa !11
  %99 = load i64, ptr %3, align 8, !tbaa !11
  %100 = mul nsw i64 %99, %98
  %101 = add nsw i64 %96, %100
  store i64 %101, ptr %15, align 8, !tbaa !11
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %103 = load i64, ptr %102, align 8, !tbaa !11
  store i64 %103, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %indvars.iv.next30 = add nuw nsw i64 %indvars.iv29, 1
  %104 = load i64, ptr %4, align 8, !tbaa !11
  %105 = icmp sgt i64 %104, %indvars.iv.next30
  br i1 %105, label %.lr.ph26, label %._crit_edge27, !llvm.loop !17

106:                                              ; preds = %._crit_edge27
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %108 unwind label %109

108:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr nonnull %11) #7
  br label %112

109:                                              ; preds = %106, %._crit_edge27
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %111

111:                                              ; preds = %109, %86
  %.pn = phi { ptr, i32 } [ %110, %109 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 320000, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 320000, ptr nonnull %11) #7
  br label %117

112:                                              ; preds = %112, %108
  %113 = phi ptr [ %33, %108 ], [ %114, %112 ]
  %114 = getelementptr inbounds i8, ptr %113, i64 -24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %114) #7
  %115 = icmp eq ptr %114, %6
  br i1 %115, label %116, label %112

116:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 960000, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, 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

117:                                              ; preds = %111, %65
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %65 ], [ %.pn, %111 ]
  br label %118

118:                                              ; preds = %118, %117
  %119 = phi ptr [ %33, %117 ], [ %120, %118 ]
  %120 = getelementptr inbounds i8, ptr %119, i64 -24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #7
  %121 = icmp eq ptr %120, %6
  br i1 %121, label %122, label %118

122:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 960000, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, 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 } %.pn20.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #3

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #6 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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