; LLVM IR from tangjz/acm-icpc :: hdu (5990)

; 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"

%"struct.std::pair" = type { double, double }
%"struct.std::pair.0" = type { i32, double }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@sz = external dso_local global i32, align 4
@stk = external dso_local global [100001 x i32], align 16
@O = external dso_local global %"struct.std::pair", align 8
@p = external dso_local global [100001 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4areaSt4pairIddES0_S0_(double, double, double, double, double, double) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair.0", align 8
  %6 = alloca double, 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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca double, align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"struct.std::pair", align 8
  store i32 0, ptr %1, align 4
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %25

25:                                               ; preds = %247, %0
  %26 = load i32, ptr @t, align 4, !tbaa !5
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr @t, align 4, !tbaa !5
  %28 = icmp ne i32 %26, 0
  br i1 %28, label %29, label %251

29:                                               ; preds = %25
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %55, %29
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %58

36:                                               ; preds = %31
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = add nsw i32 %39, %38
  store i32 %40, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = sitofp i32 %41 to double
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = sitofp i32 %43 to double
  %45 = fdiv double %42, %44
  store double %45, ptr %6, align 8, !tbaa !9
  %46 = call { i32, double } @_ZSt9make_pairIRidESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %47 = getelementptr inbounds { i32, double }, ptr %5, i32 0, i32 0
  %48 = extractvalue { i32, double } %46, 0
  store i32 %48, ptr %47, align 8
  %49 = getelementptr inbounds { i32, double }, ptr %5, i32 0, i32 1
  %50 = extractvalue { i32, double } %46, 1
  store double %50, ptr %49, align 8
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %52
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIddEaSIidEENSt9enable_ifIXsr6__and_ISt13is_assignableIRdOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  br label %55

55:                                               ; preds = %36
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %2, align 4, !tbaa !5
  br label %31, !llvm.loop !11

58:                                               ; preds = %35
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %"struct.std::pair", ptr @p, i64 %60
  call void @_ZSt4sortIPSt4pairIddEEvT_S3_(ptr noundef @p, ptr noundef %61)
  store i32 0, ptr @sz, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %116, %58
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %119

67:                                               ; preds = %62
  br label %68

68:                                               ; preds = %107, %67
  %69 = load i32, ptr @sz, align 4, !tbaa !5
  %70 = icmp sgt i32 %69, 1
  br i1 %70, label %71, label %104

71:                                               ; preds = %68
  %72 = load i32, ptr @sz, align 4, !tbaa !5
  %73 = sub nsw i32 %72, 2
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 16 %78, i64 16, i1 false)
  %79 = load i32, ptr @sz, align 4, !tbaa !5
  %80 = sub nsw i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %84
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 16 %85, i64 16, i1 false)
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %87
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 16 %88, i64 16, i1 false)
  %89 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %90 = load double, ptr %89, align 8
  %91 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %92 = load double, ptr %91, align 8
  %93 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %94 = load double, ptr %93, align 8
  %95 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %96 = load double, ptr %95, align 8
  %97 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %98 = load double, ptr %97, align 8
  %99 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  %101 = call noundef double @_Z4areaSt4pairIddES0_S0_(double %90, double %92, double %94, double %96, double %98, double %100)
  %102 = call noundef i32 @_Z3sgnd(double noundef %101)
  %103 = icmp sle i32 %102, 0
  br label %104

104:                                              ; preds = %71, %68
  %105 = phi i1 [ false, %68 ], [ %103, %71 ]
  br i1 %105, label %106, label %110

106:                                              ; preds = %104
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr @sz, align 4, !tbaa !5
  %109 = add nsw i32 %108, -1
  store i32 %109, ptr @sz, align 4, !tbaa !5
  br label %68, !llvm.loop !13

110:                                              ; preds = %104
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = load i32, ptr @sz, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr @sz, align 4, !tbaa !5
  %114 = sext i32 %112 to i64
  %115 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %114
  store i32 %111, ptr %115, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %110
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !5
  br label %62, !llvm.loop !14

119:                                              ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %120 = load i32, ptr @n, align 4, !tbaa !5
  %121 = sub nsw i32 %120, 2
  store i32 %121, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %122 = load i32, ptr @sz, align 4, !tbaa !5
  store i32 %122, ptr %12, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %177, %119
  %124 = load i32, ptr %11, align 4, !tbaa !5
  %125 = icmp sge i32 %124, 0
  br i1 %125, label %127, label %126

126:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %180

127:                                              ; preds = %123
  br label %128

128:                                              ; preds = %168, %127
  %129 = load i32, ptr @sz, align 4, !tbaa !5
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = icmp sgt i32 %129, %130
  br i1 %131, label %132, label %165

132:                                              ; preds = %128
  %133 = load i32, ptr @sz, align 4, !tbaa !5
  %134 = sub nsw i32 %133, 2
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %138
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 16 %139, i64 16, i1 false)
  %140 = load i32, ptr @sz, align 4, !tbaa !5
  %141 = sub nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %145
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 16 %146, i64 16, i1 false)
  %147 = load i32, ptr %11, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %148
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 16 %149, i64 16, i1 false)
  %150 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %151 = load double, ptr %150, align 8
  %152 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  %154 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %155 = load double, ptr %154, align 8
  %156 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %157 = load double, ptr %156, align 8
  %158 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %159 = load double, ptr %158, align 8
  %160 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %161 = load double, ptr %160, align 8
  %162 = call noundef double @_Z4areaSt4pairIddES0_S0_(double %151, double %153, double %155, double %157, double %159, double %161)
  %163 = call noundef i32 @_Z3sgnd(double noundef %162)
  %164 = icmp sle i32 %163, 0
  br label %165

165:                                              ; preds = %132, %128
  %166 = phi i1 [ false, %128 ], [ %164, %132 ]
  br i1 %166, label %167, label %171

167:                                              ; preds = %165
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr @sz, align 4, !tbaa !5
  %170 = add nsw i32 %169, -1
  store i32 %170, ptr @sz, align 4, !tbaa !5
  br label %128, !llvm.loop !15

171:                                              ; preds = %165
  %172 = load i32, ptr %11, align 4, !tbaa !5
  %173 = load i32, ptr @sz, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr @sz, align 4, !tbaa !5
  %175 = sext i32 %173 to i64
  %176 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %175
  store i32 %172, ptr %176, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %171
  %178 = load i32, ptr %11, align 4, !tbaa !5
  %179 = add nsw i32 %178, -1
  store i32 %179, ptr %11, align 4, !tbaa !5
  br label %123, !llvm.loop !16

180:                                              ; preds = %126
  %181 = load i32, ptr @n, align 4, !tbaa !5
  %182 = icmp sgt i32 %181, 1
  br i1 %182, label %183, label %186

183:                                              ; preds = %180
  %184 = load i32, ptr @sz, align 4, !tbaa !5
  %185 = add nsw i32 %184, -1
  store i32 %185, ptr @sz, align 4, !tbaa !5
  br label %186

186:                                              ; preds = %183, %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 @O, i64 16, i1 false)
  %187 = load i32, ptr @sz, align 4, !tbaa !5
  %188 = sub nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %192
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 16 %193, i64 16, i1 false)
  %194 = load i32, ptr @stk, align 16, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %195
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 16 %196, i64 16, i1 false)
  %197 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %198 = load double, ptr %197, align 8
  %199 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %200 = load double, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %202 = load double, ptr %201, align 8
  %203 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %204 = load double, ptr %203, align 8
  %205 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %206 = load double, ptr %205, align 8
  %207 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %208 = load double, ptr %207, align 8
  %209 = call noundef double @_Z4areaSt4pairIddES0_S0_(double %198, double %200, double %202, double %204, double %206, double %208)
  store double %209, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %210

210:                                              ; preds = %244, %186
  %211 = load i32, ptr %20, align 4, !tbaa !5
  %212 = load i32, ptr @sz, align 4, !tbaa !5
  %213 = icmp slt i32 %211, %212
  br i1 %213, label %215, label %214

214:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %247

215:                                              ; preds = %210
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 @O, i64 16, i1 false)
  %216 = load i32, ptr %20, align 4, !tbaa !5
  %217 = sub nsw i32 %216, 1
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %221
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 16 %222, i64 16, i1 false)
  %223 = load i32, ptr %20, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %227
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 16 %228, i64 16, i1 false)
  %229 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %230 = load double, ptr %229, align 8
  %231 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %232 = load double, ptr %231, align 8
  %233 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %234 = load double, ptr %233, align 8
  %235 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %236 = load double, ptr %235, align 8
  %237 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %238 = load double, ptr %237, align 8
  %239 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %240 = load double, ptr %239, align 8
  %241 = call noundef double @_Z4areaSt4pairIddES0_S0_(double %230, double %232, double %234, double %236, double %238, double %240)
  %242 = load double, ptr %16, align 8, !tbaa !9
  %243 = fadd double %242, %241
  store double %243, ptr %16, align 8, !tbaa !9
  br label %244

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

247:                                              ; preds = %214
  %248 = load double, ptr %16, align 8, !tbaa !9
  %249 = fmul double 5.000000e-01, %248
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %249)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %25, !llvm.loop !18

251:                                              ; preds = %25
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, double } @_ZSt9make_pairIRidESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

; 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

declare i32 @printf(ptr noundef, ...) #2

attributes #0 = { 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 #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

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

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


; 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"

%"struct.std::pair" = type { double, double }
%"struct.std::pair.0" = type { i32, double }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@sz = external dso_local local_unnamed_addr global i32, align 4
@stk = external dso_local local_unnamed_addr global [100001 x i32], align 16
@O = external dso_local local_unnamed_addr global %"struct.std::pair", align 8
@p = external dso_local global [100001 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4areaSt4pairIddES0_S0_(double, double, double, double, double, double) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair.0", align 8
  %4 = alloca double, align 8
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %6 = load i32, ptr @t, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr @t, align 4, !tbaa !5
  %.not65 = icmp eq i32 %6, 0
  br i1 %.not65, label %._crit_edge68, label %.lr.ph67

.lr.ph67:                                         ; preds = %0
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  br label %9

9:                                                ; preds = %.lr.ph67, %._crit_edge63
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %9
  %.pre88 = sext i32 %11 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre88, %.._crit_edge_crit_edge ], [ %29, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %13 = getelementptr inbounds %"struct.std::pair", ptr @p, i64 %.pre-phi
  call void @_ZSt4sortIPSt4pairIddEEvT_S3_(ptr noundef nonnull @p, ptr noundef nonnull %13)
  store i32 0, ptr @sz, align 4, !tbaa !5
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %thread-pre-split, label %._crit_edge58.thread

.lr.ph:                                           ; preds = %9, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %9 ]
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %17 = load i32, ptr %1, align 4, !tbaa !5
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = add nsw i32 %18, %17
  store i32 %19, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %20 = sitofp i32 %19 to double
  %21 = sitofp i32 %17 to double
  %22 = fdiv double %20, %21
  store double %22, ptr %4, align 8, !tbaa !9
  %23 = call { i32, double } @_ZSt9make_pairIRidESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %24 = extractvalue { i32, double } %23, 0
  store i32 %24, ptr %3, align 8
  %25 = extractvalue { i32, double } %23, 1
  store double %25, ptr %8, align 8
  %26 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %indvars.iv
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIddEaSIidEENSt9enable_ifIXsr6__and_ISt13is_assignableIRdOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 8, 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
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge53:                                    ; preds = %.critedge
  %31 = icmp sgt i32 %57, 1
  br i1 %31, label %.preheader.preheader, label %._crit_edge58.thread

.preheader.preheader:                             ; preds = %._crit_edge53
  %32 = add nsw i32 %57, -2
  %33 = zext nneg i32 %32 to i64
  br label %.preheader

thread-pre-split:                                 ; preds = %._crit_edge, %.critedge
  %34 = phi i32 [ %57, %.critedge ], [ %14, %._crit_edge ]
  %.pr = phi i32 [ %59, %.critedge ], [ 0, %._crit_edge ]
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %.critedge ], [ 0, %._crit_edge ]
  %35 = icmp sgt i32 %.pr, 1
  br i1 %35, label %.lr.ph50, label %.critedge

.lr.ph50:                                         ; preds = %thread-pre-split
  %36 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %indvars.iv73
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %36, i64 8
  br label %37

37:                                               ; preds = %.lr.ph50, %54
  %38 = phi i32 [ %.pr, %.lr.ph50 ], [ %55, %54 ]
  %39 = add nsw i32 %38, -2
  %40 = zext nneg i32 %39 to i64
  %41 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %43
  %.sroa.032.0.copyload = load double, ptr %44, align 16
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %44, i64 8
  %.sroa.233.0.copyload = load double, ptr %.sroa.233.0..sroa_idx, align 8
  %45 = add nsw i32 %38, -1
  %46 = zext nneg i32 %45 to i64
  %47 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %49
  %.sroa.030.0.copyload = load double, ptr %50, align 16
  %.sroa.231.0..sroa_idx = getelementptr inbounds i8, ptr %50, i64 8
  %.sroa.231.0.copyload = load double, ptr %.sroa.231.0..sroa_idx, align 8
  %.sroa.028.0.copyload = load double, ptr %36, align 16
  %.sroa.229.0.copyload = load double, ptr %.sroa.229.0..sroa_idx, align 8
  %51 = call noundef double @_Z4areaSt4pairIddES0_S0_(double %.sroa.032.0.copyload, double %.sroa.233.0.copyload, double %.sroa.030.0.copyload, double %.sroa.231.0.copyload, double %.sroa.028.0.copyload, double %.sroa.229.0.copyload)
  %52 = call noundef i32 @_Z3sgnd(double noundef %51)
  %53 = icmp slt i32 %52, 1
  %.pre.pre = load i32, ptr @sz, align 4, !tbaa !5
  br i1 %53, label %54, label %.critedge.loopexit

54:                                               ; preds = %37
  %55 = add nsw i32 %.pre.pre, -1
  store i32 %55, ptr @sz, align 4, !tbaa !5
  %56 = icmp sgt i32 %.pre.pre, 2
  br i1 %56, label %37, label %.critedge.loopexit, !llvm.loop !13

.critedge.loopexit:                               ; preds = %54, %37
  %.pre = phi i32 [ %55, %54 ], [ %.pre.pre, %37 ]
  %.pre83 = load i32, ptr @n, align 4, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %thread-pre-split
  %57 = phi i32 [ %.pre83, %.critedge.loopexit ], [ %34, %thread-pre-split ]
  %58 = phi i32 [ %.pre, %.critedge.loopexit ], [ %.pr, %thread-pre-split ]
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr @sz, align 4, !tbaa !5
  %60 = sext i32 %58 to i64
  %61 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %60
  %62 = trunc nuw nsw i64 %indvars.iv73 to i32
  store i32 %62, ptr %61, align 4, !tbaa !5
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %63 = sext i32 %57 to i64
  %64 = icmp slt i64 %indvars.iv.next74, %63
  br i1 %64, label %thread-pre-split, label %._crit_edge53, !llvm.loop !14

.preheader:                                       ; preds = %.preheader.preheader, %.critedge2
  %65 = phi i32 [ %59, %.preheader.preheader ], [ %90, %.critedge2 ]
  %indvars.iv76 = phi i64 [ %33, %.preheader.preheader ], [ %indvars.iv.next77, %.critedge2 ]
  %66 = icmp sgt i32 %65, %59
  br i1 %66, label %.lr.ph55, label %.critedge2

.lr.ph55:                                         ; preds = %.preheader
  %67 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %indvars.iv76
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 8
  br label %69

._crit_edge58:                                    ; preds = %.critedge2
  %.pre85 = load i32, ptr @n, align 4, !tbaa !5
  %68 = icmp sgt i32 %.pre85, 1
  br i1 %68, label %95, label %._crit_edge58.thread

69:                                               ; preds = %.lr.ph55, %86
  %70 = phi i32 [ %65, %.lr.ph55 ], [ %87, %86 ]
  %71 = add nsw i32 %70, -2
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %75
  %.sroa.021.0.copyload = load double, ptr %76, align 16
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %76, i64 8
  %.sroa.222.0.copyload = load double, ptr %.sroa.222.0..sroa_idx, align 8
  %77 = add nsw i32 %70, -1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %81
  %.sroa.019.0.copyload = load double, ptr %82, align 16
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %82, i64 8
  %.sroa.220.0.copyload = load double, ptr %.sroa.220.0..sroa_idx, align 8
  %.sroa.017.0.copyload = load double, ptr %67, align 16
  %.sroa.218.0.copyload = load double, ptr %.sroa.218.0..sroa_idx, align 8
  %83 = call noundef double @_Z4areaSt4pairIddES0_S0_(double %.sroa.021.0.copyload, double %.sroa.222.0.copyload, double %.sroa.019.0.copyload, double %.sroa.220.0.copyload, double %.sroa.017.0.copyload, double %.sroa.218.0.copyload)
  %84 = call noundef i32 @_Z3sgnd(double noundef %83)
  %85 = icmp slt i32 %84, 1
  %.pre84.pre = load i32, ptr @sz, align 4, !tbaa !5
  br i1 %85, label %86, label %.critedge2

86:                                               ; preds = %69
  %87 = add nsw i32 %.pre84.pre, -1
  store i32 %87, ptr @sz, align 4, !tbaa !5
  %88 = icmp sgt i32 %87, %59
  br i1 %88, label %69, label %.critedge2, !llvm.loop !15

.critedge2:                                       ; preds = %69, %86, %.preheader
  %89 = phi i32 [ %65, %.preheader ], [ %.pre84.pre, %69 ], [ %87, %86 ]
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr @sz, align 4, !tbaa !5
  %91 = sext i32 %89 to i64
  %92 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %91
  %93 = trunc nuw nsw i64 %indvars.iv76 to i32
  store i32 %93, ptr %92, align 4, !tbaa !5
  %indvars.iv.next77 = add nsw i64 %indvars.iv76, -1
  %94 = icmp sgt i64 %indvars.iv76, 0
  br i1 %94, label %.preheader, label %._crit_edge58, !llvm.loop !16

95:                                               ; preds = %._crit_edge58
  store i32 %89, ptr @sz, align 4, !tbaa !5
  br label %._crit_edge58.thread

._crit_edge58.thread:                             ; preds = %._crit_edge, %._crit_edge53, %95, %._crit_edge58
  %96 = phi i32 [ %89, %95 ], [ %90, %._crit_edge58 ], [ %59, %._crit_edge53 ], [ 0, %._crit_edge ]
  %.sroa.014.0.copyload = load double, ptr @O, align 8
  %.sroa.215.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @O, i64 8), align 8
  %97 = add nsw i32 %96, -1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %101
  %.sroa.012.0.copyload = load double, ptr %102, align 16
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %102, i64 8
  %.sroa.213.0.copyload = load double, ptr %.sroa.213.0..sroa_idx, align 8
  %103 = load i32, ptr @stk, align 16, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %104
  %.sroa.010.0.copyload = load double, ptr %105, align 16
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 8
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8
  %106 = call noundef double @_Z4areaSt4pairIddES0_S0_(double %.sroa.014.0.copyload, double %.sroa.215.0.copyload, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
  %107 = load i32, ptr @sz, align 4, !tbaa !5
  %108 = icmp sgt i32 %107, 1
  br i1 %108, label %.lr.ph62, label %._crit_edge63

._crit_edge63:                                    ; preds = %.lr.ph62, %._crit_edge58.thread
  %.043.lcssa = phi double [ %106, %._crit_edge58.thread ], [ %123, %.lr.ph62 ]
  %109 = fmul double %.043.lcssa, 5.000000e-01
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %109)
  %111 = load i32, ptr @t, align 4, !tbaa !5
  %112 = add nsw i32 %111, -1
  store i32 %112, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %111, 0
  br i1 %.not, label %._crit_edge68, label %9, !llvm.loop !17

.lr.ph62:                                         ; preds = %._crit_edge58.thread, %.lr.ph62
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %.lr.ph62 ], [ 1, %._crit_edge58.thread ]
  %.04360 = phi double [ %123, %.lr.ph62 ], [ %106, %._crit_edge58.thread ]
  %.sroa.05.0.copyload = load double, ptr @O, align 8
  %.sroa.26.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @O, i64 8), align 8
  %113 = add nsw i64 %indvars.iv79, -1
  %114 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %116
  %.sroa.03.0.copyload = load double, ptr %117, align 16
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %117, i64 8
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8
  %118 = getelementptr inbounds [100001 x i32], ptr @stk, i64 0, i64 %indvars.iv79
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [100001 x %"struct.std::pair"], ptr @p, i64 0, i64 %120
  %.sroa.0.0.copyload = load double, ptr %121, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %121, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8
  %122 = call noundef double @_Z4areaSt4pairIddES0_S0_(double %.sroa.05.0.copyload, double %.sroa.26.0.copyload, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %123 = fadd double %.04360, %122
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %124 = load i32, ptr @sz, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next80, %125
  br i1 %126, label %.lr.ph62, label %._crit_edge63, !llvm.loop !18

._crit_edge68:                                    ; preds = %._crit_edge63, %0
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, double } @_ZSt9make_pairIRidESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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


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