; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/352 Division 1/Problem A (A)

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

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@ax = external dso_local global i64, align 8
@ay = external dso_local global i64, align 8
@bx = external dso_local global i64, align 8
@by = external dso_local global i64, align 8
@tx = external dso_local global i64, align 8
@ty = external dso_local global i64, align 8
@n = external dso_local global i32, align 4
@dis1 = external dso_local global [100100 x x86_fp80], align 16
@dis2 = external dso_local global [100100 x x86_fp80], align 16
@dis3 = external dso_local global [100100 x x86_fp80], align 16
@cost = external dso_local global x86_fp80, align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z4distSt4pairIxxES0_(i64, i64, i64, i64) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca x86_fp80, align 16
  %16 = alloca x86_fp80, align 16
  %17 = alloca i32, align 4
  %18 = alloca x86_fp80, align 16
  %19 = alloca %"struct.std::_Setprecision", align 4
  %20 = alloca i32, align 4
  %21 = alloca x86_fp80, align 16
  %22 = alloca i32, align 4
  %23 = alloca x86_fp80, align 16
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca x86_fp80, align 16
  %27 = alloca x86_fp80, align 16
  %28 = alloca i32, align 4
  %29 = alloca x86_fp80, align 16
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca x86_fp80, align 16
  %33 = alloca x86_fp80, align 16
  %34 = alloca x86_fp80, align 16
  %35 = alloca x86_fp80, align 16
  %36 = alloca %"struct.std::_Setprecision", align 4
  store i32 0, ptr %1, align 4
  %37 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %38 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %39 = getelementptr i8, ptr %38, i64 -24
  %40 = load i64, ptr %39, align 8
  %41 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %40
  %42 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %41, ptr noundef null)
  %43 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %44 = getelementptr i8, ptr %43, i64 -24
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %45
  %47 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %46, ptr noundef null)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @ax)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(8) @ay)
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(8) @bx)
  %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) @by)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(8) @tx)
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(8) @ty)
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #9
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !8
  br label %55

55:                                               ; preds = %144, %0
  %56 = load i32, ptr %5, align 4, !tbaa !8
  %57 = load i32, ptr @n, align 4, !tbaa !8
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %156

60:                                               ; preds = %55
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %62 unwind label %147

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %64 unwind label %147

64:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  %65 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %66 unwind label %151

66:                                               ; preds = %64
  %67 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 0
  %68 = extractvalue { i64, i64 } %65, 0
  store i64 %68, ptr %67, align 8
  %69 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 1
  %70 = extractvalue { i64, i64 } %65, 1
  store i64 %70, ptr %69, align 8
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %71 unwind label %151

71:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  %72 = load i32, ptr %5, align 4, !tbaa !8
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %73) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %74, i64 16, i1 false)
  %75 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) @tx, ptr noundef nonnull align 8 dereferenceable(8) @ty)
          to label %76 unwind label %147

76:                                               ; preds = %71
  %77 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %78 = extractvalue { i64, i64 } %75, 0
  store i64 %78, ptr %77, align 8
  %79 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %80 = extractvalue { i64, i64 } %75, 1
  store i64 %80, ptr %79, align 8
  %81 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %82 = load i64, ptr %81, align 8
  %83 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %84 = load i64, ptr %83, align 8
  %85 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %86 = load i64, ptr %85, align 8
  %87 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %88 = load i64, ptr %87, align 8
  %89 = invoke noundef x86_fp80 @_Z4distSt4pairIxxES0_(i64 %82, i64 %84, i64 %86, i64 %88)
          to label %90 unwind label %147

90:                                               ; preds = %76
  %91 = load i32, ptr %5, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %92
  store x86_fp80 %89, ptr %93, align 16, !tbaa !11
  %94 = load i32, ptr %5, align 4, !tbaa !8
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %95) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %96, i64 16, i1 false)
  %97 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) @ax, ptr noundef nonnull align 8 dereferenceable(8) @ay)
          to label %98 unwind label %147

98:                                               ; preds = %90
  %99 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %100 = extractvalue { i64, i64 } %97, 0
  store i64 %100, ptr %99, align 8
  %101 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %102 = extractvalue { i64, i64 } %97, 1
  store i64 %102, ptr %101, align 8
  %103 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %104 = load i64, ptr %103, align 8
  %105 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %106 = load i64, ptr %105, align 8
  %107 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %108 = load i64, ptr %107, align 8
  %109 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %110 = load i64, ptr %109, align 8
  %111 = invoke noundef x86_fp80 @_Z4distSt4pairIxxES0_(i64 %104, i64 %106, i64 %108, i64 %110)
          to label %112 unwind label %147

112:                                              ; preds = %98
  %113 = load i32, ptr %5, align 4, !tbaa !8
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100100 x x86_fp80], ptr @dis2, i64 0, i64 %114
  store x86_fp80 %111, ptr %115, align 16, !tbaa !11
  %116 = load i32, ptr %5, align 4, !tbaa !8
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %117) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %118, i64 16, i1 false)
  %119 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) @bx, ptr noundef nonnull align 8 dereferenceable(8) @by)
          to label %120 unwind label %147

120:                                              ; preds = %112
  %121 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %122 = extractvalue { i64, i64 } %119, 0
  store i64 %122, ptr %121, align 8
  %123 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %124 = extractvalue { i64, i64 } %119, 1
  store i64 %124, ptr %123, align 8
  %125 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 0
  %126 = load i64, ptr %125, align 8
  %127 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 1
  %128 = load i64, ptr %127, align 8
  %129 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %130 = load i64, ptr %129, align 8
  %131 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %132 = load i64, ptr %131, align 8
  %133 = invoke noundef x86_fp80 @_Z4distSt4pairIxxES0_(i64 %126, i64 %128, i64 %130, i64 %132)
          to label %134 unwind label %147

134:                                              ; preds = %120
  %135 = load i32, ptr %5, align 4, !tbaa !8
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [100100 x x86_fp80], ptr @dis3, i64 0, i64 %136
  store x86_fp80 %133, ptr %137, align 16, !tbaa !11
  %138 = load i32, ptr %5, align 4, !tbaa !8
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %139
  %141 = load x86_fp80, ptr %140, align 16, !tbaa !11
  %142 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %143 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %141, x86_fp80 0xK40008000000000000000, x86_fp80 %142)
  store x86_fp80 %143, ptr @cost, align 16, !tbaa !11
  br label %144

144:                                              ; preds = %134
  %145 = load i32, ptr %5, align 4, !tbaa !8
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %5, align 4, !tbaa !8
  br label %55, !llvm.loop !13

147:                                              ; preds = %120, %112, %98, %90, %76, %71, %62, %60
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %6, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %7, align 4
  br label %155

151:                                              ; preds = %66, %64
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %6, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %361

156:                                              ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  store x86_fp80 0xK401DEE6B280000000000, ptr %15, align 16, !tbaa !11
  %157 = load i32, ptr @n, align 4, !tbaa !8
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %214

159:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #9
  %160 = load x86_fp80, ptr %15, align 16, !tbaa !11
  store x86_fp80 %160, ptr %16, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %161

161:                                              ; preds = %184, %159
  %162 = load i32, ptr %17, align 4, !tbaa !8
  %163 = load i32, ptr @n, align 4, !tbaa !8
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %191

166:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #9
  %167 = load i32, ptr %17, align 4, !tbaa !8
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100100 x x86_fp80], ptr @dis2, i64 0, i64 %168
  %170 = load i32, ptr %17, align 4, !tbaa !8
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [100100 x x86_fp80], ptr @dis3, i64 0, i64 %171
  %173 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %169, ptr noundef nonnull align 16 dereferenceable(16) %172)
          to label %174 unwind label %187

174:                                              ; preds = %166
  %175 = load x86_fp80, ptr %173, align 16, !tbaa !11
  %176 = load i32, ptr %17, align 4, !tbaa !8
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %177
  %179 = load x86_fp80, ptr %178, align 16, !tbaa !11
  %180 = fsub x86_fp80 %175, %179
  store x86_fp80 %180, ptr %18, align 16, !tbaa !11
  %181 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef nonnull align 16 dereferenceable(16) %18)
          to label %182 unwind label %187

182:                                              ; preds = %174
  %183 = load x86_fp80, ptr %181, align 16, !tbaa !11
  store x86_fp80 %183, ptr %16, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  br label %184

184:                                              ; preds = %182
  %185 = load i32, ptr %17, align 4, !tbaa !8
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %17, align 4, !tbaa !8
  br label %161, !llvm.loop !15

187:                                              ; preds = %174, %166
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %6, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %213

191:                                              ; preds = %165
  %192 = load x86_fp80, ptr %16, align 16, !tbaa !11
  %193 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %194 = fadd x86_fp80 %193, %192
  store x86_fp80 %194, ptr @cost, align 16, !tbaa !11
  %195 = invoke i32 @_ZSt12setprecisioni(i32 noundef 11)
          to label %196 unwind label %209

196:                                              ; preds = %191
  %197 = getelementptr inbounds %"struct.std::_Setprecision", ptr %19, i32 0, i32 0
  store i32 %195, ptr %197, align 4
  %198 = getelementptr inbounds %"struct.std::_Setprecision", ptr %19, i32 0, i32 0
  %199 = load i32, ptr %198, align 4
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %199)
          to label %201 unwind label %209

201:                                              ; preds = %196
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef @_ZSt5fixedRSt8ios_base)
          to label %203 unwind label %209

203:                                              ; preds = %201
  %204 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %202, x86_fp80 noundef %204)
          to label %206 unwind label %209

206:                                              ; preds = %203
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %208 unwind label %209

208:                                              ; preds = %206
  store i32 0, ptr %1, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  br label %358

209:                                              ; preds = %206, %203, %201, %196, %191
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %6, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %7, align 4
  br label %213

213:                                              ; preds = %209, %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  br label %360

214:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  %215 = load x86_fp80, ptr %15, align 16, !tbaa !11
  store x86_fp80 %215, ptr %21, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 -1, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %216 = load x86_fp80, ptr %15, align 16, !tbaa !11
  store x86_fp80 %216, ptr %23, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 -1, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 0, ptr %25, align 4, !tbaa !8
  br label %217

217:                                              ; preds = %249, %214
  %218 = load i32, ptr %25, align 4, !tbaa !8
  %219 = load i32, ptr @n, align 4, !tbaa !8
  %220 = icmp slt i32 %218, %219
  br i1 %220, label %222, label %221

221:                                              ; preds = %217
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %252

222:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #9
  %223 = load i32, ptr %25, align 4, !tbaa !8
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [100100 x x86_fp80], ptr @dis2, i64 0, i64 %224
  %226 = load x86_fp80, ptr %225, align 16, !tbaa !11
  %227 = load i32, ptr %25, align 4, !tbaa !8
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %228
  %230 = load x86_fp80, ptr %229, align 16, !tbaa !11
  %231 = fsub x86_fp80 %226, %230
  store x86_fp80 %231, ptr %26, align 16, !tbaa !11
  %232 = load x86_fp80, ptr %26, align 16, !tbaa !11
  %233 = load x86_fp80, ptr %21, align 16, !tbaa !11
  %234 = fcmp olt x86_fp80 %232, %233
  br i1 %234, label %235, label %240

235:                                              ; preds = %222
  %236 = load x86_fp80, ptr %21, align 16, !tbaa !11
  store x86_fp80 %236, ptr %23, align 16, !tbaa !11
  %237 = load i32, ptr %22, align 4, !tbaa !8
  store i32 %237, ptr %24, align 4, !tbaa !8
  %238 = load x86_fp80, ptr %26, align 16, !tbaa !11
  store x86_fp80 %238, ptr %21, align 16, !tbaa !11
  %239 = load i32, ptr %25, align 4, !tbaa !8
  store i32 %239, ptr %22, align 4, !tbaa !8
  br label %248

240:                                              ; preds = %222
  %241 = load x86_fp80, ptr %26, align 16, !tbaa !11
  %242 = load x86_fp80, ptr %23, align 16, !tbaa !11
  %243 = fcmp ole x86_fp80 %241, %242
  br i1 %243, label %244, label %247

244:                                              ; preds = %240
  %245 = load x86_fp80, ptr %26, align 16, !tbaa !11
  store x86_fp80 %245, ptr %23, align 16, !tbaa !11
  %246 = load i32, ptr %25, align 4, !tbaa !8
  store i32 %246, ptr %24, align 4, !tbaa !8
  br label %247

247:                                              ; preds = %244, %240
  br label %248

248:                                              ; preds = %247, %235
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %25, align 4, !tbaa !8
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %25, align 4, !tbaa !8
  br label %217, !llvm.loop !16

252:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %253 = load x86_fp80, ptr %15, align 16, !tbaa !11
  store x86_fp80 %253, ptr %27, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 -1, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #9
  %254 = load x86_fp80, ptr %15, align 16, !tbaa !11
  store x86_fp80 %254, ptr %29, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 -1, ptr %30, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 0, ptr %31, align 4, !tbaa !8
  br label %255

255:                                              ; preds = %287, %252
  %256 = load i32, ptr %31, align 4, !tbaa !8
  %257 = load i32, ptr @n, align 4, !tbaa !8
  %258 = icmp slt i32 %256, %257
  br i1 %258, label %260, label %259

259:                                              ; preds = %255
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %290

260:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #9
  %261 = load i32, ptr %31, align 4, !tbaa !8
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [100100 x x86_fp80], ptr @dis3, i64 0, i64 %262
  %264 = load x86_fp80, ptr %263, align 16, !tbaa !11
  %265 = load i32, ptr %31, align 4, !tbaa !8
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %266
  %268 = load x86_fp80, ptr %267, align 16, !tbaa !11
  %269 = fsub x86_fp80 %264, %268
  store x86_fp80 %269, ptr %32, align 16, !tbaa !11
  %270 = load x86_fp80, ptr %32, align 16, !tbaa !11
  %271 = load x86_fp80, ptr %27, align 16, !tbaa !11
  %272 = fcmp olt x86_fp80 %270, %271
  br i1 %272, label %273, label %278

273:                                              ; preds = %260
  %274 = load x86_fp80, ptr %27, align 16, !tbaa !11
  store x86_fp80 %274, ptr %29, align 16, !tbaa !11
  %275 = load i32, ptr %28, align 4, !tbaa !8
  store i32 %275, ptr %30, align 4, !tbaa !8
  %276 = load x86_fp80, ptr %32, align 16, !tbaa !11
  store x86_fp80 %276, ptr %27, align 16, !tbaa !11
  %277 = load i32, ptr %31, align 4, !tbaa !8
  store i32 %277, ptr %28, align 4, !tbaa !8
  br label %286

278:                                              ; preds = %260
  %279 = load x86_fp80, ptr %32, align 16, !tbaa !11
  %280 = load x86_fp80, ptr %29, align 16, !tbaa !11
  %281 = fcmp ole x86_fp80 %279, %280
  br i1 %281, label %282, label %285

282:                                              ; preds = %278
  %283 = load x86_fp80, ptr %32, align 16, !tbaa !11
  store x86_fp80 %283, ptr %29, align 16, !tbaa !11
  %284 = load i32, ptr %31, align 4, !tbaa !8
  store i32 %284, ptr %30, align 4, !tbaa !8
  br label %285

285:                                              ; preds = %282, %278
  br label %286

286:                                              ; preds = %285, %273
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %31, align 4, !tbaa !8
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %31, align 4, !tbaa !8
  br label %255, !llvm.loop !17

290:                                              ; preds = %259
  %291 = load i32, ptr %22, align 4, !tbaa !8
  %292 = load i32, ptr %28, align 4, !tbaa !8
  %293 = icmp ne i32 %291, %292
  br i1 %293, label %294, label %317

294:                                              ; preds = %290
  %295 = load x86_fp80, ptr %21, align 16, !tbaa !11
  %296 = fcmp olt x86_fp80 %295, 0xK00000000000000000000
  br i1 %296, label %297, label %306

297:                                              ; preds = %294
  %298 = load x86_fp80, ptr %27, align 16, !tbaa !11
  %299 = fcmp olt x86_fp80 %298, 0xK00000000000000000000
  br i1 %299, label %300, label %306

300:                                              ; preds = %297
  %301 = load x86_fp80, ptr %21, align 16, !tbaa !11
  %302 = load x86_fp80, ptr %27, align 16, !tbaa !11
  %303 = fadd x86_fp80 %301, %302
  %304 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %305 = fadd x86_fp80 %304, %303
  store x86_fp80 %305, ptr @cost, align 16, !tbaa !11
  br label %316

306:                                              ; preds = %297, %294
  %307 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(16) %27)
          to label %308 unwind label %312

308:                                              ; preds = %306
  %309 = load x86_fp80, ptr %307, align 16, !tbaa !11
  %310 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %311 = fadd x86_fp80 %310, %309
  store x86_fp80 %311, ptr @cost, align 16, !tbaa !11
  br label %316

312:                                              ; preds = %353, %350, %348, %343, %341, %306
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %6, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %7, align 4
  br label %356

316:                                              ; preds = %308, %300
  br label %341

317:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #9
  store x86_fp80 0xK00000000000000000000, ptr %33, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  %318 = load x86_fp80, ptr %21, align 16, !tbaa !11
  %319 = load x86_fp80, ptr %29, align 16, !tbaa !11
  %320 = fadd x86_fp80 %318, %319
  store x86_fp80 %320, ptr %34, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #9
  %321 = load x86_fp80, ptr %23, align 16, !tbaa !11
  %322 = load x86_fp80, ptr %27, align 16, !tbaa !11
  %323 = fadd x86_fp80 %321, %322
  store x86_fp80 %323, ptr %35, align 16, !tbaa !11
  %324 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 16 dereferenceable(16) %35)
          to label %325 unwind label %337

325:                                              ; preds = %317
  %326 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %29)
          to label %327 unwind label %337

327:                                              ; preds = %325
  %328 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(16) %23)
          to label %329 unwind label %337

329:                                              ; preds = %327
  %330 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %326, ptr noundef nonnull align 16 dereferenceable(16) %328)
          to label %331 unwind label %337

331:                                              ; preds = %329
  %332 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %324, ptr noundef nonnull align 16 dereferenceable(16) %330)
          to label %333 unwind label %337

333:                                              ; preds = %331
  %334 = load x86_fp80, ptr %332, align 16, !tbaa !11
  %335 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %336 = fadd x86_fp80 %335, %334
  store x86_fp80 %336, ptr @cost, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #9
  br label %341

337:                                              ; preds = %331, %329, %327, %325, %317
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %6, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #9
  br label %356

341:                                              ; preds = %333, %316
  %342 = invoke i32 @_ZSt12setprecisioni(i32 noundef 11)
          to label %343 unwind label %312

343:                                              ; preds = %341
  %344 = getelementptr inbounds %"struct.std::_Setprecision", ptr %36, i32 0, i32 0
  store i32 %342, ptr %344, align 4
  %345 = getelementptr inbounds %"struct.std::_Setprecision", ptr %36, i32 0, i32 0
  %346 = load i32, ptr %345, align 4
  %347 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %346)
          to label %348 unwind label %312

348:                                              ; preds = %343
  %349 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %347, ptr noundef @_ZSt5fixedRSt8ios_base)
          to label %350 unwind label %312

350:                                              ; preds = %348
  %351 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %352 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %349, x86_fp80 noundef %351)
          to label %353 unwind label %312

353:                                              ; preds = %350
  %354 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %352, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %355 unwind label %312

355:                                              ; preds = %353
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  br label %357

356:                                              ; preds = %337, %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  br label %360

357:                                              ; preds = %355
  store i32 0, ptr %1, align 4
  store i32 1, ptr %20, align 4
  br label %358

358:                                              ; preds = %357, %208
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #9
  %359 = load i32, ptr %1, align 4
  ret i32 %359

360:                                              ; preds = %356, %213
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  br label %361

361:                                              ; preds = %360, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #9
  br label %362

362:                                              ; preds = %361
  %363 = load ptr, ptr %6, align 8
  %364 = load i32, ptr %7, align 4
  %365 = insertvalue { ptr, i32 } poison, ptr %363, 0
  %366 = insertvalue { ptr, i32 } %365, i32 %364, 1
  resume { ptr, i32 } %366
}

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

; 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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #8

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nounwind }

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

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


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

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@ax = external dso_local global i64, align 8
@ay = external dso_local global i64, align 8
@bx = external dso_local global i64, align 8
@by = external dso_local global i64, align 8
@tx = external dso_local global i64, align 8
@ty = external dso_local global i64, align 8
@n = external dso_local global i32, align 4
@dis1 = external dso_local local_unnamed_addr global [100100 x x86_fp80], align 16
@dis2 = external dso_local global [100100 x x86_fp80], align 16
@dis3 = external dso_local global [100100 x x86_fp80], align 16
@cost = external dso_local local_unnamed_addr global x86_fp80, align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z4distSt4pairIxxES0_(i64, i64, i64, i64) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca x86_fp80, align 16
  %6 = alloca x86_fp80, align 16
  %7 = alloca x86_fp80, align 16
  %8 = alloca x86_fp80, align 16
  %9 = alloca x86_fp80, align 16
  %10 = alloca x86_fp80, align 16
  %11 = alloca x86_fp80, align 16
  %12 = alloca x86_fp80, align 16
  %13 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %14 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %16
  %18 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %17, ptr noundef null)
  %19 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %21
  %23 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @ax)
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) @ay)
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) @bx)
  %27 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) @by)
  %28 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) @tx)
  %29 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) @ty)
  %30 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %31 = load i32, ptr @n, align 4, !tbaa !8
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph, label %.thread

.thread:                                          ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  store x86_fp80 0xK401DEE6B280000000000, ptr %7, align 16, !tbaa !11
  store x86_fp80 0xK401DEE6B280000000000, ptr %8, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  br label %._crit_edge105.thread

.lr.ph:                                           ; preds = %0
  %33 = getelementptr inbounds i8, ptr %4, i64 8
  br label %35

._crit_edge:                                      ; preds = %67
  %34 = icmp eq i32 %72, 1
  br i1 %34, label %.lr.ph111.preheader, label %105

35:                                               ; preds = %.lr.ph, %67
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %67 ]
  %36 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %37 unwind label %75

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %39 unwind label %75

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %40 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %41 unwind label %77

41:                                               ; preds = %39
  %42 = extractvalue { i64, i64 } %40, 0
  store i64 %42, ptr %4, align 8
  %43 = extractvalue { i64, i64 } %40, 1
  store i64 %43, ptr %33, align 8
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %44 unwind label %77

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %.sroa.045.0.copyload = load i64, ptr %45, align 8
  %.sroa.246.0..sroa_idx = getelementptr inbounds i8, ptr %45, i64 8
  %.sroa.246.0.copyload = load i64, ptr %.sroa.246.0..sroa_idx, align 8
  %46 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) @tx, ptr noundef nonnull align 8 dereferenceable(8) @ty)
          to label %47 unwind label %75

47:                                               ; preds = %44
  %48 = extractvalue { i64, i64 } %46, 0
  %49 = extractvalue { i64, i64 } %46, 1
  %50 = invoke noundef x86_fp80 @_Z4distSt4pairIxxES0_(i64 %.sroa.045.0.copyload, i64 %.sroa.246.0.copyload, i64 %48, i64 %49)
          to label %51 unwind label %75

51:                                               ; preds = %47
  %52 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %indvars.iv
  store x86_fp80 %50, ptr %52, align 16, !tbaa !11
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %.sroa.041.0.copyload = load i64, ptr %53, align 8
  %.sroa.242.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  %.sroa.242.0.copyload = load i64, ptr %.sroa.242.0..sroa_idx, align 8
  %54 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) @ax, ptr noundef nonnull align 8 dereferenceable(8) @ay)
          to label %55 unwind label %75

55:                                               ; preds = %51
  %56 = extractvalue { i64, i64 } %54, 0
  %57 = extractvalue { i64, i64 } %54, 1
  %58 = invoke noundef x86_fp80 @_Z4distSt4pairIxxES0_(i64 %.sroa.041.0.copyload, i64 %.sroa.242.0.copyload, i64 %56, i64 %57)
          to label %59 unwind label %75

59:                                               ; preds = %55
  %60 = getelementptr inbounds [100100 x x86_fp80], ptr @dis2, i64 0, i64 %indvars.iv
  store x86_fp80 %58, ptr %60, align 16, !tbaa !11
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %.sroa.037.0.copyload = load i64, ptr %61, align 8
  %.sroa.238.0..sroa_idx = getelementptr inbounds i8, ptr %61, i64 8
  %.sroa.238.0.copyload = load i64, ptr %.sroa.238.0..sroa_idx, align 8
  %62 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) @bx, ptr noundef nonnull align 8 dereferenceable(8) @by)
          to label %63 unwind label %75

63:                                               ; preds = %59
  %64 = extractvalue { i64, i64 } %62, 0
  %65 = extractvalue { i64, i64 } %62, 1
  %66 = invoke noundef x86_fp80 @_Z4distSt4pairIxxES0_(i64 %.sroa.037.0.copyload, i64 %.sroa.238.0.copyload, i64 %64, i64 %65)
          to label %67 unwind label %75

67:                                               ; preds = %63
  %68 = getelementptr inbounds [100100 x x86_fp80], ptr @dis3, i64 0, i64 %indvars.iv
  store x86_fp80 %66, ptr %68, align 16, !tbaa !11
  %69 = load x86_fp80, ptr %52, align 16, !tbaa !11
  %70 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %71 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %69, x86_fp80 0xK40008000000000000000, x86_fp80 %70)
  store x86_fp80 %71, ptr @cost, align 16, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %72 = load i32, ptr @n, align 4, !tbaa !8
  %73 = sext i32 %72 to i64
  %74 = icmp slt i64 %indvars.iv.next, %73
  br i1 %74, label %35, label %._crit_edge, !llvm.loop !13

75:                                               ; preds = %63, %59, %55, %51, %47, %44, %37, %35
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %227

77:                                               ; preds = %41, %39
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %227

.lr.ph111.preheader:                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  store x86_fp80 0xK401DEE6B280000000000, ptr %5, align 16, !tbaa !11
  br label %.lr.ph111

._crit_edge112:                                   ; preds = %.lr.ph111
  %79 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %80 = fadd x86_fp80 %91, %79
  store x86_fp80 %80, ptr @cost, align 16, !tbaa !11
  %81 = call i32 @_ZSt12setprecisioni(i32 noundef 11)
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %81)
          to label %95 unwind label %103

.lr.ph111:                                        ; preds = %.lr.ph111.preheader, %.lr.ph111
  %indvars.iv127 = phi i64 [ 0, %.lr.ph111.preheader ], [ %indvars.iv.next128, %.lr.ph111 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %83 = getelementptr inbounds [100100 x x86_fp80], ptr @dis2, i64 0, i64 %indvars.iv127
  %84 = getelementptr inbounds [100100 x x86_fp80], ptr @dis3, i64 0, i64 %indvars.iv127
  %85 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %83, ptr noundef nonnull align 16 dereferenceable(16) %84)
  %86 = load x86_fp80, ptr %85, align 16, !tbaa !11
  %87 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %indvars.iv127
  %88 = load x86_fp80, ptr %87, align 16, !tbaa !11
  %89 = fsub x86_fp80 %86, %88
  store x86_fp80 %89, ptr %6, align 16, !tbaa !11
  %90 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %6)
  %91 = load x86_fp80, ptr %90, align 16, !tbaa !11
  store x86_fp80 %91, ptr %5, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %92 = load i32, ptr @n, align 4, !tbaa !8
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %indvars.iv.next128, %93
  br i1 %94, label %.lr.ph111, label %._crit_edge112, !llvm.loop !15

95:                                               ; preds = %._crit_edge112
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %97 unwind label %103

97:                                               ; preds = %95
  %98 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %96, x86_fp80 noundef %98)
          to label %100 unwind label %103

100:                                              ; preds = %97
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %102 unwind label %103

102:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %226

103:                                              ; preds = %100, %97, %95, %._crit_edge112
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %227

105:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %106 = icmp sgt i32 %72, 0
  br i1 %106, label %.lr.ph92.preheader, label %._crit_edge93.thread

._crit_edge93.thread:                             ; preds = %105
  store x86_fp80 0xK401DEE6B280000000000, ptr %7, align 16, !tbaa !11
  store x86_fp80 0xK401DEE6B280000000000, ptr %8, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  br label %._crit_edge105.thread

.lr.ph92.preheader:                               ; preds = %105
  %wide.trip.count = zext nneg i32 %72 to i64
  %107 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 1
  %108 = icmp eq i64 %107, 0
  br i1 %108, label %._crit_edge93.unr-lcssa, label %.lr.ph92.preheader.new

.lr.ph92.preheader.new:                           ; preds = %.lr.ph92.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph92

._crit_edge93.unr-lcssa:                          ; preds = %144, %.lr.ph92.preheader
  %.lcssa149.ph = phi x86_fp80 [ poison, %.lr.ph92.preheader ], [ %145, %144 ]
  %.lcssa148.ph = phi x86_fp80 [ poison, %.lr.ph92.preheader ], [ %146, %144 ]
  %.169.lcssa.ph = phi i32 [ poison, %.lr.ph92.preheader ], [ %.169.1, %144 ]
  %indvars.iv119.unr = phi i64 [ 0, %.lr.ph92.preheader ], [ %indvars.iv.next120.1, %144 ]
  %.06890.unr = phi i32 [ -1, %.lr.ph92.preheader ], [ %.169.1, %144 ]
  %.unr = phi x86_fp80 [ 0xK401DEE6B280000000000, %.lr.ph92.preheader ], [ %146, %144 ]
  %.unr151 = phi x86_fp80 [ 0xK401DEE6B280000000000, %.lr.ph92.preheader ], [ %145, %144 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge93, label %.lr.ph92.epil

.lr.ph92.epil:                                    ; preds = %._crit_edge93.unr-lcssa
  %109 = getelementptr inbounds [100100 x x86_fp80], ptr @dis2, i64 0, i64 %indvars.iv119.unr
  %110 = load x86_fp80, ptr %109, align 16, !tbaa !11
  %111 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %indvars.iv119.unr
  %112 = load x86_fp80, ptr %111, align 16, !tbaa !11
  %113 = fsub x86_fp80 %110, %112
  %114 = fcmp olt x86_fp80 %113, %.unr
  %115 = trunc nuw nsw i64 %indvars.iv119.unr to i32
  br i1 %114, label %._crit_edge93, label %116

116:                                              ; preds = %.lr.ph92.epil
  %117 = fcmp ugt x86_fp80 %113, %.unr151
  br i1 %117, label %._crit_edge93, label %118

118:                                              ; preds = %116
  br label %._crit_edge93

._crit_edge93:                                    ; preds = %.lr.ph92.epil, %116, %118, %._crit_edge93.unr-lcssa
  %.lcssa149 = phi x86_fp80 [ %.lcssa149.ph, %._crit_edge93.unr-lcssa ], [ %113, %118 ], [ %.unr151, %116 ], [ %.unr, %.lr.ph92.epil ]
  %.lcssa148 = phi x86_fp80 [ %.lcssa148.ph, %._crit_edge93.unr-lcssa ], [ %.unr, %118 ], [ %.unr, %116 ], [ %113, %.lr.ph92.epil ]
  %.169.lcssa = phi i32 [ %.169.lcssa.ph, %._crit_edge93.unr-lcssa ], [ %.06890.unr, %118 ], [ %.06890.unr, %116 ], [ %115, %.lr.ph92.epil ]
  store x86_fp80 %.lcssa148, ptr %7, align 16, !tbaa !11
  store x86_fp80 %.lcssa149, ptr %8, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  br i1 %106, label %.lr.ph104.preheader, label %._crit_edge105

.lr.ph104.preheader:                              ; preds = %._crit_edge93
  %xtraiter155 = and i64 %wide.trip.count, 1
  %119 = icmp eq i64 %107, 0
  br i1 %119, label %._crit_edge105.loopexit.unr-lcssa, label %.lr.ph104.preheader.new

.lr.ph104.preheader.new:                          ; preds = %.lr.ph104.preheader
  %unroll_iter162 = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph104

.lr.ph92:                                         ; preds = %144, %.lr.ph92.preheader.new
  %indvars.iv119 = phi i64 [ 0, %.lr.ph92.preheader.new ], [ %indvars.iv.next120.1, %144 ]
  %.06890 = phi i32 [ -1, %.lr.ph92.preheader.new ], [ %.169.1, %144 ]
  %120 = phi x86_fp80 [ 0xK401DEE6B280000000000, %.lr.ph92.preheader.new ], [ %146, %144 ]
  %121 = phi x86_fp80 [ 0xK401DEE6B280000000000, %.lr.ph92.preheader.new ], [ %145, %144 ]
  %niter = phi i64 [ 0, %.lr.ph92.preheader.new ], [ %niter.next.1, %144 ]
  %122 = getelementptr inbounds [100100 x x86_fp80], ptr @dis2, i64 0, i64 %indvars.iv119
  %123 = load x86_fp80, ptr %122, align 16, !tbaa !11
  %124 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %indvars.iv119
  %125 = load x86_fp80, ptr %124, align 16, !tbaa !11
  %126 = fsub x86_fp80 %123, %125
  %127 = fcmp olt x86_fp80 %126, %120
  %128 = trunc nuw nsw i64 %indvars.iv119 to i32
  br i1 %127, label %.lr.ph92.1, label %129

129:                                              ; preds = %.lr.ph92
  %130 = fcmp ugt x86_fp80 %126, %121
  br i1 %130, label %.lr.ph92.1, label %131

131:                                              ; preds = %129
  br label %.lr.ph92.1

.lr.ph92.1:                                       ; preds = %.lr.ph92, %129, %131
  %132 = phi x86_fp80 [ %126, %131 ], [ %121, %129 ], [ %120, %.lr.ph92 ]
  %133 = phi x86_fp80 [ %120, %131 ], [ %120, %129 ], [ %126, %.lr.ph92 ]
  %.169 = phi i32 [ %.06890, %131 ], [ %.06890, %129 ], [ %128, %.lr.ph92 ]
  %indvars.iv.next120 = or disjoint i64 %indvars.iv119, 1
  %134 = getelementptr inbounds [100100 x x86_fp80], ptr @dis2, i64 0, i64 %indvars.iv.next120
  %135 = load x86_fp80, ptr %134, align 16, !tbaa !11
  %136 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %indvars.iv.next120
  %137 = load x86_fp80, ptr %136, align 16, !tbaa !11
  %138 = fsub x86_fp80 %135, %137
  %139 = fcmp olt x86_fp80 %138, %133
  %140 = trunc nuw nsw i64 %indvars.iv.next120 to i32
  br i1 %139, label %144, label %141

141:                                              ; preds = %.lr.ph92.1
  %142 = fcmp ugt x86_fp80 %138, %132
  br i1 %142, label %144, label %143

143:                                              ; preds = %141
  br label %144

144:                                              ; preds = %143, %141, %.lr.ph92.1
  %145 = phi x86_fp80 [ %138, %143 ], [ %132, %141 ], [ %133, %.lr.ph92.1 ]
  %146 = phi x86_fp80 [ %133, %143 ], [ %133, %141 ], [ %138, %.lr.ph92.1 ]
  %.169.1 = phi i32 [ %.169, %143 ], [ %.169, %141 ], [ %140, %.lr.ph92.1 ]
  %indvars.iv.next120.1 = add nuw nsw i64 %indvars.iv119, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge93.unr-lcssa, label %.lr.ph92, !llvm.loop !16

._crit_edge105.thread:                            ; preds = %._crit_edge93.thread, %.thread
  store x86_fp80 0xK401DEE6B280000000000, ptr %9, align 16, !tbaa !11
  store x86_fp80 0xK401DEE6B280000000000, ptr %10, align 16, !tbaa !11
  br label %200

._crit_edge105.loopexit.unr-lcssa:                ; preds = %183, %.lr.ph104.preheader
  %.lcssa147.ph = phi x86_fp80 [ poison, %.lr.ph104.preheader ], [ %184, %183 ]
  %.lcssa146.ph = phi x86_fp80 [ poison, %.lr.ph104.preheader ], [ %185, %183 ]
  %.167.lcssa.ph = phi i32 [ poison, %.lr.ph104.preheader ], [ %.167.1, %183 ]
  %indvars.iv122.unr = phi i64 [ 0, %.lr.ph104.preheader ], [ %indvars.iv.next123.1, %183 ]
  %.066101.unr = phi i32 [ -1, %.lr.ph104.preheader ], [ %.167.1, %183 ]
  %.unr156 = phi x86_fp80 [ 0xK401DEE6B280000000000, %.lr.ph104.preheader ], [ %185, %183 ]
  %.unr157 = phi x86_fp80 [ 0xK401DEE6B280000000000, %.lr.ph104.preheader ], [ %184, %183 ]
  %lcmp.mod158.not = icmp eq i64 %xtraiter155, 0
  br i1 %lcmp.mod158.not, label %._crit_edge105, label %.lr.ph104.epil

.lr.ph104.epil:                                   ; preds = %._crit_edge105.loopexit.unr-lcssa
  %147 = getelementptr inbounds [100100 x x86_fp80], ptr @dis3, i64 0, i64 %indvars.iv122.unr
  %148 = load x86_fp80, ptr %147, align 16, !tbaa !11
  %149 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %indvars.iv122.unr
  %150 = load x86_fp80, ptr %149, align 16, !tbaa !11
  %151 = fsub x86_fp80 %148, %150
  %152 = fcmp olt x86_fp80 %151, %.unr156
  %153 = trunc nuw nsw i64 %indvars.iv122.unr to i32
  br i1 %152, label %._crit_edge105, label %154

154:                                              ; preds = %.lr.ph104.epil
  %155 = fcmp ugt x86_fp80 %151, %.unr157
  br i1 %155, label %._crit_edge105, label %156

156:                                              ; preds = %154
  br label %._crit_edge105

._crit_edge105:                                   ; preds = %._crit_edge105.loopexit.unr-lcssa, %156, %154, %.lr.ph104.epil, %._crit_edge93
  %157 = phi x86_fp80 [ 0xK401DEE6B280000000000, %._crit_edge93 ], [ %.lcssa147.ph, %._crit_edge105.loopexit.unr-lcssa ], [ %151, %156 ], [ %.unr157, %154 ], [ %.unr156, %.lr.ph104.epil ]
  %158 = phi x86_fp80 [ 0xK401DEE6B280000000000, %._crit_edge93 ], [ %.lcssa146.ph, %._crit_edge105.loopexit.unr-lcssa ], [ %.unr156, %156 ], [ %.unr156, %154 ], [ %151, %.lr.ph104.epil ]
  %.066.lcssa = phi i32 [ -1, %._crit_edge93 ], [ %.167.lcssa.ph, %._crit_edge105.loopexit.unr-lcssa ], [ %.066101.unr, %156 ], [ %.066101.unr, %154 ], [ %153, %.lr.ph104.epil ]
  store x86_fp80 %158, ptr %9, align 16, !tbaa !11
  store x86_fp80 %157, ptr %10, align 16, !tbaa !11
  %.not = icmp eq i32 %.169.lcssa, %.066.lcssa
  br i1 %.not, label %200, label %186

.lr.ph104:                                        ; preds = %183, %.lr.ph104.preheader.new
  %indvars.iv122 = phi i64 [ 0, %.lr.ph104.preheader.new ], [ %indvars.iv.next123.1, %183 ]
  %.066101 = phi i32 [ -1, %.lr.ph104.preheader.new ], [ %.167.1, %183 ]
  %159 = phi x86_fp80 [ 0xK401DEE6B280000000000, %.lr.ph104.preheader.new ], [ %185, %183 ]
  %160 = phi x86_fp80 [ 0xK401DEE6B280000000000, %.lr.ph104.preheader.new ], [ %184, %183 ]
  %niter163 = phi i64 [ 0, %.lr.ph104.preheader.new ], [ %niter163.next.1, %183 ]
  %161 = getelementptr inbounds [100100 x x86_fp80], ptr @dis3, i64 0, i64 %indvars.iv122
  %162 = load x86_fp80, ptr %161, align 16, !tbaa !11
  %163 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %indvars.iv122
  %164 = load x86_fp80, ptr %163, align 16, !tbaa !11
  %165 = fsub x86_fp80 %162, %164
  %166 = fcmp olt x86_fp80 %165, %159
  %167 = trunc nuw nsw i64 %indvars.iv122 to i32
  br i1 %166, label %.lr.ph104.1, label %168

168:                                              ; preds = %.lr.ph104
  %169 = fcmp ugt x86_fp80 %165, %160
  br i1 %169, label %.lr.ph104.1, label %170

170:                                              ; preds = %168
  br label %.lr.ph104.1

.lr.ph104.1:                                      ; preds = %.lr.ph104, %168, %170
  %171 = phi x86_fp80 [ %165, %170 ], [ %160, %168 ], [ %159, %.lr.ph104 ]
  %172 = phi x86_fp80 [ %159, %170 ], [ %159, %168 ], [ %165, %.lr.ph104 ]
  %.167 = phi i32 [ %.066101, %170 ], [ %.066101, %168 ], [ %167, %.lr.ph104 ]
  %indvars.iv.next123 = or disjoint i64 %indvars.iv122, 1
  %173 = getelementptr inbounds [100100 x x86_fp80], ptr @dis3, i64 0, i64 %indvars.iv.next123
  %174 = load x86_fp80, ptr %173, align 16, !tbaa !11
  %175 = getelementptr inbounds [100100 x x86_fp80], ptr @dis1, i64 0, i64 %indvars.iv.next123
  %176 = load x86_fp80, ptr %175, align 16, !tbaa !11
  %177 = fsub x86_fp80 %174, %176
  %178 = fcmp olt x86_fp80 %177, %172
  %179 = trunc nuw nsw i64 %indvars.iv.next123 to i32
  br i1 %178, label %183, label %180

180:                                              ; preds = %.lr.ph104.1
  %181 = fcmp ugt x86_fp80 %177, %171
  br i1 %181, label %183, label %182

182:                                              ; preds = %180
  br label %183

183:                                              ; preds = %182, %180, %.lr.ph104.1
  %184 = phi x86_fp80 [ %177, %182 ], [ %171, %180 ], [ %172, %.lr.ph104.1 ]
  %185 = phi x86_fp80 [ %172, %182 ], [ %172, %180 ], [ %177, %.lr.ph104.1 ]
  %.167.1 = phi i32 [ %.167, %182 ], [ %.167, %180 ], [ %179, %.lr.ph104.1 ]
  %indvars.iv.next123.1 = add nuw nsw i64 %indvars.iv122, 2
  %niter163.next.1 = add i64 %niter163, 2
  %niter163.ncmp.1 = icmp eq i64 %niter163.next.1, %unroll_iter162
  br i1 %niter163.ncmp.1, label %._crit_edge105.loopexit.unr-lcssa, label %.lr.ph104, !llvm.loop !17

186:                                              ; preds = %._crit_edge105
  %187 = fcmp olt x86_fp80 %.lcssa148, 0xK00000000000000000000
  %188 = fcmp olt x86_fp80 %158, 0xK00000000000000000000
  %or.cond = and i1 %187, %188
  br i1 %or.cond, label %189, label %193

189:                                              ; preds = %186
  %190 = fadd x86_fp80 %.lcssa148, %158
  %191 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %192 = fadd x86_fp80 %190, %191
  store x86_fp80 %192, ptr @cost, align 16, !tbaa !11
  br label %215

193:                                              ; preds = %186
  %194 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %9)
  %195 = load x86_fp80, ptr %194, align 16, !tbaa !11
  %196 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %197 = fadd x86_fp80 %195, %196
  store x86_fp80 %197, ptr @cost, align 16, !tbaa !11
  br label %215

198:                                              ; preds = %223, %220, %218, %215
  %199 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %227

200:                                              ; preds = %._crit_edge105.thread, %._crit_edge105
  %201 = phi x86_fp80 [ 0xK401DEE6B280000000000, %._crit_edge105.thread ], [ %158, %._crit_edge105 ]
  %202 = phi x86_fp80 [ 0xK401DEE6B280000000000, %._crit_edge105.thread ], [ %157, %._crit_edge105 ]
  %203 = phi x86_fp80 [ 0xK401DEE6B280000000000, %._crit_edge105.thread ], [ %.lcssa149, %._crit_edge105 ]
  %204 = phi x86_fp80 [ 0xK401DEE6B280000000000, %._crit_edge105.thread ], [ %.lcssa148, %._crit_edge105 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %205 = fadd x86_fp80 %204, %202
  store x86_fp80 %205, ptr %11, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %206 = fadd x86_fp80 %203, %201
  store x86_fp80 %206, ptr %12, align 16, !tbaa !11
  %207 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %12)
  %208 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %10)
  %209 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %8)
  %210 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %208, ptr noundef nonnull align 16 dereferenceable(16) %209)
  %211 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %207, ptr noundef nonnull align 16 dereferenceable(16) %210)
  %212 = load x86_fp80, ptr %211, align 16, !tbaa !11
  %213 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %214 = fadd x86_fp80 %212, %213
  store x86_fp80 %214, ptr @cost, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br label %215

215:                                              ; preds = %189, %193, %200
  %216 = call i32 @_ZSt12setprecisioni(i32 noundef 11)
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %216)
          to label %218 unwind label %198

218:                                              ; preds = %215
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %220 unwind label %198

220:                                              ; preds = %218
  %221 = load x86_fp80, ptr @cost, align 16, !tbaa !11
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %219, x86_fp80 noundef %221)
          to label %223 unwind label %198

223:                                              ; preds = %220
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %225 unwind label %198

225:                                              ; preds = %223
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %226

226:                                              ; preds = %225, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  ret i32 0

227:                                              ; preds = %103, %198, %75, %77
  %.pn80.pn = phi { ptr, i32 } [ %76, %75 ], [ %78, %77 ], [ %104, %103 ], [ %199, %198 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn80.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

; 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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { nounwind }

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

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


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