; LLVM IR from tangjz/acm-icpc :: TDL_training/2015-11-29 (A - Block Compaction - lzy)

; 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.Rect = type { i32, i32, i32, i32 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@r = external dso_local global [509 x %struct.Rect], align 16
@T = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmpx4RectS_(i64, i64, i64, i64) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmpy4RectS_(i64, i64, i64, i64) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3coniii(i32 noundef, i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3updiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3queiii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @T)
  br label %10

10:                                               ; preds = %218, %0
  %11 = load i32, ptr @T, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr @T, align 4, !tbaa !5
  %13 = icmp ne i32 %11, 0
  br i1 %13, label %14, label %225

14:                                               ; preds = %10
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %54, %14
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %57

21:                                               ; preds = %16
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %23
  %25 = getelementptr inbounds %struct.Rect, ptr %24, i32 0, i32 0
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %28
  %30 = getelementptr inbounds %struct.Rect, ptr %29, i32 0, i32 1
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %33
  %35 = getelementptr inbounds %struct.Rect, ptr %34, i32 0, i32 2
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %38
  %40 = getelementptr inbounds %struct.Rect, ptr %39, i32 0, i32 3
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %43
  %45 = getelementptr inbounds %struct.Rect, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !9
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr %45, align 8, !tbaa !9
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %49
  %51 = getelementptr inbounds %struct.Rect, ptr %50, i32 0, i32 3
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = add nsw i32 %52, -1
  store i32 %53, ptr %51, align 4, !tbaa !11
  br label %54

54:                                               ; preds = %21
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %2, align 4, !tbaa !5
  br label %16, !llvm.loop !12

57:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #7
  store i8 1, ptr %3, align 1, !tbaa !14
  br label %58

58:                                               ; preds = %193, %57
  store i8 0, ptr %3, align 1, !tbaa !14
  call void @_Z3coniii(i32 noundef 0, i32 noundef 0, i32 noundef 100000)
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct.Rect, ptr @r, i64 %60
  call void @_ZSt4sortIP4RectPFbS0_S0_EEvT_S4_T0_(ptr noundef @r, ptr noundef %61, ptr noundef @_Z4cmpy4RectS_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %122, %58
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %125

67:                                               ; preds = %62
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.Rect, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !16
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.Rect, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 16, !tbaa !17
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %79
  %81 = getelementptr inbounds %struct.Rect, ptr %80, i32 0, i32 2
  %82 = load i32, ptr %81, align 8, !tbaa !9
  %83 = call noundef i32 @_Z3queiii(i32 noundef 0, i32 noundef %77, i32 noundef %82)
  %84 = sub nsw i32 %72, %83
  %85 = sub nsw i32 %84, 1
  store i32 %85, ptr @d, align 4, !tbaa !5
  %86 = load i32, ptr @d, align 4, !tbaa !5
  %87 = load i8, ptr %3, align 1, !tbaa !14, !range !18, !noundef !19
  %88 = trunc i8 %87 to i1
  %89 = zext i1 %88 to i32
  %90 = or i32 %89, %86
  %91 = icmp ne i32 %90, 0
  %92 = zext i1 %91 to i8
  store i8 %92, ptr %3, align 1, !tbaa !14
  %93 = load i32, ptr @d, align 4, !tbaa !5
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %95
  %97 = getelementptr inbounds %struct.Rect, ptr %96, i32 0, i32 1
  %98 = load i32, ptr %97, align 4, !tbaa !16
  %99 = sub nsw i32 %98, %93
  store i32 %99, ptr %97, align 4, !tbaa !16
  %100 = load i32, ptr @d, align 4, !tbaa !5
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %102
  %104 = getelementptr inbounds %struct.Rect, ptr %103, i32 0, i32 3
  %105 = load i32, ptr %104, align 4, !tbaa !11
  %106 = sub nsw i32 %105, %100
  store i32 %106, ptr %104, align 4, !tbaa !11
  %107 = load i32, ptr %4, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %108
  %110 = getelementptr inbounds %struct.Rect, ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 16, !tbaa !17
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %113
  %115 = getelementptr inbounds %struct.Rect, ptr %114, i32 0, i32 2
  %116 = load i32, ptr %115, align 8, !tbaa !9
  %117 = load i32, ptr %4, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %118
  %120 = getelementptr inbounds %struct.Rect, ptr %119, i32 0, i32 3
  %121 = load i32, ptr %120, align 4, !tbaa !11
  call void @_Z3updiiii(i32 noundef 0, i32 noundef %111, i32 noundef %116, i32 noundef %121)
  br label %122

122:                                              ; preds = %67
  %123 = load i32, ptr %4, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %4, align 4, !tbaa !5
  br label %62, !llvm.loop !20

125:                                              ; preds = %66
  call void @_Z3coniii(i32 noundef 0, i32 noundef 0, i32 noundef 100000)
  %126 = load i32, ptr @n, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %struct.Rect, ptr @r, i64 %127
  call void @_ZSt4sortIP4RectPFbS0_S0_EEvT_S4_T0_(ptr noundef @r, ptr noundef %128, ptr noundef @_Z4cmpx4RectS_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %189, %125
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %192

134:                                              ; preds = %129
  %135 = load i32, ptr %5, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %136
  %138 = getelementptr inbounds %struct.Rect, ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 16, !tbaa !17
  %140 = load i32, ptr %5, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %141
  %143 = getelementptr inbounds %struct.Rect, ptr %142, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !16
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %146
  %148 = getelementptr inbounds %struct.Rect, ptr %147, i32 0, i32 3
  %149 = load i32, ptr %148, align 4, !tbaa !11
  %150 = call noundef i32 @_Z3queiii(i32 noundef 0, i32 noundef %144, i32 noundef %149)
  %151 = sub nsw i32 %139, %150
  %152 = sub nsw i32 %151, 1
  store i32 %152, ptr @d, align 4, !tbaa !5
  %153 = load i32, ptr @d, align 4, !tbaa !5
  %154 = load i8, ptr %3, align 1, !tbaa !14, !range !18, !noundef !19
  %155 = trunc i8 %154 to i1
  %156 = zext i1 %155 to i32
  %157 = or i32 %156, %153
  %158 = icmp ne i32 %157, 0
  %159 = zext i1 %158 to i8
  store i8 %159, ptr %3, align 1, !tbaa !14
  %160 = load i32, ptr @d, align 4, !tbaa !5
  %161 = load i32, ptr %5, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %162
  %164 = getelementptr inbounds %struct.Rect, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 16, !tbaa !17
  %166 = sub nsw i32 %165, %160
  store i32 %166, ptr %164, align 16, !tbaa !17
  %167 = load i32, ptr @d, align 4, !tbaa !5
  %168 = load i32, ptr %5, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %169
  %171 = getelementptr inbounds %struct.Rect, ptr %170, i32 0, i32 2
  %172 = load i32, ptr %171, align 8, !tbaa !9
  %173 = sub nsw i32 %172, %167
  store i32 %173, ptr %171, align 8, !tbaa !9
  %174 = load i32, ptr %5, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %175
  %177 = getelementptr inbounds %struct.Rect, ptr %176, i32 0, i32 1
  %178 = load i32, ptr %177, align 4, !tbaa !16
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %180
  %182 = getelementptr inbounds %struct.Rect, ptr %181, i32 0, i32 3
  %183 = load i32, ptr %182, align 4, !tbaa !11
  %184 = load i32, ptr %5, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %185
  %187 = getelementptr inbounds %struct.Rect, ptr %186, i32 0, i32 2
  %188 = load i32, ptr %187, align 8, !tbaa !9
  call void @_Z3updiiii(i32 noundef 0, i32 noundef %178, i32 noundef %183, i32 noundef %188)
  br label %189

189:                                              ; preds = %134
  %190 = load i32, ptr %5, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %5, align 4, !tbaa !5
  br label %129, !llvm.loop !21

192:                                              ; preds = %133
  br label %193

193:                                              ; preds = %192
  %194 = load i8, ptr %3, align 1, !tbaa !14, !range !18, !noundef !19
  %195 = trunc i8 %194 to i1
  br i1 %195, label %58, label %196, !llvm.loop !22

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

197:                                              ; preds = %215, %196
  %198 = load i32, ptr %8, align 4, !tbaa !5
  %199 = load i32, ptr @n, align 4, !tbaa !5
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %202, label %201

201:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %218

202:                                              ; preds = %197
  %203 = load i32, ptr %8, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %204
  %206 = getelementptr inbounds %struct.Rect, ptr %205, i32 0, i32 2
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %206)
  %208 = load i32, ptr %207, align 4, !tbaa !5
  store i32 %208, ptr %6, align 4, !tbaa !5
  %209 = load i32, ptr %8, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %210
  %212 = getelementptr inbounds %struct.Rect, ptr %211, i32 0, i32 3
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %212)
  %214 = load i32, ptr %213, align 4, !tbaa !5
  store i32 %214, ptr %7, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %202
  %216 = load i32, ptr %8, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %8, align 4, !tbaa !5
  br label %197, !llvm.loop !23

218:                                              ; preds = %201
  %219 = load i32, ptr %6, align 4, !tbaa !5
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %219)
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %220, i8 noundef signext 32)
  %222 = load i32, ptr %7, align 4, !tbaa !5
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %221, i32 noundef %222)
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #7
  br label %10, !llvm.loop !24

225:                                              ; preds = %10
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

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

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


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

%struct.Rect = type { i32, i32, i32, i32 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@r = external dso_local global [509 x %struct.Rect], align 16
@T = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@d = external dso_local local_unnamed_addr global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmpx4RectS_(i64, i64, i64, i64) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmpy4RectS_(i64, i64, i64, i64) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3coniii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3updiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3queiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @T)
  %4 = load i32, ptr @T, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @T, align 4, !tbaa !5
  %.not53 = icmp eq i32 %4, 0
  br i1 %.not53, label %._crit_edge56, label %.lr.ph55

.lr.ph55:                                         ; preds = %0, %._crit_edge52
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %.preheader.preheader

.lr.ph:                                           ; preds = %.lr.ph55, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph55 ]
  %9 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %indvars.iv
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %11 = getelementptr inbounds i8, ptr %9, i64 4
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %13 = getelementptr inbounds i8, ptr %9, i64 8
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %15 = getelementptr inbounds i8, ptr %9, i64 12
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %17 = load <2 x i32>, ptr %13, align 8, !tbaa !5
  %18 = add nsw <2 x i32> %17, <i32 -1, i32 -1>
  store <2 x i32> %18, ptr %13, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv.next, %20
  br i1 %21, label %.lr.ph, label %.preheader.preheader, !llvm.loop !9

.preheader.preheader:                             ; preds = %.lr.ph, %.lr.ph55
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge47
  call void @_Z3coniii(i32 noundef 0, i32 noundef 0, i32 noundef 100000)
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds %struct.Rect, ptr @r, i64 %23
  call void @_ZSt4sortIP4RectPFbS0_S0_EEvT_S4_T0_(ptr noundef nonnull @r, ptr noundef nonnull %24, ptr noundef nonnull @_Z4cmpy4RectS_)
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph42, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph42, %.preheader
  %.037.lcssa = phi i8 [ 0, %.preheader ], [ %44, %.lr.ph42 ]
  call void @_Z3coniii(i32 noundef 0, i32 noundef 0, i32 noundef 100000)
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds %struct.Rect, ptr @r, i64 %28
  call void @_ZSt4sortIP4RectPFbS0_S0_EEvT_S4_T0_(ptr noundef nonnull @r, ptr noundef nonnull %29, ptr noundef nonnull @_Z4cmpx4RectS_)
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph46, label %._crit_edge47

.lr.ph42:                                         ; preds = %.preheader, %.lr.ph42
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %.lr.ph42 ], [ 0, %.preheader ]
  %.03740 = phi i8 [ %44, %.lr.ph42 ], [ 0, %.preheader ]
  %32 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %indvars.iv59
  %33 = getelementptr inbounds i8, ptr %32, i64 4
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = load i32, ptr %32, align 16, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %32, i64 8
  %37 = load i32, ptr %36, align 8, !tbaa !14
  %38 = call noundef i32 @_Z3queiii(i32 noundef 0, i32 noundef %35, i32 noundef %37)
  %39 = xor i32 %38, -1
  %40 = add i32 %34, %39
  store i32 %40, ptr @d, align 4, !tbaa !5
  %41 = zext nneg i8 %.03740 to i32
  %42 = or i32 %40, %41
  %43 = icmp ne i32 %42, 0
  %44 = zext i1 %43 to i8
  %45 = load i32, ptr %33, align 4, !tbaa !11
  %46 = sub nsw i32 %45, %40
  store i32 %46, ptr %33, align 4, !tbaa !11
  %47 = getelementptr inbounds i8, ptr %32, i64 12
  %48 = load i32, ptr %47, align 4, !tbaa !15
  %49 = sub nsw i32 %48, %40
  store i32 %49, ptr %47, align 4, !tbaa !15
  %50 = load i32, ptr %32, align 16, !tbaa !13
  %51 = load i32, ptr %36, align 8, !tbaa !14
  call void @_Z3updiiii(i32 noundef 0, i32 noundef %50, i32 noundef %51, i32 noundef %49)
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %52 = load i32, ptr @n, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next60, %53
  br i1 %54, label %.lr.ph42, label %._crit_edge, !llvm.loop !16

._crit_edge47:                                    ; preds = %.lr.ph46, %._crit_edge
  %55 = phi i32 [ %30, %._crit_edge ], [ %77, %.lr.ph46 ]
  %.1.lcssa = phi i8 [ %.037.lcssa, %._crit_edge ], [ %69, %.lr.ph46 ]
  %56 = trunc nuw i8 %.1.lcssa to i1
  br i1 %56, label %.preheader, label %80, !llvm.loop !17

.lr.ph46:                                         ; preds = %._crit_edge, %.lr.ph46
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %.lr.ph46 ], [ 0, %._crit_edge ]
  %.143 = phi i8 [ %69, %.lr.ph46 ], [ %.037.lcssa, %._crit_edge ]
  %57 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %indvars.iv61
  %58 = load i32, ptr %57, align 16, !tbaa !13
  %59 = getelementptr inbounds i8, ptr %57, i64 4
  %60 = load i32, ptr %59, align 4, !tbaa !11
  %61 = getelementptr inbounds i8, ptr %57, i64 12
  %62 = load i32, ptr %61, align 4, !tbaa !15
  %63 = call noundef i32 @_Z3queiii(i32 noundef 0, i32 noundef %60, i32 noundef %62)
  %64 = xor i32 %63, -1
  %65 = add i32 %58, %64
  store i32 %65, ptr @d, align 4, !tbaa !5
  %66 = zext nneg i8 %.143 to i32
  %67 = or i32 %65, %66
  %68 = icmp ne i32 %67, 0
  %69 = zext i1 %68 to i8
  %70 = load i32, ptr %57, align 16, !tbaa !13
  %71 = sub nsw i32 %70, %65
  store i32 %71, ptr %57, align 16, !tbaa !13
  %72 = getelementptr inbounds i8, ptr %57, i64 8
  %73 = load i32, ptr %72, align 8, !tbaa !14
  %74 = sub nsw i32 %73, %65
  store i32 %74, ptr %72, align 8, !tbaa !14
  %75 = load i32, ptr %59, align 4, !tbaa !11
  %76 = load i32, ptr %61, align 4, !tbaa !15
  call void @_Z3updiiii(i32 noundef 0, i32 noundef %75, i32 noundef %76, i32 noundef %74)
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %77 = load i32, ptr @n, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next62, %78
  br i1 %79, label %.lr.ph46, label %._crit_edge47, !llvm.loop !18

80:                                               ; preds = %._crit_edge47
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  %81 = icmp sgt i32 %55, 0
  br i1 %81, label %.lr.ph51, label %._crit_edge52

._crit_edge52.loopexit:                           ; preds = %.lr.ph51
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge52

._crit_edge52:                                    ; preds = %._crit_edge52.loopexit, %80
  %82 = phi i32 [ %.pre, %._crit_edge52.loopexit ], [ 0, %80 ]
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %82)
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %83, i8 noundef signext 32)
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %84, i32 noundef %85)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %88 = load i32, ptr @T, align 4, !tbaa !5
  %89 = add nsw i32 %88, -1
  store i32 %89, ptr @T, align 4, !tbaa !5
  %.not = icmp eq i32 %88, 0
  br i1 %.not, label %._crit_edge56, label %.lr.ph55, !llvm.loop !19

.lr.ph51:                                         ; preds = %80, %.lr.ph51
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %.lr.ph51 ], [ 0, %80 ]
  %90 = getelementptr inbounds [509 x %struct.Rect], ptr @r, i64 0, i64 %indvars.iv63
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %91)
  %93 = load i32, ptr %92, align 4, !tbaa !5
  store i32 %93, ptr %1, align 4, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %90, i64 12
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %94)
  %96 = load i32, ptr %95, align 4, !tbaa !5
  store i32 %96, ptr %2, align 4, !tbaa !5
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %97 = load i32, ptr @n, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = icmp slt i64 %indvars.iv.next64, %98
  br i1 %99, label %.lr.ph51, label %._crit_edge52.loopexit, !llvm.loop !20

._crit_edge56:                                    ; preds = %._crit_edge52, %0
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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


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