; LLVM IR from tangjz/acm-icpc :: codechef/MAY18/NONCONVX.ll (Z6check2v)

; 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 }
%class.anon = type { i8 }

@n = external dso_local global i32, align 4
@ord = external dso_local global [201 x i32], align 16
@sz = external dso_local global i32, align 4
@idx = external dso_local global [201 x i32], align 16
@ans = external dso_local global i64, align 8
@q = external dso_local global [201 x %struct.Point], align 16
@out = external dso_local global [201 x %struct.Point], align 16
@_ZZ6check2vE1a = external hidden global [201 x %struct.Point], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6check2v() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.Point, align 4
  %6 = alloca %class.anon, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.Point, align 4
  %14 = alloca %struct.Point, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %35, %0
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %18 = icmp sle i32 %16, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %38

20:                                               ; preds = %15
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %22
  %24 = getelementptr inbounds %struct.Point, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = add nsw i32 %26, %25
  store i32 %27, ptr %1, align 4, !tbaa !5
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %29
  %31 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 4, !tbaa !11
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = add nsw i32 %33, %32
  store i32 %34, ptr %2, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %20
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %3, align 4, !tbaa !5
  br label %15, !llvm.loop !12

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

39:                                               ; preds = %68, %38
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load i32, ptr @n, align 4, !tbaa !5
  %42 = icmp sle i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %71

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %45 = getelementptr inbounds %struct.Point, ptr %5, i32 0, i32 0
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %47
  %49 = getelementptr inbounds %struct.Point, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !9
  %51 = load i32, ptr @n, align 4, !tbaa !5
  %52 = mul nsw i32 %50, %51
  %53 = load i32, ptr %1, align 4, !tbaa !5
  %54 = sub nsw i32 %52, %53
  store i32 %54, ptr %45, align 4, !tbaa !9
  %55 = getelementptr inbounds %struct.Point, ptr %5, i32 0, i32 1
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %57
  %59 = getelementptr inbounds %struct.Point, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !11
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %62 = mul nsw i32 %60, %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = sub nsw i32 %62, %63
  store i32 %64, ptr %55, align 4, !tbaa !11
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [201 x %struct.Point], ptr @_ZZ6check2vE1a, i64 0, i64 %66
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %68

68:                                               ; preds = %44
  %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 %39, !llvm.loop !15

71:                                               ; preds = %43
  %72 = load i32, ptr @n, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr @ord, i64 %73
  %75 = getelementptr inbounds i32, ptr %74, i64 1
  call void @"_ZSt4sortIPiZ6check2vE3$_0EvT_S2_T0_"(ptr noundef getelementptr inbounds (i32, ptr @ord, i64 1), ptr noundef %75)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %76 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %76, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %120, %71
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = load i32, ptr @n, align 4, !tbaa !5
  %80 = icmp sle i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %124

82:                                               ; preds = %77
  br label %83

83:                                               ; preds = %106, %82
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %86 = icmp sle i32 %84, %85
  br i1 %86, label %87, label %103

87:                                               ; preds = %83
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [201 x %struct.Point], ptr @_ZZ6check2vE1a, i64 0, i64 %92
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [201 x %struct.Point], ptr @_ZZ6check2vE1a, i64 0, i64 %98
  %100 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %93, ptr noundef nonnull align 4 dereferenceable(8) %99)
  %101 = icmp ne i64 %100, 0
  %102 = xor i1 %101, true
  br label %103

103:                                              ; preds = %87, %83
  %104 = phi i1 [ false, %83 ], [ %102, %87 ]
  br i1 %104, label %105, label %109

105:                                              ; preds = %103
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %8, align 4, !tbaa !5
  br label %83, !llvm.loop !16

109:                                              ; preds = %103
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %119

112:                                              ; preds = %109
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr @ord, i64 %114
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr @ord, i64 %117
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef %115, ptr noundef %118)
  br label %119

119:                                              ; preds = %112, %109
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %121, ptr %7, align 4, !tbaa !5
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = xor i32 %122, 1
  store i32 %123, ptr %9, align 4, !tbaa !5
  br label %77, !llvm.loop !17

124:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %125 = load i32, ptr @n, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %129
  %131 = load i32, ptr getelementptr inbounds ([201 x i32], ptr @ord, i64 0, i64 1), align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %132
  %134 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %130, ptr noundef nonnull align 4 dereferenceable(8) %133)
  store i64 %134, ptr %10, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %157, %124
  %136 = load i32, ptr %11, align 4, !tbaa !5
  %137 = load i32, ptr @n, align 4, !tbaa !5
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %160

140:                                              ; preds = %135
  %141 = load i32, ptr %11, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %145
  %147 = load i32, ptr %11, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %152
  %154 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %146, ptr noundef nonnull align 4 dereferenceable(8) %153)
  %155 = load i64, ptr %10, align 8, !tbaa !18
  %156 = add nsw i64 %155, %154
  store i64 %156, ptr %10, align 8, !tbaa !18
  br label %157

157:                                              ; preds = %140
  %158 = load i32, ptr %11, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %11, align 4, !tbaa !5
  br label %135, !llvm.loop !20

160:                                              ; preds = %139
  %161 = load i64, ptr %10, align 8, !tbaa !18
  %162 = call noundef i64 @_ZSt3absx(i64 noundef %161)
  store i64 %162, ptr %10, align 8, !tbaa !18
  %163 = load i64, ptr @ans, align 8, !tbaa !18
  %164 = load i64, ptr %10, align 8, !tbaa !18
  %165 = icmp sgt i64 %163, %164
  br i1 %165, label %166, label %234

166:                                              ; preds = %160
  %167 = load i64, ptr %10, align 8, !tbaa !18
  store i64 %167, ptr @ans, align 8, !tbaa !18
  store i32 0, ptr @sz, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %230, %166
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = load i32, ptr @n, align 4, !tbaa !5
  %171 = icmp sle i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %233

173:                                              ; preds = %168
  %174 = load i32, ptr %12, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %175
  %177 = load i32, ptr %12, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [201 x %struct.Point], ptr @out, i64 0, i64 %178
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %179, ptr align 8 %176, i64 8, i1 false), !tbaa.struct !14
  br label %180

180:                                              ; preds = %218, %173
  %181 = load i32, ptr @sz, align 4, !tbaa !5
  %182 = icmp sgt i32 %181, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  br i1 %182, label %183, label %215

183:                                              ; preds = %180
  %184 = load i32, ptr @sz, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %188
  %190 = load i32, ptr @sz, align 4, !tbaa !5
  %191 = sub nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %195
  %197 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %189, ptr noundef nonnull align 4 dereferenceable(8) %196)
  store i64 %197, ptr %13, align 4
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %202
  %204 = load i32, ptr @sz, align 4, !tbaa !5
  %205 = sub nsw i32 %204, 1
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %209
  %211 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %203, ptr noundef nonnull align 4 dereferenceable(8) %210)
  store i64 %211, ptr %14, align 4
  %212 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %213 = icmp ne i64 %212, 0
  %214 = xor i1 %213, true
  br label %215

215:                                              ; preds = %183, %180
  %216 = phi i1 [ false, %180 ], [ %214, %183 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br i1 %216, label %217, label %221

217:                                              ; preds = %215
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr @sz, align 4, !tbaa !5
  %220 = add nsw i32 %219, -1
  store i32 %220, ptr @sz, align 4, !tbaa !5
  br label %180, !llvm.loop !21

221:                                              ; preds = %215
  %222 = load i32, ptr %12, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = load i32, ptr @sz, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr @sz, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %228
  store i32 %225, ptr %229, align 4, !tbaa !5
  br label %230

230:                                              ; preds = %221
  %231 = load i32, ptr %12, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %12, align 4, !tbaa !5
  br label %168, !llvm.loop !22

233:                                              ; preds = %172
  br label %234

234:                                              ; preds = %233, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPiZ6check2vE3$_0EvT_S2_T0_"(ptr noundef, ptr noundef) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) #5

; 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

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

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

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


; 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 local_unnamed_addr global i32, align 4
@ord = external dso_local global [201 x i32], align 16
@sz = external dso_local local_unnamed_addr global i32, align 4
@idx = external dso_local local_unnamed_addr global [201 x i32], align 16
@ans = external dso_local local_unnamed_addr global i64, align 8
@q = external dso_local global [201 x %struct.Point], align 16
@out = external dso_local local_unnamed_addr global [201 x %struct.Point], align 16
@_ZZ6check2vE1a = external hidden global [201 x %struct.Point], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6check2v() local_unnamed_addr #0 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %.not63 = icmp slt i32 %3, 1
  br i1 %.not63, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %4 = add nuw i32 %3, 1
  %wide.trip.count = zext i32 %4 to i64
  %5 = zext nneg i32 %3 to i64
  %min.iters.check = icmp ult i32 %3, 8
  br i1 %min.iters.check, label %.lr.ph.preheader145, label %vector.ph

.lr.ph.preheader145:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.04566.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %14, %middle.block ]
  %.04665.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %15, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %5, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %9, %vector.body ]
  %vec.phi131 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %10, %vector.body ]
  %vec.phi132 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %11, %vector.body ]
  %vec.phi133 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %12, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %6 = or disjoint i64 %index, 5
  %7 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %offset.idx
  %8 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %6
  %wide.vec = load <8 x i32>, ptr %7, align 8, !tbaa !5
  %wide.vec134 = load <8 x i32>, ptr %8, align 8, !tbaa !5
  %strided.vec = shufflevector <8 x i32> %wide.vec, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec135 = shufflevector <8 x i32> %wide.vec134, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec136 = shufflevector <8 x i32> %wide.vec, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %strided.vec137 = shufflevector <8 x i32> %wide.vec134, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %9 = add <4 x i32> %strided.vec, %vec.phi
  %10 = add <4 x i32> %strided.vec135, %vec.phi131
  %11 = add <4 x i32> %strided.vec136, %vec.phi132
  %12 = add <4 x i32> %strided.vec137, %vec.phi133
  %index.next = add nuw i64 %index, 8
  %13 = icmp eq i64 %index.next, %n.vec
  br i1 %13, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %10, %9
  %14 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %bin.rdx138 = add <4 x i32> %12, %11
  %15 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx138)
  %cmp.n = icmp eq i64 %n.vec, %5
  br i1 %cmp.n, label %.preheader61, label %.lr.ph.preheader145

.preheader61:                                     ; preds = %.lr.ph, %middle.block
  %.lcssa130 = phi i32 [ %14, %middle.block ], [ %20, %.lr.ph ]
  %.lcssa129 = phi i32 [ %15, %middle.block ], [ %23, %.lr.ph ]
  br i1 %.not63, label %._crit_edge, label %.lr.ph71.preheader

.lr.ph71.preheader:                               ; preds = %.preheader61
  %16 = zext nneg i32 %3 to i64
  %xtraiter = and i64 %16, 1
  %17 = icmp eq i32 %4, 2
  br i1 %17, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph71.preheader.new

.lr.ph71.preheader.new:                           ; preds = %.lr.ph71.preheader
  %unroll_iter = and i64 %16, 2147483646
  br label %.lr.ph71

.lr.ph:                                           ; preds = %.lr.ph.preheader145, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader145 ]
  %.04566 = phi i32 [ %20, %.lr.ph ], [ %.04566.ph, %.lr.ph.preheader145 ]
  %.04665 = phi i32 [ %23, %.lr.ph ], [ %.04665.ph, %.lr.ph.preheader145 ]
  %18 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %indvars.iv
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = add nsw i32 %19, %.04566
  %21 = getelementptr inbounds i8, ptr %18, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !15
  %23 = add nsw i32 %22, %.04665
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader61, label %.lr.ph, !llvm.loop !16

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph71, %.lr.ph71.preheader
  %indvars.iv100.unr = phi i64 [ 1, %.lr.ph71.preheader ], [ %indvars.iv.next101.1, %.lr.ph71 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph71.epil

.lr.ph71.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa
  %24 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %indvars.iv100.unr
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = mul nsw i32 %25, %3
  %27 = sub nsw i32 %26, %.lcssa130
  %28 = getelementptr inbounds i8, ptr %24, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !15
  %30 = mul nsw i32 %29, %3
  %31 = sub nsw i32 %30, %.lcssa129
  %32 = getelementptr inbounds [201 x %struct.Point], ptr @_ZZ6check2vE1a, i64 0, i64 %indvars.iv100.unr
  store i32 %27, ptr %32, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx.epil = getelementptr inbounds i8, ptr %32, i64 4
  store i32 %31, ptr %.sroa.4.0..sroa_idx.epil, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph71.epil, %._crit_edge.loopexit.unr-lcssa, %0, %.preheader61
  %33 = sext i32 %3 to i64
  %34 = getelementptr inbounds i32, ptr @ord, i64 %33
  %35 = getelementptr inbounds i8, ptr %34, i64 4
  tail call void @"_ZSt4sortIPiZ6check2vE3$_0EvT_S2_T0_"(ptr noundef nonnull getelementptr inbounds (i8, ptr @ord, i64 4), ptr noundef nonnull %35)
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %.not5478 = icmp slt i32 %36, 1
  br i1 %.not5478, label %._crit_edge81, label %.preheader

.lr.ph71:                                         ; preds = %.lr.ph71, %.lr.ph71.preheader.new
  %indvars.iv100 = phi i64 [ 1, %.lr.ph71.preheader.new ], [ %indvars.iv.next101.1, %.lr.ph71 ]
  %niter = phi i64 [ 0, %.lr.ph71.preheader.new ], [ %niter.next.1, %.lr.ph71 ]
  %37 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %indvars.iv100
  %38 = load i32, ptr %37, align 8, !tbaa !13
  %39 = mul nsw i32 %38, %3
  %40 = sub nsw i32 %39, %.lcssa130
  %41 = getelementptr inbounds i8, ptr %37, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !15
  %43 = mul nsw i32 %42, %3
  %44 = sub nsw i32 %43, %.lcssa129
  %45 = getelementptr inbounds [201 x %struct.Point], ptr @_ZZ6check2vE1a, i64 0, i64 %indvars.iv100
  store i32 %40, ptr %45, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %45, i64 4
  store i32 %44, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %46 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %indvars.iv.next101
  %47 = load i32, ptr %46, align 8, !tbaa !13
  %48 = mul nsw i32 %47, %3
  %49 = sub nsw i32 %48, %.lcssa130
  %50 = getelementptr inbounds i8, ptr %46, i64 4
  %51 = load i32, ptr %50, align 4, !tbaa !15
  %52 = mul nsw i32 %51, %3
  %53 = sub nsw i32 %52, %.lcssa129
  %54 = getelementptr inbounds [201 x %struct.Point], ptr @_ZZ6check2vE1a, i64 0, i64 %indvars.iv.next101
  store i32 %49, ptr %54, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx.1 = getelementptr inbounds i8, ptr %54, i64 4
  store i32 %53, ptr %.sroa.4.0..sroa_idx.1, align 4, !tbaa !5
  %indvars.iv.next101.1 = add nuw nsw i64 %indvars.iv100, 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_edge.loopexit.unr-lcssa, label %.lr.ph71, !llvm.loop !17

.preheader:                                       ; preds = %._crit_edge, %83
  %55 = phi i32 [ %85, %83 ], [ %36, %._crit_edge ]
  %.04280 = phi i32 [ %84, %83 ], [ 0, %._crit_edge ]
  %.04379 = phi i32 [ %.1.lcssa, %83 ], [ 1, %._crit_edge ]
  %56 = sext i32 %.04379 to i64
  %57 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %56
  %.not5772 = icmp sgt i32 %.04379, %55
  br i1 %.not5772, label %.critedge, label %.lr.ph74

._crit_edge81:                                    ; preds = %83, %._crit_edge
  %.lcssa = phi i32 [ %36, %._crit_edge ], [ %85, %83 ]
  %58 = sext i32 %.lcssa to i64
  %59 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %61
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @ord, i64 4), align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %64
  %66 = tail call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %62, ptr noundef nonnull align 4 dereferenceable(8) %65)
  %67 = load i32, ptr @n, align 4, !tbaa !5
  %68 = icmp sgt i32 %67, 1
  br i1 %68, label %.lr.ph86, label %._crit_edge87

.lr.ph74:                                         ; preds = %.preheader, %77
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %77 ], [ %56, %.preheader ]
  %69 = load i32, ptr %57, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [201 x %struct.Point], ptr @_ZZ6check2vE1a, i64 0, i64 %70
  %72 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv105
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [201 x %struct.Point], ptr @_ZZ6check2vE1a, i64 0, i64 %74
  %76 = tail call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %71, ptr noundef nonnull align 4 dereferenceable(8) %75)
  %.not58 = icmp eq i64 %76, 0
  br i1 %.not58, label %77, label %.critedge.loopexit

77:                                               ; preds = %.lr.ph74
  %indvars.iv.next106 = add nsw i64 %indvars.iv105, 1
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %.not57.not = icmp slt i64 %indvars.iv105, %79
  br i1 %.not57.not, label %.lr.ph74, label %.critedge.loopexit, !llvm.loop !18

.critedge.loopexit:                               ; preds = %77, %.lr.ph74
  %.1.lcssa.ph.in = phi i64 [ %indvars.iv105, %.lr.ph74 ], [ %indvars.iv.next106, %77 ]
  %.1.lcssa.ph = trunc i64 %.1.lcssa.ph.in to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader
  %.1.lcssa = phi i32 [ %.04379, %.preheader ], [ %.1.lcssa.ph, %.critedge.loopexit ]
  %.not59 = icmp eq i32 %.04280, 0
  br i1 %.not59, label %83, label %80

80:                                               ; preds = %.critedge
  %81 = sext i32 %.1.lcssa to i64
  %82 = getelementptr inbounds i32, ptr @ord, i64 %81
  tail call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull %57, ptr noundef nonnull %82)
  br label %83

83:                                               ; preds = %.critedge, %80
  %84 = xor i32 %.04280, 1
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %.not54 = icmp sgt i32 %.1.lcssa, %85
  br i1 %.not54, label %._crit_edge81, label %.preheader, !llvm.loop !19

._crit_edge87:                                    ; preds = %.lr.ph86, %._crit_edge81
  %.041.lcssa = phi i64 [ %66, %._crit_edge81 ], [ %98, %.lr.ph86 ]
  %86 = tail call noundef i64 @_ZSt3absx(i64 noundef %.041.lcssa)
  %87 = load i64, ptr @ans, align 8, !tbaa !20
  %88 = icmp sgt i64 %87, %86
  br i1 %88, label %102, label %.loopexit60

.lr.ph86:                                         ; preds = %._crit_edge81, %.lr.ph86
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %.lr.ph86 ], [ 1, %._crit_edge81 ]
  %.04183 = phi i64 [ %98, %.lr.ph86 ], [ %66, %._crit_edge81 ]
  %89 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv108
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %91
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %93 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv.next109
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %95
  %97 = tail call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %92, ptr noundef nonnull align 4 dereferenceable(8) %96)
  %98 = add nsw i64 %97, %.04183
  %99 = load i32, ptr @n, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = icmp slt i64 %indvars.iv.next109, %100
  br i1 %101, label %.lr.ph86, label %._crit_edge87, !llvm.loop !22

102:                                              ; preds = %._crit_edge87
  store i64 %86, ptr @ans, align 8, !tbaa !20
  store i32 0, ptr @sz, align 4, !tbaa !5
  %103 = load i32, ptr @n, align 4, !tbaa !5
  %.not5591 = icmp slt i32 %103, 1
  br i1 %.not5591, label %.loopexit60, label %.lr.ph94

.lr.ph94:                                         ; preds = %102, %.loopexit
  %.pr = phi i32 [ %143, %.loopexit ], [ 0, %102 ]
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %.loopexit ], [ 1, %102 ]
  %104 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %indvars.iv112
  %105 = getelementptr inbounds [201 x %struct.Point], ptr @out, i64 0, i64 %indvars.iv112
  %106 = load i64, ptr %104, align 8
  store i64 %106, ptr %105, align 8
  %107 = icmp sgt i32 %.pr, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  br i1 %107, label %.lr.ph90, label %.critedge2

.lr.ph90:                                         ; preds = %.lr.ph94
  %108 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv112
  br label %109

109:                                              ; preds = %.lr.ph90, %136
  %110 = phi i32 [ %.pr, %.lr.ph90 ], [ %137, %136 ]
  %111 = zext nneg i32 %110 to i64
  %112 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %114
  %116 = add nsw i32 %110, -1
  %117 = zext nneg i32 %116 to i64
  %118 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %120
  %122 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %115, ptr noundef nonnull align 4 dereferenceable(8) %121)
  store i64 %122, ptr %1, align 8
  %123 = load i32, ptr %108, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %124
  %126 = load i32, ptr @sz, align 4, !tbaa !5
  %127 = add nsw i32 %126, -1
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %131
  %133 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %125, ptr noundef nonnull align 4 dereferenceable(8) %132)
  store i64 %133, ptr %2, align 8
  %134 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %.not56 = icmp eq i64 %134, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %135 = load i32, ptr @sz, align 4, !tbaa !5
  br i1 %.not56, label %136, label %.loopexit

136:                                              ; preds = %109
  %137 = add nsw i32 %135, -1
  store i32 %137, ptr @sz, align 4, !tbaa !5
  %138 = icmp sgt i32 %135, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  br i1 %138, label %109, label %.critedge2, !llvm.loop !23

.critedge2:                                       ; preds = %136, %.lr.ph94
  %139 = phi i32 [ %.pr, %.lr.ph94 ], [ %137, %136 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  br label %.loopexit

.loopexit:                                        ; preds = %109, %.critedge2
  %140 = phi i32 [ %139, %.critedge2 ], [ %135, %109 ]
  %141 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv112
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = add nsw i32 %140, 1
  store i32 %143, ptr @sz, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %144
  store i32 %142, ptr %145, align 4, !tbaa !5
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %146 = load i32, ptr @n, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %.not55.not = icmp slt i64 %indvars.iv112, %147
  br i1 %.not55.not, label %.lr.ph94, label %.loopexit60, !llvm.loop !24

.loopexit60:                                      ; preds = %.loopexit, %102, %._crit_edge87
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPiZ6check2vE3$_0EvT_S2_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

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


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