; LLVM IR from tangjz/acm-icpc :: TDL_training/2015-11-02/upsolved (H - Triangles - tjz)

; 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 { i32, i32 }

@n = external dso_local global [3 x i32], align 4
@x0 = external dso_local global i32, align 4
@y0 = external dso_local global i32, align 4
@cnt = external dso_local global [2 x [101 x [101 x i32]]], align 16
@ans0 = external dso_local global i32, align 4
@ans1 = external dso_local global i32, align 4
@p = external dso_local global [3 x [101 x %struct.Point]], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %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 i32, align 4
  %12 = alloca %struct.Point, align 4
  %13 = alloca %struct.Point, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  store i32 -10007, ptr @x0, align 4, !tbaa !5
  store i32 -10009, ptr @y0, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %335, %0
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef getelementptr inbounds (i32, ptr @n, i64 1), ptr noundef getelementptr inbounds (i32, ptr @n, i64 2))
  %21 = icmp eq i32 %20, 3
  br i1 %21, label %22, label %31

22:                                               ; preds = %19
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sge i32 %23, 0
  br i1 %24, label %25, label %31

25:                                               ; preds = %22
  %26 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 1), align 4, !tbaa !5
  %27 = icmp sge i32 %26, 0
  br i1 %27, label %28, label %31

28:                                               ; preds = %25
  %29 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 2), align 4, !tbaa !5
  %30 = icmp sge i32 %29, 0
  br label %31

31:                                               ; preds = %28, %25, %22, %19
  %32 = phi i1 [ false, %25 ], [ false, %22 ], [ false, %19 ], [ %30, %28 ]
  br i1 %32, label %34, label %33

33:                                               ; preds = %31
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %338

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

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

38:                                               ; preds = %35
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %71

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

40:                                               ; preds = %64, %39
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [3 x i32], ptr @n, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = icmp slt i32 %41, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %40
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %67

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

64:                                               ; preds = %48
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %5, align 4, !tbaa !5
  br label %40, !llvm.loop !9

67:                                               ; preds = %47
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %4, align 4, !tbaa !5
  br label %35, !llvm.loop !11

71:                                               ; preds = %38
  %72 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 2), align 4, !tbaa !5
  %73 = icmp slt i32 %72, 3
  br i1 %73, label %74, label %77

74:                                               ; preds = %71
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %75)
  br label %335

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

78:                                               ; preds = %116, %77
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = icmp slt i32 %79, 3
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %119

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %112, %82
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [3 x i32], ptr @n, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = icmp slt i32 %84, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %83
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %115

91:                                               ; preds = %83
  %92 = load i32, ptr @x0, align 4, !tbaa !5
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 %94
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [101 x %struct.Point], ptr %95, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.Point, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 8, !tbaa !12
  %101 = sub nsw i32 %100, %92
  store i32 %101, ptr %99, align 8, !tbaa !12
  %102 = load i32, ptr @y0, align 4, !tbaa !5
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 %104
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [101 x %struct.Point], ptr %105, i64 0, i64 %107
  %109 = getelementptr inbounds %struct.Point, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 4, !tbaa !14
  %111 = sub nsw i32 %110, %102
  store i32 %111, ptr %109, align 4, !tbaa !14
  br label %112

112:                                              ; preds = %91
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %7, align 4, !tbaa !5
  br label %83, !llvm.loop !15

115:                                              ; preds = %90
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %6, align 4, !tbaa !5
  br label %78, !llvm.loop !16

119:                                              ; preds = %81
  %120 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 2), align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %struct.Point, ptr getelementptr inbounds ([3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2), i64 %121
  call void @_ZSt4sortIP5PointEvT_S2_(ptr noundef getelementptr inbounds ([3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2), ptr noundef %122)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %230, %119
  %124 = load i32, ptr %8, align 4, !tbaa !5
  %125 = icmp slt i32 %124, 2
  br i1 %125, label %127, label %126

126:                                              ; preds = %123
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %233

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %226, %127
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 2), align 4, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %133, label %132

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

133:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %10, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %222, %133
  %137 = load i32, ptr %10, align 4, !tbaa !5
  %138 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 2), align 4, !tbaa !5
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %225

141:                                              ; preds = %136
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [2 x [101 x [101 x i32]]], ptr @cnt, i64 0, i64 %143
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [101 x [101 x i32]], ptr %144, i64 0, i64 %146
  %148 = load i32, ptr %10, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [101 x i32], ptr %147, i64 0, i64 %149
  store i32 0, ptr %150, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %218, %141
  %152 = load i32, ptr %11, align 4, !tbaa !5
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [3 x i32], ptr @n, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = icmp slt i32 %152, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %151
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %221

159:                                              ; preds = %151
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds ([3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2), i64 0, i64 %161
  %163 = load i32, ptr %8, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 %164
  %166 = load i32, ptr %11, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [101 x %struct.Point], ptr %165, i64 0, i64 %167
  %169 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %162, ptr noundef nonnull align 4 dereferenceable(8) %168)
  %170 = icmp sge i32 %169, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  br i1 %170, label %171, label %203

171:                                              ; preds = %159
  %172 = load i32, ptr %10, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds ([3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2), i64 0, i64 %173
  %175 = load i32, ptr %8, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 %176
  %178 = load i32, ptr %11, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [101 x %struct.Point], ptr %177, i64 0, i64 %179
  %181 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %174, ptr noundef nonnull align 4 dereferenceable(8) %180)
  %182 = icmp sle i32 %181, 0
  br i1 %182, label %183, label %203

183:                                              ; preds = %171
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds ([3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2), i64 0, i64 %185
  %187 = load i32, ptr %9, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds ([3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2), i64 0, i64 %188
  %190 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %186, ptr noundef nonnull align 4 dereferenceable(8) %189)
  store i64 %190, ptr %12, align 4
  %191 = load i32, ptr %8, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 %192
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [101 x %struct.Point], ptr %193, i64 0, i64 %195
  %197 = load i32, ptr %9, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds ([3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2), i64 0, i64 %198
  %200 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %196, ptr noundef nonnull align 4 dereferenceable(8) %199)
  store i64 %200, ptr %13, align 4
  %201 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %202 = icmp sle i32 %201, 0
  br label %203

203:                                              ; preds = %183, %171, %159
  %204 = phi i1 [ false, %171 ], [ false, %159 ], [ %202, %183 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br i1 %204, label %205, label %217

205:                                              ; preds = %203
  %206 = load i32, ptr %8, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [2 x [101 x [101 x i32]]], ptr @cnt, i64 0, i64 %207
  %209 = load i32, ptr %9, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [101 x [101 x i32]], ptr %208, i64 0, i64 %210
  %212 = load i32, ptr %10, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [101 x i32], ptr %211, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %214, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %205, %203
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %11, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %11, align 4, !tbaa !5
  br label %151, !llvm.loop !17

221:                                              ; preds = %158
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %10, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %10, align 4, !tbaa !5
  br label %136, !llvm.loop !18

225:                                              ; preds = %140
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %9, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %9, align 4, !tbaa !5
  br label %128, !llvm.loop !19

229:                                              ; preds = %132
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %8, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %8, align 4, !tbaa !5
  br label %123, !llvm.loop !20

233:                                              ; preds = %126
  store i32 0, ptr @ans1, align 4, !tbaa !5
  store i32 0, ptr @ans0, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %327, %233
  %235 = load i32, ptr %14, align 4, !tbaa !5
  %236 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 2), align 4, !tbaa !5
  %237 = icmp slt i32 %235, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %234
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %330

239:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %240 = load i32, ptr %14, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %15, align 4, !tbaa !5
  br label %242

242:                                              ; preds = %323, %239
  %243 = load i32, ptr %15, align 4, !tbaa !5
  %244 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 2), align 4, !tbaa !5
  %245 = icmp slt i32 %243, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %242
  store i32 32, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %326

247:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %248 = load i32, ptr %15, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %16, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %319, %247
  %251 = load i32, ptr %16, align 4, !tbaa !5
  %252 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @n, i64 0, i64 2), align 4, !tbaa !5
  %253 = icmp slt i32 %251, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %250
  store i32 35, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %322

255:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %256 = load i32, ptr %14, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [101 x [101 x i32]], ptr @cnt, i64 0, i64 %257
  %259 = load i32, ptr %15, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [101 x i32], ptr %258, i64 0, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = load i32, ptr %15, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [101 x [101 x i32]], ptr @cnt, i64 0, i64 %264
  %266 = load i32, ptr %16, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [101 x i32], ptr %265, i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = add nsw i32 %262, %269
  %271 = load i32, ptr %14, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [101 x [101 x i32]], ptr @cnt, i64 0, i64 %272
  %274 = load i32, ptr %16, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [101 x i32], ptr %273, i64 0, i64 %275
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = sub nsw i32 %270, %277
  %279 = call i32 @llvm.abs.i32(i32 %278, i1 true)
  store i32 %279, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %280 = load i32, ptr %14, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [101 x [101 x i32]], ptr getelementptr inbounds ([2 x [101 x [101 x i32]]], ptr @cnt, i64 0, i64 1), i64 0, i64 %281
  %283 = load i32, ptr %15, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [101 x i32], ptr %282, i64 0, i64 %284
  %286 = load i32, ptr %285, align 4, !tbaa !5
  %287 = load i32, ptr %15, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [101 x [101 x i32]], ptr getelementptr inbounds ([2 x [101 x [101 x i32]]], ptr @cnt, i64 0, i64 1), i64 0, i64 %288
  %290 = load i32, ptr %16, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [101 x i32], ptr %289, i64 0, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = add nsw i32 %286, %293
  %295 = load i32, ptr %14, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [101 x [101 x i32]], ptr getelementptr inbounds ([2 x [101 x [101 x i32]]], ptr @cnt, i64 0, i64 1), i64 0, i64 %296
  %298 = load i32, ptr %16, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [101 x i32], ptr %297, i64 0, i64 %299
  %301 = load i32, ptr %300, align 4, !tbaa !5
  %302 = sub nsw i32 %294, %301
  %303 = call i32 @llvm.abs.i32(i32 %302, i1 true)
  store i32 %303, ptr %18, align 4, !tbaa !5
  %304 = load i32, ptr %17, align 4, !tbaa !5
  %305 = load i32, ptr %18, align 4, !tbaa !5
  %306 = icmp slt i32 %304, %305
  br i1 %306, label %307, label %310

307:                                              ; preds = %255
  %308 = load i32, ptr @ans1, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr @ans1, align 4, !tbaa !5
  br label %318

310:                                              ; preds = %255
  %311 = load i32, ptr %17, align 4, !tbaa !5
  %312 = load i32, ptr %18, align 4, !tbaa !5
  %313 = icmp sgt i32 %311, %312
  br i1 %313, label %314, label %317

314:                                              ; preds = %310
  %315 = load i32, ptr @ans0, align 4, !tbaa !5
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr @ans0, align 4, !tbaa !5
  br label %317

317:                                              ; preds = %314, %310
  br label %318

318:                                              ; preds = %317, %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %16, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %16, align 4, !tbaa !5
  br label %250, !llvm.loop !21

322:                                              ; preds = %254
  br label %323

323:                                              ; preds = %322
  %324 = load i32, ptr %15, align 4, !tbaa !5
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %15, align 4, !tbaa !5
  br label %242, !llvm.loop !22

326:                                              ; preds = %246
  br label %327

327:                                              ; preds = %326
  %328 = load i32, ptr %14, align 4, !tbaa !5
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %14, align 4, !tbaa !5
  br label %234, !llvm.loop !23

330:                                              ; preds = %238
  %331 = load i32, ptr %2, align 4, !tbaa !5
  %332 = load i32, ptr @ans0, align 4, !tbaa !5
  %333 = load i32, ptr @ans1, align 4, !tbaa !5
  %334 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %331, i32 noundef %332, i32 noundef %333)
  br label %335

335:                                              ; preds = %330, %74
  %336 = load i32, ptr %2, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr %2, align 4, !tbaa !5
  br label %19, !llvm.loop !24

338:                                              ; preds = %33
  ret i32 0
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Point = type { i32, i32 }

@n = external dso_local global [3 x i32], align 4
@x0 = external dso_local local_unnamed_addr global i32, align 4
@y0 = external dso_local local_unnamed_addr global i32, align 4
@cnt = external dso_local local_unnamed_addr global [2 x [101 x [101 x i32]]], align 16
@ans0 = external dso_local local_unnamed_addr global i32, align 4
@ans1 = external dso_local local_unnamed_addr global i32, align 4
@p = external dso_local global [3 x [101 x %struct.Point]], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  store i32 -10007, ptr @x0, align 4, !tbaa !5
  store i32 -10009, ptr @y0, align 4, !tbaa !5
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull getelementptr inbounds (i8, ptr @n, i64 4), ptr noundef nonnull getelementptr inbounds (i8, ptr @n, i64 8))
  %4 = icmp eq i32 %3, 3
  %5 = load i32, ptr @n, align 4
  %6 = icmp sgt i32 %5, -1
  %or.cond154 = select i1 %4, i1 %6, i1 false
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 4), align 4
  %8 = icmp sgt i32 %7, -1
  %or.cond3155 = select i1 %or.cond154, i1 %8, i1 false
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 8), align 4
  %10 = icmp sgt i32 %9, -1
  %or.cond7156 = select i1 %or.cond3155, i1 %10, i1 false
  br i1 %or.cond7156, label %.preheader98, label %.critedge

.preheader98:                                     ; preds = %0, %223
  %11 = phi i32 [ %229, %223 ], [ %7, %0 ]
  %12 = phi i32 [ %227, %223 ], [ %5, %0 ]
  %.0157 = phi i32 [ %224, %223 ], [ 1, %0 ]
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.critedge:                                        ; preds = %223, %0
  ret i32 0

.preheader97:                                     ; preds = %._crit_edge.2
  %13 = load i32, ptr @x0, align 4
  %14 = load i32, ptr @y0, align 4
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph102.preheader, label %._crit_edge103

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 4), align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader98
  %17 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %11, %.preheader98 ]
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph.1 ], [ 0, %._crit_edge ]
  %19 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 1, i64 %indvars.iv.1
  %20 = getelementptr inbounds i8, ptr %19, i64 4
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %19, ptr noundef nonnull %20)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 4), align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = icmp slt i64 %indvars.iv.next.1, %23
  br i1 %24, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !9

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 8), align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph.2, label %._crit_edge.2.thread

.lr.ph.2:                                         ; preds = %._crit_edge.1, %.lr.ph.2
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %.lr.ph.2 ], [ 0, %._crit_edge.1 ]
  %27 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2, i64 %indvars.iv.2
  %28 = getelementptr inbounds i8, ptr %27, i64 4
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %27, ptr noundef nonnull %28)
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 8), align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = icmp slt i64 %indvars.iv.next.2, %31
  br i1 %32, label %.lr.ph.2, label %._crit_edge.2, !llvm.loop !9

._crit_edge.2:                                    ; preds = %.lr.ph.2
  %33 = icmp slt i32 %30, 3
  br i1 %33, label %._crit_edge.2.thread, label %.preheader97

.lr.ph:                                           ; preds = %.preheader98, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader98 ]
  %34 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 0, i64 %indvars.iv
  %35 = getelementptr inbounds i8, ptr %34, i64 4
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %34, ptr noundef nonnull %35)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !9

._crit_edge.2.thread:                             ; preds = %._crit_edge.1, %._crit_edge.2
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.0157)
  br label %223

.lr.ph102.preheader:                              ; preds = %.preheader97
  %wide.trip.count = zext nneg i32 %15 to i64
  %min.iters.check258 = icmp ult i32 %15, 4
  br i1 %min.iters.check258, label %.lr.ph102.preheader279, label %vector.ph259

.lr.ph102.preheader279:                           ; preds = %middle.block256, %.lr.ph102.preheader
  %indvars.iv164.ph = phi i64 [ 0, %.lr.ph102.preheader ], [ %n.vec261, %middle.block256 ]
  br label %.lr.ph102

vector.ph259:                                     ; preds = %.lr.ph102.preheader
  %n.vec261 = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert271 = insertelement <2 x i32> poison, i32 %13, i64 0
  %broadcast.splat272 = shufflevector <2 x i32> %broadcast.splatinsert271, <2 x i32> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert273 = insertelement <2 x i32> poison, i32 %14, i64 0
  %broadcast.splat274 = shufflevector <2 x i32> %broadcast.splatinsert273, <2 x i32> poison, <2 x i32> zeroinitializer
  br label %vector.body263

vector.body263:                                   ; preds = %vector.body263, %vector.ph259
  %index264 = phi i64 [ 0, %vector.ph259 ], [ %index.next277, %vector.body263 ]
  %41 = or disjoint i64 %index264, 2
  %42 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 0, i64 %index264
  %43 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 0, i64 %41
  %wide.vec265 = load <4 x i32>, ptr %42, align 16, !tbaa !5
  %wide.vec266 = load <4 x i32>, ptr %43, align 16, !tbaa !5
  %strided.vec267 = shufflevector <4 x i32> %wide.vec265, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec268 = shufflevector <4 x i32> %wide.vec266, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec269 = shufflevector <4 x i32> %wide.vec265, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec270 = shufflevector <4 x i32> %wide.vec266, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
  %44 = sub nsw <2 x i32> %strided.vec267, %broadcast.splat272
  %45 = sub nsw <2 x i32> %strided.vec268, %broadcast.splat272
  %46 = sub nsw <2 x i32> %strided.vec269, %broadcast.splat274
  %47 = sub nsw <2 x i32> %strided.vec270, %broadcast.splat274
  %interleaved.vec275 = shufflevector <2 x i32> %44, <2 x i32> %46, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec275, ptr %42, align 16, !tbaa !5
  %interleaved.vec276 = shufflevector <2 x i32> %45, <2 x i32> %47, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec276, ptr %43, align 16, !tbaa !5
  %index.next277 = add nuw i64 %index264, 4
  %48 = icmp eq i64 %index.next277, %n.vec261
  br i1 %48, label %middle.block256, label %vector.body263, !llvm.loop !11

middle.block256:                                  ; preds = %vector.body263
  %cmp.n278 = icmp eq i64 %n.vec261, %wide.trip.count
  br i1 %cmp.n278, label %._crit_edge103, label %.lr.ph102.preheader279

._crit_edge103:                                   ; preds = %.lr.ph102, %middle.block256, %.preheader97
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 4), align 4, !tbaa !5
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.lr.ph102.preheader.1, label %.lr.ph102.preheader.2

.lr.ph102.preheader.1:                            ; preds = %._crit_edge103
  %wide.trip.count.1 = zext nneg i32 %49 to i64
  %min.iters.check235 = icmp ult i32 %49, 4
  br i1 %min.iters.check235, label %.lr.ph102.1.preheader, label %vector.ph236

vector.ph236:                                     ; preds = %.lr.ph102.preheader.1
  %n.vec238 = and i64 %wide.trip.count.1, 2147483644
  %broadcast.splatinsert248 = insertelement <2 x i32> poison, i32 %13, i64 0
  %broadcast.splat249 = shufflevector <2 x i32> %broadcast.splatinsert248, <2 x i32> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert250 = insertelement <2 x i32> poison, i32 %14, i64 0
  %broadcast.splat251 = shufflevector <2 x i32> %broadcast.splatinsert250, <2 x i32> poison, <2 x i32> zeroinitializer
  br label %vector.body240

vector.body240:                                   ; preds = %vector.body240, %vector.ph236
  %index241 = phi i64 [ 0, %vector.ph236 ], [ %index.next254, %vector.body240 ]
  %51 = or disjoint i64 %index241, 2
  %52 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 1, i64 %index241
  %53 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 1, i64 %51
  %wide.vec242 = load <4 x i32>, ptr %52, align 8, !tbaa !5
  %wide.vec243 = load <4 x i32>, ptr %53, align 8, !tbaa !5
  %strided.vec244 = shufflevector <4 x i32> %wide.vec242, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec245 = shufflevector <4 x i32> %wide.vec243, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec246 = shufflevector <4 x i32> %wide.vec242, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec247 = shufflevector <4 x i32> %wide.vec243, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
  %54 = sub nsw <2 x i32> %strided.vec244, %broadcast.splat249
  %55 = sub nsw <2 x i32> %strided.vec245, %broadcast.splat249
  %56 = sub nsw <2 x i32> %strided.vec246, %broadcast.splat251
  %57 = sub nsw <2 x i32> %strided.vec247, %broadcast.splat251
  %interleaved.vec252 = shufflevector <2 x i32> %54, <2 x i32> %56, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec252, ptr %52, align 8, !tbaa !5
  %interleaved.vec253 = shufflevector <2 x i32> %55, <2 x i32> %57, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec253, ptr %53, align 8, !tbaa !5
  %index.next254 = add nuw i64 %index241, 4
  %58 = icmp eq i64 %index.next254, %n.vec238
  br i1 %58, label %middle.block233, label %vector.body240, !llvm.loop !14

middle.block233:                                  ; preds = %vector.body240
  %cmp.n255 = icmp eq i64 %n.vec238, %wide.trip.count.1
  br i1 %cmp.n255, label %.lr.ph102.preheader.2, label %.lr.ph102.1.preheader

.lr.ph102.1.preheader:                            ; preds = %middle.block233, %.lr.ph102.preheader.1
  %indvars.iv164.1.ph = phi i64 [ 0, %.lr.ph102.preheader.1 ], [ %n.vec238, %middle.block233 ]
  br label %.lr.ph102.1

.lr.ph102.1:                                      ; preds = %.lr.ph102.1.preheader, %.lr.ph102.1
  %indvars.iv164.1 = phi i64 [ %indvars.iv.next165.1, %.lr.ph102.1 ], [ %indvars.iv164.1.ph, %.lr.ph102.1.preheader ]
  %59 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 1, i64 %indvars.iv164.1
  %60 = load i32, ptr %59, align 8, !tbaa !15
  %61 = sub nsw i32 %60, %13
  store i32 %61, ptr %59, align 8, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %59, i64 4
  %63 = load i32, ptr %62, align 4, !tbaa !17
  %64 = sub nsw i32 %63, %14
  store i32 %64, ptr %62, align 4, !tbaa !17
  %indvars.iv.next165.1 = add nuw nsw i64 %indvars.iv164.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next165.1, %wide.trip.count.1
  br i1 %exitcond.1.not, label %.lr.ph102.preheader.2, label %.lr.ph102.1, !llvm.loop !18

.lr.ph102.preheader.2:                            ; preds = %.lr.ph102.1, %middle.block233, %._crit_edge103
  %wide.trip.count.2 = zext nneg i32 %30 to i64
  %min.iters.check = icmp eq i32 %30, 3
  br i1 %min.iters.check, label %.lr.ph102.2.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph102.preheader.2
  %n.vec = and i64 %wide.trip.count.2, 2147483644
  %broadcast.splatinsert = insertelement <2 x i32> poison, i32 %13, i64 0
  %broadcast.splat = shufflevector <2 x i32> %broadcast.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert230 = insertelement <2 x i32> poison, i32 %14, i64 0
  %broadcast.splat231 = shufflevector <2 x i32> %broadcast.splatinsert230, <2 x i32> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %65 = or disjoint i64 %index, 2
  %66 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2, i64 %index
  %67 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2, i64 %65
  %wide.vec = load <4 x i32>, ptr %66, align 16, !tbaa !5
  %wide.vec226 = load <4 x i32>, ptr %67, align 16, !tbaa !5
  %strided.vec = shufflevector <4 x i32> %wide.vec, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec227 = shufflevector <4 x i32> %wide.vec226, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec228 = shufflevector <4 x i32> %wide.vec, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec229 = shufflevector <4 x i32> %wide.vec226, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
  %68 = sub nsw <2 x i32> %strided.vec, %broadcast.splat
  %69 = sub nsw <2 x i32> %strided.vec227, %broadcast.splat
  %70 = sub nsw <2 x i32> %strided.vec228, %broadcast.splat231
  %71 = sub nsw <2 x i32> %strided.vec229, %broadcast.splat231
  %interleaved.vec = shufflevector <2 x i32> %68, <2 x i32> %70, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec, ptr %66, align 16, !tbaa !5
  %interleaved.vec232 = shufflevector <2 x i32> %69, <2 x i32> %71, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec232, ptr %67, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %72 = icmp eq i64 %index.next, %n.vec
  br i1 %72, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count.2
  br i1 %cmp.n, label %._crit_edge103.2, label %.lr.ph102.2.preheader

.lr.ph102.2.preheader:                            ; preds = %middle.block, %.lr.ph102.preheader.2
  %indvars.iv164.2.ph = phi i64 [ 0, %.lr.ph102.preheader.2 ], [ %n.vec, %middle.block ]
  br label %.lr.ph102.2

.lr.ph102.2:                                      ; preds = %.lr.ph102.2.preheader, %.lr.ph102.2
  %indvars.iv164.2 = phi i64 [ %indvars.iv.next165.2, %.lr.ph102.2 ], [ %indvars.iv164.2.ph, %.lr.ph102.2.preheader ]
  %73 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 2, i64 %indvars.iv164.2
  %74 = load i32, ptr %73, align 8, !tbaa !15
  %75 = sub nsw i32 %74, %13
  store i32 %75, ptr %73, align 8, !tbaa !15
  %76 = getelementptr inbounds i8, ptr %73, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !17
  %78 = sub nsw i32 %77, %14
  store i32 %78, ptr %76, align 4, !tbaa !17
  %indvars.iv.next165.2 = add nuw nsw i64 %indvars.iv164.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next165.2, %wide.trip.count.2
  br i1 %exitcond.2.not, label %._crit_edge103.2, label %.lr.ph102.2, !llvm.loop !20

._crit_edge103.2:                                 ; preds = %.lr.ph102.2, %middle.block
  %79 = getelementptr inbounds %struct.Point, ptr getelementptr inbounds (i8, ptr @p, i64 1616), i64 %wide.trip.count.2
  call void @_ZSt4sortIP5PointEvT_S2_(ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 1616), ptr noundef nonnull %79)
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 8), align 4, !tbaa !5
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %.lr.ph113, label %._crit_edge153.sink.split

.lr.ph102:                                        ; preds = %.lr.ph102.preheader279, %.lr.ph102
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %.lr.ph102 ], [ %indvars.iv164.ph, %.lr.ph102.preheader279 ]
  %82 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 0, i64 %indvars.iv164
  %83 = load i32, ptr %82, align 8, !tbaa !15
  %84 = sub nsw i32 %83, %13
  store i32 %84, ptr %82, align 8, !tbaa !15
  %85 = getelementptr inbounds i8, ptr %82, i64 4
  %86 = load i32, ptr %85, align 4, !tbaa !17
  %87 = sub nsw i32 %86, %14
  store i32 %87, ptr %85, align 4, !tbaa !17
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next165, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge103, label %.lr.ph102, !llvm.loop !21

.split117.us:                                     ; preds = %.loopexit93.1
  store i32 0, ptr @ans1, align 4, !tbaa !5
  store i32 0, ptr @ans0, align 4, !tbaa !5
  %88 = icmp sgt i32 %137, 0
  br i1 %88, label %.lr.ph152.preheader, label %._crit_edge153

.lr.ph152.preheader:                              ; preds = %.split117.us
  %89 = zext nneg i32 %137 to i64
  %wide.trip.count203 = zext nneg i32 %137 to i64
  br label %.lr.ph152

.loopexit93.loopexit:                             ; preds = %._crit_edge108
  %.pre207 = sext i32 %160 to i64
  br label %.loopexit93

.loopexit93:                                      ; preds = %.lr.ph111.split.us, %.loopexit93.loopexit, %.lr.ph113
  %.pre-phi = phi i64 [ %145, %.lr.ph111.split.us ], [ %.pre207, %.loopexit93.loopexit ], [ %145, %.lr.ph113 ]
  %90 = phi i32 [ %139, %.lr.ph111.split.us ], [ %160, %.loopexit93.loopexit ], [ %139, %.lr.ph113 ]
  %91 = icmp slt i64 %indvar.next172, %.pre-phi
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  br i1 %91, label %.lr.ph113, label %._crit_edge114, !llvm.loop !22

._crit_edge114:                                   ; preds = %.loopexit93
  %92 = icmp sgt i32 %90, 0
  br i1 %92, label %.lr.ph113.1, label %._crit_edge153.sink.split

.lr.ph113.1:                                      ; preds = %._crit_edge114, %.loopexit93.1
  %93 = phi i32 [ %137, %.loopexit93.1 ], [ %90, %._crit_edge114 ]
  %indvars.iv173.1 = phi i64 [ %indvars.iv.next174.1, %.loopexit93.1 ], [ 1, %._crit_edge114 ]
  %indvar171.1 = phi i64 [ %indvar.next172.1, %.loopexit93.1 ], [ 0, %._crit_edge114 ]
  %94 = mul nuw nsw i64 %indvar171.1, 408
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @cnt, i64 40808), i64 %94
  %95 = trunc i64 %indvar171.1 to i32
  %96 = add i32 %95, 2
  %97 = trunc i64 %indvar171.1 to i32
  %indvar.next172.1 = add nuw nsw i64 %indvar171.1, 1
  %98 = sext i32 %93 to i64
  %99 = icmp slt i64 %indvar.next172.1, %98
  br i1 %99, label %.lr.ph111.1, label %.loopexit93.1

.lr.ph111.1:                                      ; preds = %.lr.ph113.1
  %100 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds (i8, ptr @p, i64 1616), i64 0, i64 %indvar171.1
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 4), align 4, !tbaa !5
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.lr.ph111.split.1, label %.lr.ph111.split.us.1

.lr.ph111.split.us.1:                             ; preds = %.lr.ph111.1
  %smax.1 = call i32 @llvm.smax.i32(i32 %93, i32 %96)
  %reass.sub212 = sub i32 %smax.1, %97
  %103 = add i32 %reass.sub212, -2
  %104 = zext i32 %103 to i64
  %105 = shl nuw nsw i64 %104, 2
  %106 = add nuw nsw i64 %105, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep, i8 0, i64 %106, i1 false), !tbaa !5
  br label %.loopexit93.1

.lr.ph111.split.1:                                ; preds = %.lr.ph111.1, %._crit_edge108.1
  %107 = phi i32 [ %132, %._crit_edge108.1 ], [ %93, %.lr.ph111.1 ]
  %108 = phi i32 [ %133, %._crit_edge108.1 ], [ %93, %.lr.ph111.1 ]
  %109 = phi i32 [ %134, %._crit_edge108.1 ], [ %101, %.lr.ph111.1 ]
  %indvars.iv181.1 = phi i64 [ %indvars.iv.next182.1, %._crit_edge108.1 ], [ %indvars.iv173.1, %.lr.ph111.1 ]
  %110 = getelementptr inbounds [2 x [101 x [101 x i32]]], ptr @cnt, i64 0, i64 1, i64 %indvar171.1, i64 %indvars.iv181.1
  store i32 0, ptr %110, align 4, !tbaa !5
  %111 = icmp sgt i32 %109, 0
  br i1 %111, label %.lr.ph107.1, label %._crit_edge108.1

.lr.ph107.1:                                      ; preds = %.lr.ph111.split.1
  %112 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds (i8, ptr @p, i64 1616), i64 0, i64 %indvars.iv181.1
  br label %113

113:                                              ; preds = %128, %.lr.ph107.1
  %indvars.iv178.1 = phi i64 [ 0, %.lr.ph107.1 ], [ %indvars.iv.next179.1, %128 ]
  %114 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 1, i64 %indvars.iv178.1
  %115 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %100, ptr noundef nonnull align 4 dereferenceable(8) %114)
  %116 = icmp sgt i32 %115, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  br i1 %116, label %117, label %.critedge5.1

117:                                              ; preds = %113
  %118 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %112, ptr noundef nonnull align 4 dereferenceable(8) %114)
  %119 = icmp slt i32 %118, 1
  br i1 %119, label %120, label %.critedge5.1

.critedge5.1:                                     ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  br label %128

120:                                              ; preds = %117
  %121 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %112, ptr noundef nonnull align 4 dereferenceable(8) %100)
  store i64 %121, ptr %1, align 8
  %122 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %114, ptr noundef nonnull align 4 dereferenceable(8) %100)
  store i64 %122, ptr %2, align 8
  %123 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %124 = icmp slt i32 %123, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  br i1 %124, label %125, label %128

125:                                              ; preds = %120
  %126 = load i32, ptr %110, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %110, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %125, %120, %.critedge5.1
  %indvars.iv.next179.1 = add nuw nsw i64 %indvars.iv178.1, 1
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 4), align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = icmp slt i64 %indvars.iv.next179.1, %130
  br i1 %131, label %113, label %._crit_edge108.loopexit.1, !llvm.loop !23

._crit_edge108.loopexit.1:                        ; preds = %128
  %.pre206 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 8), align 4, !tbaa !5
  br label %._crit_edge108.1

._crit_edge108.1:                                 ; preds = %._crit_edge108.loopexit.1, %.lr.ph111.split.1
  %132 = phi i32 [ %.pre206, %._crit_edge108.loopexit.1 ], [ %107, %.lr.ph111.split.1 ]
  %133 = phi i32 [ %.pre206, %._crit_edge108.loopexit.1 ], [ %108, %.lr.ph111.split.1 ]
  %134 = phi i32 [ %129, %._crit_edge108.loopexit.1 ], [ %109, %.lr.ph111.split.1 ]
  %indvars.iv.next182.1 = add nuw nsw i64 %indvars.iv181.1, 1
  %135 = trunc nuw i64 %indvars.iv.next182.1 to i32
  %136 = icmp sgt i32 %133, %135
  br i1 %136, label %.lr.ph111.split.1, label %.loopexit93.loopexit.1, !llvm.loop !24

.loopexit93.loopexit.1:                           ; preds = %._crit_edge108.1
  %.pre208 = sext i32 %132 to i64
  br label %.loopexit93.1

.loopexit93.1:                                    ; preds = %.loopexit93.loopexit.1, %.lr.ph111.split.us.1, %.lr.ph113.1
  %.pre-phi209 = phi i64 [ %.pre208, %.loopexit93.loopexit.1 ], [ %98, %.lr.ph111.split.us.1 ], [ %98, %.lr.ph113.1 ]
  %137 = phi i32 [ %132, %.loopexit93.loopexit.1 ], [ %93, %.lr.ph111.split.us.1 ], [ %93, %.lr.ph113.1 ]
  %138 = icmp slt i64 %indvar.next172.1, %.pre-phi209
  %indvars.iv.next174.1 = add nuw nsw i64 %indvars.iv173.1, 1
  br i1 %138, label %.lr.ph113.1, label %.split117.us, !llvm.loop !22

.lr.ph113:                                        ; preds = %._crit_edge103.2, %.loopexit93
  %139 = phi i32 [ %90, %.loopexit93 ], [ %80, %._crit_edge103.2 ]
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %.loopexit93 ], [ 1, %._crit_edge103.2 ]
  %indvar171 = phi i64 [ %indvar.next172, %.loopexit93 ], [ 0, %._crit_edge103.2 ]
  %140 = mul nuw nsw i64 %indvar171, 408
  %141 = or disjoint i64 %140, 4
  %scevgep = getelementptr i8, ptr @cnt, i64 %141
  %142 = trunc i64 %indvar171 to i32
  %143 = add i32 %142, 2
  %144 = trunc i64 %indvar171 to i32
  %indvar.next172 = add nuw nsw i64 %indvar171, 1
  %145 = sext i32 %139 to i64
  %146 = icmp slt i64 %indvar.next172, %145
  br i1 %146, label %.lr.ph111, label %.loopexit93

.lr.ph111:                                        ; preds = %.lr.ph113
  %147 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds (i8, ptr @p, i64 1616), i64 0, i64 %indvar171
  %148 = load i32, ptr @n, align 4, !tbaa !5
  %149 = icmp sgt i32 %148, 0
  br i1 %149, label %.lr.ph111.split, label %.lr.ph111.split.us

.lr.ph111.split.us:                               ; preds = %.lr.ph111
  %smax = call i32 @llvm.smax.i32(i32 %139, i32 %143)
  %reass.sub = sub i32 %smax, %144
  %150 = add i32 %reass.sub, -2
  %151 = zext i32 %150 to i64
  %152 = shl nuw nsw i64 %151, 2
  %153 = add nuw nsw i64 %152, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %scevgep, i8 0, i64 %153, i1 false), !tbaa !5
  br label %.loopexit93

.lr.ph111.split:                                  ; preds = %.lr.ph111, %._crit_edge108
  %154 = phi i32 [ %160, %._crit_edge108 ], [ %139, %.lr.ph111 ]
  %155 = phi i32 [ %161, %._crit_edge108 ], [ %139, %.lr.ph111 ]
  %156 = phi i32 [ %162, %._crit_edge108 ], [ %148, %.lr.ph111 ]
  %indvars.iv181 = phi i64 [ %indvars.iv.next182, %._crit_edge108 ], [ %indvars.iv173, %.lr.ph111 ]
  %157 = getelementptr inbounds [2 x [101 x [101 x i32]]], ptr @cnt, i64 0, i64 0, i64 %indvar171, i64 %indvars.iv181
  store i32 0, ptr %157, align 4, !tbaa !5
  %158 = icmp sgt i32 %156, 0
  br i1 %158, label %.lr.ph107, label %._crit_edge108

.lr.ph107:                                        ; preds = %.lr.ph111.split
  %159 = getelementptr inbounds [101 x %struct.Point], ptr getelementptr inbounds (i8, ptr @p, i64 1616), i64 0, i64 %indvars.iv181
  br label %165

._crit_edge108.loopexit:                          ; preds = %180
  %.pre205 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 8), align 4, !tbaa !5
  br label %._crit_edge108

._crit_edge108:                                   ; preds = %._crit_edge108.loopexit, %.lr.ph111.split
  %160 = phi i32 [ %.pre205, %._crit_edge108.loopexit ], [ %154, %.lr.ph111.split ]
  %161 = phi i32 [ %.pre205, %._crit_edge108.loopexit ], [ %155, %.lr.ph111.split ]
  %162 = phi i32 [ %181, %._crit_edge108.loopexit ], [ %156, %.lr.ph111.split ]
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %163 = trunc nuw i64 %indvars.iv.next182 to i32
  %164 = icmp sgt i32 %161, %163
  br i1 %164, label %.lr.ph111.split, label %.loopexit93.loopexit, !llvm.loop !24

165:                                              ; preds = %.lr.ph107, %180
  %indvars.iv178 = phi i64 [ 0, %.lr.ph107 ], [ %indvars.iv.next179, %180 ]
  %166 = getelementptr inbounds [3 x [101 x %struct.Point]], ptr @p, i64 0, i64 0, i64 %indvars.iv178
  %167 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %147, ptr noundef nonnull align 4 dereferenceable(8) %166)
  %168 = icmp sgt i32 %167, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  br i1 %168, label %169, label %.critedge5

169:                                              ; preds = %165
  %170 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %159, ptr noundef nonnull align 4 dereferenceable(8) %166)
  %171 = icmp slt i32 %170, 1
  br i1 %171, label %172, label %.critedge5

172:                                              ; preds = %169
  %173 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %159, ptr noundef nonnull align 4 dereferenceable(8) %147)
  store i64 %173, ptr %1, align 8
  %174 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %166, ptr noundef nonnull align 4 dereferenceable(8) %147)
  store i64 %174, ptr %2, align 8
  %175 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %176 = icmp slt i32 %175, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  br i1 %176, label %177, label %180

177:                                              ; preds = %172
  %178 = load i32, ptr %157, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %157, align 4, !tbaa !5
  br label %180

.critedge5:                                       ; preds = %165, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  br label %180

180:                                              ; preds = %172, %177, %.critedge5
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %181 = load i32, ptr @n, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = icmp slt i64 %indvars.iv.next179, %182
  br i1 %183, label %165, label %._crit_edge108.loopexit, !llvm.loop !23

.loopexit94:                                      ; preds = %.loopexit, %.lr.ph152
  %ans1.promoted126142 = phi i32 [ %ans1.promoted126147148, %.lr.ph152 ], [ %ans1.promoted126143, %.loopexit ]
  %ans0.promoted121136 = phi i32 [ %ans0.promoted121141149, %.lr.ph152 ], [ %ans0.promoted121137, %.loopexit ]
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond204.not = icmp eq i64 %indvars.iv.next201, %wide.trip.count203
  br i1 %exitcond204.not, label %._crit_edge153, label %.lr.ph152, !llvm.loop !26

._crit_edge153.sink.split:                        ; preds = %._crit_edge114, %._crit_edge103.2
  store i32 0, ptr @ans1, align 4, !tbaa !5
  store i32 0, ptr @ans0, align 4, !tbaa !5
  br label %._crit_edge153

._crit_edge153:                                   ; preds = %.loopexit94, %._crit_edge153.sink.split, %.split117.us
  %184 = phi i32 [ 0, %.split117.us ], [ 0, %._crit_edge153.sink.split ], [ %ans1.promoted126142, %.loopexit94 ]
  %185 = phi i32 [ 0, %.split117.us ], [ 0, %._crit_edge153.sink.split ], [ %ans0.promoted121136, %.loopexit94 ]
  %186 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.0157, i32 noundef %185, i32 noundef %184)
  br label %223

.lr.ph152:                                        ; preds = %.lr.ph152.preheader, %.loopexit94
  %indvars.iv200 = phi i64 [ 0, %.lr.ph152.preheader ], [ %indvars.iv.next201, %.loopexit94 ]
  %indvars.iv193 = phi i64 [ 1, %.lr.ph152.preheader ], [ %indvars.iv.next194, %.loopexit94 ]
  %indvars.iv186 = phi i64 [ 2, %.lr.ph152.preheader ], [ %indvars.iv.next187, %.loopexit94 ]
  %ans0.promoted121141149 = phi i32 [ 0, %.lr.ph152.preheader ], [ %ans0.promoted121136, %.loopexit94 ]
  %ans1.promoted126147148 = phi i32 [ 0, %.lr.ph152.preheader ], [ %ans1.promoted126142, %.loopexit94 ]
  %indvars.iv.next201 = add nuw nsw i64 %indvars.iv200, 1
  %187 = icmp ult i64 %indvars.iv.next201, %89
  br i1 %187, label %.lr.ph135, label %.loopexit94

.loopexit:                                        ; preds = %218, %.lr.ph135
  %ans1.promoted126143 = phi i32 [ %ans1.promoted126146, %.lr.ph135 ], [ %ans1.promoted126144, %218 ]
  %ans0.promoted121137 = phi i32 [ %ans0.promoted121140, %.lr.ph135 ], [ %ans0.promoted121138, %218 ]
  %ans1.promoted127 = phi i32 [ %ans1.promoted130131, %.lr.ph135 ], [ %ans1.promoted128, %218 ]
  %ans0.promoted122 = phi i32 [ %ans0.promoted125132, %.lr.ph135 ], [ %ans0.promoted123, %218 ]
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond199.not = icmp eq i64 %indvars.iv.next196, %wide.trip.count203
  br i1 %exitcond199.not, label %.loopexit94, label %.lr.ph135, !llvm.loop !27

.lr.ph135:                                        ; preds = %.lr.ph152, %.loopexit
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %.loopexit ], [ %indvars.iv193, %.lr.ph152 ]
  %indvars.iv188 = phi i64 [ %indvars.iv.next189, %.loopexit ], [ %indvars.iv186, %.lr.ph152 ]
  %ans1.promoted126146 = phi i32 [ %ans1.promoted126143, %.loopexit ], [ %ans1.promoted126147148, %.lr.ph152 ]
  %ans0.promoted121140 = phi i32 [ %ans0.promoted121137, %.loopexit ], [ %ans0.promoted121141149, %.lr.ph152 ]
  %ans0.promoted125132 = phi i32 [ %ans0.promoted122, %.loopexit ], [ %ans0.promoted121141149, %.lr.ph152 ]
  %ans1.promoted130131 = phi i32 [ %ans1.promoted127, %.loopexit ], [ %ans1.promoted126147148, %.lr.ph152 ]
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %188 = trunc nuw i64 %indvars.iv.next196 to i32
  %189 = icmp sgt i32 %137, %188
  br i1 %189, label %.lr.ph120, label %.loopexit

.lr.ph120:                                        ; preds = %.lr.ph135
  %190 = getelementptr inbounds [101 x [101 x i32]], ptr @cnt, i64 0, i64 %indvars.iv200, i64 %indvars.iv195
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = getelementptr inbounds [101 x [101 x i32]], ptr getelementptr inbounds (i8, ptr @cnt, i64 40804), i64 0, i64 %indvars.iv200, i64 %indvars.iv195
  %193 = load i32, ptr %192, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %.lr.ph120, %218
  %indvars.iv190 = phi i64 [ %indvars.iv188, %.lr.ph120 ], [ %indvars.iv.next191, %218 ]
  %ans1.promoted126145 = phi i32 [ %ans1.promoted126146, %.lr.ph120 ], [ %ans1.promoted126144, %218 ]
  %ans0.promoted121139 = phi i32 [ %ans0.promoted121140, %.lr.ph120 ], [ %ans0.promoted121138, %218 ]
  %ans1.promoted129 = phi i32 [ %ans1.promoted130131, %.lr.ph120 ], [ %ans1.promoted128, %218 ]
  %ans0.promoted124 = phi i32 [ %ans0.promoted125132, %.lr.ph120 ], [ %ans0.promoted123, %218 ]
  %195 = phi i32 [ %ans0.promoted125132, %.lr.ph120 ], [ %220, %218 ]
  %196 = phi i32 [ %ans1.promoted130131, %.lr.ph120 ], [ %219, %218 ]
  %197 = getelementptr inbounds [101 x [101 x i32]], ptr @cnt, i64 0, i64 %indvars.iv195, i64 %indvars.iv190
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = add nsw i32 %198, %191
  %200 = getelementptr inbounds [101 x [101 x i32]], ptr @cnt, i64 0, i64 %indvars.iv200, i64 %indvars.iv190
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = sub i32 %199, %201
  %203 = call i32 @llvm.abs.i32(i32 %202, i1 true)
  %204 = getelementptr inbounds [101 x [101 x i32]], ptr getelementptr inbounds (i8, ptr @cnt, i64 40804), i64 0, i64 %indvars.iv195, i64 %indvars.iv190
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = add nsw i32 %205, %193
  %207 = getelementptr inbounds [101 x [101 x i32]], ptr getelementptr inbounds (i8, ptr @cnt, i64 40804), i64 0, i64 %indvars.iv200, i64 %indvars.iv190
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = sub i32 %206, %208
  %210 = call i32 @llvm.abs.i32(i32 %209, i1 true)
  %211 = icmp ult i32 %203, %210
  br i1 %211, label %212, label %214

212:                                              ; preds = %194
  %213 = add nsw i32 %196, 1
  store i32 %213, ptr @ans1, align 4, !tbaa !5
  br label %218

214:                                              ; preds = %194
  %215 = icmp ugt i32 %203, %210
  br i1 %215, label %216, label %218

216:                                              ; preds = %214
  %217 = add nsw i32 %195, 1
  store i32 %217, ptr @ans0, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %214, %216, %212
  %ans1.promoted126144 = phi i32 [ %ans1.promoted126145, %214 ], [ %ans1.promoted126145, %216 ], [ %213, %212 ]
  %ans0.promoted121138 = phi i32 [ %ans0.promoted121139, %214 ], [ %217, %216 ], [ %ans0.promoted121139, %212 ]
  %ans1.promoted128 = phi i32 [ %ans1.promoted129, %214 ], [ %ans1.promoted129, %216 ], [ %213, %212 ]
  %ans0.promoted123 = phi i32 [ %ans0.promoted124, %214 ], [ %217, %216 ], [ %ans0.promoted124, %212 ]
  %219 = phi i32 [ %196, %214 ], [ %196, %216 ], [ %213, %212 ]
  %220 = phi i32 [ %195, %214 ], [ %217, %216 ], [ %195, %212 ]
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %221 = trunc nuw i64 %indvars.iv.next191 to i32
  %222 = icmp sgt i32 %137, %221
  br i1 %222, label %194, label %.loopexit, !llvm.loop !28

223:                                              ; preds = %._crit_edge153, %._crit_edge.2.thread
  %224 = add nuw nsw i32 %.0157, 1
  %225 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull getelementptr inbounds (i8, ptr @n, i64 4), ptr noundef nonnull getelementptr inbounds (i8, ptr @n, i64 8))
  %226 = icmp eq i32 %225, 3
  %227 = load i32, ptr @n, align 4
  %228 = icmp sgt i32 %227, -1
  %or.cond = select i1 %226, i1 %228, i1 false
  %229 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 4), align 4
  %230 = icmp sgt i32 %229, -1
  %or.cond3 = select i1 %or.cond, i1 %230, i1 false
  %231 = load i32, ptr getelementptr inbounds (i8, ptr @n, i64 8), align 4
  %232 = icmp sgt i32 %231, -1
  %or.cond7 = select i1 %or.cond3, i1 %232, i1 false
  br i1 %or.cond7, label %.preheader98, label %.critedge, !llvm.loop !29
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10, !12, !13}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTS5Point", !6, i64 0, !6, i64 4}
!17 = !{!16, !6, i64 4}
!18 = distinct !{!18, !10, !13, !12}
!19 = distinct !{!19, !10, !12, !13}
!20 = distinct !{!20, !10, !13, !12}
!21 = distinct !{!21, !10, !13, !12}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10, !25}
!25 = !{!"llvm.loop.unswitch.partial.disable"}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass