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

; 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.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<Line, Line, std::_Identity<Line>, std::less<Line>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Line, Line, std::_Identity<Line>, std::less<Line>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.Line = type { %struct.Point, %struct.Point }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@ord = external dso_local global [200001 x i32], align 16
@ans = external dso_local global [200001 x i32], align 16
@p = external dso_local global [200001 x %struct.Point], align 16
@sp = external dso_local global %"class.std::set", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca %struct.Point, align 4
  %8 = alloca %struct.Point, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca %struct.Line, align 4
  %18 = alloca %struct.Line, align 4
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %22 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %37, %0
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

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

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

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

40:                                               ; preds = %28
  %41 = load i32, ptr @n, align 4, !tbaa !5
  %42 = icmp eq i32 %41, 2
  br i1 %42, label %43, label %52

43:                                               ; preds = %40
  %44 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) @p, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([200001 x %struct.Point], ptr @p, i64 0, i64 1))
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %52, label %46

46:                                               ; preds = %43
  %47 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([200001 x %struct.Point], ptr @p, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(8) @p)
  br i1 %47, label %48, label %49

48:                                               ; preds = %46
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) @ord, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds ([200001 x i32], ptr @ord, i64 0, i64 1)) #9
  br label %49

49:                                               ; preds = %48, %46
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = add nsw i32 %50, -1
  store i32 %51, ptr @n, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %49, %43, %40
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %54 = icmp sle i32 %53, 2
  br i1 %54, label %55, label %82

55:                                               ; preds = %52
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %78, %55
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

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

63:                                               ; preds = %58
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = load i32, ptr @n, align 4, !tbaa !5
  %71 = sub nsw i32 %70, 1
  %72 = icmp eq i32 %69, %71
  %73 = zext i1 %72 to i64
  %74 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = sext i8 %75 to i32
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %68, i32 noundef %76)
  br label %78

78:                                               ; preds = %63
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %3, align 4, !tbaa !5
  br label %58, !llvm.loop !12

81:                                               ; preds = %62
  store i32 0, ptr %1, align 4
  br label %343

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

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

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

88:                                               ; preds = %83
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %90
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %93
  %95 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8) %91, ptr noundef nonnull align 4 dereferenceable(8) %94)
  br i1 %95, label %96, label %98

96:                                               ; preds = %88
  %97 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %97, ptr %4, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %96, %88
  br label %99

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

102:                                              ; preds = %87
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr @ord, i64 %104
  %106 = load i32, ptr @n, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr @ord, i64 %107
  %109 = call noundef ptr @_ZNSt3_V26rotateIPiEET_S2_S2_S2_(ptr noundef @ord, ptr noundef %105, ptr noundef %108)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #9
  store i8 0, ptr %6, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %110 = load i32, ptr getelementptr inbounds ([200001 x i32], ptr @ord, i64 0, i64 1), align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %111
  %113 = load i32, ptr @ord, align 16, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %114
  %116 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %112, ptr noundef nonnull align 4 dereferenceable(8) %115)
  store i64 %116, ptr %7, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %117 = load i32, ptr @n, align 4, !tbaa !5
  %118 = sub nsw i32 %117, 1
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %122
  %124 = load i32, ptr @ord, align 16, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %125
  %127 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %123, ptr noundef nonnull align 4 dereferenceable(8) %126)
  store i64 %127, ptr %8, align 4
  %128 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %129 = icmp sgt i64 %128, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br i1 %129, label %130, label %134

130:                                              ; preds = %102
  store i8 1, ptr %6, align 1, !tbaa !14
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr @ord, i64 %132
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef getelementptr inbounds (i32, ptr @ord, i64 1), ptr noundef %133)
  br label %134

134:                                              ; preds = %130, %102
  store i32 1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 2, ptr %9, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %180, %134
  %136 = load i32, ptr %9, 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 %9) #9
  br label %183

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %141 = load i32, ptr %4, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [200001 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 [200001 x %struct.Point], ptr @p, i64 0, i64 %145
  %147 = load i32, ptr %9, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %151
  %153 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %146, ptr noundef nonnull align 4 dereferenceable(8) %152)
  store i64 %153, ptr %10, align 8, !tbaa !16
  %154 = load i64, ptr %10, align 8, !tbaa !16
  %155 = icmp sgt i64 %154, 0
  br i1 %155, label %177, label %156

156:                                              ; preds = %140
  %157 = load i64, ptr %10, align 8, !tbaa !16
  %158 = icmp ne i64 %157, 0
  br i1 %158, label %179, label %159

159:                                              ; preds = %156
  %160 = load i32, ptr %4, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %164
  %166 = getelementptr inbounds %struct.Point, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 8, !tbaa !18
  %168 = load i32, ptr %9, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %172
  %174 = getelementptr inbounds %struct.Point, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 8, !tbaa !18
  %176 = icmp sgt i32 %167, %175
  br i1 %176, label %177, label %179

177:                                              ; preds = %159, %140
  %178 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %178, ptr %4, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %177, %159, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %9, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %9, align 4, !tbaa !5
  br label %135, !llvm.loop !20

183:                                              ; preds = %139
  %184 = load i32, ptr %4, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i32, ptr @ord, i64 %185
  %187 = getelementptr inbounds i32, ptr %186, i64 1
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef @ord, ptr noundef %187, ptr noundef @_Z3cmpRKiS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %310, %183
  %189 = load i32, ptr %11, align 4, !tbaa !5
  %190 = load i32, ptr %4, align 4, !tbaa !5
  %191 = icmp sle i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %313

193:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  store i32 %197, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %200, label %203

200:                                              ; preds = %193
  %201 = load i32, ptr %12, align 4, !tbaa !5
  %202 = sub nsw i32 %201, 1
  br label %206

203:                                              ; preds = %193
  %204 = load i32, ptr @n, align 4, !tbaa !5
  %205 = sub nsw i32 %204, 1
  br label %206

206:                                              ; preds = %203, %200
  %207 = phi i32 [ %202, %200 ], [ %205, %203 ]
  store i32 %207, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %208 = load i32, ptr %12, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  %210 = load i32, ptr @n, align 4, !tbaa !5
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %212, label %215

212:                                              ; preds = %206
  %213 = load i32, ptr %12, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  br label %216

215:                                              ; preds = %206
  br label %216

216:                                              ; preds = %215, %212
  %217 = phi i32 [ %214, %212 ], [ 0, %215 ]
  store i32 %217, ptr %14, align 4, !tbaa !5
  %218 = load i8, ptr %6, align 1, !tbaa !14, !range !21, !noundef !22
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %221

220:                                              ; preds = %216
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14) #9
  br label %221

221:                                              ; preds = %220, %216
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #9
  store i8 0, ptr %15, align 1, !tbaa !14
  %222 = call noundef i64 @_ZNKSt3setI4LineSt4lessIS0_ESaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) @sp) #9
  %223 = icmp ne i64 %222, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  br i1 %223, label %224, label %233

224:                                              ; preds = %221
  %225 = call ptr @_ZNKSt3setI4LineSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @sp) #9
  %226 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %16, i32 0, i32 0
  store ptr %225, ptr %226, align 8
  %227 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI4LineEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %228 = getelementptr inbounds %struct.Line, ptr %227, i32 0, i32 1
  %229 = load i32, ptr %12, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %230
  %232 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %228, ptr noundef nonnull align 4 dereferenceable(8) %231)
  br label %233

233:                                              ; preds = %224, %221
  %234 = phi i1 [ false, %221 ], [ %232, %224 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br i1 %234, label %235, label %236

235:                                              ; preds = %233
  store i8 1, ptr %15, align 1, !tbaa !14
  br label %236

236:                                              ; preds = %235, %233
  %237 = load i32, ptr %13, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %238
  %240 = load i32, ptr %12, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %241
  %243 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %239, ptr noundef nonnull align 4 dereferenceable(8) %242)
  %244 = icmp sgt i64 %243, 0
  br i1 %244, label %245, label %255

245:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  %246 = getelementptr inbounds %struct.Line, ptr %17, i32 0, i32 0
  %247 = load i32, ptr %13, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %248
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %246, ptr align 8 %249, i64 8, i1 false), !tbaa.struct !23
  %250 = getelementptr inbounds %struct.Line, ptr %17, i32 0, i32 1
  %251 = load i32, ptr %12, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %252
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %250, ptr align 8 %253, i64 8, i1 false), !tbaa.struct !23
  %254 = call noundef i64 @_ZNSt3setI4LineSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  br label %255

255:                                              ; preds = %245, %236
  %256 = load i32, ptr %12, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %257
  %259 = load i32, ptr %14, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %260
  %262 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %258, ptr noundef nonnull align 4 dereferenceable(8) %261)
  %263 = icmp sgt i64 %262, 0
  br i1 %263, label %264, label %300

264:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #9
  %265 = getelementptr inbounds %struct.Line, ptr %18, i32 0, i32 0
  %266 = load i32, ptr %12, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %267
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %265, ptr align 8 %268, i64 8, i1 false), !tbaa.struct !23
  %269 = getelementptr inbounds %struct.Line, ptr %18, i32 0, i32 1
  %270 = load i32, ptr %14, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %271
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %269, ptr align 8 %272, i64 8, i1 false), !tbaa.struct !23
  %273 = call { ptr, i8 } @_ZNSt3setI4LineSt4lessIS0_ESaIS0_EE6insertEOS0_(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(16) %18)
  %274 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 0
  %275 = extractvalue { ptr, i8 } %273, 0
  store ptr %275, ptr %274, align 8
  %276 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 1
  %277 = extractvalue { ptr, i8 } %273, 1
  store i8 %277, ptr %276, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %278 = call ptr @_ZNKSt3setI4LineSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @sp) #9
  %279 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %278, ptr %279, align 8
  %280 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI4LineEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  %281 = getelementptr inbounds %struct.Line, ptr %280, i32 0, i32 0
  %282 = load i32, ptr %12, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %283
  %285 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %281, ptr noundef nonnull align 4 dereferenceable(8) %284)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br i1 %285, label %286, label %299

286:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %287 = call ptr @_ZNKSt3setI4LineSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @sp) #9
  %288 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %21, i32 0, i32 0
  store ptr %287, ptr %288, align 8
  %289 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI4LineEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  %290 = getelementptr inbounds %struct.Line, ptr %289, i32 0, i32 1
  %291 = load i32, ptr %14, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %292
  %294 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %290, ptr noundef nonnull align 4 dereferenceable(8) %293)
  br i1 %294, label %295, label %296

295:                                              ; preds = %286
  br label %298

296:                                              ; preds = %286
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 82, ptr noundef @__PRETTY_FUNCTION__.main) #10
  unreachable

297:                                              ; No predecessors!
  br label %298

298:                                              ; preds = %297, %295
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  store i8 1, ptr %15, align 1, !tbaa !14
  br label %299

299:                                              ; preds = %298, %264
  br label %300

300:                                              ; preds = %299, %255
  %301 = load i8, ptr %15, align 1, !tbaa !14, !range !21, !noundef !22
  %302 = trunc i8 %301 to i1
  br i1 %302, label %303, label %309

303:                                              ; preds = %300
  %304 = load i32, ptr %12, align 4, !tbaa !5
  %305 = load i32, ptr @m, align 4, !tbaa !5
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr @m, align 4, !tbaa !5
  %307 = sext i32 %305 to i64
  %308 = getelementptr inbounds [200001 x i32], ptr @ans, i64 0, i64 %307
  store i32 %304, ptr %308, align 4, !tbaa !5
  br label %309

309:                                              ; preds = %303, %300
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %310

310:                                              ; preds = %309
  %311 = load i32, ptr %11, align 4, !tbaa !5
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %11, align 4, !tbaa !5
  br label %188, !llvm.loop !24

313:                                              ; preds = %192
  %314 = load i32, ptr @m, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds i32, ptr @ans, i64 %315
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @ans, ptr noundef %316)
  %317 = load i32, ptr @m, align 4, !tbaa !5
  %318 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %317)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %319

319:                                              ; preds = %339, %313
  %320 = load i32, ptr %22, align 4, !tbaa !5
  %321 = load i32, ptr @m, align 4, !tbaa !5
  %322 = icmp slt i32 %320, %321
  br i1 %322, label %324, label %323

323:                                              ; preds = %319
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %342

324:                                              ; preds = %319
  %325 = load i32, ptr %22, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [200001 x i32], ptr @ans, i64 0, i64 %326
  %328 = load i32, ptr %327, align 4, !tbaa !5
  %329 = add nsw i32 %328, 1
  %330 = load i32, ptr %22, align 4, !tbaa !5
  %331 = load i32, ptr @m, align 4, !tbaa !5
  %332 = sub nsw i32 %331, 1
  %333 = icmp eq i32 %330, %332
  %334 = zext i1 %333 to i64
  %335 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %334
  %336 = load i8, ptr %335, align 1, !tbaa !11
  %337 = sext i8 %336 to i32
  %338 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %329, i32 noundef %337)
  br label %339

339:                                              ; preds = %324
  %340 = load i32, ptr %22, align 4, !tbaa !5
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr %22, align 4, !tbaa !5
  br label %319, !llvm.loop !25

342:                                              ; preds = %323
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %343

343:                                              ; preds = %342, %81
  %344 = load i32, ptr %1, align 4
  ret i32 %344
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

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

; Function Attrs: 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 nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNSt3_V26rotateIPiEET_S2_S2_S2_(ptr noundef, ptr noundef, ptr noundef) #6

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) #6

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setI4LineSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI4LineSt4lessIS0_ESaIS0_EE6insertEOS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #8

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

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


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

%struct.Point = type { i32, i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<Line, Line, std::_Identity<Line>, std::less<Line>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Line, Line, std::_Identity<Line>, std::less<Line>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.Line = type { %struct.Point, %struct.Point }

@n = external dso_local global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@ord = external dso_local global [200001 x i32], align 16
@ans = external dso_local global [200001 x i32], align 16
@p = external dso_local global [200001 x %struct.Point], align 16
@sp = external dso_local global %"class.std::set", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca %struct.Line, align 8
  %7 = alloca %struct.Line, align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %.thread115

._crit_edge:                                      ; preds = %.lr.ph
  %13 = icmp eq i32 %17, 2
  br i1 %13, label %20, label %28

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

20:                                               ; preds = %._crit_edge
  %21 = tail call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) @p, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @p, i64 8))
  %.not = icmp eq i64 %21, 0
  br i1 %.not, label %22, label %thread-pre-split

22:                                               ; preds = %20
  %23 = tail call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @p, i64 8), ptr noundef nonnull align 4 dereferenceable(8) @p)
  br i1 %23, label %24, label %25

24:                                               ; preds = %22
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) @ord, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ord, i64 4)) #8
  br label %25

25:                                               ; preds = %24, %22
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr @n, align 4, !tbaa !5
  br label %28

thread-pre-split:                                 ; preds = %20
  %.pr = load i32, ptr @n, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %thread-pre-split, %25, %._crit_edge
  %29 = phi i32 [ %.pr, %thread-pre-split ], [ %27, %25 ], [ %17, %._crit_edge ]
  %30 = icmp slt i32 %29, 3
  br i1 %30, label %.thread115, label %.lr.ph74

.thread115:                                       ; preds = %0, %28
  %31 = phi i32 [ %29, %28 ], [ %11, %0 ]
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %31)
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph94, label %.loopexit

.lr.ph94:                                         ; preds = %.thread115, %.lr.ph94
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph94 ], [ 0, %.thread115 ]
  %35 = phi i32 [ %47, %.lr.ph94 ], [ %33, %.thread115 ]
  %36 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %indvars.iv111
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  %39 = add nsw i32 %35, -1
  %40 = zext i32 %39 to i64
  %41 = icmp eq i64 %indvars.iv111, %40
  %42 = zext i1 %41 to i64
  %43 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !11
  %45 = sext i8 %44 to i32
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %38, i32 noundef %45)
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %47 = load i32, ptr @n, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next112, %48
  br i1 %49, label %.lr.ph94, label %.loopexit, !llvm.loop !12

._crit_edge75:                                    ; preds = %.lr.ph74
  %50 = sext i32 %spec.select to i64
  %51 = getelementptr inbounds i32, ptr @ord, i64 %50
  %52 = sext i32 %80 to i64
  %53 = getelementptr inbounds i32, ptr @ord, i64 %52
  %54 = tail call noundef ptr @_ZNSt3_V26rotateIPiEET_S2_S2_S2_(ptr noundef nonnull @ord, ptr noundef nonnull %51, ptr noundef nonnull %53)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @ord, i64 4), align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %56
  %58 = load i32, ptr @ord, align 16, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %59
  %61 = tail call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %57, ptr noundef nonnull align 4 dereferenceable(8) %60)
  store i64 %61, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = add nsw i32 %62, -1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %67
  %69 = load i32, ptr @ord, align 16, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %70
  %72 = tail call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %71)
  store i64 %72, ptr %2, align 8
  %73 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %74 = icmp sgt i64 %73, 0
  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 %74, label %83, label %87

.lr.ph74:                                         ; preds = %28, %.lr.ph74
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph74 ], [ 1, %28 ]
  %.05273 = phi i32 [ %spec.select, %.lr.ph74 ], [ 0, %28 ]
  %75 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv99
  %76 = sext i32 %.05273 to i64
  %77 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %76
  %78 = tail call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8) %75, ptr noundef nonnull align 4 dereferenceable(8) %77)
  %79 = trunc nuw nsw i64 %indvars.iv99 to i32
  %spec.select = select i1 %78, i32 %79, i32 %.05273
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %80 = load i32, ptr @n, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = icmp slt i64 %indvars.iv.next100, %81
  br i1 %82, label %.lr.ph74, label %._crit_edge75, !llvm.loop !13

83:                                               ; preds = %._crit_edge75
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr @ord, i64 %85
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @ord, i64 4), ptr noundef nonnull %86)
  br label %87

87:                                               ; preds = %83, %._crit_edge75
  %88 = load i32, ptr @n, align 4, !tbaa !5
  %89 = icmp sgt i32 %88, 2
  br i1 %89, label %.lr.ph81, label %._crit_edge82.thread

._crit_edge82.thread:                             ; preds = %87
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef nonnull @ord, ptr noundef nonnull getelementptr inbounds (i8, ptr @ord, i64 8), ptr noundef nonnull @_Z3cmpRKiS0_)
  br label %.lr.ph87

._crit_edge82:                                    ; preds = %120
  %90 = sext i32 %.3 to i64
  %91 = getelementptr inbounds i32, ptr @ord, i64 %90
  %92 = getelementptr inbounds i8, ptr %91, i64 4
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef nonnull @ord, ptr noundef nonnull %92, ptr noundef nonnull @_Z3cmpRKiS0_)
  %.not6384 = icmp slt i32 %.3, 0
  br i1 %.not6384, label %._crit_edge88, label %.lr.ph87

.lr.ph87:                                         ; preds = %._crit_edge82.thread, %._crit_edge82
  %.2.lcssa118 = phi i32 [ 1, %._crit_edge82.thread ], [ %.3, %._crit_edge82 ]
  %93 = getelementptr inbounds i8, ptr %6, i64 8
  %94 = getelementptr inbounds i8, ptr %7, i64 8
  %95 = add nuw i32 %.2.lcssa118, 1
  %wide.trip.count = zext i32 %95 to i64
  br label %131

.lr.ph81:                                         ; preds = %87, %120
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %120 ], [ 2, %87 ]
  %.279 = phi i32 [ %.3, %120 ], [ 1, %87 ]
  %96 = sext i32 %.279 to i64
  %97 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %99
  %101 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %indvars.iv102
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %103
  %105 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %100, ptr noundef nonnull align 4 dereferenceable(8) %104)
  %106 = icmp sgt i64 %105, 0
  br i1 %106, label %118, label %107

107:                                              ; preds = %.lr.ph81
  %.not66 = icmp eq i64 %105, 0
  br i1 %.not66, label %108, label %120

108:                                              ; preds = %107
  %109 = load i32, ptr %97, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %110
  %112 = load i32, ptr %111, align 8, !tbaa !14
  %113 = load i32, ptr %101, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %114
  %116 = load i32, ptr %115, align 8, !tbaa !14
  %117 = icmp sgt i32 %112, %116
  br i1 %117, label %118, label %120

118:                                              ; preds = %108, %.lr.ph81
  %119 = trunc nuw nsw i64 %indvars.iv102 to i32
  br label %120

120:                                              ; preds = %118, %108, %107
  %.3 = phi i32 [ %119, %118 ], [ %.279, %107 ], [ %.279, %108 ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %121 = load i32, ptr @n, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = icmp slt i64 %indvars.iv.next103, %122
  br i1 %123, label %.lr.ph81, label %._crit_edge82, !llvm.loop !16

._crit_edge88:                                    ; preds = %194, %._crit_edge82
  %124 = load i32, ptr @m, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i32, ptr @ans, i64 %125
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @ans, ptr noundef nonnull %126)
  %127 = load i32, ptr @m, align 4, !tbaa !5
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %127)
  %129 = load i32, ptr @m, align 4, !tbaa !5
  %130 = icmp sgt i32 %129, 0
  br i1 %130, label %.lr.ph91, label %.loopexit

131:                                              ; preds = %.lr.ph87, %194
  %indvars.iv105 = phi i64 [ 0, %.lr.ph87 ], [ %indvars.iv.next106, %194 ]
  %132 = getelementptr inbounds [200001 x i32], ptr @ord, i64 0, i64 %indvars.iv105
  %133 = load i32, ptr %132, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %.not64 = icmp eq i32 %133, 0
  %134 = load i32, ptr @n, align 4
  %.v = select i1 %.not64, i32 %134, i32 %133
  %135 = add nsw i32 %.v, -1
  store i32 %135, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %136 = add nsw i32 %133, 1
  %137 = icmp slt i32 %136, %134
  %138 = select i1 %137, i32 %136, i32 0
  store i32 %138, ptr %4, align 4, !tbaa !5
  br i1 %74, label %139, label %140

139:                                              ; preds = %131
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #8
  br label %140

140:                                              ; preds = %139, %131
  %141 = call noundef i64 @_ZNKSt3setI4LineSt4lessIS0_ESaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) @sp) #8
  %.not65 = icmp eq i64 %141, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  br i1 %.not65, label %.critedge, label %142

142:                                              ; preds = %140
  %143 = call ptr @_ZNKSt3setI4LineSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @sp) #8
  store ptr %143, ptr %5, align 8
  %144 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI4LineEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %145 = getelementptr inbounds i8, ptr %144, i64 8
  %146 = sext i32 %133 to i64
  %147 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %146
  %148 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %145, ptr noundef nonnull align 4 dereferenceable(8) %147)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %149

.critedge:                                        ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %.pre = sext i32 %133 to i64
  br label %149

149:                                              ; preds = %142, %.critedge
  %.pre-phi = phi i64 [ %146, %142 ], [ %.pre, %.critedge ]
  %.049 = phi i1 [ %148, %142 ], [ false, %.critedge ]
  %150 = load i32, ptr %3, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %151
  %153 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %.pre-phi
  %154 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %152, ptr noundef nonnull align 4 dereferenceable(8) %153)
  %155 = icmp sgt i64 %154, 0
  br i1 %155, label %156, label %163

156:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %157 = load i32, ptr %3, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8
  store i64 %160, ptr %6, align 8
  %161 = load i64, ptr %153, align 8
  store i64 %161, ptr %93, align 8
  %162 = call noundef i64 @_ZNSt3setI4LineSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  br label %163

163:                                              ; preds = %156, %149
  %164 = load i32, ptr %4, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %165
  %167 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %153, ptr noundef nonnull align 4 dereferenceable(8) %166)
  %168 = icmp sgt i64 %167, 0
  br i1 %168, label %169, label %188

169:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %170 = load i64, ptr %153, align 8
  store i64 %170, ptr %7, align 8
  %171 = load i32, ptr %4, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %172
  %174 = load i64, ptr %173, align 8
  store i64 %174, ptr %94, align 8
  %175 = call { ptr, i8 } @_ZNSt3setI4LineSt4lessIS0_ESaIS0_EE6insertEOS0_(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %176 = call ptr @_ZNKSt3setI4LineSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @sp) #8
  store ptr %176, ptr %8, align 8
  %177 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI4LineEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %178 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %177, ptr noundef nonnull align 4 dereferenceable(8) %153)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br i1 %178, label %179, label %188

179:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %180 = call ptr @_ZNKSt3setI4LineSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @sp) #8
  store ptr %180, ptr %9, align 8
  %181 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI4LineEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %182 = getelementptr inbounds i8, ptr %181, i64 8
  %183 = load i32, ptr %4, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [200001 x %struct.Point], ptr @p, i64 0, i64 %184
  %186 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %182, ptr noundef nonnull align 4 dereferenceable(8) %185)
  br i1 %186, label %.thread, label %187

187:                                              ; preds = %179
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 82, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

.thread:                                          ; preds = %179
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %189

188:                                              ; preds = %169, %163
  br i1 %.049, label %189, label %194

189:                                              ; preds = %.thread, %188
  %190 = load i32, ptr @m, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr @m, align 4, !tbaa !5
  %192 = sext i32 %190 to i64
  %193 = getelementptr inbounds [200001 x i32], ptr @ans, i64 0, i64 %192
  store i32 %133, ptr %193, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %189, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge88, label %131, !llvm.loop !17

.lr.ph91:                                         ; preds = %._crit_edge88, %.lr.ph91
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %.lr.ph91 ], [ 0, %._crit_edge88 ]
  %195 = phi i32 [ %207, %.lr.ph91 ], [ %129, %._crit_edge88 ]
  %196 = getelementptr inbounds [200001 x i32], ptr @ans, i64 0, i64 %indvars.iv108
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = add nsw i32 %197, 1
  %199 = add nsw i32 %195, -1
  %200 = zext i32 %199 to i64
  %201 = icmp eq i64 %indvars.iv108, %200
  %202 = zext i1 %201 to i64
  %203 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %202
  %204 = load i8, ptr %203, align 1, !tbaa !11
  %205 = sext i8 %204 to i32
  %206 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %198, i32 noundef %205)
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %207 = load i32, ptr @m, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = icmp slt i64 %indvars.iv.next109, %208
  br i1 %209, label %.lr.ph91, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %.lr.ph91, %.lr.ph94, %._crit_edge88, %.thread115
  ret i32 0
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: 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 #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNSt3_V26rotateIPiEET_S2_S2_S2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #6

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setI4LineSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI4LineSt4lessIS0_ESaIS0_EE6insertEOS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTS5Point", !6, i64 0, !6, i64 4}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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