; LLVM IR from tangjz/acm-icpc :: lydsy (1337)

; 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.Point = type { double, double }

@n = external dso_local global i32, align 4
@p = external dso_local global [100001 x %struct.Point], align 16
@c = external dso_local global %struct.Point, align 8
@r2 = external dso_local global double, align 8
@.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 norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.Point, align 8
  %5 = alloca %struct.Point, align 8
  %6 = alloca %struct.Point, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %struct.Point, align 8
  %13 = alloca %struct.Point, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.Point, align 8
  %17 = alloca %struct.Point, align 8
  %18 = alloca %struct.Point, align 8
  %19 = alloca %struct.Point, align 8
  %20 = alloca %struct.Point, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.Point, align 8
  %23 = alloca %struct.Point, align 8
  %24 = alloca %struct.Point, align 8
  %25 = alloca %struct.Point, align 8
  %26 = alloca %struct.Point, align 8
  %27 = alloca %struct.Point, align 8
  store i32 0, ptr %1, align 4
  call void @srand(i32 noundef 19260817) #9
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %29

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

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %41

34:                                               ; preds = %29
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %36
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  br label %38

38:                                               ; preds = %34
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !5
  br label %29, !llvm.loop !9

41:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %60, %41
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %63

47:                                               ; preds = %42
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %49
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = call noundef i32 @_Z6rand30v()
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sub nsw i32 %53, %54
  %56 = srem i32 %52, %55
  %57 = add nsw i32 %51, %56
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %58
  call void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) %59) #9
  br label %60

60:                                               ; preds = %47
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %3, align 4, !tbaa !5
  br label %42, !llvm.loop !11

63:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 16 getelementptr inbounds ([100001 x %struct.Point], ptr @p, i64 0, i64 1), i64 16, i1 false), !tbaa.struct !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 16 @p, i64 16, i1 false), !tbaa.struct !12
  %64 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 0
  %65 = load double, ptr %64, align 8
  %66 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 1
  %67 = load double, ptr %66, align 8
  %68 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %69 = load double, ptr %68, align 8
  %70 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %71 = load double, ptr %70, align 8
  %72 = call { double, double } @_Z6middle5PointS_(double %65, double %67, double %69, double %71)
  %73 = getelementptr inbounds { double, double }, ptr %4, i32 0, i32 0
  %74 = extractvalue { double, double } %72, 0
  store double %74, ptr %73, align 8
  %75 = getelementptr inbounds { double, double }, ptr %4, i32 0, i32 1
  %76 = extractvalue { double, double } %72, 1
  store double %76, ptr %75, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @c, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #9
  %77 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds ([100001 x %struct.Point], ptr @p, i64 0, i64 1), ptr noundef nonnull align 8 dereferenceable(16) @c)
  %78 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %79 = extractvalue { double, double } %77, 0
  store double %79, ptr %78, align 8
  %80 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %81 = extractvalue { double, double } %77, 1
  store double %81, ptr %80, align 8
  %82 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  store double %82, ptr @r2, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 2, ptr %8, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %242, %63
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %245

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %90
  %92 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %93 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %94 = extractvalue { double, double } %92, 0
  store double %94, ptr %93, align 8
  %95 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %96 = extractvalue { double, double } %92, 1
  store double %96, ptr %95, align 8
  %97 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %98 = load double, ptr @r2, align 8, !tbaa !13
  %99 = fsub double %97, %98
  %100 = call noundef i32 @_Z3sgnd(double noundef %99)
  %101 = icmp sgt i32 %100, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  br i1 %101, label %102, label %241

102:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %104
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 16 %105, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 16 @p, i64 16, i1 false), !tbaa.struct !12
  %106 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %107 = load double, ptr %106, align 8
  %108 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %109 = load double, ptr %108, align 8
  %110 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %111 = load double, ptr %110, align 8
  %112 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %113 = load double, ptr %112, align 8
  %114 = call { double, double } @_Z6middle5PointS_(double %107, double %109, double %111, double %113)
  %115 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %116 = extractvalue { double, double } %114, 0
  store double %116, ptr %115, align 8
  %117 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %118 = extractvalue { double, double } %114, 1
  store double %118, ptr %117, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @c, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %120
  %122 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %121, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %123 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %124 = extractvalue { double, double } %122, 0
  store double %124, ptr %123, align 8
  %125 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %126 = extractvalue { double, double } %122, 1
  store double %126, ptr %125, align 8
  %127 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
  store double %127, ptr @r2, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %237, %102
  %129 = load i32, ptr %15, align 4, !tbaa !5
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %240

133:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #9
  %134 = load i32, ptr %15, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %135
  %137 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %136, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %138 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %139 = extractvalue { double, double } %137, 0
  store double %139, ptr %138, align 8
  %140 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %141 = extractvalue { double, double } %137, 1
  store double %141, ptr %140, align 8
  %142 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %143 = load double, ptr @r2, align 8, !tbaa !13
  %144 = fsub double %142, %143
  %145 = call noundef i32 @_Z3sgnd(double noundef %144)
  %146 = icmp sgt i32 %145, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  br i1 %146, label %147, label %236

147:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %149
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 16 %150, i64 16, i1 false), !tbaa.struct !12
  %151 = load i32, ptr %15, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %152
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 16 %153, i64 16, i1 false), !tbaa.struct !12
  %154 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %155 = load double, ptr %154, align 8
  %156 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %157 = load double, ptr %156, align 8
  %158 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %159 = load double, ptr %158, align 8
  %160 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %161 = load double, ptr %160, align 8
  %162 = call { double, double } @_Z6middle5PointS_(double %155, double %157, double %159, double %161)
  %163 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %164 = extractvalue { double, double } %162, 0
  store double %164, ptr %163, align 8
  %165 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %166 = extractvalue { double, double } %162, 1
  store double %166, ptr %165, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @c, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #9
  %167 = load i32, ptr %8, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %168
  %170 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %169, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %171 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %172 = extractvalue { double, double } %170, 0
  store double %172, ptr %171, align 8
  %173 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %174 = extractvalue { double, double } %170, 1
  store double %174, ptr %173, align 8
  %175 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20)
  store double %175, ptr @r2, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %232, %147
  %177 = load i32, ptr %21, align 4, !tbaa !5
  %178 = load i32, ptr %15, align 4, !tbaa !5
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %235

181:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  %182 = load i32, ptr %21, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %183
  %185 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %184, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %186 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %187 = extractvalue { double, double } %185, 0
  store double %187, ptr %186, align 8
  %188 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %189 = extractvalue { double, double } %185, 1
  store double %189, ptr %188, align 8
  %190 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %191 = load double, ptr @r2, align 8, !tbaa !13
  %192 = fsub double %190, %191
  %193 = call noundef i32 @_Z3sgnd(double noundef %192)
  %194 = icmp sgt i32 %193, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  br i1 %194, label %195, label %231

195:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %196 = load i32, ptr %8, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %197
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 16 %198, i64 16, i1 false), !tbaa.struct !12
  %199 = load i32, ptr %15, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %200
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 16 %201, i64 16, i1 false), !tbaa.struct !12
  %202 = load i32, ptr %21, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %203
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 16 %204, i64 16, i1 false), !tbaa.struct !12
  %205 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %206 = load double, ptr %205, align 8
  %207 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %208 = load double, ptr %207, align 8
  %209 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %210 = load double, ptr %209, align 8
  %211 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %212 = load double, ptr %211, align 8
  %213 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %214 = load double, ptr %213, align 8
  %215 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %216 = load double, ptr %215, align 8
  %217 = call { double, double } @_Z8excenter5PointS_S_(double %206, double %208, double %210, double %212, double %214, double %216)
  %218 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %219 = extractvalue { double, double } %217, 0
  store double %219, ptr %218, align 8
  %220 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %221 = extractvalue { double, double } %217, 1
  store double %221, ptr %220, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @c, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %222 = load i32, ptr %8, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %223
  %225 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %224, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %226 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %227 = extractvalue { double, double } %225, 0
  store double %227, ptr %226, align 8
  %228 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %229 = extractvalue { double, double } %225, 1
  store double %229, ptr %228, align 8
  %230 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
  store double %230, ptr @r2, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %231

231:                                              ; preds = %195, %181
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %21, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %21, align 4, !tbaa !5
  br label %176, !llvm.loop !15

235:                                              ; preds = %180
  br label %236

236:                                              ; preds = %235, %133
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %15, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %15, align 4, !tbaa !5
  br label %128, !llvm.loop !16

240:                                              ; preds = %132
  br label %241

241:                                              ; preds = %240, %88
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %8, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %8, align 4, !tbaa !5
  br label %83, !llvm.loop !17

245:                                              ; preds = %87
  %246 = load double, ptr @r2, align 8, !tbaa !13
  %247 = fpext double %246 to x86_fp80
  %248 = call x86_fp80 @sqrtl(x86_fp80 noundef %247) #9
  %249 = fptrunc x86_fp80 %248 to double
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %249)
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #1

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 void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 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 nounwind uwtable
declare dso_local void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z6rand30v() #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { double, double } @_Z6middle5PointS_(double, double, double, double) #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) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #8 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_Z8excenter5PointS_S_(double, double, double, double, double, double) #6

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

; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #1

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


; 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.Point = type { double, double }

@n = external dso_local global i32, align 4
@p = external dso_local global [100001 x %struct.Point], align 16
@c = external dso_local global %struct.Point, align 8
@r2 = external dso_local local_unnamed_addr global double, align 8
@.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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = alloca %struct.Point, align 8
  %4 = alloca %struct.Point, align 8
  %5 = alloca %struct.Point, align 8
  %6 = alloca %struct.Point, align 8
  %7 = alloca %struct.Point, align 8
  tail call void @srand(i32 noundef 19260817) #9
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.preheader:                                       ; preds = %.lr.ph
  %11 = icmp sgt i32 %13, 0
  br i1 %11, label %.lr.ph58, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %12 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv
  tail call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = icmp slt i64 %indvars.iv.next, %14
  br i1 %15, label %.lr.ph, label %.preheader, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph58, %0, %.preheader
  %.sroa.039.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 16), align 16, !tbaa !11
  %.sroa.240.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 24), align 8, !tbaa !11
  %.sroa.037.0.copyload = load double, ptr @p, align 16, !tbaa !11
  %.sroa.238.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8, !tbaa !11
  %16 = tail call { double, double } @_Z6middle5PointS_(double %.sroa.039.0.copyload, double %.sroa.240.0.copyload, double %.sroa.037.0.copyload, double %.sroa.238.0.copyload)
  %17 = extractvalue { double, double } %16, 0
  %18 = extractvalue { double, double } %16, 1
  store double %17, ptr @c, align 8, !tbaa !11
  store double %18, ptr getelementptr inbounds (i8, ptr @c, i64 8), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #9
  %19 = tail call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 16), ptr noundef nonnull align 8 dereferenceable(16) @c)
  %20 = extractvalue { double, double } %19, 0
  store double %20, ptr %1, align 8
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = extractvalue { double, double } %19, 1
  store double %22, ptr %21, align 8
  %23 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  store double %23, ptr @r2, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #9
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 2
  br i1 %25, label %.lr.ph63, label %._crit_edge64

.lr.ph63:                                         ; preds = %._crit_edge
  %26 = getelementptr inbounds i8, ptr %2, i64 8
  %27 = getelementptr inbounds i8, ptr %3, i64 8
  %28 = getelementptr inbounds i8, ptr %4, i64 8
  %29 = getelementptr inbounds i8, ptr %5, i64 8
  %30 = getelementptr inbounds i8, ptr %6, i64 8
  %31 = getelementptr inbounds i8, ptr %7, i64 8
  br label %49

.lr.ph58:                                         ; preds = %.preheader, %.lr.ph58
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %.lr.ph58 ], [ 0, %.preheader ]
  %32 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv66
  %33 = tail call noundef i32 @_Z6rand30v()
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = trunc nuw nsw i64 %indvars.iv66 to i32
  %36 = sub nsw i32 %34, %35
  %37 = srem i32 %33, %36
  %38 = add nsw i32 %37, %35
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %39
  tail call void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %40) #9
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %41 = load i32, ptr @n, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next67, %42
  br i1 %43, label %.lr.ph58, label %._crit_edge, !llvm.loop !13

._crit_edge64.loopexit:                           ; preds = %.loopexit55
  %.pre = load double, ptr @r2, align 8, !tbaa !11
  br label %._crit_edge64

._crit_edge64:                                    ; preds = %._crit_edge64.loopexit, %._crit_edge
  %44 = phi double [ %.pre, %._crit_edge64.loopexit ], [ %23, %._crit_edge ]
  %45 = fpext double %44 to x86_fp80
  %46 = call x86_fp80 @sqrtl(x86_fp80 noundef %45) #9
  %47 = fptrunc x86_fp80 %46 to double
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %47)
  ret i32 0

49:                                               ; preds = %.lr.ph63, %.loopexit55
  %indvars.iv77 = phi i64 [ 2, %.lr.ph63 ], [ %indvars.iv.next78, %.loopexit55 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #9
  %50 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv77
  %51 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %52 = extractvalue { double, double } %51, 0
  store double %52, ptr %2, align 8
  %53 = extractvalue { double, double } %51, 1
  store double %53, ptr %26, align 8
  %54 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %55 = load double, ptr @r2, align 8, !tbaa !11
  %56 = fsub double %54, %55
  %57 = call noundef i32 @_Z3sgnd(double noundef %56)
  %58 = icmp sgt i32 %57, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #9
  br i1 %58, label %59, label %.loopexit55

59:                                               ; preds = %49
  %.sroa.023.0.copyload = load double, ptr %50, align 16, !tbaa !11
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %50, i64 8
  %.sroa.224.0.copyload = load double, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !11
  %.sroa.021.0.copyload = load double, ptr @p, align 16, !tbaa !11
  %.sroa.222.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8, !tbaa !11
  %60 = call { double, double } @_Z6middle5PointS_(double %.sroa.023.0.copyload, double %.sroa.224.0.copyload, double %.sroa.021.0.copyload, double %.sroa.222.0.copyload)
  %61 = extractvalue { double, double } %60, 0
  %62 = extractvalue { double, double } %60, 1
  store double %61, ptr @c, align 8, !tbaa !11
  store double %62, ptr getelementptr inbounds (i8, ptr @c, i64 8), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  %63 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %64 = extractvalue { double, double } %63, 0
  store double %64, ptr %3, align 8
  %65 = extractvalue { double, double } %63, 1
  store double %65, ptr %27, align 8
  %66 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  store double %66, ptr @r2, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  br label %67

67:                                               ; preds = %59, %.loopexit
  %indvars.iv72 = phi i64 [ 1, %59 ], [ %indvars.iv.next73, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %68 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv72
  %69 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %70 = extractvalue { double, double } %69, 0
  store double %70, ptr %4, align 8
  %71 = extractvalue { double, double } %69, 1
  store double %71, ptr %28, align 8
  %72 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %73 = load double, ptr @r2, align 8, !tbaa !11
  %74 = fsub double %72, %73
  %75 = call noundef i32 @_Z3sgnd(double noundef %74)
  %76 = icmp sgt i32 %75, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br i1 %76, label %77, label %.loopexit

77:                                               ; preds = %67
  %.sroa.011.0.copyload = load double, ptr %50, align 16, !tbaa !11
  %.sroa.212.0.copyload = load double, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !11
  %.sroa.09.0.copyload = load double, ptr %68, align 16, !tbaa !11
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %68, i64 8
  %.sroa.210.0.copyload = load double, ptr %.sroa.210.0..sroa_idx, align 8, !tbaa !11
  %78 = call { double, double } @_Z6middle5PointS_(double %.sroa.011.0.copyload, double %.sroa.212.0.copyload, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload)
  %79 = extractvalue { double, double } %78, 0
  %80 = extractvalue { double, double } %78, 1
  store double %79, ptr @c, align 8, !tbaa !11
  store double %80, ptr getelementptr inbounds (i8, ptr @c, i64 8), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %81 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %82 = extractvalue { double, double } %81, 0
  store double %82, ptr %5, align 8
  %83 = extractvalue { double, double } %81, 1
  store double %83, ptr %29, align 8
  %84 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
  store double %84, ptr @r2, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %85

85:                                               ; preds = %77, %103
  %indvars.iv69 = phi i64 [ 0, %77 ], [ %indvars.iv.next70, %103 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  %86 = getelementptr inbounds [100001 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv69
  %87 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %88 = extractvalue { double, double } %87, 0
  store double %88, ptr %6, align 8
  %89 = extractvalue { double, double } %87, 1
  store double %89, ptr %30, align 8
  %90 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %91 = load double, ptr @r2, align 8, !tbaa !11
  %92 = fsub double %90, %91
  %93 = call noundef i32 @_Z3sgnd(double noundef %92)
  %94 = icmp sgt i32 %93, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br i1 %94, label %95, label %103

95:                                               ; preds = %85
  %.sroa.03.0.copyload = load double, ptr %50, align 16, !tbaa !11
  %.sroa.24.0.copyload = load double, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !11
  %.sroa.01.0.copyload = load double, ptr %68, align 16, !tbaa !11
  %.sroa.22.0.copyload = load double, ptr %.sroa.210.0..sroa_idx, align 8, !tbaa !11
  %.sroa.0.0.copyload = load double, ptr %86, align 16, !tbaa !11
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %86, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !11
  %96 = call { double, double } @_Z8excenter5PointS_S_(double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %97 = extractvalue { double, double } %96, 0
  %98 = extractvalue { double, double } %96, 1
  store double %97, ptr @c, align 8, !tbaa !11
  store double %98, ptr getelementptr inbounds (i8, ptr @c, i64 8), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %99 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) @c)
  %100 = extractvalue { double, double } %99, 0
  store double %100, ptr %7, align 8
  %101 = extractvalue { double, double } %99, 1
  store double %101, ptr %31, align 8
  %102 = call noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  store double %102, ptr @r2, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  br label %103

103:                                              ; preds = %85, %95
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next70, %indvars.iv72
  br i1 %exitcond.not, label %.loopexit, label %85, !llvm.loop !14

.loopexit:                                        ; preds = %103, %67
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond76.not = icmp eq i64 %indvars.iv.next73, %indvars.iv77
  br i1 %exitcond76.not, label %.loopexit55, label %67, !llvm.loop !15

.loopexit55:                                      ; preds = %.loopexit, %49
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %104 = load i32, ptr @n, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv.next78, %105
  br i1 %106, label %49, label %._crit_edge64.loopexit, !llvm.loop !16
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #1

; 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 void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 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 nounwind uwtable
declare dso_local void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z6rand30v() local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { double, double } @_Z6middle5PointS_(double, double, double, double) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Point4len2Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_Z8excenter5PointS_S_(double, double, double, double, double, double) local_unnamed_addr #6

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare x86_fp80 @sqrtl(x86_fp80 noundef) local_unnamed_addr #8

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


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