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

; 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
@m = external dso_local global i32, align 4
@g = external dso_local global [510 x [510 x i32]], align 16
@ans = external dso_local global i32, align 4
@p = external dso_local global [510 x %struct.Point], align 16
@pp = external dso_local global [510 x %struct.Point], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) #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 i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca %struct.Point, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca %struct.Point, align 8
  %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 %struct.Point, align 8
  %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
  %28 = alloca %struct.Point, align 8
  %29 = alloca %struct.Point, align 8
  %30 = alloca %struct.Point, align 8
  %31 = alloca %struct.Point, align 8
  %32 = alloca %struct.Point, align 8
  %33 = alloca double, align 8
  %34 = alloca %struct.Point, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %struct.Point, align 8
  %38 = alloca i32, align 4
  %39 = alloca %struct.Point, align 8
  %40 = alloca %struct.Point, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @m, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %61, %0
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = load i32, ptr @m, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

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

51:                                               ; preds = %46
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.Point, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %57
  %59 = getelementptr inbounds %struct.Point, ptr %58, i32 0, i32 1
  %60 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %55, ptr noundef %59)
  br label %61

61:                                               ; preds = %51
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %3, align 4, !tbaa !5
  br label %46, !llvm.loop !9

64:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %80, %64
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load i32, ptr @n, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %83

70:                                               ; preds = %65
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.Point, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %76
  %78 = getelementptr inbounds %struct.Point, ptr %77, i32 0, i32 1
  %79 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %74, ptr noundef %78)
  br label %80

80:                                               ; preds = %70
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %4, align 4, !tbaa !5
  br label %65, !llvm.loop !11

83:                                               ; preds = %69
  %84 = load i32, ptr @m, align 4, !tbaa !5
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %110

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  store i8 0, ptr %5, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %99, %86
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 8, ptr %7, align 4
  br label %102

92:                                               ; preds = %87
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %94
  %96 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %95, ptr noundef nonnull align 8 dereferenceable(16) @pp)
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  store i8 1, ptr %5, align 1, !tbaa !12
  store i32 8, ptr %7, align 4
  br label %102

98:                                               ; preds = %92
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %6, align 4, !tbaa !5
  br label %87, !llvm.loop !14

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

103:                                              ; preds = %102
  %104 = load i8, ptr %5, align 1, !tbaa !12, !range !15, !noundef !16
  %105 = trunc i8 %104 to i1
  %106 = xor i1 %105, true
  %107 = zext i1 %106 to i64
  %108 = select i1 %106, i32 1, i32 -1
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %108)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %675

110:                                              ; preds = %83
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 63, i64 1040400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %539, %110
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = load i32, ptr @m, align 4, !tbaa !5
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %542

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 -1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 -1, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 0, ptr %11, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %387, %116
  %118 = load i32, ptr %12, align 4, !tbaa !5
  %119 = load i32, ptr @n, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 14, ptr %7, align 4
  br label %390

122:                                              ; preds = %117
  %123 = load i32, ptr %12, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %124
  %126 = load i32, ptr %8, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %127
  %129 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %125, ptr noundef nonnull align 8 dereferenceable(16) %128)
  br i1 %129, label %130, label %131

130:                                              ; preds = %122
  br label %387

131:                                              ; preds = %122
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = icmp ne i32 %132, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  br i1 %133, label %134, label %190

134:                                              ; preds = %131
  %135 = load i32, ptr %9, align 4, !tbaa !5
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = icmp eq i32 %135, %136
  br i1 %137, label %138, label %190

138:                                              ; preds = %134
  %139 = load i32, ptr %9, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %140
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %143
  %145 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %141, ptr noundef nonnull align 8 dereferenceable(16) %144)
  %146 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %147 = extractvalue { double, double } %145, 0
  store double %147, ptr %146, align 8
  %148 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %149 = extractvalue { double, double } %145, 1
  store double %149, ptr %148, align 8
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %151
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %154
  %156 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %152, ptr noundef nonnull align 8 dereferenceable(16) %155)
  %157 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %158 = extractvalue { double, double } %156, 0
  store double %158, ptr %157, align 8
  %159 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %160 = extractvalue { double, double } %156, 1
  store double %160, ptr %159, align 8
  %161 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %162 = call noundef i32 @_Z3sgnd(double noundef %161)
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %190, label %164

164:                                              ; preds = %138
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %166
  %168 = load i32, ptr %8, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %169
  %171 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %167, ptr noundef nonnull align 8 dereferenceable(16) %170)
  %172 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %173 = extractvalue { double, double } %171, 0
  store double %173, ptr %172, align 8
  %174 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %175 = extractvalue { double, double } %171, 1
  store double %175, ptr %174, align 8
  %176 = load i32, ptr %12, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %177
  %179 = load i32, ptr %8, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %180
  %182 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %178, ptr noundef nonnull align 8 dereferenceable(16) %181)
  %183 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %184 = extractvalue { double, double } %182, 0
  store double %184, ptr %183, align 8
  %185 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %186 = extractvalue { double, double } %182, 1
  store double %186, ptr %185, align 8
  %187 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %188 = call noundef i32 @_Z3sgnd(double noundef %187)
  %189 = icmp ne i32 %188, 0
  br label %190

190:                                              ; preds = %164, %138, %134, %131
  %191 = phi i1 [ false, %138 ], [ false, %134 ], [ false, %131 ], [ %189, %164 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br i1 %191, label %192, label %194

192:                                              ; preds = %190
  %193 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %193, ptr %9, align 4, !tbaa !5
  store i8 1, ptr %11, align 1, !tbaa !12
  br label %387

194:                                              ; preds = %190
  %195 = load i8, ptr %11, align 1, !tbaa !12, !range !15, !noundef !16
  %196 = trunc i8 %195 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  br i1 %196, label %197, label %249

197:                                              ; preds = %194
  %198 = load i32, ptr %9, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %199
  %201 = load i32, ptr %8, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %202
  %204 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %200, ptr noundef nonnull align 8 dereferenceable(16) %203)
  %205 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %206 = extractvalue { double, double } %204, 0
  store double %206, ptr %205, align 8
  %207 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %208 = extractvalue { double, double } %204, 1
  store double %208, ptr %207, align 8
  %209 = load i32, ptr %12, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %210
  %212 = load i32, ptr %8, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %213
  %215 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %211, ptr noundef nonnull align 8 dereferenceable(16) %214)
  %216 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %217 = extractvalue { double, double } %215, 0
  store double %217, ptr %216, align 8
  %218 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %219 = extractvalue { double, double } %215, 1
  store double %219, ptr %218, align 8
  %220 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %221 = call noundef i32 @_Z3sgnd(double noundef %220)
  %222 = icmp sgt i32 %221, 0
  br i1 %222, label %223, label %249

223:                                              ; preds = %197
  %224 = load i32, ptr %10, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %225
  %227 = load i32, ptr %8, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %228
  %230 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %226, ptr noundef nonnull align 8 dereferenceable(16) %229)
  %231 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %232 = extractvalue { double, double } %230, 0
  store double %232, ptr %231, align 8
  %233 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %234 = extractvalue { double, double } %230, 1
  store double %234, ptr %233, align 8
  %235 = load i32, ptr %12, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %236
  %238 = load i32, ptr %8, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %239
  %241 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %237, ptr noundef nonnull align 8 dereferenceable(16) %240)
  %242 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %243 = extractvalue { double, double } %241, 0
  store double %243, ptr %242, align 8
  %244 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %245 = extractvalue { double, double } %241, 1
  store double %245, ptr %244, align 8
  %246 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %247 = call noundef i32 @_Z3sgnd(double noundef %246)
  %248 = icmp slt i32 %247, 0
  br label %249

249:                                              ; preds = %223, %197, %194
  %250 = phi i1 [ false, %197 ], [ false, %194 ], [ %248, %223 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br i1 %250, label %251, label %261

251:                                              ; preds = %249
  %252 = load i32, ptr %9, align 4, !tbaa !5
  %253 = load i32, ptr %10, align 4, !tbaa !5
  %254 = add nsw i32 %252, %253
  store i32 %254, ptr %9, align 4, !tbaa !5
  %255 = load i32, ptr %9, align 4, !tbaa !5
  %256 = load i32, ptr %10, align 4, !tbaa !5
  %257 = sub nsw i32 %255, %256
  store i32 %257, ptr %10, align 4, !tbaa !5
  %258 = load i32, ptr %9, align 4, !tbaa !5
  %259 = load i32, ptr %10, align 4, !tbaa !5
  %260 = sub nsw i32 %258, %259
  store i32 %260, ptr %9, align 4, !tbaa !5
  store i8 0, ptr %11, align 1, !tbaa !12
  br label %387

261:                                              ; preds = %249
  %262 = load i32, ptr %9, align 4, !tbaa !5
  %263 = icmp eq i32 %262, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  br i1 %263, label %290, label %264

264:                                              ; preds = %261
  %265 = load i32, ptr %9, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %266
  %268 = load i32, ptr %8, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %269
  %271 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %267, ptr noundef nonnull align 8 dereferenceable(16) %270)
  %272 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %273 = extractvalue { double, double } %271, 0
  store double %273, ptr %272, align 8
  %274 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %275 = extractvalue { double, double } %271, 1
  store double %275, ptr %274, align 8
  %276 = load i32, ptr %12, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %277
  %279 = load i32, ptr %8, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %280
  %282 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %278, ptr noundef nonnull align 8 dereferenceable(16) %281)
  %283 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %284 = extractvalue { double, double } %282, 0
  store double %284, ptr %283, align 8
  %285 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %286 = extractvalue { double, double } %282, 1
  store double %286, ptr %285, align 8
  %287 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %288 = call noundef i32 @_Z3sgnd(double noundef %287)
  %289 = icmp sgt i32 %288, 0
  br label %290

290:                                              ; preds = %264, %261
  %291 = phi i1 [ true, %261 ], [ %289, %264 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br i1 %291, label %292, label %326

292:                                              ; preds = %290
  %293 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %293, ptr %9, align 4, !tbaa !5
  %294 = load i32, ptr %10, align 4, !tbaa !5
  %295 = icmp ne i32 %294, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  br i1 %295, label %296, label %322

296:                                              ; preds = %292
  %297 = load i32, ptr %10, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %298
  %300 = load i32, ptr %8, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %301
  %303 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %299, ptr noundef nonnull align 8 dereferenceable(16) %302)
  %304 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %305 = extractvalue { double, double } %303, 0
  store double %305, ptr %304, align 8
  %306 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %307 = extractvalue { double, double } %303, 1
  store double %307, ptr %306, align 8
  %308 = load i32, ptr %9, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %309
  %311 = load i32, ptr %8, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %312
  %314 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %310, ptr noundef nonnull align 8 dereferenceable(16) %313)
  %315 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %316 = extractvalue { double, double } %314, 0
  store double %316, ptr %315, align 8
  %317 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %318 = extractvalue { double, double } %314, 1
  store double %318, ptr %317, align 8
  %319 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %320 = call noundef i32 @_Z3sgnd(double noundef %319)
  %321 = icmp slt i32 %320, 0
  br label %322

322:                                              ; preds = %296, %292
  %323 = phi i1 [ false, %292 ], [ %321, %296 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br i1 %323, label %324, label %325

324:                                              ; preds = %322
  store i32 14, ptr %7, align 4
  br label %390

325:                                              ; preds = %322
  br label %326

326:                                              ; preds = %325, %290
  %327 = load i32, ptr %10, align 4, !tbaa !5
  %328 = icmp eq i32 %327, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  br i1 %328, label %355, label %329

329:                                              ; preds = %326
  %330 = load i32, ptr %10, align 4, !tbaa !5
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %331
  %333 = load i32, ptr %8, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %334
  %336 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %332, ptr noundef nonnull align 8 dereferenceable(16) %335)
  %337 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %338 = extractvalue { double, double } %336, 0
  store double %338, ptr %337, align 8
  %339 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %340 = extractvalue { double, double } %336, 1
  store double %340, ptr %339, align 8
  %341 = load i32, ptr %12, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %342
  %344 = load i32, ptr %8, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %345
  %347 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %343, ptr noundef nonnull align 8 dereferenceable(16) %346)
  %348 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %349 = extractvalue { double, double } %347, 0
  store double %349, ptr %348, align 8
  %350 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %351 = extractvalue { double, double } %347, 1
  store double %351, ptr %350, align 8
  %352 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %353 = call noundef i32 @_Z3sgnd(double noundef %352)
  %354 = icmp slt i32 %353, 0
  br label %355

355:                                              ; preds = %329, %326
  %356 = phi i1 [ true, %326 ], [ %354, %329 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br i1 %356, label %357, label %386

357:                                              ; preds = %355
  %358 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %358, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %359 = load i32, ptr %10, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %360
  %362 = load i32, ptr %8, align 4, !tbaa !5
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %363
  %365 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %361, ptr noundef nonnull align 8 dereferenceable(16) %364)
  %366 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %367 = extractvalue { double, double } %365, 0
  store double %367, ptr %366, align 8
  %368 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %369 = extractvalue { double, double } %365, 1
  store double %369, ptr %368, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %370 = load i32, ptr %9, align 4, !tbaa !5
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %371
  %373 = load i32, ptr %8, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %374
  %376 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %372, ptr noundef nonnull align 8 dereferenceable(16) %375)
  %377 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %378 = extractvalue { double, double } %376, 0
  store double %378, ptr %377, align 8
  %379 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %380 = extractvalue { double, double } %376, 1
  store double %380, ptr %379, align 8
  %381 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %382 = call noundef i32 @_Z3sgnd(double noundef %381)
  %383 = icmp slt i32 %382, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  br i1 %383, label %384, label %385

384:                                              ; preds = %357
  store i32 14, ptr %7, align 4
  br label %390

385:                                              ; preds = %357
  br label %386

386:                                              ; preds = %385, %355
  br label %387

387:                                              ; preds = %386, %251, %192, %130
  %388 = load i32, ptr %12, align 4, !tbaa !5
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %12, align 4, !tbaa !5
  br label %117, !llvm.loop !17

390:                                              ; preds = %384, %324, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %391

391:                                              ; preds = %390
  %392 = load i32, ptr %9, align 4, !tbaa !5
  %393 = icmp ne i32 %392, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  br i1 %393, label %394, label %420

394:                                              ; preds = %391
  %395 = load i32, ptr %10, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %396
  %398 = load i32, ptr %8, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %399
  %401 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %397, ptr noundef nonnull align 8 dereferenceable(16) %400)
  %402 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %403 = extractvalue { double, double } %401, 0
  store double %403, ptr %402, align 8
  %404 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %405 = extractvalue { double, double } %401, 1
  store double %405, ptr %404, align 8
  %406 = load i32, ptr %9, align 4, !tbaa !5
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %407
  %409 = load i32, ptr %8, align 4, !tbaa !5
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %410
  %412 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %408, ptr noundef nonnull align 8 dereferenceable(16) %411)
  %413 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %414 = extractvalue { double, double } %412, 0
  store double %414, ptr %413, align 8
  %415 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %416 = extractvalue { double, double } %412, 1
  store double %416, ptr %415, align 8
  %417 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %30)
  %418 = call noundef i32 @_Z3sgnd(double noundef %417)
  %419 = icmp slt i32 %418, 0
  br label %420

420:                                              ; preds = %394, %391
  %421 = phi i1 [ false, %391 ], [ %419, %394 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  br i1 %421, label %422, label %423

422:                                              ; preds = %420
  store i32 13, ptr %7, align 4
  br label %536

423:                                              ; preds = %420
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %424 = load i32, ptr %9, align 4, !tbaa !5
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %425
  %427 = load i32, ptr %8, align 4, !tbaa !5
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %428
  %430 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %426, ptr noundef nonnull align 8 dereferenceable(16) %429)
  %431 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %432 = extractvalue { double, double } %430, 0
  store double %432, ptr %431, align 8
  %433 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %434 = extractvalue { double, double } %430, 1
  store double %434, ptr %433, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  store double -1.000000e+00, ptr %33, align 8, !tbaa !18
  %435 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %436 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %437 = extractvalue { double, double } %435, 0
  store double %437, ptr %436, align 8
  %438 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %439 = extractvalue { double, double } %435, 1
  store double %439, ptr %438, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #5
  %440 = load i32, ptr %10, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %441
  %443 = load i32, ptr %8, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %444
  %446 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %442, ptr noundef nonnull align 8 dereferenceable(16) %445)
  %447 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %448 = extractvalue { double, double } %446, 0
  store double %448, ptr %447, align 8
  %449 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %450 = extractvalue { double, double } %446, 1
  store double %450, ptr %449, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %451

451:                                              ; preds = %532, %423
  %452 = load i32, ptr %35, align 4, !tbaa !5
  %453 = load i32, ptr @m, align 4, !tbaa !5
  %454 = icmp slt i32 %452, %453
  br i1 %454, label %456, label %455

455:                                              ; preds = %451
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %535

456:                                              ; preds = %451
  %457 = load i32, ptr %8, align 4, !tbaa !5
  %458 = load i32, ptr %35, align 4, !tbaa !5
  %459 = icmp ne i32 %457, %458
  br i1 %459, label %460, label %531

460:                                              ; preds = %456
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #5
  %461 = load i32, ptr %35, align 4, !tbaa !5
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %462
  %464 = load i32, ptr %8, align 4, !tbaa !5
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %465
  %467 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %463, ptr noundef nonnull align 8 dereferenceable(16) %466)
  %468 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %469 = extractvalue { double, double } %467, 0
  store double %469, ptr %468, align 8
  %470 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %471 = extractvalue { double, double } %467, 1
  store double %471, ptr %470, align 8
  %472 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %37)
  %473 = call noundef i32 @_Z3sgnd(double noundef %472)
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #5
  store i32 %473, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #5
  %474 = load i32, ptr %35, align 4, !tbaa !5
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %475
  %477 = load i32, ptr %8, align 4, !tbaa !5
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %478
  %480 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %476, ptr noundef nonnull align 8 dereferenceable(16) %479)
  %481 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %482 = extractvalue { double, double } %480, 0
  store double %482, ptr %481, align 8
  %483 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %484 = extractvalue { double, double } %480, 1
  store double %484, ptr %483, align 8
  %485 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %39)
  %486 = call noundef i32 @_Z3sgnd(double noundef %485)
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #5
  store i32 %486, ptr %38, align 4, !tbaa !5
  %487 = load i32, ptr %36, align 4, !tbaa !5
  %488 = icmp sgt i32 %487, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #5
  br i1 %488, label %489, label %492

489:                                              ; preds = %460
  %490 = load i32, ptr %38, align 4, !tbaa !5
  %491 = icmp sle i32 %490, 0
  br i1 %491, label %521, label %492

492:                                              ; preds = %489, %460
  %493 = load i32, ptr %36, align 4, !tbaa !5
  %494 = icmp sge i32 %493, 0
  br i1 %494, label %495, label %498

495:                                              ; preds = %492
  %496 = load i32, ptr %38, align 4, !tbaa !5
  %497 = icmp slt i32 %496, 0
  br i1 %497, label %521, label %498

498:                                              ; preds = %495, %492
  %499 = load i32, ptr %36, align 4, !tbaa !5
  %500 = icmp ne i32 %499, 0
  br i1 %500, label %519, label %501

501:                                              ; preds = %498
  %502 = load i32, ptr %38, align 4, !tbaa !5
  %503 = icmp ne i32 %502, 0
  br i1 %503, label %519, label %504

504:                                              ; preds = %501
  %505 = load i32, ptr %35, align 4, !tbaa !5
  %506 = sext i32 %505 to i64
  %507 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %506
  %508 = load i32, ptr %8, align 4, !tbaa !5
  %509 = sext i32 %508 to i64
  %510 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %509
  %511 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %507, ptr noundef nonnull align 8 dereferenceable(16) %510)
  %512 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %513 = extractvalue { double, double } %511, 0
  store double %513, ptr %512, align 8
  %514 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %515 = extractvalue { double, double } %511, 1
  store double %515, ptr %514, align 8
  %516 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %40)
  %517 = call noundef i32 @_Z3sgnd(double noundef %516)
  %518 = icmp sge i32 %517, 0
  br label %519

519:                                              ; preds = %504, %501, %498
  %520 = phi i1 [ false, %501 ], [ false, %498 ], [ %518, %504 ]
  br label %521

521:                                              ; preds = %519, %495, %489
  %522 = phi i1 [ true, %495 ], [ true, %489 ], [ %520, %519 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #5
  br i1 %522, label %523, label %530

523:                                              ; preds = %521
  %524 = load i32, ptr %8, align 4, !tbaa !5
  %525 = sext i32 %524 to i64
  %526 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %525
  %527 = load i32, ptr %35, align 4, !tbaa !5
  %528 = sext i32 %527 to i64
  %529 = getelementptr inbounds [510 x i32], ptr %526, i64 0, i64 %528
  store i32 1, ptr %529, align 4, !tbaa !5
  br label %530

530:                                              ; preds = %523, %521
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %531

531:                                              ; preds = %530, %456
  br label %532

532:                                              ; preds = %531
  %533 = load i32, ptr %35, align 4, !tbaa !5
  %534 = add nsw i32 %533, 1
  store i32 %534, ptr %35, align 4, !tbaa !5
  br label %451, !llvm.loop !20

535:                                              ; preds = %455
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  store i32 0, ptr %7, align 4
  br label %536

536:                                              ; preds = %535, %422
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %537 = load i32, ptr %7, align 4
  switch i32 %537, label %677 [
    i32 0, label %538
    i32 13, label %539
  ]

538:                                              ; preds = %536
  br label %539

539:                                              ; preds = %538, %536
  %540 = load i32, ptr %8, align 4, !tbaa !5
  %541 = add nsw i32 %540, 1
  store i32 %541, ptr %8, align 4, !tbaa !5
  br label %111, !llvm.loop !21

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

543:                                              ; preds = %635, %542
  %544 = load i32, ptr %41, align 4, !tbaa !5
  %545 = load i32, ptr @m, align 4, !tbaa !5
  %546 = icmp slt i32 %544, %545
  br i1 %546, label %548, label %547

547:                                              ; preds = %543
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  br label %638

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

549:                                              ; preds = %631, %548
  %550 = load i32, ptr %42, align 4, !tbaa !5
  %551 = load i32, ptr @m, align 4, !tbaa !5
  %552 = icmp slt i32 %550, %551
  br i1 %552, label %554, label %553

553:                                              ; preds = %549
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  br label %634

554:                                              ; preds = %549
  %555 = load i32, ptr %42, align 4, !tbaa !5
  %556 = sext i32 %555 to i64
  %557 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %556
  %558 = load i32, ptr %41, align 4, !tbaa !5
  %559 = sext i32 %558 to i64
  %560 = getelementptr inbounds [510 x i32], ptr %557, i64 0, i64 %559
  %561 = load i32, ptr %560, align 4, !tbaa !5
  %562 = icmp ne i32 %561, 1061109567
  br i1 %562, label %563, label %630

563:                                              ; preds = %554
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  store i32 0, ptr %43, align 4, !tbaa !5
  br label %564

564:                                              ; preds = %626, %563
  %565 = load i32, ptr %43, align 4, !tbaa !5
  %566 = load i32, ptr @m, align 4, !tbaa !5
  %567 = icmp slt i32 %565, %566
  br i1 %567, label %569, label %568

568:                                              ; preds = %564
  store i32 26, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  br label %629

569:                                              ; preds = %564
  %570 = load i32, ptr %41, align 4, !tbaa !5
  %571 = sext i32 %570 to i64
  %572 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %571
  %573 = load i32, ptr %43, align 4, !tbaa !5
  %574 = sext i32 %573 to i64
  %575 = getelementptr inbounds [510 x i32], ptr %572, i64 0, i64 %574
  %576 = load i32, ptr %575, align 4, !tbaa !5
  %577 = icmp ne i32 %576, 1061109567
  br i1 %577, label %578, label %625

578:                                              ; preds = %569
  %579 = load i32, ptr %42, align 4, !tbaa !5
  %580 = sext i32 %579 to i64
  %581 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %580
  %582 = load i32, ptr %43, align 4, !tbaa !5
  %583 = sext i32 %582 to i64
  %584 = getelementptr inbounds [510 x i32], ptr %581, i64 0, i64 %583
  %585 = load i32, ptr %584, align 4, !tbaa !5
  %586 = load i32, ptr %42, align 4, !tbaa !5
  %587 = sext i32 %586 to i64
  %588 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %587
  %589 = load i32, ptr %41, align 4, !tbaa !5
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds [510 x i32], ptr %588, i64 0, i64 %590
  %592 = load i32, ptr %591, align 4, !tbaa !5
  %593 = load i32, ptr %41, align 4, !tbaa !5
  %594 = sext i32 %593 to i64
  %595 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %594
  %596 = load i32, ptr %43, align 4, !tbaa !5
  %597 = sext i32 %596 to i64
  %598 = getelementptr inbounds [510 x i32], ptr %595, i64 0, i64 %597
  %599 = load i32, ptr %598, align 4, !tbaa !5
  %600 = add nsw i32 %592, %599
  %601 = icmp sgt i32 %585, %600
  br i1 %601, label %602, label %624

602:                                              ; preds = %578
  %603 = load i32, ptr %42, align 4, !tbaa !5
  %604 = sext i32 %603 to i64
  %605 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %604
  %606 = load i32, ptr %41, align 4, !tbaa !5
  %607 = sext i32 %606 to i64
  %608 = getelementptr inbounds [510 x i32], ptr %605, i64 0, i64 %607
  %609 = load i32, ptr %608, align 4, !tbaa !5
  %610 = load i32, ptr %41, align 4, !tbaa !5
  %611 = sext i32 %610 to i64
  %612 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %611
  %613 = load i32, ptr %43, align 4, !tbaa !5
  %614 = sext i32 %613 to i64
  %615 = getelementptr inbounds [510 x i32], ptr %612, i64 0, i64 %614
  %616 = load i32, ptr %615, align 4, !tbaa !5
  %617 = add nsw i32 %609, %616
  %618 = load i32, ptr %42, align 4, !tbaa !5
  %619 = sext i32 %618 to i64
  %620 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %619
  %621 = load i32, ptr %43, align 4, !tbaa !5
  %622 = sext i32 %621 to i64
  %623 = getelementptr inbounds [510 x i32], ptr %620, i64 0, i64 %622
  store i32 %617, ptr %623, align 4, !tbaa !5
  br label %624

624:                                              ; preds = %602, %578
  br label %625

625:                                              ; preds = %624, %569
  br label %626

626:                                              ; preds = %625
  %627 = load i32, ptr %43, align 4, !tbaa !5
  %628 = add nsw i32 %627, 1
  store i32 %628, ptr %43, align 4, !tbaa !5
  br label %564, !llvm.loop !22

629:                                              ; preds = %568
  br label %630

630:                                              ; preds = %629, %554
  br label %631

631:                                              ; preds = %630
  %632 = load i32, ptr %42, align 4, !tbaa !5
  %633 = add nsw i32 %632, 1
  store i32 %633, ptr %42, align 4, !tbaa !5
  br label %549, !llvm.loop !23

634:                                              ; preds = %553
  br label %635

635:                                              ; preds = %634
  %636 = load i32, ptr %41, align 4, !tbaa !5
  %637 = add nsw i32 %636, 1
  store i32 %637, ptr %41, align 4, !tbaa !5
  br label %543, !llvm.loop !24

638:                                              ; preds = %547
  store i32 1061109567, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #5
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %639

639:                                              ; preds = %663, %638
  %640 = load i32, ptr %44, align 4, !tbaa !5
  %641 = load i32, ptr @m, align 4, !tbaa !5
  %642 = icmp slt i32 %640, %641
  br i1 %642, label %644, label %643

643:                                              ; preds = %639
  store i32 29, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #5
  br label %666

644:                                              ; preds = %639
  %645 = load i32, ptr @ans, align 4, !tbaa !5
  %646 = load i32, ptr %44, align 4, !tbaa !5
  %647 = sext i32 %646 to i64
  %648 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %647
  %649 = load i32, ptr %44, align 4, !tbaa !5
  %650 = sext i32 %649 to i64
  %651 = getelementptr inbounds [510 x i32], ptr %648, i64 0, i64 %650
  %652 = load i32, ptr %651, align 4, !tbaa !5
  %653 = icmp sgt i32 %645, %652
  br i1 %653, label %654, label %662

654:                                              ; preds = %644
  %655 = load i32, ptr %44, align 4, !tbaa !5
  %656 = sext i32 %655 to i64
  %657 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %656
  %658 = load i32, ptr %44, align 4, !tbaa !5
  %659 = sext i32 %658 to i64
  %660 = getelementptr inbounds [510 x i32], ptr %657, i64 0, i64 %659
  %661 = load i32, ptr %660, align 4, !tbaa !5
  store i32 %661, ptr @ans, align 4, !tbaa !5
  br label %662

662:                                              ; preds = %654, %644
  br label %663

663:                                              ; preds = %662
  %664 = load i32, ptr %44, align 4, !tbaa !5
  %665 = add nsw i32 %664, 1
  store i32 %665, ptr %44, align 4, !tbaa !5
  br label %639, !llvm.loop !25

666:                                              ; preds = %643
  %667 = load i32, ptr @ans, align 4, !tbaa !5
  %668 = icmp eq i32 %667, 1061109567
  br i1 %668, label %669, label %670

669:                                              ; preds = %666
  br label %672

670:                                              ; preds = %666
  %671 = load i32, ptr @ans, align 4, !tbaa !5
  br label %672

672:                                              ; preds = %670, %669
  %673 = phi i32 [ -1, %669 ], [ %671, %670 ]
  %674 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %673)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %675

675:                                              ; preds = %672, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %676 = load i32, ptr %1, align 4
  ret i32 %676

677:                                              ; preds = %536
  unreachable
}

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !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
@m = external dso_local global i32, align 4
@g = external dso_local local_unnamed_addr global [510 x [510 x i32]], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@p = external dso_local global [510 x %struct.Point], align 16
@pp = external dso_local global [510 x %struct.Point], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %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
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %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 %struct.Point, align 8
  %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 double, align 8
  %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 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @m, ptr noundef nonnull @n)
  %27 = load i32, ptr @m, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %.preheader188

.preheader188:                                    ; preds = %.lr.ph, %0
  %29 = phi i32 [ %27, %0 ], [ %35, %.lr.ph ]
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph193, label %._crit_edge.thread

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %32 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %indvars.iv
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %32, ptr noundef nonnull %33)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = load i32, ptr @m, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next, %36
  br i1 %37, label %.lr.ph, label %.preheader188, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph193
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  %38 = icmp eq i32 %.pre, 1
  br i1 %38, label %.preheader, label %54

._crit_edge.thread:                               ; preds = %.preheader188
  %39 = icmp eq i32 %29, 1
  br i1 %39, label %._crit_edge222, label %54

.preheader:                                       ; preds = %._crit_edge
  %40 = icmp sgt i32 %44, 0
  br i1 %40, label %.lr.ph221, label %._crit_edge222

.lr.ph193:                                        ; preds = %.preheader188, %.lr.ph193
  %indvars.iv228 = phi i64 [ %indvars.iv.next229, %.lr.ph193 ], [ 0, %.preheader188 ]
  %41 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv228
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %41, ptr noundef nonnull %42)
  %indvars.iv.next229 = add nuw nsw i64 %indvars.iv228, 1
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next229, %45
  br i1 %46, label %.lr.ph193, label %._crit_edge, !llvm.loop !11

47:                                               ; preds = %.lr.ph221
  %indvars.iv.next258 = add nuw nsw i64 %indvars.iv257, 1
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %.not168 = icmp slt i64 %indvars.iv.next258, %49
  br i1 %.not168, label %.lr.ph221, label %._crit_edge222, !llvm.loop !12

.lr.ph221:                                        ; preds = %.preheader, %47
  %indvars.iv257 = phi i64 [ %indvars.iv.next258, %47 ], [ 0, %.preheader ]
  %50 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv257
  %51 = tail call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) @pp)
  br i1 %51, label %47, label %._crit_edge222

._crit_edge222:                                   ; preds = %47, %.lr.ph221, %._crit_edge.thread, %.preheader
  %52 = phi i32 [ 1, %.preheader ], [ 1, %._crit_edge.thread ], [ -1, %.lr.ph221 ], [ 1, %47 ]
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %52)
  br label %298

54:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %55 = phi i32 [ %29, %._crit_edge.thread ], [ %.pre, %._crit_edge ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1040400) @g, i8 63, i64 1040400, i1 false)
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.preheader187.lr.ph, label %._crit_edge214.thread

.preheader187.lr.ph:                              ; preds = %54
  %57 = getelementptr inbounds i8, ptr %1, i64 8
  %58 = getelementptr inbounds i8, ptr %2, i64 8
  %59 = getelementptr inbounds i8, ptr %3, i64 8
  %60 = getelementptr inbounds i8, ptr %4, i64 8
  %61 = getelementptr inbounds i8, ptr %5, i64 8
  %62 = getelementptr inbounds i8, ptr %6, i64 8
  %63 = getelementptr inbounds i8, ptr %7, i64 8
  %64 = getelementptr inbounds i8, ptr %8, i64 8
  %65 = getelementptr inbounds i8, ptr %9, i64 8
  %66 = getelementptr inbounds i8, ptr %10, i64 8
  %67 = getelementptr inbounds i8, ptr %11, i64 8
  %68 = getelementptr inbounds i8, ptr %12, i64 8
  %69 = getelementptr inbounds i8, ptr %13, i64 8
  %70 = getelementptr inbounds i8, ptr %14, i64 8
  %71 = getelementptr inbounds i8, ptr %15, i64 8
  %72 = getelementptr inbounds i8, ptr %16, i64 8
  %73 = getelementptr inbounds i8, ptr %17, i64 8
  %74 = getelementptr inbounds i8, ptr %18, i64 8
  %75 = getelementptr inbounds i8, ptr %20, i64 8
  %76 = getelementptr inbounds i8, ptr %19, i64 8
  %77 = getelementptr inbounds i8, ptr %22, i64 8
  %78 = getelementptr inbounds i8, ptr %23, i64 8
  %79 = getelementptr inbounds i8, ptr %24, i64 8
  %80 = getelementptr inbounds i8, ptr %25, i64 8
  br label %.preheader187

.preheader187:                                    ; preds = %.preheader187.lr.ph, %272
  %indvars.iv236 = phi i64 [ 0, %.preheader187.lr.ph ], [ %indvars.iv.next237, %272 ]
  %81 = load i32, ptr @n, align 4, !tbaa !5
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %.lr.ph199, label %._crit_edge200.thread

._crit_edge200.thread:                            ; preds = %.preheader187
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  br label %.critedge10

.lr.ph199:                                        ; preds = %.preheader187
  %83 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %indvars.iv236
  br label %98

.preheader186:                                    ; preds = %272
  %84 = icmp sgt i32 %273, 0
  br i1 %84, label %.preheader185.us.preheader, label %._crit_edge214.thread

.preheader185.us.preheader:                       ; preds = %.preheader186
  %wide.trip.count250 = zext nneg i32 %273 to i64
  br label %.preheader185.us

.preheader185.us:                                 ; preds = %.preheader185.us.preheader, %._crit_edge212.split.us.us
  %indvars.iv247 = phi i64 [ 0, %.preheader185.us.preheader ], [ %indvars.iv.next248, %._crit_edge212.split.us.us ]
  br label %85

85:                                               ; preds = %..loopexit_crit_edge.us.us, %.preheader185.us
  %indvars.iv242 = phi i64 [ %indvars.iv.next243, %..loopexit_crit_edge.us.us ], [ 0, %.preheader185.us ]
  %86 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %indvars.iv242, i64 %indvars.iv247
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %.not.us.us = icmp eq i32 %87, 1061109567
  br i1 %.not.us.us, label %..loopexit_crit_edge.us.us, label %.preheader184.us.us

.preheader184.us.us:                              ; preds = %85, %97
  %indvars.iv239 = phi i64 [ %indvars.iv.next240, %97 ], [ 0, %85 ]
  %88 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %indvars.iv247, i64 %indvars.iv239
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %.not161.us.us = icmp eq i32 %89, 1061109567
  br i1 %.not161.us.us, label %97, label %90

90:                                               ; preds = %.preheader184.us.us
  %91 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %indvars.iv242, i64 %indvars.iv239
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = load i32, ptr %86, align 4, !tbaa !5
  %94 = add nsw i32 %93, %89
  %95 = icmp sgt i32 %92, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %90
  store i32 %94, ptr %91, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %96, %90, %.preheader184.us.us
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next240, %wide.trip.count250
  br i1 %exitcond.not, label %..loopexit_crit_edge.us.us, label %.preheader184.us.us, !llvm.loop !13

..loopexit_crit_edge.us.us:                       ; preds = %97, %85
  %indvars.iv.next243 = add nuw nsw i64 %indvars.iv242, 1
  %exitcond246.not = icmp eq i64 %indvars.iv.next243, %wide.trip.count250
  br i1 %exitcond246.not, label %._crit_edge212.split.us.us, label %85, !llvm.loop !14

._crit_edge212.split.us.us:                       ; preds = %..loopexit_crit_edge.us.us
  %indvars.iv.next248 = add nuw nsw i64 %indvars.iv247, 1
  %exitcond251.not = icmp eq i64 %indvars.iv.next248, %wide.trip.count250
  br i1 %exitcond251.not, label %._crit_edge214, label %.preheader185.us, !llvm.loop !15

98:                                               ; preds = %.lr.ph199, %204
  %indvars.iv231 = phi i64 [ 0, %.lr.ph199 ], [ %indvars.iv.next232, %204 ]
  %.0148196 = phi i1 [ false, %.lr.ph199 ], [ %.1, %204 ]
  %.0149195 = phi i32 [ -1, %.lr.ph199 ], [ %.1150, %204 ]
  %.0151194 = phi i32 [ -1, %.lr.ph199 ], [ %.2153, %204 ]
  %99 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv231
  %100 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  br i1 %100, label %204, label %101

101:                                              ; preds = %98
  %.not162 = icmp ne i32 %.0151194, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %102 = icmp eq i32 %.0151194, %.0149195
  %or.cond169 = select i1 %.not162, i1 %102, i1 false
  br i1 %or.cond169, label %103, label %.critedge

103:                                              ; preds = %101
  %104 = sext i32 %.0149195 to i64
  %105 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %104
  %106 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %107 = extractvalue { double, double } %106, 0
  store double %107, ptr %1, align 8
  %108 = extractvalue { double, double } %106, 1
  store double %108, ptr %57, align 8
  %109 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %110 = extractvalue { double, double } %109, 0
  store double %110, ptr %2, align 8
  %111 = extractvalue { double, double } %109, 1
  store double %111, ptr %58, align 8
  %112 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %113 = call noundef i32 @_Z3sgnd(double noundef %112)
  %.not163 = icmp eq i32 %113, 0
  br i1 %.not163, label %114, label %.critedge

114:                                              ; preds = %103
  %115 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %116 = extractvalue { double, double } %115, 0
  store double %116, ptr %3, align 8
  %117 = extractvalue { double, double } %115, 1
  store double %117, ptr %59, align 8
  %118 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %119 = extractvalue { double, double } %118, 0
  store double %119, ptr %4, align 8
  %120 = extractvalue { double, double } %118, 1
  store double %120, ptr %60, align 8
  %121 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %122 = call noundef i32 @_Z3sgnd(double noundef %121)
  %.not164 = icmp eq i32 %122, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  %123 = trunc nuw nsw i64 %indvars.iv231 to i32
  br i1 %.not164, label %124, label %204

.critedge:                                        ; preds = %101, %103
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  br label %124

124:                                              ; preds = %.critedge, %114
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  br i1 %.0148196, label %125, label %.critedge2

125:                                              ; preds = %124
  %126 = sext i32 %.0151194 to i64
  %127 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %126
  %128 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %127, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %129 = extractvalue { double, double } %128, 0
  store double %129, ptr %5, align 8
  %130 = extractvalue { double, double } %128, 1
  store double %130, ptr %61, align 8
  %131 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %132 = extractvalue { double, double } %131, 0
  store double %132, ptr %6, align 8
  %133 = extractvalue { double, double } %131, 1
  store double %133, ptr %62, align 8
  %134 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %135 = call noundef i32 @_Z3sgnd(double noundef %134)
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %137, label %.critedge2

137:                                              ; preds = %125
  %138 = sext i32 %.0149195 to i64
  %139 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %138
  %140 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %139, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %141 = extractvalue { double, double } %140, 0
  store double %141, ptr %7, align 8
  %142 = extractvalue { double, double } %140, 1
  store double %142, ptr %63, align 8
  %143 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %144 = extractvalue { double, double } %143, 0
  store double %144, ptr %8, align 8
  %145 = extractvalue { double, double } %143, 1
  store double %145, ptr %64, align 8
  %146 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %147 = call noundef i32 @_Z3sgnd(double noundef %146)
  %148 = icmp slt i32 %147, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br i1 %148, label %204, label %149

.critedge2:                                       ; preds = %124, %125
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %149

149:                                              ; preds = %.critedge2, %137
  %150 = icmp eq i32 %.0151194, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  br i1 %150, label %.critedge4, label %151

151:                                              ; preds = %149
  %152 = sext i32 %.0151194 to i64
  %153 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %152
  %154 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %153, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %155 = extractvalue { double, double } %154, 0
  store double %155, ptr %9, align 8
  %156 = extractvalue { double, double } %154, 1
  store double %156, ptr %65, align 8
  %157 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %158 = extractvalue { double, double } %157, 0
  store double %158, ptr %10, align 8
  %159 = extractvalue { double, double } %157, 1
  store double %159, ptr %66, align 8
  %160 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %161 = call noundef i32 @_Z3sgnd(double noundef %160)
  %162 = icmp sgt i32 %161, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br i1 %162, label %163, label %178

.critedge4:                                       ; preds = %149
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br label %163

163:                                              ; preds = %.critedge4, %151
  %.not165 = icmp eq i32 %.0149195, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  br i1 %.not165, label %.thread, label %164

164:                                              ; preds = %163
  %165 = sext i32 %.0149195 to i64
  %166 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %165
  %167 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %166, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %168 = extractvalue { double, double } %167, 0
  store double %168, ptr %11, align 8
  %169 = extractvalue { double, double } %167, 1
  store double %169, ptr %67, align 8
  %170 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %171 = extractvalue { double, double } %170, 0
  store double %171, ptr %12, align 8
  %172 = extractvalue { double, double } %170, 1
  store double %172, ptr %68, align 8
  %173 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %174 = call noundef i32 @_Z3sgnd(double noundef %173)
  %175 = icmp slt i32 %174, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  %176 = trunc nuw nsw i64 %indvars.iv231 to i32
  br i1 %175, label %.thread176, label %.thread173

.thread173:                                       ; preds = %164
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  br label %180

.thread:                                          ; preds = %163
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  %177 = trunc nuw nsw i64 %indvars.iv231 to i32
  br label %.critedge8

178:                                              ; preds = %151
  %179 = icmp eq i32 %.0149195, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  br i1 %179, label %.critedge8, label %._crit_edge263

._crit_edge263:                                   ; preds = %178
  %.pre264 = sext i32 %.0149195 to i64
  br label %180

180:                                              ; preds = %._crit_edge263, %.thread173
  %.pre-phi265 = phi i64 [ %.pre264, %._crit_edge263 ], [ %165, %.thread173 ]
  %.1152175 = phi i32 [ %.0151194, %._crit_edge263 ], [ %176, %.thread173 ]
  %181 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %.pre-phi265
  %182 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %181, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %183 = extractvalue { double, double } %182, 0
  store double %183, ptr %13, align 8
  %184 = extractvalue { double, double } %182, 1
  store double %184, ptr %69, align 8
  %185 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %186 = extractvalue { double, double } %185, 0
  store double %186, ptr %14, align 8
  %187 = extractvalue { double, double } %185, 1
  store double %187, ptr %70, align 8
  %188 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %189 = call noundef i32 @_Z3sgnd(double noundef %188)
  %190 = icmp slt i32 %189, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  br i1 %190, label %191, label %204

.critedge8:                                       ; preds = %.thread, %178
  %.1152172 = phi i32 [ %177, %.thread ], [ %.0151194, %178 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  br label %191

191:                                              ; preds = %.critedge8, %180
  %.1152171 = phi i32 [ %.1152172, %.critedge8 ], [ %.1152175, %180 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  %192 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %193 = extractvalue { double, double } %192, 0
  store double %193, ptr %15, align 8
  %194 = extractvalue { double, double } %192, 1
  store double %194, ptr %71, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  %195 = sext i32 %.1152171 to i64
  %196 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %195
  %197 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %196, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %198 = extractvalue { double, double } %197, 0
  store double %198, ptr %16, align 8
  %199 = extractvalue { double, double } %197, 1
  store double %199, ptr %72, align 8
  %200 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %201 = call noundef i32 @_Z3sgnd(double noundef %200)
  %202 = icmp slt i32 %201, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  %203 = trunc nuw nsw i64 %indvars.iv231 to i32
  br i1 %202, label %.thread176, label %204

204:                                              ; preds = %137, %114, %180, %191, %98
  %.2153 = phi i32 [ %.0151194, %98 ], [ %.1152171, %191 ], [ %.1152175, %180 ], [ %123, %114 ], [ %.0149195, %137 ]
  %.1150 = phi i32 [ %.0149195, %98 ], [ %203, %191 ], [ %.0149195, %180 ], [ %.0149195, %114 ], [ %.0151194, %137 ]
  %.1 = phi i1 [ %.0148196, %98 ], [ %.0148196, %191 ], [ %.0148196, %180 ], [ true, %114 ], [ false, %137 ]
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %205 = load i32, ptr @n, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = icmp slt i64 %indvars.iv.next232, %206
  br i1 %207, label %98, label %._crit_edge200, !llvm.loop !16

.thread176:                                       ; preds = %164, %191
  %.3.ph = phi i32 [ %.1152171, %191 ], [ %176, %164 ]
  %.2.ph = phi i32 [ %203, %191 ], [ %.0149195, %164 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  br label %208

._crit_edge200:                                   ; preds = %204
  %.not166 = icmp eq i32 %.2153, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  br i1 %.not166, label %.critedge10, label %208

208:                                              ; preds = %.thread176, %._crit_edge200
  %.2182 = phi i32 [ %.2.ph, %.thread176 ], [ %.1150, %._crit_edge200 ]
  %.3181 = phi i32 [ %.3.ph, %.thread176 ], [ %.2153, %._crit_edge200 ]
  %209 = sext i32 %.2182 to i64
  %210 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %209
  %211 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %indvars.iv236
  %212 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %210, ptr noundef nonnull align 8 dereferenceable(16) %211)
  %213 = extractvalue { double, double } %212, 0
  store double %213, ptr %17, align 8
  %214 = extractvalue { double, double } %212, 1
  store double %214, ptr %73, align 8
  %215 = sext i32 %.3181 to i64
  %216 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %215
  %217 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %216, ptr noundef nonnull align 8 dereferenceable(16) %211)
  %218 = extractvalue { double, double } %217, 0
  store double %218, ptr %18, align 8
  %219 = extractvalue { double, double } %217, 1
  store double %219, ptr %74, align 8
  %220 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %221 = call noundef i32 @_Z3sgnd(double noundef %220)
  %222 = icmp slt i32 %221, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  br i1 %222, label %._crit_edge260, label %223

._crit_edge260:                                   ; preds = %208
  %.pre261 = load i32, ptr @m, align 4, !tbaa !5
  br label %272

.critedge10:                                      ; preds = %._crit_edge200.thread, %._crit_edge200
  %.0149.lcssa274 = phi i32 [ -1, %._crit_edge200.thread ], [ %.1150, %._crit_edge200 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  %.pre262 = sext i32 %.0149.lcssa274 to i64
  br label %223

223:                                              ; preds = %.critedge10, %208
  %.pre-phi = phi i64 [ %.pre262, %.critedge10 ], [ %209, %208 ]
  %.3180 = phi i32 [ -1, %.critedge10 ], [ %.3181, %208 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #5
  %224 = sext i32 %.3180 to i64
  %225 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %224
  %226 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %indvars.iv236
  %227 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %225, ptr noundef nonnull align 8 dereferenceable(16) %226)
  %228 = extractvalue { double, double } %227, 0
  store double %228, ptr %20, align 8
  %229 = extractvalue { double, double } %227, 1
  store double %229, ptr %75, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  store double -1.000000e+00, ptr %21, align 8, !tbaa !17
  %230 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %231 = extractvalue { double, double } %230, 0
  store double %231, ptr %19, align 8
  %232 = extractvalue { double, double } %230, 1
  store double %232, ptr %76, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #5
  %233 = getelementptr inbounds [510 x %struct.Point], ptr @p, i64 0, i64 %.pre-phi
  %234 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %233, ptr noundef nonnull align 8 dereferenceable(16) %226)
  %235 = extractvalue { double, double } %234, 0
  store double %235, ptr %22, align 8
  %236 = extractvalue { double, double } %234, 1
  store double %236, ptr %77, align 8
  %237 = load i32, ptr @m, align 4, !tbaa !5
  %238 = icmp sgt i32 %237, 0
  br i1 %238, label %.lr.ph204, label %._crit_edge205

._crit_edge205:                                   ; preds = %268, %223
  %239 = phi i32 [ %237, %223 ], [ %269, %268 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  br label %272

.lr.ph204:                                        ; preds = %223, %268
  %indvars.iv233 = phi i64 [ %indvars.iv.next234, %268 ], [ 0, %223 ]
  %.not167 = icmp eq i64 %indvars.iv236, %indvars.iv233
  br i1 %.not167, label %268, label %240

240:                                              ; preds = %.lr.ph204
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #5
  %241 = getelementptr inbounds [510 x %struct.Point], ptr @pp, i64 0, i64 %indvars.iv233
  %242 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %241, ptr noundef nonnull align 8 dereferenceable(16) %226)
  %243 = extractvalue { double, double } %242, 0
  store double %243, ptr %23, align 8
  %244 = extractvalue { double, double } %242, 1
  store double %244, ptr %78, align 8
  %245 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %246 = call noundef i32 @_Z3sgnd(double noundef %245)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #5
  %247 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %241, ptr noundef nonnull align 8 dereferenceable(16) %226)
  %248 = extractvalue { double, double } %247, 0
  store double %248, ptr %24, align 8
  %249 = extractvalue { double, double } %247, 1
  store double %249, ptr %79, align 8
  %250 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %251 = call noundef i32 @_Z3sgnd(double noundef %250)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #5
  %252 = icmp sgt i32 %246, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #5
  %253 = icmp slt i32 %251, 1
  %or.cond = and i1 %252, %253
  br i1 %or.cond, label %.critedge17, label %254

254:                                              ; preds = %240
  %255 = icmp sgt i32 %246, -1
  %256 = icmp slt i32 %251, 0
  %or.cond13 = and i1 %255, %256
  br i1 %or.cond13, label %.critedge17, label %257

257:                                              ; preds = %254
  %258 = or i32 %251, %246
  %or.cond15.not = icmp eq i32 %258, 0
  br i1 %or.cond15.not, label %259, label %.critedge19

259:                                              ; preds = %257
  %260 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %241, ptr noundef nonnull align 8 dereferenceable(16) %226)
  %261 = extractvalue { double, double } %260, 0
  store double %261, ptr %25, align 8
  %262 = extractvalue { double, double } %260, 1
  store double %262, ptr %80, align 8
  %263 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %264 = call noundef i32 @_Z3sgnd(double noundef %263)
  %265 = icmp sgt i32 %264, -1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #5
  br i1 %265, label %266, label %268

.critedge17:                                      ; preds = %254, %240
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #5
  br label %266

266:                                              ; preds = %.critedge17, %259
  %267 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %indvars.iv236, i64 %indvars.iv233
  store i32 1, ptr %267, align 4, !tbaa !5
  br label %268

.critedge19:                                      ; preds = %257
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #5
  br label %268

268:                                              ; preds = %259, %266, %.critedge19, %.lr.ph204
  %indvars.iv.next234 = add nuw nsw i64 %indvars.iv233, 1
  %269 = load i32, ptr @m, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = icmp slt i64 %indvars.iv.next234, %270
  br i1 %271, label %.lr.ph204, label %._crit_edge205, !llvm.loop !19

272:                                              ; preds = %._crit_edge260, %._crit_edge205
  %273 = phi i32 [ %.pre261, %._crit_edge260 ], [ %239, %._crit_edge205 ]
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %274 = sext i32 %273 to i64
  %275 = icmp slt i64 %indvars.iv.next237, %274
  br i1 %275, label %.preheader187, label %.preheader186, !llvm.loop !20

._crit_edge214.thread:                            ; preds = %.preheader186, %54
  store i32 1061109567, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge218.thread

._crit_edge214:                                   ; preds = %._crit_edge212.split.us.us
  store i32 1061109567, ptr @ans, align 4, !tbaa !5
  br i1 %84, label %.lr.ph217.preheader, label %._crit_edge218.thread

.lr.ph217.preheader:                              ; preds = %._crit_edge214
  %xtraiter = and i64 %wide.trip.count250, 1
  %276 = icmp eq i32 %273, 1
  br i1 %276, label %._crit_edge218.unr-lcssa, label %.lr.ph217.preheader.new

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

._crit_edge218.unr-lcssa:                         ; preds = %296, %.lr.ph217.preheader
  %.fr.lcssa.ph = phi i32 [ poison, %.lr.ph217.preheader ], [ %.fr.1, %296 ]
  %indvars.iv252.unr = phi i64 [ 0, %.lr.ph217.preheader ], [ %indvars.iv.next253.1, %296 ]
  %.unr = phi i32 [ 1061109567, %.lr.ph217.preheader ], [ %.fr.1, %296 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge218, label %.lr.ph217.epil

.lr.ph217.epil:                                   ; preds = %._crit_edge218.unr-lcssa
  %277 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %indvars.iv252.unr, i64 %indvars.iv252.unr
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %279 = freeze i32 %278
  %280 = icmp sgt i32 %.unr, %279
  br i1 %280, label %281, label %._crit_edge218

281:                                              ; preds = %.lr.ph217.epil
  store i32 %279, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge218

._crit_edge218:                                   ; preds = %.lr.ph217.epil, %281, %._crit_edge218.unr-lcssa
  %.fr.lcssa = phi i32 [ %.fr.lcssa.ph, %._crit_edge218.unr-lcssa ], [ %.unr, %.lr.ph217.epil ], [ %279, %281 ]
  %282 = icmp eq i32 %.fr.lcssa, 1061109567
  br i1 %282, label %._crit_edge218.thread, label %283

._crit_edge218.thread:                            ; preds = %._crit_edge214.thread, %._crit_edge214, %._crit_edge218
  br label %283

283:                                              ; preds = %._crit_edge218, %._crit_edge218.thread
  %284 = phi i32 [ -1, %._crit_edge218.thread ], [ %.fr.lcssa, %._crit_edge218 ]
  %285 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %284)
  br label %298

.lr.ph217:                                        ; preds = %296, %.lr.ph217.preheader.new
  %indvars.iv252 = phi i64 [ 0, %.lr.ph217.preheader.new ], [ %indvars.iv.next253.1, %296 ]
  %286 = phi i32 [ 1061109567, %.lr.ph217.preheader.new ], [ %.fr.1, %296 ]
  %niter = phi i64 [ 0, %.lr.ph217.preheader.new ], [ %niter.next.1, %296 ]
  %287 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %indvars.iv252, i64 %indvars.iv252
  %288 = load i32, ptr %287, align 8, !tbaa !5
  %289 = icmp sgt i32 %286, %288
  br i1 %289, label %290, label %.lr.ph217.1

290:                                              ; preds = %.lr.ph217
  store i32 %288, ptr @ans, align 4, !tbaa !5
  br label %.lr.ph217.1

.lr.ph217.1:                                      ; preds = %.lr.ph217, %290
  %291 = phi i32 [ %286, %.lr.ph217 ], [ %288, %290 ]
  %.fr = freeze i32 %291
  %indvars.iv.next253 = or disjoint i64 %indvars.iv252, 1
  %292 = getelementptr inbounds [510 x [510 x i32]], ptr @g, i64 0, i64 %indvars.iv.next253, i64 %indvars.iv.next253
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = icmp sgt i32 %.fr, %293
  br i1 %294, label %295, label %296

295:                                              ; preds = %.lr.ph217.1
  store i32 %293, ptr @ans, align 4, !tbaa !5
  br label %296

296:                                              ; preds = %295, %.lr.ph217.1
  %297 = phi i32 [ %.fr, %.lr.ph217.1 ], [ %293, %295 ]
  %.fr.1 = freeze i32 %297
  %indvars.iv.next253.1 = add nuw nsw i64 %indvars.iv252, 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_edge218.unr-lcssa, label %.lr.ph217, !llvm.loop !21

298:                                              ; preds = %283, %._crit_edge222
  ret i32 0
}

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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