; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/VK Cup 2016 Round 1 /Problem D/D.ll (Z1fe)

; 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::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 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<long long, std::pair<long double, long double>>, std::allocator<std::pair<long long, std::pair<long double, long double>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, std::pair<long double, long double>>, std::allocator<std::pair<long long, std::pair<long double, long double>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, std::pair<long double, long double>>, std::allocator<std::pair<long long, std::pair<long double, long double>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, std::pair<long double, long double>>, std::allocator<std::pair<long long, std::pair<long double, long double>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.5" = type { i64, %"struct.std::pair.7" }
%"struct.std::pair.7" = type { x86_fp80, x86_fp80 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i64, i64 }

@n = external dso_local global i32, align 4
@p = external dso_local global %"class.std::vector", align 8
@strt = external dso_local global [200100 x i64], align 16
@e = external dso_local global [200100 x i64], align 16
@T = external dso_local global i64, align 8
@group = external dso_local global [200100 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z1fe(x86_fp80 noundef %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca x86_fp80, align 16
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca x86_fp80, align 16
  %9 = alloca x86_fp80, align 16
  %10 = alloca %"struct.std::pair.5", align 16
  %11 = alloca %"struct.std::pair.7", align 16
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca x86_fp80, align 16
  %17 = alloca x86_fp80, align 16
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store x86_fp80 %0, ptr %3, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  call void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %84, %1
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = load i32, ptr @n, align 4, !tbaa !9
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %91

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [200100 x i32], ptr @group, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [200100 x i64], ptr @strt, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %35) #6
  %37 = getelementptr inbounds %"struct.std::pair", ptr %36, i32 0, i32 1
  %38 = load i64, ptr %37, align 8, !tbaa !13
  %39 = add nsw i64 %33, %38
  store i64 %39, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [200100 x i32], ptr @group, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [200100 x i64], ptr @e, i64 0, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !11
  store i64 %46, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %47 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %48 = load i64, ptr %6, align 8, !tbaa !11
  %49 = sitofp i64 %48 to x86_fp80
  %50 = load i64, ptr @T, align 8, !tbaa !11
  %51 = sitofp i64 %50 to x86_fp80
  %52 = fdiv x86_fp80 %49, %51
  %53 = fneg x86_fp80 %47
  %54 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %53, x86_fp80 %52, x86_fp80 0xK3FFF8000000000000000)
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %56) #6
  %58 = getelementptr inbounds %"struct.std::pair", ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !15
  %60 = sitofp i64 %59 to x86_fp80
  %61 = fmul x86_fp80 %54, %60
  store x86_fp80 %61, ptr %8, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %62 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %63 = load i64, ptr %7, align 8, !tbaa !11
  %64 = sitofp i64 %63 to x86_fp80
  %65 = load i64, ptr @T, align 8, !tbaa !11
  %66 = sitofp i64 %65 to x86_fp80
  %67 = fdiv x86_fp80 %64, %66
  %68 = fneg x86_fp80 %62
  %69 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %68, x86_fp80 %67, x86_fp80 0xK3FFF8000000000000000)
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %71) #6
  %73 = getelementptr inbounds %"struct.std::pair", ptr %72, i32 0, i32 0
  %74 = load i64, ptr %73, align 8, !tbaa !15
  %75 = sitofp i64 %74 to x86_fp80
  %76 = fmul x86_fp80 %69, %75
  store x86_fp80 %76, ptr %9, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #6
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %78) #6
  %80 = getelementptr inbounds %"struct.std::pair", ptr %79, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  invoke void @_ZSt9make_pairIReS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind writable sret(%"struct.std::pair.7") align 16 %11, ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %9)
          to label %81 unwind label %87

81:                                               ; preds = %26
  invoke void @_ZSt9make_pairIRxSt4pairIeeEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr dead_on_unwind writable sret(%"struct.std::pair.5") align 16 %10, ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %82 unwind label %87

82:                                               ; preds = %81
  invoke void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 16 dereferenceable(48) %10)
          to label %83 unwind label %87

83:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %5, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %5, align 4, !tbaa !9
  br label %21, !llvm.loop !16

87:                                               ; preds = %82, %81, %26
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %12, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %189

91:                                               ; preds = %25
  %92 = call ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %92, ptr %93, align 8
  %94 = call ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxS2_IeeEESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr %97, ptr %99)
          to label %100 unwind label %106

100:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  store x86_fp80 0xKBFFF8000000000000000, ptr %16, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %181, %100
  %102 = load i32, ptr %18, align 4, !tbaa !9
  %103 = load i32, ptr @n, align 4, !tbaa !9
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %110, label %105

105:                                              ; preds = %101
  store i32 5, ptr %19, align 4
  br label %184

106:                                              ; preds = %91
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %12, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %13, align 4
  br label %189

110:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %111 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %111, ptr %20, align 4, !tbaa !9
  %112 = load i32, ptr %18, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %113) #6
  %115 = getelementptr inbounds %"struct.std::pair.5", ptr %114, i32 0, i32 1
  %116 = getelementptr inbounds %"struct.std::pair.7", ptr %115, i32 0, i32 1
  %117 = load x86_fp80, ptr %116, align 16, !tbaa !18
  store x86_fp80 %117, ptr %17, align 16, !tbaa !5
  %118 = load i32, ptr %18, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %18, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %146, %110
  %121 = load i32, ptr %18, align 4, !tbaa !9
  %122 = load i32, ptr @n, align 4, !tbaa !9
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %124, label %137

124:                                              ; preds = %120
  %125 = load i32, ptr %18, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %126) #6
  %128 = getelementptr inbounds %"struct.std::pair.5", ptr %127, i32 0, i32 0
  %129 = load i64, ptr %128, align 16, !tbaa !21
  %130 = load i32, ptr %18, align 4, !tbaa !9
  %131 = sub nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %132) #6
  %134 = getelementptr inbounds %"struct.std::pair.5", ptr %133, i32 0, i32 0
  %135 = load i64, ptr %134, align 16, !tbaa !21
  %136 = icmp eq i64 %129, %135
  br label %137

137:                                              ; preds = %124, %120
  %138 = phi i1 [ false, %120 ], [ %136, %124 ]
  br i1 %138, label %139, label %154

139:                                              ; preds = %137
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %141) #6
  %143 = getelementptr inbounds %"struct.std::pair.5", ptr %142, i32 0, i32 1
  %144 = getelementptr inbounds %"struct.std::pair.7", ptr %143, i32 0, i32 1
  %145 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %17, ptr noundef nonnull align 16 dereferenceable(16) %144)
          to label %146 unwind label %150

146:                                              ; preds = %139
  %147 = load x86_fp80, ptr %145, align 16, !tbaa !5
  store x86_fp80 %147, ptr %17, align 16, !tbaa !5
  %148 = load i32, ptr %18, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %18, align 4, !tbaa !9
  br label %120, !llvm.loop !22

150:                                              ; preds = %164, %139
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %12, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %189

154:                                              ; preds = %137
  %155 = load x86_fp80, ptr %17, align 16, !tbaa !5
  %156 = load x86_fp80, ptr %16, align 16, !tbaa !5
  %157 = fcmp olt x86_fp80 %155, %156
  br i1 %157, label %158, label %159

158:                                              ; preds = %154
  store i1 false, ptr %2, align 1
  store i32 1, ptr %19, align 4
  br label %178

159:                                              ; preds = %154
  br label %160

160:                                              ; preds = %171, %159
  %161 = load i32, ptr %20, align 4, !tbaa !9
  %162 = load i32, ptr %18, align 4, !tbaa !9
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %164, label %175

164:                                              ; preds = %160
  %165 = load i32, ptr %20, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %166) #6
  %168 = getelementptr inbounds %"struct.std::pair.5", ptr %167, i32 0, i32 1
  %169 = getelementptr inbounds %"struct.std::pair.7", ptr %168, i32 0, i32 0
  %170 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef nonnull align 16 dereferenceable(16) %169)
          to label %171 unwind label %150

171:                                              ; preds = %164
  %172 = load x86_fp80, ptr %170, align 16, !tbaa !5
  store x86_fp80 %172, ptr %16, align 16, !tbaa !5
  %173 = load i32, ptr %20, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %20, align 4, !tbaa !9
  br label %160, !llvm.loop !23

175:                                              ; preds = %160
  %176 = load i32, ptr %18, align 4, !tbaa !9
  %177 = add nsw i32 %176, -1
  store i32 %177, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %19, align 4
  br label %178

178:                                              ; preds = %175, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  %179 = load i32, ptr %19, align 4
  switch i32 %179, label %184 [
    i32 0, label %180
  ]

180:                                              ; preds = %178
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %18, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %18, align 4, !tbaa !9
  br label %101, !llvm.loop !24

184:                                              ; preds = %178, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %185 = load i32, ptr %19, align 4
  switch i32 %185, label %187 [
    i32 5, label %186
  ]

186:                                              ; preds = %184
  store i1 true, ptr %2, align 1
  store i32 1, ptr %19, align 4
  br label %187

187:                                              ; preds = %186, %184
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  %188 = load i1, ptr %2, align 1
  ret i1 %188

189:                                              ; preds = %150, %106, %87
  call void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %12, align 8
  %192 = load i32, ptr %13, align 4
  %193 = insertvalue { ptr, i32 } poison, ptr %191, 0
  %194 = insertvalue { ptr, i32 } %193, i32 %192, 1
  resume { ptr, i32 } %194
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRxSt4pairIeeEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.5") align 16, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(32)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIReS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.7") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #0

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxS2_IeeEESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr, ptr) #4

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 = { nounwind }

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

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


; 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::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 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<long long, std::pair<long double, long double>>, std::allocator<std::pair<long long, std::pair<long double, long double>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, std::pair<long double, long double>>, std::allocator<std::pair<long long, std::pair<long double, long double>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, std::pair<long double, long double>>, std::allocator<std::pair<long long, std::pair<long double, long double>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, std::pair<long double, long double>>, std::allocator<std::pair<long long, std::pair<long double, long double>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.5" = type { i64, %"struct.std::pair.7" }
%"struct.std::pair.7" = type { x86_fp80, x86_fp80 }

@n = external dso_local local_unnamed_addr global i32, align 4
@p = external dso_local global %"class.std::vector", align 8
@strt = external dso_local local_unnamed_addr global [200100 x i64], align 16
@e = external dso_local local_unnamed_addr global [200100 x i64], align 16
@T = external dso_local local_unnamed_addr global i64, align 8
@group = external dso_local local_unnamed_addr global [200100 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z1fe(x86_fp80 noundef %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.0", align 8
  %3 = alloca x86_fp80, align 16
  %4 = alloca x86_fp80, align 16
  %5 = alloca %"struct.std::pair.5", align 16
  %6 = alloca %"struct.std::pair.7", align 16
  %7 = alloca x86_fp80, align 16
  %8 = alloca x86_fp80, align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %11 = fneg x86_fp80 %0
  br label %14

._crit_edge:                                      ; preds = %49, %1
  %12 = call ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %13 = call ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxS2_IeeEESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr %12, ptr %13)
          to label %55 unwind label %59

14:                                               ; preds = %.lr.ph, %49
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %49 ]
  %15 = getelementptr inbounds [200100 x i32], ptr @group, i64 0, i64 %indvars.iv
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [200100 x i64], ptr @strt, i64 0, i64 %17
  %19 = load i64, ptr %18, align 8, !tbaa !9
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %indvars.iv) #6
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = add nsw i64 %22, %19
  %24 = load i32, ptr %15, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [200100 x i64], ptr @e, i64 0, i64 %25
  %27 = load i64, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %28 = sitofp i64 %23 to x86_fp80
  %29 = load i64, ptr @T, align 8, !tbaa !9
  %30 = sitofp i64 %29 to x86_fp80
  %31 = fdiv x86_fp80 %28, %30
  %32 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %11, x86_fp80 %31, x86_fp80 0xK3FFF8000000000000000)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %indvars.iv) #6
  %34 = load i64, ptr %33, align 8, !tbaa !13
  %35 = sitofp i64 %34 to x86_fp80
  %36 = fmul x86_fp80 %32, %35
  store x86_fp80 %36, ptr %3, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %37 = sitofp i64 %27 to x86_fp80
  %38 = load i64, ptr @T, align 8, !tbaa !9
  %39 = sitofp i64 %38 to x86_fp80
  %40 = fdiv x86_fp80 %37, %39
  %41 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %11, x86_fp80 %40, x86_fp80 0xK3FFF8000000000000000)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %indvars.iv) #6
  %43 = load i64, ptr %42, align 8, !tbaa !13
  %44 = sitofp i64 %43 to x86_fp80
  %45 = fmul x86_fp80 %41, %44
  store x86_fp80 %45, ptr %4, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %indvars.iv) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  invoke void @_ZSt9make_pairIReS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.7") align 16 %6, ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %4)
          to label %47 unwind label %53

47:                                               ; preds = %14
  invoke void @_ZSt9make_pairIRxSt4pairIeeEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.5") align 16 %5, ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 16 dereferenceable(32) %6)
          to label %48 unwind label %53

48:                                               ; preds = %47
  invoke void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(48) %5)
          to label %49 unwind label %53

49:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = icmp slt i64 %indvars.iv.next, %51
  br i1 %52, label %14, label %._crit_edge, !llvm.loop !16

53:                                               ; preds = %48, %47, %14
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %89

55:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  store x86_fp80 0xKBFFF8000000000000000, ptr %7, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %.not4260 = icmp slt i32 %56, 1
  br i1 %.not4260, label %.critedge45, label %.lr.ph64

._crit_edge59.loopexit:                           ; preds = %.lr.ph58, %.preheader
  %57 = add nsw i32 %.135.in.lcssa, 1
  %58 = load i32, ptr @n, align 4, !tbaa !5
  %.not42.not = icmp slt i32 %57, %58
  br i1 %.not42.not, label %.lr.ph64, label %.critedge45, !llvm.loop !18

59:                                               ; preds = %._crit_edge
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %89

.lr.ph64:                                         ; preds = %55, %._crit_edge59.loopexit
  %.03461 = phi i32 [ %57, %._crit_edge59.loopexit ], [ 0, %55 ]
  %61 = sext i32 %.03461 to i64
  %62 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %61) #6
  %63 = getelementptr inbounds i8, ptr %62, i64 32
  %storemerge48 = load x86_fp80, ptr %63, align 16, !tbaa !14
  store x86_fp80 %storemerge48, ptr %8, align 16, !tbaa !14
  %.13549 = add nsw i32 %.03461, 1
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = icmp slt i32 %.13549, %64
  br i1 %65, label %.lr.ph53.preheader, label %.critedge

.lr.ph53.preheader:                               ; preds = %.lr.ph64
  %66 = sext i32 %.13549 to i64
  br label %.lr.ph53

.lr.ph53:                                         ; preds = %.lr.ph53.preheader, %73
  %indvars.iv70 = phi i64 [ %66, %.lr.ph53.preheader ], [ %indvars.iv.next71, %73 ]
  %.135.in50 = phi i32 [ %.03461, %.lr.ph53.preheader ], [ %80, %73 ]
  %67 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv70) #6
  %68 = load i64, ptr %67, align 16, !tbaa !19
  %69 = sext i32 %.135.in50 to i64
  %70 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %69) #6
  %71 = load i64, ptr %70, align 16, !tbaa !19
  %72 = icmp eq i64 %68, %71
  br i1 %72, label %73, label %.lr.ph53..critedge.loopexit_crit_edge

.lr.ph53..critedge.loopexit_crit_edge:            ; preds = %.lr.ph53
  %.pre.pre = load x86_fp80, ptr %8, align 16, !tbaa !14
  br label %.critedge

73:                                               ; preds = %.lr.ph53
  %74 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv70) #6
  %75 = getelementptr inbounds i8, ptr %74, i64 32
  %76 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %75)
  %storemerge = load x86_fp80, ptr %76, align 16, !tbaa !14
  store x86_fp80 %storemerge, ptr %8, align 16, !tbaa !14
  %indvars.iv.next71 = add nsw i64 %indvars.iv70, 1
  %77 = load i32, ptr @n, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next71, %78
  %80 = trunc nsw i64 %indvars.iv70 to i32
  br i1 %79, label %.lr.ph53, label %.critedge, !llvm.loop !22

.critedge:                                        ; preds = %73, %.lr.ph53..critedge.loopexit_crit_edge, %.lr.ph64
  %81 = phi x86_fp80 [ %storemerge48, %.lr.ph64 ], [ %.pre.pre, %.lr.ph53..critedge.loopexit_crit_edge ], [ %storemerge, %73 ]
  %.135.in.lcssa = phi i32 [ %.03461, %.lr.ph64 ], [ %.135.in50, %.lr.ph53..critedge.loopexit_crit_edge ], [ %80, %73 ]
  %82 = load x86_fp80, ptr %7, align 16, !tbaa !14
  %83 = fcmp uge x86_fp80 %81, %82
  br i1 %83, label %.preheader, label %.critedge45

.preheader:                                       ; preds = %.critedge
  %.not56 = icmp sgt i32 %.03461, %.135.in.lcssa
  br i1 %.not56, label %._crit_edge59.loopexit, label %.lr.ph58.preheader

.lr.ph58.preheader:                               ; preds = %.preheader
  %84 = add i32 %.135.in.lcssa, 1
  br label %.lr.ph58

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %.lr.ph58
  %indvars.iv73 = phi i64 [ %61, %.lr.ph58.preheader ], [ %indvars.iv.next74, %.lr.ph58 ]
  %85 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv73) #6
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %87 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %86)
  %88 = load x86_fp80, ptr %87, align 16, !tbaa !14
  store x86_fp80 %88, ptr %7, align 16, !tbaa !14
  %indvars.iv.next74 = add nsw i64 %indvars.iv73, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next74 to i32
  %exitcond.not = icmp eq i32 %84, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge59.loopexit, label %.lr.ph58, !llvm.loop !23

.critedge45:                                      ; preds = %._crit_edge59.loopexit, %.critedge, %55
  %.not42.lcssa = phi i1 [ true, %55 ], [ %83, %._crit_edge59.loopexit ], [ false, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret i1 %.not42.lcssa

89:                                               ; preds = %59, %53
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %60, %59 ]
  call void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn
}

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

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

; 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 #2 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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRxSt4pairIeeEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.5") align 16, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIReS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.7") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxS2_IeeEESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr, ptr) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxS0_IeeEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSSt4pairIxxE", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTSSt4pairIxS_IeeEE", !10, i64 0, !21, i64 16}
!21 = !{!"_ZTSSt4pairIeeE", !15, i64 0, !15, i64 16}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}


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