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

; 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.0 = 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
@_ZZ5checkvE3stk = external hidden global [201 x i32], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6check2v() #0

; 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) #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)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5checkv() #0 {
  %1 = alloca %class.anon.0, align 1
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.Point, align 4
  %7 = alloca %struct.Point, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.Point, align 4
  %11 = alloca %struct.Point, align 4
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds i32, ptr @ord, i64 %17
  %19 = getelementptr inbounds i32, ptr %18, i64 1
  call void @"_ZSt4sortIPiZ5checkvE3$_0EvT_S2_T0_"(ptr noundef getelementptr inbounds (i32, ptr @ord, i64 1), ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %42, %0
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 2, ptr %3, align 4
  br label %45

25:                                               ; preds = %20
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %30
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %37
  %39 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %38)
  br i1 %39, label %40, label %41

40:                                               ; preds = %25
  store i32 1, ptr %3, align 4
  br label %45

41:                                               ; preds = %25
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %2, align 4, !tbaa !5
  br label %20, !llvm.loop !9

45:                                               ; preds = %40, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %46 = load i32, ptr %3, align 4
  switch i32 %46, label %258 [
    i32 2, label %47
    i32 1, label %257
  ]

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

48:                                               ; preds = %103, %47
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = icmp sle i32 %49, %50
  br i1 %51, label %53, label %52

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

53:                                               ; preds = %48
  br label %54

54:                                               ; preds = %91, %53
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = icmp sgt i32 %55, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  br i1 %56, label %57, label %88

57:                                               ; preds = %54
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %62
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = sub nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %69
  %71 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %63, ptr noundef nonnull align 4 dereferenceable(8) %70)
  store i64 %71, ptr %6, align 4
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %76
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %83
  %85 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %77, ptr noundef nonnull align 4 dereferenceable(8) %84)
  store i64 %85, ptr %7, align 4
  %86 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %87 = icmp sle i64 %86, 0
  br label %88

88:                                               ; preds = %57, %54
  %89 = phi i1 [ false, %54 ], [ %87, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br i1 %89, label %90, label %94

90:                                               ; preds = %88
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = add nsw i32 %92, -1
  store i32 %93, ptr %4, align 4, !tbaa !5
  br label %54, !llvm.loop !11

94:                                               ; preds = %88
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = load i32, ptr %4, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %4, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %101
  store i32 %98, ptr %102, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %94
  %104 = load i32, ptr %5, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %5, align 4, !tbaa !5
  br label %48, !llvm.loop !12

106:                                              ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %107 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %107, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %108 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %108, ptr %9, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %164, %106
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = icmp sge i32 %110, 1
  br i1 %111, label %113, label %112

112:                                              ; preds = %109
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %167

113:                                              ; preds = %109
  br label %114

114:                                              ; preds = %152, %113
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = load i32, ptr %9, align 4, !tbaa !5
  %117 = icmp sgt i32 %115, %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  br i1 %117, label %118, label %149

118:                                              ; preds = %114
  %119 = load i32, ptr %4, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %123
  %125 = load i32, ptr %4, align 4, !tbaa !5
  %126 = sub nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %130
  %132 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %124, ptr noundef nonnull align 4 dereferenceable(8) %131)
  store i64 %132, ptr %10, align 4
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %137
  %139 = load i32, ptr %4, align 4, !tbaa !5
  %140 = sub nsw i32 %139, 1
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %144
  %146 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %138, ptr noundef nonnull align 4 dereferenceable(8) %145)
  store i64 %146, ptr %11, align 4
  %147 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %148 = icmp sle i64 %147, 0
  br label %149

149:                                              ; preds = %118, %114
  %150 = phi i1 [ false, %114 ], [ %148, %118 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br i1 %150, label %151, label %155

151:                                              ; preds = %149
  br label %152

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

155:                                              ; preds = %149
  %156 = load i32, ptr %8, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = load i32, ptr %4, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %4, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %162
  store i32 %159, ptr %163, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %155
  %165 = load i32, ptr %8, align 4, !tbaa !5
  %166 = add nsw i32 %165, -1
  store i32 %166, ptr %8, align 4, !tbaa !5
  br label %109, !llvm.loop !14

167:                                              ; preds = %112
  %168 = load i32, ptr %4, align 4, !tbaa !5
  %169 = icmp sgt i32 %168, 1
  %170 = zext i1 %169 to i32
  %171 = load i32, ptr %4, align 4, !tbaa !5
  %172 = sub nsw i32 %171, %170
  store i32 %172, ptr %4, align 4, !tbaa !5
  %173 = load i32, ptr %4, align 4, !tbaa !5
  %174 = icmp eq i32 %173, 2
  br i1 %174, label %175, label %176

175:                                              ; preds = %167
  store i32 1, ptr %3, align 4
  br label %255

176:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %177 = load i32, ptr %4, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %181
  %183 = load i32, ptr getelementptr inbounds ([201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 1), align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %184
  %186 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %182, ptr noundef nonnull align 4 dereferenceable(8) %185)
  store i64 %186, ptr %12, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %209, %176
  %188 = load i32, ptr %13, align 4, !tbaa !5
  %189 = load i32, ptr %4, align 4, !tbaa !5
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %187
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %212

192:                                              ; preds = %187
  %193 = load i32, ptr %13, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %197
  %199 = load i32, ptr %13, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %204
  %206 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %198, ptr noundef nonnull align 4 dereferenceable(8) %205)
  %207 = load i64, ptr %12, align 8, !tbaa !15
  %208 = add nsw i64 %207, %206
  store i64 %208, ptr %12, align 8, !tbaa !15
  br label %209

209:                                              ; preds = %192
  %210 = load i32, ptr %13, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %13, align 4, !tbaa !5
  br label %187, !llvm.loop !17

212:                                              ; preds = %191
  %213 = load i64, ptr %12, align 8, !tbaa !15
  %214 = call noundef i64 @_ZSt3absx(i64 noundef %213)
  store i64 %214, ptr %12, align 8, !tbaa !15
  %215 = load i64, ptr @ans, align 8, !tbaa !15
  %216 = load i64, ptr %12, align 8, !tbaa !15
  %217 = icmp sgt i64 %215, %216
  br i1 %217, label %218, label %254

218:                                              ; preds = %212
  %219 = load i64, ptr %12, align 8, !tbaa !15
  store i64 %219, ptr @ans, align 8, !tbaa !15
  %220 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %220, ptr @sz, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %234, %218
  %222 = load i32, ptr %14, align 4, !tbaa !5
  %223 = load i32, ptr @sz, align 4, !tbaa !5
  %224 = icmp sle i32 %222, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %237

226:                                              ; preds = %221
  %227 = load i32, ptr %14, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %228
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = load i32, ptr %14, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [201 x i32], ptr @idx, i64 0, i64 %232
  store i32 %230, ptr %233, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %226
  %235 = load i32, ptr %14, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %14, align 4, !tbaa !5
  br label %221, !llvm.loop !18

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

238:                                              ; preds = %250, %237
  %239 = load i32, ptr %15, align 4, !tbaa !5
  %240 = load i32, ptr @n, align 4, !tbaa !5
  %241 = icmp sle i32 %239, %240
  br i1 %241, label %243, label %242

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

243:                                              ; preds = %238
  %244 = load i32, ptr %15, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %245
  %247 = load i32, ptr %15, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [201 x %struct.Point], ptr @out, i64 0, i64 %248
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %249, ptr align 8 %246, i64 8, i1 false), !tbaa.struct !19
  br label %250

250:                                              ; preds = %243
  %251 = load i32, ptr %15, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %15, align 4, !tbaa !5
  br label %238, !llvm.loop !20

253:                                              ; preds = %242
  br label %254

254:                                              ; preds = %253, %212
  call void @_Z6check2v()
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  store i32 0, ptr %3, align 4
  br label %255

255:                                              ; preds = %254, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %256 = load i32, ptr %3, align 4
  switch i32 %256, label %258 [
    i32 0, label %257
    i32 1, label %257
  ]

257:                                              ; preds = %255, %255, %45
  ret void

258:                                              ; preds = %255, %45
  unreachable
}

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

; 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)) #3 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 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


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

%struct.Point = type { i32, i32 }

@n = external dso_local 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
@_ZZ5checkvE3stk = external hidden local_unnamed_addr global [201 x i32], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6check2v() local_unnamed_addr #0

; 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 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: mustprogress uwtable
define dso_local void @_Z5checkv() local_unnamed_addr #0 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = alloca %struct.Point, align 8
  %4 = alloca %struct.Point, align 8
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = sext i32 %5 to i64
  %7 = getelementptr inbounds i32, ptr @ord, i64 %6
  %8 = getelementptr inbounds i8, ptr %7, i64 4
  tail call void @"_ZSt4sortIPiZ5checkvE3$_0EvT_S2_T0_"(ptr noundef nonnull getelementptr inbounds (i8, ptr @ord, i64 4), ptr noundef nonnull %8)
  br label %9

9:                                                ; preds = %13, %0
  %indvars.iv = phi i64 [ %indvars.iv.next, %13 ], [ 1, %0 ]
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = icmp slt i64 %indvars.iv, %11
  br i1 %12, label %13, label %.preheader72

.preheader72:                                     ; preds = %9
  %.not77 = icmp slt i32 %10, 1
  br i1 %.not77, label %._crit_edge, label %.preheader70

13:                                               ; preds = %9
  %14 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv.next
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %20
  %22 = tail call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %21)
  br i1 %22, label %.thread, label %9, !llvm.loop !9

.preheader70:                                     ; preds = %.preheader72, %.loopexit71
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %.loopexit71 ], [ 1, %.preheader72 ]
  %.05778 = phi i32 [ %52, %.loopexit71 ], [ 0, %.preheader72 ]
  %23 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv108
  %24 = zext i32 %.05778 to i64
  br label %28

.preheader69:                                     ; preds = %.loopexit71
  %25 = icmp sgt i32 %55, 0
  br i1 %25, label %.preheader67.preheader, label %._crit_edge

.preheader67.preheader:                           ; preds = %.preheader69
  %26 = sext i32 %52 to i64
  %27 = zext nneg i32 %55 to i64
  br label %.preheader67

28:                                               ; preds = %.preheader70, %31
  %indvars.iv105 = phi i64 [ %24, %.preheader70 ], [ %36, %31 ]
  %29 = trunc nuw i64 %indvars.iv105 to i32
  %30 = icmp sgt i32 %29, 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 %30, label %31, label %.critedge

31:                                               ; preds = %28
  %32 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %indvars.iv105
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %34
  %36 = add nsw i64 %indvars.iv105, -1
  %37 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %39
  %41 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %40)
  store i64 %41, ptr %1, align 8
  %42 = load i32, ptr %23, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %43
  %45 = load i32, ptr %37, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %46
  %48 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %47)
  store i64 %48, ptr %2, align 8
  %49 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %50 = icmp slt i64 %49, 1
  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 i1 %50, label %28, label %.loopexit71, !llvm.loop !11

.critedge:                                        ; preds = %28
  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 %.loopexit71

.loopexit71:                                      ; preds = %31, %.critedge
  %51 = load i32, ptr %23, align 4, !tbaa !5
  %52 = add nsw i32 %29, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %53
  store i32 %51, ptr %54, align 4, !tbaa !5
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %55 = load i32, ptr @n, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %.not.not = icmp slt i64 %indvars.iv108, %56
  br i1 %.not.not, label %.preheader70, label %.preheader69, !llvm.loop !12

.preheader67:                                     ; preds = %.preheader67.preheader, %.loopexit68
  %indvars.iv114 = phi i64 [ %27, %.preheader67.preheader ], [ %indvars.iv.next115, %.loopexit68 ]
  %.281 = phi i32 [ %52, %.preheader67.preheader ], [ %84, %.loopexit68 ]
  %57 = getelementptr inbounds [201 x i32], ptr @ord, i64 0, i64 %indvars.iv114
  %58 = sext i32 %.281 to i64
  br label %62

._crit_edge:                                      ; preds = %.loopexit68, %.preheader72, %.preheader69
  %.2.lcssa = phi i32 [ %52, %.preheader69 ], [ 0, %.preheader72 ], [ %84, %.loopexit68 ]
  %59 = icmp sgt i32 %.2.lcssa, 1
  %.neg = sext i1 %59 to i32
  %60 = add nsw i32 %.2.lcssa, %.neg
  %61 = icmp eq i32 %60, 2
  br i1 %61, label %.thread, label %88

62:                                               ; preds = %.preheader67, %64
  %indvars.iv111 = phi i64 [ %58, %.preheader67 ], [ %indvars.iv.next112, %64 ]
  %63 = icmp sgt i64 %indvars.iv111, %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  br i1 %63, label %64, label %.critedge2

64:                                               ; preds = %62
  %65 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %indvars.iv111
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %67
  %indvars.iv.next112 = add nsw i64 %indvars.iv111, -1
  %69 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %indvars.iv.next112
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %71
  %73 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %72)
  store i64 %73, ptr %3, align 8
  %74 = load i32, ptr %57, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %75
  %77 = load i32, ptr %69, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %78
  %80 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %76, ptr noundef nonnull align 4 dereferenceable(8) %79)
  store i64 %80, ptr %4, align 8
  %81 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %82 = icmp slt i64 %81, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br i1 %82, label %62, label %.loopexit68, !llvm.loop !13

.critedge2:                                       ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.loopexit68

.loopexit68:                                      ; preds = %64, %.critedge2
  %.398 = trunc i64 %indvars.iv111 to i32
  %83 = load i32, ptr %57, align 4, !tbaa !5
  %84 = add nsw i32 %.398, 1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %85
  store i32 %83, ptr %86, align 4, !tbaa !5
  %indvars.iv.next115 = add nsw i64 %indvars.iv114, -1
  %87 = icmp sgt i64 %indvars.iv114, 1
  br i1 %87, label %.preheader67, label %._crit_edge, !llvm.loop !14

88:                                               ; preds = %._crit_edge
  %89 = sext i32 %60 to i64
  %90 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, 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 @q, i64 0, i64 %92
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5checkvE3stk, i64 4), align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %95
  %97 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %93, ptr noundef nonnull align 4 dereferenceable(8) %96)
  %98 = icmp sgt i32 %60, 1
  br i1 %98, label %.lr.ph.preheader, label %._crit_edge87

.lr.ph.preheader:                                 ; preds = %88
  %wide.trip.count = zext nneg i32 %60 to i64
  br label %.lr.ph

._crit_edge87:                                    ; preds = %.lr.ph, %88
  %.053.lcssa = phi i64 [ %97, %88 ], [ %111, %.lr.ph ]
  %99 = call noundef i64 @_ZSt3absx(i64 noundef %.053.lcssa)
  %100 = load i64, ptr @ans, align 8, !tbaa !15
  %101 = icmp sgt i64 %100, %99
  br i1 %101, label %112, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv117 = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next118, %.lr.ph ]
  %.05384 = phi i64 [ %97, %.lr.ph.preheader ], [ %111, %.lr.ph ]
  %102 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %indvars.iv117
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %104
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %106 = getelementptr inbounds [201 x i32], ptr @_ZZ5checkvE3stk, i64 0, i64 %indvars.iv.next118
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [201 x %struct.Point], ptr @q, i64 0, i64 %108
  %110 = call noundef i64 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %105, ptr noundef nonnull align 4 dereferenceable(8) %109)
  %111 = add nsw i64 %110, %.05384
  %exitcond.not = icmp eq i64 %indvars.iv.next118, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge87, label %.lr.ph, !llvm.loop !17

112:                                              ; preds = %._crit_edge87
  store i64 %99, ptr @ans, align 8, !tbaa !15
  store i32 %60, ptr @sz, align 4, !tbaa !5
  %.not6289 = icmp slt i32 %60, 1
  br i1 %.not6289, label %.preheader, label %.lr.ph92.preheader

.lr.ph92.preheader:                               ; preds = %112
  %113 = add nsw i32 %60, -1
  %114 = zext nneg i32 %113 to i64
  %115 = shl nuw nsw i64 %114, 2
  %116 = add nuw nsw i64 %115, 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) getelementptr inbounds (i8, ptr @idx, i64 4), ptr noundef nonnull align 4 dereferenceable(1) getelementptr inbounds (i8, ptr @_ZZ5checkvE3stk, i64 4), i64 %116, i1 false), !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph92.preheader, %112
  %117 = load i32, ptr @n, align 4, !tbaa !5
  %.not6393 = icmp slt i32 %117, 1
  br i1 %.not6393, label %.loopexit, label %.lr.ph95.preheader

.lr.ph95.preheader:                               ; preds = %.preheader
  %118 = zext nneg i32 %117 to i64
  %119 = shl nuw nsw i64 %118, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 getelementptr inbounds (i8, ptr @out, i64 8), ptr nonnull align 8 getelementptr inbounds (i8, ptr @q, i64 8), i64 %119, i1 false)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph95.preheader, %.preheader, %._crit_edge87
  call void @_Z6check2v()
  br label %.thread

.thread:                                          ; preds = %13, %.loopexit, %._crit_edge
  ret void
}

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

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

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

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


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