; LLVM IR from lzyrapx/Competitive-Programming :: ACdream (1107（计算几何+确认抛物线）)

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

@tower = external dso_local global %struct.point, align 8
@p = external dso_local global [10010 x %struct.point], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.point, align 8
  %7 = alloca %struct.point, align 8
  %8 = alloca %struct.point, align 8
  %9 = alloca %struct.point, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  br label %27

27:                                               ; preds = %323, %321, %0
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @tower, ptr noundef getelementptr inbounds (%struct.point, ptr @tower, i32 0, i32 1))
  %29 = xor i32 %28, -1
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %324

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

33:                                               ; preds = %48, %31
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %51

38:                                               ; preds = %33
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %40
  %42 = getelementptr inbounds %struct.point, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %44
  %46 = getelementptr inbounds %struct.point, ptr %45, i32 0, i32 1
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %42, ptr noundef %46)
  br label %48

48:                                               ; preds = %38
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %3, align 4, !tbaa !5
  br label %33, !llvm.loop !9

51:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct.point, ptr @p, i64 %53
  call void @_ZSt4sortIP5pointPFbS0_S0_EEvT_S4_T0_(ptr noundef @p, ptr noundef %54, ptr noundef @_Z3cmp5pointS_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %105, %51
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

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

60:                                               ; preds = %55
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 @tower, i64 16, i1 false), !tbaa.struct !11
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %62
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 16 %63, i64 16, i1 false), !tbaa.struct !11
  %64 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %65 = load double, ptr %64, align 8
  %66 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %67 = load double, ptr %66, align 8
  %68 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %69 = load double, ptr %68, align 8
  %70 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %71 = load double, ptr %70, align 8
  %72 = call noundef i32 @_Z7Is_same5pointS_(double %65, double %67, double %69, double %71)
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %60
  br label %105

75:                                               ; preds = %60
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %78, label %97

78:                                               ; preds = %75
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %80
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 16 %81, i64 16, i1 false), !tbaa.struct !11
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [10010 x %struct.point], 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), !tbaa.struct !11
  %86 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %87 = load double, ptr %86, align 8
  %88 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %89 = load double, ptr %88, align 8
  %90 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %91 = load double, ptr %90, align 8
  %92 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %93 = load double, ptr %92, align 8
  %94 = call noundef i32 @_Z7Is_same5pointS_(double %87, double %89, double %91, double %93)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %78
  br label %105

97:                                               ; preds = %78, %75
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %99
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %4, align 4, !tbaa !5
  %103 = sext i32 %101 to i64
  %104 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %103
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %104, ptr align 16 %100, i64 16, i1 false), !tbaa.struct !11
  br label %105

105:                                              ; preds = %97, %96, %74
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %5, align 4, !tbaa !5
  br label %55, !llvm.loop !14

108:                                              ; preds = %59
  %109 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %109, ptr %2, align 4, !tbaa !5
  %110 = load i32, ptr %2, align 4, !tbaa !5
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %114

112:                                              ; preds = %108
  %113 = call i32 @puts(ptr noundef @.str.2)
  store i32 2, ptr %10, align 4
  br label %321, !llvm.loop !15

114:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %115 = load double, ptr @p, align 16, !tbaa !16
  %116 = load double, ptr @tower, align 8, !tbaa !16
  %117 = fsub double %115, %116
  store double %117, ptr %11, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  store i8 1, ptr %12, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %152, %114
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 10, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %155

123:                                              ; preds = %118
  %124 = load double, ptr %11, align 8, !tbaa !12
  %125 = load i32, ptr %13, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %126
  %128 = getelementptr inbounds %struct.point, ptr %127, i32 0, i32 0
  %129 = load double, ptr %128, align 16, !tbaa !16
  %130 = load double, ptr @tower, align 8, !tbaa !16
  %131 = fsub double %129, %130
  %132 = fmul double %124, %131
  %133 = fcmp olt double %132, -1.000000e-08
  br i1 %133, label %134, label %135

134:                                              ; preds = %123
  store i8 0, ptr %12, align 1, !tbaa !18
  br label %135

135:                                              ; preds = %134, %123
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %137
  %139 = getelementptr inbounds %struct.point, ptr %138, i32 0, i32 0
  %140 = load double, ptr %139, align 16, !tbaa !16
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = sub nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %143
  %145 = getelementptr inbounds %struct.point, ptr %144, i32 0, i32 0
  %146 = load double, ptr %145, align 16, !tbaa !16
  %147 = fsub double %140, %146
  %148 = call double @llvm.fabs.f64(double %147)
  %149 = fcmp olt double %148, 1.000000e-08
  br i1 %149, label %150, label %151

150:                                              ; preds = %135
  store i8 0, ptr %12, align 1, !tbaa !18
  br label %151

151:                                              ; preds = %150, %135
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %13, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %13, align 4, !tbaa !5
  br label %118, !llvm.loop !20

155:                                              ; preds = %122
  %156 = load double, ptr %11, align 8, !tbaa !12
  %157 = call double @llvm.fabs.f64(double %156)
  %158 = fcmp olt double %157, 1.000000e-08
  br i1 %158, label %159, label %166

159:                                              ; preds = %155
  %160 = load i8, ptr %12, align 1, !tbaa !18, !range !21, !noundef !22
  %161 = trunc i8 %160 to i1
  %162 = zext i1 %161 to i32
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %166

164:                                              ; preds = %159
  %165 = call i32 @puts(ptr noundef @.str.3)
  br label %320

166:                                              ; preds = %159, %155
  %167 = load i32, ptr %2, align 4, !tbaa !5
  %168 = icmp eq i32 %167, 1
  br i1 %168, label %169, label %171

169:                                              ; preds = %166
  %170 = call i32 @puts(ptr noundef @.str.2)
  br label %319

171:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %172 = load double, ptr @tower, align 8, !tbaa !16
  %173 = load double, ptr @tower, align 8, !tbaa !16
  %174 = fmul double %172, %173
  store double %174, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %175 = load double, ptr @p, align 16, !tbaa !16
  %176 = load double, ptr @p, align 16, !tbaa !16
  %177 = fmul double %175, %176
  store double %177, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %178 = load double, ptr getelementptr inbounds ([10010 x %struct.point], ptr @p, i64 0, i64 1), align 16, !tbaa !16
  %179 = load double, ptr getelementptr inbounds ([10010 x %struct.point], ptr @p, i64 0, i64 1), align 16, !tbaa !16
  %180 = fmul double %178, %179
  store double %180, ptr %16, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %181 = load double, ptr @tower, align 8, !tbaa !16
  store double %181, ptr %17, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %182 = load double, ptr @p, align 16, !tbaa !16
  store double %182, ptr %18, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %183 = load double, ptr getelementptr inbounds ([10010 x %struct.point], ptr @p, i64 0, i64 1), align 16, !tbaa !16
  store double %183, ptr %19, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %184 = load double, ptr getelementptr inbounds (%struct.point, ptr @tower, i32 0, i32 1), align 8, !tbaa !23
  store double %184, ptr %20, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %185 = load double, ptr getelementptr inbounds (%struct.point, ptr @p, i32 0, i32 1), align 8, !tbaa !23
  store double %185, ptr %21, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %186 = load double, ptr getelementptr inbounds (%struct.point, ptr getelementptr inbounds ([10010 x %struct.point], ptr @p, i64 0, i64 1), i32 0, i32 1), align 8, !tbaa !23
  store double %186, ptr %22, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %187 = load double, ptr %20, align 8, !tbaa !12
  %188 = load double, ptr %21, align 8, !tbaa !12
  %189 = fsub double %187, %188
  %190 = load double, ptr %18, align 8, !tbaa !12
  %191 = load double, ptr %19, align 8, !tbaa !12
  %192 = fsub double %190, %191
  %193 = load double, ptr %21, align 8, !tbaa !12
  %194 = load double, ptr %22, align 8, !tbaa !12
  %195 = fsub double %193, %194
  %196 = load double, ptr %17, align 8, !tbaa !12
  %197 = load double, ptr %18, align 8, !tbaa !12
  %198 = fsub double %196, %197
  %199 = fmul double %195, %198
  %200 = fneg double %199
  %201 = call double @llvm.fmuladd.f64(double %189, double %192, double %200)
  %202 = load double, ptr %14, align 8, !tbaa !12
  %203 = load double, ptr %15, align 8, !tbaa !12
  %204 = fsub double %202, %203
  %205 = load double, ptr %18, align 8, !tbaa !12
  %206 = load double, ptr %19, align 8, !tbaa !12
  %207 = fsub double %205, %206
  %208 = load double, ptr %15, align 8, !tbaa !12
  %209 = load double, ptr %16, align 8, !tbaa !12
  %210 = fsub double %208, %209
  %211 = load double, ptr %17, align 8, !tbaa !12
  %212 = load double, ptr %18, align 8, !tbaa !12
  %213 = fsub double %211, %212
  %214 = fmul double %210, %213
  %215 = fneg double %214
  %216 = call double @llvm.fmuladd.f64(double %204, double %207, double %215)
  %217 = fdiv double %201, %216
  store double %217, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %218 = load double, ptr %20, align 8, !tbaa !12
  %219 = load double, ptr %21, align 8, !tbaa !12
  %220 = fsub double %218, %219
  %221 = load double, ptr %15, align 8, !tbaa !12
  %222 = load double, ptr %16, align 8, !tbaa !12
  %223 = fsub double %221, %222
  %224 = load double, ptr %21, align 8, !tbaa !12
  %225 = load double, ptr %22, align 8, !tbaa !12
  %226 = fsub double %224, %225
  %227 = load double, ptr %14, align 8, !tbaa !12
  %228 = load double, ptr %15, align 8, !tbaa !12
  %229 = fsub double %227, %228
  %230 = fmul double %226, %229
  %231 = fneg double %230
  %232 = call double @llvm.fmuladd.f64(double %220, double %223, double %231)
  %233 = load double, ptr %17, align 8, !tbaa !12
  %234 = load double, ptr %18, align 8, !tbaa !12
  %235 = fsub double %233, %234
  %236 = load double, ptr %15, align 8, !tbaa !12
  %237 = load double, ptr %16, align 8, !tbaa !12
  %238 = fsub double %236, %237
  %239 = load double, ptr %18, align 8, !tbaa !12
  %240 = load double, ptr %19, align 8, !tbaa !12
  %241 = fsub double %239, %240
  %242 = load double, ptr %14, align 8, !tbaa !12
  %243 = load double, ptr %15, align 8, !tbaa !12
  %244 = fsub double %242, %243
  %245 = fmul double %241, %244
  %246 = fneg double %245
  %247 = call double @llvm.fmuladd.f64(double %235, double %238, double %246)
  %248 = fdiv double %232, %247
  store double %248, ptr %24, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %249 = load double, ptr %20, align 8, !tbaa !12
  %250 = load double, ptr %14, align 8, !tbaa !12
  %251 = load double, ptr %23, align 8, !tbaa !12
  %252 = fneg double %250
  %253 = call double @llvm.fmuladd.f64(double %252, double %251, double %249)
  %254 = load double, ptr %17, align 8, !tbaa !12
  %255 = load double, ptr %24, align 8, !tbaa !12
  %256 = fneg double %254
  %257 = call double @llvm.fmuladd.f64(double %256, double %255, double %253)
  store double %257, ptr %25, align 8, !tbaa !12
  %258 = load double, ptr %23, align 8, !tbaa !12
  %259 = fcmp ogt double %258, -1.000000e-08
  br i1 %259, label %260, label %262

260:                                              ; preds = %171
  %261 = call i32 @puts(ptr noundef @.str.3)
  br label %318

262:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 2, ptr %26, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %307, %262
  %264 = load i8, ptr %12, align 1, !tbaa !18, !range !21, !noundef !22
  %265 = trunc i8 %264 to i1
  br i1 %265, label %266, label %270

266:                                              ; preds = %263
  %267 = load i32, ptr %26, align 4, !tbaa !5
  %268 = load i32, ptr %2, align 4, !tbaa !5
  %269 = icmp slt i32 %267, %268
  br label %270

270:                                              ; preds = %266, %263
  %271 = phi i1 [ false, %263 ], [ %269, %266 ]
  br i1 %271, label %273, label %272

272:                                              ; preds = %270
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %310

273:                                              ; preds = %270
  %274 = load double, ptr %23, align 8, !tbaa !12
  %275 = load i32, ptr %26, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %276
  %278 = getelementptr inbounds %struct.point, ptr %277, i32 0, i32 0
  %279 = load double, ptr %278, align 16, !tbaa !16
  %280 = fmul double %274, %279
  %281 = load i32, ptr %26, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %282
  %284 = getelementptr inbounds %struct.point, ptr %283, i32 0, i32 0
  %285 = load double, ptr %284, align 16, !tbaa !16
  %286 = load double, ptr %24, align 8, !tbaa !12
  %287 = load i32, ptr %26, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %288
  %290 = getelementptr inbounds %struct.point, ptr %289, i32 0, i32 0
  %291 = load double, ptr %290, align 16, !tbaa !16
  %292 = fmul double %286, %291
  %293 = call double @llvm.fmuladd.f64(double %280, double %285, double %292)
  %294 = load double, ptr %25, align 8, !tbaa !12
  %295 = fadd double %293, %294
  store double %295, ptr %11, align 8, !tbaa !12
  %296 = load double, ptr %11, align 8, !tbaa !12
  %297 = load i32, ptr %26, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %298
  %300 = getelementptr inbounds %struct.point, ptr %299, i32 0, i32 1
  %301 = load double, ptr %300, align 8, !tbaa !23
  %302 = fsub double %296, %301
  %303 = call double @llvm.fabs.f64(double %302)
  %304 = fcmp ogt double %303, 1.000000e-08
  br i1 %304, label %305, label %306

305:                                              ; preds = %273
  store i8 0, ptr %12, align 1, !tbaa !18
  br label %306

306:                                              ; preds = %305, %273
  br label %307

307:                                              ; preds = %306
  %308 = load i32, ptr %26, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %26, align 4, !tbaa !5
  br label %263, !llvm.loop !24

310:                                              ; preds = %272
  %311 = load i8, ptr %12, align 1, !tbaa !18, !range !21, !noundef !22
  %312 = trunc i8 %311 to i1
  br i1 %312, label %313, label %315

313:                                              ; preds = %310
  %314 = call i32 @puts(ptr noundef @.str.2)
  br label %317

315:                                              ; preds = %310
  %316 = call i32 @puts(ptr noundef @.str.3)
  br label %317

317:                                              ; preds = %315, %313
  br label %318

318:                                              ; preds = %317, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %319

319:                                              ; preds = %318, %169
  br label %320

320:                                              ; preds = %319, %164
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  store i32 0, ptr %10, align 4
  br label %321

321:                                              ; preds = %320, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  %322 = load i32, ptr %10, align 4
  switch i32 %322, label %326 [
    i32 0, label %323
    i32 2, label %27
  ]

323:                                              ; preds = %321
  br label %27, !llvm.loop !15

324:                                              ; preds = %27
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %325 = load i32, ptr %1, align 4
  ret i32 %325

326:                                              ; preds = %321
  unreachable
}

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

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

; 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 @_ZSt4sortIP5pointPFbS0_S0_EEvT_S4_T0_(ptr noundef, 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 @puts(ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = !{!17, !13, i64 0}
!17 = !{!"_ZTS5point", !13, i64 0, !13, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!17, !13, i64 8}
!24 = distinct !{!24, !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 }

@tower = external dso_local global %struct.point, align 8
@p = external dso_local global [10010 x %struct.point], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @tower, ptr noundef nonnull getelementptr inbounds (i8, ptr @tower, i64 8))
  %.not109 = icmp eq i32 %2, -1
  br i1 %.not109, label %._crit_edge112, label %.lr.ph111

.lr.ph111:                                        ; preds = %0, %133
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %4 = load i32, ptr %1, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %.lr.ph111.._crit_edge_crit_edge

.lr.ph111.._crit_edge_crit_edge:                  ; preds = %.lr.ph111
  %.pre = sext i32 %4 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph111.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.lr.ph111.._crit_edge_crit_edge ], [ %16, %.lr.ph ]
  %6 = getelementptr inbounds %struct.point, ptr @p, i64 %.pre-phi
  call void @_ZSt4sortIP5pointPFbS0_S0_EEvT_S4_T0_(ptr noundef nonnull @p, ptr noundef nonnull %6, ptr noundef nonnull @_Z3cmp5pointS_)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph95.preheader, label %._crit_edge96.thread

._crit_edge96.thread:                             ; preds = %._crit_edge
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %133, !llvm.loop !9

.lr.ph95.preheader:                               ; preds = %._crit_edge
  %.sroa.061.0.copyload.peel = load double, ptr @tower, align 8, !tbaa !11
  %.sroa.262.0.copyload.peel = load double, ptr getelementptr inbounds (i8, ptr @tower, i64 8), align 8, !tbaa !11
  %.sroa.059.0.copyload.peel = load double, ptr @p, align 16, !tbaa !11
  %.sroa.260.0.copyload.peel = load double, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8, !tbaa !11
  %9 = call noundef i32 @_Z7Is_same5pointS_(double %.sroa.061.0.copyload.peel, double %.sroa.262.0.copyload.peel, double %.sroa.059.0.copyload.peel, double %.sroa.260.0.copyload.peel)
  %.not85.peel = icmp eq i32 %9, 0
  %spec.select = zext i1 %.not85.peel to i32
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 1
  br i1 %11, label %.lr.ph95, label %._crit_edge96

.lr.ph:                                           ; preds = %.lr.ph111, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph111 ]
  %12 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %12, ptr noundef nonnull %13)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = icmp slt i64 %indvars.iv.next, %16
  br i1 %17, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge96:                                    ; preds = %29, %.lr.ph95.preheader
  %.078.lcssa = phi i32 [ %spec.select, %.lr.ph95.preheader ], [ %.1, %29 ]
  store i32 %.078.lcssa, ptr %1, align 4, !tbaa !5
  %18 = icmp eq i32 %.078.lcssa, 0
  br i1 %18, label %133, label %33, !llvm.loop !9

.lr.ph95:                                         ; preds = %.lr.ph95.preheader, %29
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %29 ], [ 1, %.lr.ph95.preheader ]
  %.07893 = phi i32 [ %.1, %29 ], [ %spec.select, %.lr.ph95.preheader ]
  %.sroa.061.0.copyload = load double, ptr @tower, align 8, !tbaa !11
  %.sroa.262.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @tower, i64 8), align 8, !tbaa !11
  %19 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv116
  %.sroa.059.0.copyload = load double, ptr %19, align 16, !tbaa !11
  %.sroa.260.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.260.0.copyload = load double, ptr %.sroa.260.0..sroa_idx, align 8, !tbaa !11
  %20 = call noundef i32 @_Z7Is_same5pointS_(double %.sroa.061.0.copyload, double %.sroa.262.0.copyload, double %.sroa.059.0.copyload, double %.sroa.260.0.copyload)
  %.not85 = icmp eq i32 %20, 0
  br i1 %.not85, label %21, label %29

21:                                               ; preds = %.lr.ph95
  %.sroa.057.0.copyload = load double, ptr %19, align 16, !tbaa !11
  %.sroa.258.0.copyload = load double, ptr %.sroa.260.0..sroa_idx, align 8, !tbaa !11
  %22 = add nsw i64 %indvars.iv116, -1
  %23 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %22
  %.sroa.0.0.copyload = load double, ptr %23, align 16, !tbaa !11
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !11
  %24 = call noundef i32 @_Z7Is_same5pointS_(double %.sroa.057.0.copyload, double %.sroa.258.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %.not87 = icmp eq i32 %24, 0
  br i1 %.not87, label %25, label %29

25:                                               ; preds = %21
  %26 = add nsw i32 %.07893, 1
  %27 = sext i32 %.07893 to i64
  %28 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %27
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %28, ptr noundef nonnull align 16 dereferenceable(16) %19, i64 16, i1 false), !tbaa.struct !14
  br label %29

29:                                               ; preds = %21, %.lr.ph95, %25
  %.1 = phi i32 [ %.07893, %.lr.ph95 ], [ %.07893, %21 ], [ %26, %25 ]
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = icmp slt i64 %indvars.iv.next117, %31
  br i1 %32, label %.lr.ph95, label %._crit_edge96, !llvm.loop !15

33:                                               ; preds = %._crit_edge96
  %34 = load double, ptr @p, align 16, !tbaa !17
  %35 = load double, ptr @tower, align 8, !tbaa !17
  %36 = fsub double %34, %35
  %37 = icmp sgt i32 %.078.lcssa, 1
  br i1 %37, label %.lr.ph101.preheader, label %._crit_edge102.thread

.lr.ph101.preheader:                              ; preds = %33
  %wide.trip.count = zext nneg i32 %.078.lcssa to i64
  %38 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %38, 1
  %39 = icmp eq i32 %.078.lcssa, 2
  br i1 %39, label %._crit_edge102.unr-lcssa, label %.lr.ph101.preheader.new

.lr.ph101.preheader.new:                          ; preds = %.lr.ph101.preheader
  %unroll_iter = and i64 %38, -2
  br label %.lr.ph101

._crit_edge102.unr-lcssa:                         ; preds = %.lr.ph101, %.lr.ph101.preheader
  %.2.lcssa.ph = phi i8 [ poison, %.lr.ph101.preheader ], [ %.2.1, %.lr.ph101 ]
  %.unr = phi double [ %34, %.lr.ph101.preheader ], [ %63, %.lr.ph101 ]
  %indvars.iv120.unr = phi i64 [ 1, %.lr.ph101.preheader ], [ %indvars.iv.next121.1, %.lr.ph101 ]
  %.08099.unr = phi i8 [ 1, %.lr.ph101.preheader ], [ %.2.1, %.lr.ph101 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge102, label %.lr.ph101.epil

.lr.ph101.epil:                                   ; preds = %._crit_edge102.unr-lcssa
  %40 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv120.unr
  %41 = load double, ptr %40, align 16, !tbaa !17
  %42 = fsub double %41, %35
  %43 = fmul double %36, %42
  %44 = fcmp olt double %43, -1.000000e-08
  %45 = fsub double %41, %.unr
  %46 = call double @llvm.fabs.f64(double %45)
  %47 = fcmp olt double %46, 1.000000e-08
  %48 = select i1 %47, i1 true, i1 %44
  %.2.epil = select i1 %48, i8 0, i8 %.08099.unr
  br label %._crit_edge102

._crit_edge102:                                   ; preds = %._crit_edge102.unr-lcssa, %.lr.ph101.epil
  %.2.lcssa = phi i8 [ %.2.lcssa.ph, %._crit_edge102.unr-lcssa ], [ %.2.epil, %.lr.ph101.epil ]
  %49 = call double @llvm.fabs.f64(double %36)
  %50 = fcmp olt double %49, 1.000000e-08
  %51 = and i8 %.2.lcssa, 1
  %52 = icmp eq i8 %51, 0
  %or.cond = select i1 %50, i1 %52, i1 false
  br i1 %or.cond, label %133, label %._crit_edge102.thread

.lr.ph101:                                        ; preds = %.lr.ph101, %.lr.ph101.preheader.new
  %53 = phi double [ %34, %.lr.ph101.preheader.new ], [ %63, %.lr.ph101 ]
  %indvars.iv120 = phi i64 [ 1, %.lr.ph101.preheader.new ], [ %indvars.iv.next121.1, %.lr.ph101 ]
  %.08099 = phi i8 [ 1, %.lr.ph101.preheader.new ], [ %.2.1, %.lr.ph101 ]
  %niter = phi i64 [ 0, %.lr.ph101.preheader.new ], [ %niter.next.1, %.lr.ph101 ]
  %54 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv120
  %55 = load double, ptr %54, align 16, !tbaa !17
  %56 = fsub double %55, %35
  %57 = fmul double %36, %56
  %58 = fcmp olt double %57, -1.000000e-08
  %59 = fsub double %55, %53
  %60 = call double @llvm.fabs.f64(double %59)
  %61 = fcmp olt double %60, 1.000000e-08
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %62 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv.next121
  %63 = load double, ptr %62, align 16, !tbaa !17
  %64 = fsub double %63, %35
  %65 = fmul double %36, %64
  %66 = fcmp olt double %65, -1.000000e-08
  %67 = fsub double %63, %55
  %68 = call double @llvm.fabs.f64(double %67)
  %69 = fcmp olt double %68, 1.000000e-08
  %70 = select i1 %69, i1 true, i1 %66
  %71 = select i1 %70, i1 true, i1 %61
  %72 = select i1 %71, i1 true, i1 %58
  %.2.1 = select i1 %72, i8 0, i8 %.08099
  %indvars.iv.next121.1 = add nuw nsw i64 %indvars.iv120, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge102.unr-lcssa, label %.lr.ph101, !llvm.loop !19

._crit_edge102.thread:                            ; preds = %33, %._crit_edge102
  %.080.lcssa130 = phi i8 [ %.2.lcssa, %._crit_edge102 ], [ 1, %33 ]
  %73 = icmp eq i32 %.078.lcssa, 1
  br i1 %73, label %133, label %74

74:                                               ; preds = %._crit_edge102.thread
  %75 = fmul double %35, %35
  %76 = fmul double %34, %34
  %77 = load double, ptr getelementptr inbounds (i8, ptr @p, i64 16), align 16, !tbaa !17
  %78 = fmul double %77, %77
  %79 = load double, ptr getelementptr inbounds (i8, ptr @tower, i64 8), align 8, !tbaa !20
  %80 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8
  %81 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @p, i64 24), align 8
  %82 = fsub double %34, %77
  %83 = fsub double %35, %34
  %84 = insertelement <2 x double> poison, double %79, i64 0
  %85 = insertelement <2 x double> %84, double %75, i64 1
  %86 = insertelement <2 x double> %80, double %76, i64 1
  %87 = fsub <2 x double> %85, %86
  %88 = insertelement <2 x double> %81, double %78, i64 1
  %89 = fsub <2 x double> %86, %88
  %90 = fneg <2 x double> %89
  %91 = insertelement <2 x double> poison, double %83, i64 0
  %92 = shufflevector <2 x double> %91, <2 x double> poison, <2 x i32> zeroinitializer
  %93 = fmul <2 x double> %92, %90
  %94 = insertelement <2 x double> poison, double %82, i64 0
  %95 = shufflevector <2 x double> %94, <2 x double> poison, <2 x i32> zeroinitializer
  %96 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %87, <2 x double> %95, <2 x double> %93)
  %97 = extractelement <2 x double> %96, i64 0
  %98 = extractelement <2 x double> %96, i64 1
  %99 = fdiv double %97, %98
  %100 = extractelement <2 x double> %87, i64 1
  %101 = extractelement <2 x double> %90, i64 0
  %102 = fmul double %100, %101
  %103 = extractelement <2 x double> %87, i64 0
  %104 = extractelement <2 x double> %89, i64 1
  %105 = call double @llvm.fmuladd.f64(double %103, double %104, double %102)
  %106 = fneg double %82
  %107 = fmul double %100, %106
  %108 = call double @llvm.fmuladd.f64(double %83, double %104, double %107)
  %109 = fdiv double %105, %108
  %110 = fneg double %75
  %111 = call double @llvm.fmuladd.f64(double %110, double %99, double %79)
  %112 = fneg double %35
  %113 = call double @llvm.fmuladd.f64(double %112, double %109, double %111)
  %114 = fcmp ogt double %99, -1.000000e-08
  br i1 %114, label %133, label %.preheader

.preheader:                                       ; preds = %74
  %115 = trunc nuw i8 %.080.lcssa130 to i1
  %116 = icmp sgt i32 %.078.lcssa, 2
  %117 = and i1 %116, %115
  br i1 %117, label %.lr.ph106.preheader, label %._crit_edge107

.lr.ph106.preheader:                              ; preds = %.preheader
  %118 = zext nneg i32 %.078.lcssa to i64
  br label %.lr.ph106

._crit_edge107:                                   ; preds = %.lr.ph106, %.preheader
  %.lcssa89 = phi i1 [ %115, %.preheader ], [ %130, %.lr.ph106 ]
  %.str.2..str.3 = select i1 %.lcssa89, ptr @.str.2, ptr @.str.3
  br label %133

.lr.ph106:                                        ; preds = %.lr.ph106.preheader, %.lr.ph106
  %indvars.iv122 = phi i64 [ 2, %.lr.ph106.preheader ], [ %indvars.iv.next123, %.lr.ph106 ]
  %.3104 = phi i8 [ %.080.lcssa130, %.lr.ph106.preheader ], [ %.4, %.lr.ph106 ]
  %119 = getelementptr inbounds [10010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv122
  %120 = load double, ptr %119, align 16, !tbaa !17
  %121 = fmul double %99, %120
  %122 = fmul double %109, %120
  %123 = call double @llvm.fmuladd.f64(double %121, double %120, double %122)
  %124 = fadd double %113, %123
  %125 = getelementptr inbounds i8, ptr %119, i64 8
  %126 = load double, ptr %125, align 8, !tbaa !20
  %127 = fsub double %124, %126
  %128 = call double @llvm.fabs.f64(double %127)
  %129 = fcmp ogt double %128, 1.000000e-08
  %.4 = select i1 %129, i8 0, i8 %.3104
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %130 = trunc nuw i8 %.4 to i1
  %131 = icmp ult i64 %indvars.iv.next123, %118
  %132 = select i1 %130, i1 %131, i1 false
  br i1 %132, label %.lr.ph106, label %._crit_edge107, !llvm.loop !21

133:                                              ; preds = %._crit_edge107, %74, %._crit_edge102.thread, %._crit_edge102, %._crit_edge96, %._crit_edge96.thread
  %.str.3.sink = phi ptr [ @.str.2, %._crit_edge96.thread ], [ @.str.2, %._crit_edge96 ], [ @.str.3, %._crit_edge102 ], [ @.str.2, %._crit_edge102.thread ], [ @.str.3, %74 ], [ %.str.2..str.3, %._crit_edge107 ]
  %134 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.3.sink)
  %135 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @tower, ptr noundef nonnull getelementptr inbounds (i8, ptr @tower, i64 8))
  %.not = icmp eq i32 %135, -1
  br i1 %.not, label %._crit_edge112, label %.lr.ph111

._crit_edge112:                                   ; preds = %133, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0
}

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

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

; 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 @_ZSt4sortIP5pointPFbS0_S0_EEvT_S4_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}
!15 = distinct !{!15, !10, !16}
!16 = !{!"llvm.loop.peeled.count", i32 1}
!17 = !{!18, !12, i64 0}
!18 = !{!"_ZTS5point", !12, i64 0, !12, i64 8}
!19 = distinct !{!19, !10}
!20 = !{!18, !12, i64 8}
!21 = distinct !{!21, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass