; LLVM IR from lzyrapx/Competitive-Programming :: 百度之星/2018/2018-A-Round (C)

; 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.std::pair" = type { 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" }

@s = external dso_local global [1000123 x i8], align 16
@arr = external dso_local global [1000123 x %"struct.std::pair"], align 16
@num = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

27:                                               ; preds = %338, %336, %2
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr %29, i64 %32
  %34 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %33)
  br i1 %34, label %35, label %339

35:                                               ; preds = %27
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef getelementptr inbounds (i8, ptr @s, i64 1))
  store i32 0, ptr @num, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %37 = call i64 @strlen(ptr noundef getelementptr inbounds (i8, ptr @s, i64 1)) #8
  %38 = trunc i64 %37 to i32
  store i32 %38, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 1, ptr %9, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %80, %35
  %40 = load i32, ptr %10, align 4, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = icmp sle i32 %40, %41
  br i1 %42, label %44, label %43

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

44:                                               ; preds = %39
  %45 = load i32, ptr %10, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [1000123 x i8], ptr @s, i64 0, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !15
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %49, 49
  br i1 %50, label %51, label %78

51:                                               ; preds = %44
  %52 = load i32, ptr %10, align 4, !tbaa !5
  %53 = sub nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [1000123 x i8], ptr @s, i64 0, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !15
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 49
  br i1 %58, label %59, label %67

59:                                               ; preds = %51
  %60 = load i32, ptr @num, align 4, !tbaa !5
  %61 = sub nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %62
  %64 = getelementptr inbounds %"struct.std::pair", ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !16
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %64, align 8, !tbaa !16
  br label %77

67:                                               ; preds = %51
  %68 = load i32, ptr @num, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %69
  %71 = getelementptr inbounds %"struct.std::pair", ptr %70, i32 0, i32 1
  store i32 0, ptr %71, align 4, !tbaa !18
  %72 = load i32, ptr @num, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr @num, align 4, !tbaa !5
  %74 = sext i32 %72 to i64
  %75 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %74
  %76 = getelementptr inbounds %"struct.std::pair", ptr %75, i32 0, i32 0
  store i32 1, ptr %76, align 8, !tbaa !16
  br label %77

77:                                               ; preds = %67, %59
  br label %79

78:                                               ; preds = %44
  store i8 0, ptr %9, align 1, !tbaa !13
  br label %79

79:                                               ; preds = %78, %77
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %10, align 4, !tbaa !5
  br label %39, !llvm.loop !19

83:                                               ; preds = %43
  %84 = load i8, ptr %9, align 1, !tbaa !13, !range !21, !noundef !22
  %85 = trunc i8 %84 to i1
  %86 = zext i1 %85 to i32
  %87 = icmp eq i32 %86, 1
  br i1 %87, label %88, label %92

88:                                               ; preds = %83
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %89)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %90, i8 noundef signext 10)
  store i32 2, ptr %11, align 4
  br label %336, !llvm.loop !23

92:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  %93 = load i8, ptr getelementptr inbounds ([1000123 x i8], ptr @s, i64 0, i64 1), align 1, !tbaa !15
  %94 = sext i8 %93 to i32
  %95 = icmp eq i32 %94, 49
  br i1 %95, label %96, label %98

96:                                               ; preds = %92
  %97 = load i32, ptr @arr, align 16, !tbaa !16
  store i32 %97, ptr %12, align 4, !tbaa !5
  store i32 1, ptr getelementptr inbounds (%"struct.std::pair", ptr @arr, i32 0, i32 1), align 4, !tbaa !18
  br label %98

98:                                               ; preds = %96, %92
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [1000123 x i8], ptr @s, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !15
  %103 = sext i8 %102 to i32
  %104 = icmp eq i32 %103, 49
  br i1 %104, label %105, label %118

105:                                              ; preds = %98
  %106 = load i32, ptr @num, align 4, !tbaa !5
  %107 = sub nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %108
  %110 = getelementptr inbounds %"struct.std::pair", ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 8, !tbaa !16
  store i32 %111, ptr %13, align 4, !tbaa !5
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = load i32, ptr @num, align 4, !tbaa !5
  %114 = sub nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %115
  %117 = getelementptr inbounds %"struct.std::pair", ptr %116, i32 0, i32 1
  store i32 %112, ptr %117, align 4, !tbaa !18
  br label %118

118:                                              ; preds = %105, %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  %119 = load i32, ptr %7, align 4, !tbaa !5
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %330

121:                                              ; preds = %118
  %122 = load i32, ptr @num, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds %"struct.std::pair", ptr @arr, i64 %123
  call void @_ZSt4sortIPSt4pairIiiEEvT_S3_(ptr noundef @arr, ptr noundef %124)
  %125 = load i32, ptr %12, align 4, !tbaa !5
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %165

127:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %128 = load i32, ptr @num, align 4, !tbaa !5
  %129 = sub nsw i32 %128, 1
  store i32 %129, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %130 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %130, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %131 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %131, ptr %17, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %150, %147, %127
  %133 = load i32, ptr %16, align 4, !tbaa !5
  %134 = icmp sgt i32 %133, 1
  br i1 %134, label %135, label %138

135:                                              ; preds = %132
  %136 = load i32, ptr %15, align 4, !tbaa !5
  %137 = icmp sge i32 %136, 0
  br label %138

138:                                              ; preds = %135, %132
  %139 = phi i1 [ false, %132 ], [ %137, %135 ]
  br i1 %139, label %140, label %162

140:                                              ; preds = %138
  %141 = load i32, ptr %15, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %142
  %144 = getelementptr inbounds %"struct.std::pair", ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 4, !tbaa !18
  %146 = icmp eq i32 %145, 1
  br i1 %146, label %147, label %150

147:                                              ; preds = %140
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = add nsw i32 %148, -1
  store i32 %149, ptr %15, align 4, !tbaa !5
  br label %132, !llvm.loop !24

150:                                              ; preds = %140
  %151 = load i32, ptr %15, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %152
  %154 = getelementptr inbounds %"struct.std::pair", ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 8, !tbaa !16
  %156 = load i32, ptr %17, align 4, !tbaa !5
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %17, align 4, !tbaa !5
  %158 = load i32, ptr %15, align 4, !tbaa !5
  %159 = add nsw i32 %158, -1
  store i32 %159, ptr %15, align 4, !tbaa !5
  %160 = load i32, ptr %16, align 4, !tbaa !5
  %161 = sub nsw i32 %160, 2
  store i32 %161, ptr %16, align 4, !tbaa !5
  br label %132, !llvm.loop !24

162:                                              ; preds = %138
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %164 = load i32, ptr %163, align 4, !tbaa !5
  store i32 %164, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %165

165:                                              ; preds = %162, %121
  %166 = load i32, ptr @num, align 4, !tbaa !5
  %167 = icmp sgt i32 %166, 0
  br i1 %167, label %168, label %202

168:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %169 = load i32, ptr @num, align 4, !tbaa !5
  %170 = sub nsw i32 %169, 2
  store i32 %170, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %171 = load i32, ptr %7, align 4, !tbaa !5
  %172 = sub nsw i32 %171, 1
  store i32 %172, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %173 = load i32, ptr @num, align 4, !tbaa !5
  %174 = sub nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %175
  %177 = getelementptr inbounds %"struct.std::pair", ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 8, !tbaa !16
  store i32 %178, ptr %20, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %187, %168
  %180 = load i32, ptr %19, align 4, !tbaa !5
  %181 = icmp sgt i32 %180, 1
  br i1 %181, label %182, label %185

182:                                              ; preds = %179
  %183 = load i32, ptr %18, align 4, !tbaa !5
  %184 = icmp sge i32 %183, 0
  br label %185

185:                                              ; preds = %182, %179
  %186 = phi i1 [ false, %179 ], [ %184, %182 ]
  br i1 %186, label %187, label %199

187:                                              ; preds = %185
  %188 = load i32, ptr %18, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %189
  %191 = getelementptr inbounds %"struct.std::pair", ptr %190, i32 0, i32 0
  %192 = load i32, ptr %191, align 8, !tbaa !16
  %193 = load i32, ptr %20, align 4, !tbaa !5
  %194 = add nsw i32 %193, %192
  store i32 %194, ptr %20, align 4, !tbaa !5
  %195 = load i32, ptr %18, align 4, !tbaa !5
  %196 = add nsw i32 %195, -1
  store i32 %196, ptr %18, align 4, !tbaa !5
  %197 = load i32, ptr %19, align 4, !tbaa !5
  %198 = sub nsw i32 %197, 2
  store i32 %198, ptr %19, align 4, !tbaa !5
  br label %179, !llvm.loop !25

199:                                              ; preds = %185
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %201 = load i32, ptr %200, align 4, !tbaa !5
  store i32 %201, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %202

202:                                              ; preds = %199, %165
  %203 = load i32, ptr %13, align 4, !tbaa !5
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %205, label %274

205:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %206 = load i32, ptr @num, align 4, !tbaa !5
  %207 = sub nsw i32 %206, 1
  store i32 %207, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = sub nsw i32 %208, 1
  store i32 %209, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %210 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %210, ptr %23, align 4, !tbaa !5
  %211 = load i32, ptr %21, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %212
  %214 = getelementptr inbounds %"struct.std::pair", ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 4, !tbaa !18
  %216 = load i32, ptr %8, align 4, !tbaa !5
  %217 = icmp eq i32 %215, %216
  br i1 %217, label %218, label %221

218:                                              ; preds = %205
  %219 = load i32, ptr %21, align 4, !tbaa !5
  %220 = add nsw i32 %219, -1
  store i32 %220, ptr %21, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %218, %205
  %222 = load i32, ptr %22, align 4, !tbaa !5
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %239

224:                                              ; preds = %221
  %225 = load i32, ptr %21, align 4, !tbaa !5
  %226 = icmp sge i32 %225, 0
  br i1 %226, label %227, label %239

227:                                              ; preds = %224
  %228 = load i32, ptr %21, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %229
  %231 = getelementptr inbounds %"struct.std::pair", ptr %230, i32 0, i32 0
  %232 = load i32, ptr %231, align 8, !tbaa !16
  %233 = load i32, ptr %23, align 4, !tbaa !5
  %234 = add nsw i32 %233, %232
  store i32 %234, ptr %23, align 4, !tbaa !5
  %235 = load i32, ptr %21, align 4, !tbaa !5
  %236 = add nsw i32 %235, -1
  store i32 %236, ptr %21, align 4, !tbaa !5
  %237 = load i32, ptr %22, align 4, !tbaa !5
  %238 = add nsw i32 %237, -1
  store i32 %238, ptr %22, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %227, %224, %221
  br label %240

240:                                              ; preds = %259, %256, %239
  %241 = load i32, ptr %22, align 4, !tbaa !5
  %242 = icmp sgt i32 %241, 1
  br i1 %242, label %243, label %246

243:                                              ; preds = %240
  %244 = load i32, ptr %21, align 4, !tbaa !5
  %245 = icmp sge i32 %244, 0
  br label %246

246:                                              ; preds = %243, %240
  %247 = phi i1 [ false, %240 ], [ %245, %243 ]
  br i1 %247, label %248, label %271

248:                                              ; preds = %246
  %249 = load i32, ptr %21, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %250
  %252 = getelementptr inbounds %"struct.std::pair", ptr %251, i32 0, i32 1
  %253 = load i32, ptr %252, align 4, !tbaa !18
  %254 = load i32, ptr %8, align 4, !tbaa !5
  %255 = icmp eq i32 %253, %254
  br i1 %255, label %256, label %259

256:                                              ; preds = %248
  %257 = load i32, ptr %21, align 4, !tbaa !5
  %258 = add nsw i32 %257, -1
  store i32 %258, ptr %21, align 4, !tbaa !5
  br label %240, !llvm.loop !26

259:                                              ; preds = %248
  %260 = load i32, ptr %21, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %261
  %263 = getelementptr inbounds %"struct.std::pair", ptr %262, i32 0, i32 0
  %264 = load i32, ptr %263, align 8, !tbaa !16
  %265 = load i32, ptr %23, align 4, !tbaa !5
  %266 = add nsw i32 %265, %264
  store i32 %266, ptr %23, align 4, !tbaa !5
  %267 = load i32, ptr %21, align 4, !tbaa !5
  %268 = add nsw i32 %267, -1
  store i32 %268, ptr %21, align 4, !tbaa !5
  %269 = load i32, ptr %22, align 4, !tbaa !5
  %270 = sub nsw i32 %269, 2
  store i32 %270, ptr %22, align 4, !tbaa !5
  br label %240, !llvm.loop !26

271:                                              ; preds = %246
  %272 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %273 = load i32, ptr %272, align 4, !tbaa !5
  store i32 %273, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %274

274:                                              ; preds = %271, %202
  %275 = load i32, ptr %12, align 4, !tbaa !5
  %276 = icmp sgt i32 %275, 0
  br i1 %276, label %277, label %329

277:                                              ; preds = %274
  %278 = load i32, ptr %13, align 4, !tbaa !5
  %279 = icmp sgt i32 %278, 0
  br i1 %279, label %280, label %329

280:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %281 = load i32, ptr %7, align 4, !tbaa !5
  %282 = sub nsw i32 %281, 1
  store i32 %282, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %283 = load i32, ptr @num, align 4, !tbaa !5
  %284 = sub nsw i32 %283, 1
  store i32 %284, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %285 = load i32, ptr %13, align 4, !tbaa !5
  %286 = load i32, ptr %12, align 4, !tbaa !5
  %287 = add nsw i32 %285, %286
  store i32 %287, ptr %26, align 4, !tbaa !5
  br label %288

288:                                              ; preds = %314, %311, %280
  %289 = load i32, ptr %24, align 4, !tbaa !5
  %290 = icmp sgt i32 %289, 1
  br i1 %290, label %291, label %294

291:                                              ; preds = %288
  %292 = load i32, ptr %25, align 4, !tbaa !5
  %293 = icmp sge i32 %292, 0
  br label %294

294:                                              ; preds = %291, %288
  %295 = phi i1 [ false, %288 ], [ %293, %291 ]
  br i1 %295, label %296, label %326

296:                                              ; preds = %294
  %297 = load i32, ptr %25, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %298
  %300 = getelementptr inbounds %"struct.std::pair", ptr %299, i32 0, i32 1
  %301 = load i32, ptr %300, align 4, !tbaa !18
  %302 = icmp eq i32 %301, 1
  br i1 %302, label %311, label %303

303:                                              ; preds = %296
  %304 = load i32, ptr %25, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %305
  %307 = getelementptr inbounds %"struct.std::pair", ptr %306, i32 0, i32 1
  %308 = load i32, ptr %307, align 4, !tbaa !18
  %309 = load i32, ptr %8, align 4, !tbaa !5
  %310 = icmp eq i32 %308, %309
  br i1 %310, label %311, label %314

311:                                              ; preds = %303, %296
  %312 = load i32, ptr %25, align 4, !tbaa !5
  %313 = add nsw i32 %312, -1
  store i32 %313, ptr %25, align 4, !tbaa !5
  br label %288, !llvm.loop !27

314:                                              ; preds = %303
  %315 = load i32, ptr %25, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %316
  %318 = getelementptr inbounds %"struct.std::pair", ptr %317, i32 0, i32 0
  %319 = load i32, ptr %318, align 8, !tbaa !16
  %320 = load i32, ptr %26, align 4, !tbaa !5
  %321 = add nsw i32 %320, %319
  store i32 %321, ptr %26, align 4, !tbaa !5
  %322 = load i32, ptr %25, align 4, !tbaa !5
  %323 = add nsw i32 %322, -1
  store i32 %323, ptr %25, align 4, !tbaa !5
  %324 = load i32, ptr %24, align 4, !tbaa !5
  %325 = sub nsw i32 %324, 2
  store i32 %325, ptr %24, align 4, !tbaa !5
  br label %288, !llvm.loop !27

326:                                              ; preds = %294
  %327 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %328 = load i32, ptr %327, align 4, !tbaa !5
  store i32 %328, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %329

329:                                              ; preds = %326, %277, %274
  br label %332

330:                                              ; preds = %118
  %331 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %331, ptr %14, align 4, !tbaa !5
  br label %332

332:                                              ; preds = %330, %329
  %333 = load i32, ptr %14, align 4, !tbaa !5
  %334 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %333)
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %334, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  store i32 0, ptr %11, align 4
  br label %336

336:                                              ; preds = %332, %88
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  %337 = load i32, ptr %11, align 4
  switch i32 %337, label %341 [
    i32 0, label %338
    i32 2, label %27
  ]

338:                                              ; preds = %336
  br label %27, !llvm.loop !23

339:                                              ; preds = %27
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %340 = load i32, ptr %3, align 4
  ret i32 %340

341:                                              ; preds = %336
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #3 align 2

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

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

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

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

; 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)) #6

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

!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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!18 = !{!17, !6, i64 4}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}


; 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.std::pair" = type { 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" }

@s = external dso_local global [1000123 x i8], align 16
@arr = external dso_local global [1000123 x %"struct.std::pair"], align 16
@num = external dso_local local_unnamed_addr global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %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) %3)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr %11, i64 %14
  %16 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %15)
  br i1 %16, label %.lr.ph108, label %._crit_edge109

.lr.ph108:                                        ; preds = %2, %226
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @s, i64 1))
  store i32 0, ptr @num, align 4, !tbaa !8
  %18 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @s, i64 1)) #10
  %19 = trunc i64 %18 to i32
  %.not86 = icmp slt i32 %19, 1
  br i1 %.not86, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph108
  %20 = add nuw nsw i64 %18, 1
  %wide.trip.count = and i64 %20, 4294967295
  br label %.lr.ph.outer

.lr.ph.outer:                                     ; preds = %.thread132, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ %indvars.iv.next134, %.thread132 ], [ 1, %.lr.ph.preheader ]
  %.06987.ph = phi i1 [ false, %.thread132 ], [ true, %.lr.ph.preheader ]
  %.ph = phi i32 [ %21, %.thread132 ], [ 0, %.lr.ph.preheader ]
  br label %.lr.ph

._crit_edge:                                      ; preds = %41
  br i1 %.06987.ph, label %.critedge, label %._crit_edge.thread

.lr.ph:                                           ; preds = %.lr.ph.outer, %41
  %indvars.iv = phi i64 [ %indvars.iv.next, %41 ], [ %indvars.iv.ph, %.lr.ph.outer ]
  %21 = phi i32 [ %42, %41 ], [ %.ph, %.lr.ph.outer ]
  %22 = getelementptr inbounds [1000123 x i8], ptr @s, i64 0, i64 %indvars.iv
  %23 = load i8, ptr %22, align 1, !tbaa !11
  %24 = icmp eq i8 %23, 49
  br i1 %24, label %25, label %.thread132

25:                                               ; preds = %.lr.ph
  %26 = add nsw i64 %indvars.iv, -1
  %27 = getelementptr inbounds [1000123 x i8], ptr @s, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = icmp eq i8 %28, 49
  br i1 %29, label %30, label %36

30:                                               ; preds = %25
  %31 = add nsw i32 %21, -1
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %32
  %34 = load i32, ptr %33, align 8, !tbaa !12
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %33, align 8, !tbaa !12
  br label %41

36:                                               ; preds = %25
  %37 = sext i32 %21 to i64
  %38 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %37, i32 1
  store i32 0, ptr %38, align 4, !tbaa !14
  %39 = add nsw i32 %21, 1
  store i32 %39, ptr @num, align 4, !tbaa !8
  %40 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %37
  store i32 1, ptr %40, align 8, !tbaa !12
  br label %41

41:                                               ; preds = %36, %30
  %42 = phi i32 [ %21, %30 ], [ %39, %36 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

.thread132:                                       ; preds = %.lr.ph
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not135 = icmp eq i64 %indvars.iv.next134, %wide.trip.count
  br i1 %exitcond.not135, label %._crit_edge.thread, label %.lr.ph.outer, !llvm.loop !15

.critedge:                                        ; preds = %.lr.ph108, %._crit_edge
  %43 = load i32, ptr %3, align 4, !tbaa !8
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %43)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %44, i8 noundef signext 10)
  br label %226, !llvm.loop !17

._crit_edge.thread:                               ; preds = %.thread132, %._crit_edge
  %46 = phi i32 [ %42, %._crit_edge ], [ %21, %.thread132 ]
  %47 = load i8, ptr getelementptr inbounds (i8, ptr @s, i64 1), align 1, !tbaa !11
  %48 = icmp eq i8 %47, 49
  br i1 %48, label %49, label %51

49:                                               ; preds = %._crit_edge.thread
  %50 = load i32, ptr @arr, align 16, !tbaa !12
  store i32 1, ptr getelementptr inbounds (i8, ptr @arr, i64 4), align 4, !tbaa !14
  br label %51

51:                                               ; preds = %49, %._crit_edge.thread
  %.067 = phi i32 [ %50, %49 ], [ 0, %._crit_edge.thread ]
  %sext = and i64 %18, 2147483647
  %52 = getelementptr inbounds [1000123 x i8], ptr @s, i64 0, i64 %sext
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %54 = icmp eq i8 %53, 49
  br i1 %54, label %55, label %61

55:                                               ; preds = %51
  %56 = add nsw i32 %46, -1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %57
  %59 = load i32, ptr %58, align 8, !tbaa !12
  %60 = getelementptr inbounds i8, ptr %58, i64 4
  store i32 %19, ptr %60, align 4, !tbaa !14
  br label %61

61:                                               ; preds = %55, %51
  %.066 = phi i32 [ %59, %55 ], [ 0, %51 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 0, ptr %5, align 4, !tbaa !8
  %62 = load i32, ptr %4, align 4, !tbaa !8
  %.not75 = icmp eq i32 %62, 0
  br i1 %.not75, label %222, label %63

63:                                               ; preds = %61
  %64 = sext i32 %46 to i64
  %65 = getelementptr inbounds %"struct.std::pair", ptr @arr, i64 %64
  call void @_ZSt4sortIPSt4pairIiiEEvT_S3_(ptr noundef nonnull @arr, ptr noundef nonnull %65)
  %.not76 = icmp eq i32 %.067, 0
  br i1 %.not76, label %87, label %66

66:                                               ; preds = %63
  %67 = load i32, ptr @num, align 4, !tbaa !8
  %68 = load i32, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  store i32 %.067, ptr %6, align 4, !tbaa !8
  %.fr = freeze i32 %68
  %69 = icmp sgt i32 %.fr, 1
  br i1 %69, label %.outer80.split.preheader, label %.split

.outer80.split.preheader:                         ; preds = %66, %.outer80
  %.064.ph169 = phi i32 [ %83, %.outer80 ], [ %.fr, %66 ]
  %.065.in.ph168 = phi i32 [ %80, %.outer80 ], [ %67, %66 ]
  %70 = phi i32 [ %82, %.outer80 ], [ %.067, %66 ]
  %71 = zext i32 %.065.in.ph168 to i64
  br label %.outer80.split

.outer80.split:                                   ; preds = %.outer80.split.preheader, %74
  %indvars.iv120 = phi i64 [ %71, %.outer80.split.preheader ], [ %75, %74 ]
  %72 = trunc nuw i64 %indvars.iv120 to i32
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %74, label %.split

74:                                               ; preds = %.outer80.split
  %75 = add nsw i64 %indvars.iv120, -1
  %76 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %75
  %77 = getelementptr inbounds i8, ptr %76, i64 4
  %78 = load i32, ptr %77, align 4, !tbaa !14
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %.outer80.split, label %.outer80, !llvm.loop !18

.outer80:                                         ; preds = %74
  %80 = trunc i64 %75 to i32
  %81 = load i32, ptr %76, align 8, !tbaa !12
  %82 = add nsw i32 %70, %81
  store i32 %82, ptr %6, align 4, !tbaa !8
  %83 = add nsw i32 %.064.ph169, -2
  %84 = icmp sgt i32 %.064.ph169, 3
  br i1 %84, label %.outer80.split.preheader, label %.split, !llvm.loop !18

.split:                                           ; preds = %.outer80, %.outer80.split, %66
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %86 = load i32, ptr %85, align 4, !tbaa !8
  store i32 %86, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %87

87:                                               ; preds = %.split, %63
  %88 = load i32, ptr @num, align 4, !tbaa !8
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %90, label %154

90:                                               ; preds = %87
  %91 = load i32, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  %92 = add nsw i32 %88, -1
  %93 = zext nneg i32 %92 to i64
  %94 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %93
  %95 = load i32, ptr %94, align 8, !tbaa !12
  store i32 %95, ptr %7, align 4, !tbaa !8
  %96 = icmp sgt i32 %91, 2
  %97 = icmp ne i32 %88, 1
  %98 = and i1 %96, %97
  br i1 %98, label %.lr.ph92.preheader, label %151

.lr.ph92.preheader:                               ; preds = %90
  %99 = add nsw i32 %91, -1
  %100 = add nsw i32 %88, -2
  %101 = zext i32 %100 to i64
  %102 = add nsw i32 %91, -3
  %103 = lshr i32 %102, 1
  %104 = call i32 @llvm.umin.i32(i32 %103, i32 %100)
  %narrow = add nuw i32 %104, 1
  %105 = zext i32 %narrow to i64
  %min.iters.check = icmp ult i32 %104, 7
  br i1 %min.iters.check, label %.lr.ph92.preheader177, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph92.preheader
  %n.vec = and i64 %105, 4294967288
  %ind.end = sub nsw i64 %101, %n.vec
  %.cast = trunc nuw i64 %n.vec to i32
  %106 = shl i32 %.cast, 1
  %ind.end172 = sub i32 %99, %106
  %107 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %95, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %107, %vector.ph ], [ %139, %vector.body ]
  %vec.phi174 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %140, %vector.body ]
  %offset.idx = sub i64 %101, %index
  %108 = add i64 %offset.idx, -1
  %109 = add i64 %offset.idx, -2
  %110 = add i64 %offset.idx, -3
  %111 = add i64 %offset.idx, -4
  %112 = add i64 %offset.idx, -5
  %113 = add i64 %offset.idx, -6
  %114 = add i64 %offset.idx, -7
  %115 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %offset.idx
  %116 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %108
  %117 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %109
  %118 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %110
  %119 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %111
  %120 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %112
  %121 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %113
  %122 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %114
  %123 = load i32, ptr %115, align 8, !tbaa !12
  %124 = load i32, ptr %116, align 8, !tbaa !12
  %125 = load i32, ptr %117, align 8, !tbaa !12
  %126 = load i32, ptr %118, align 8, !tbaa !12
  %127 = insertelement <4 x i32> poison, i32 %123, i64 0
  %128 = insertelement <4 x i32> %127, i32 %124, i64 1
  %129 = insertelement <4 x i32> %128, i32 %125, i64 2
  %130 = insertelement <4 x i32> %129, i32 %126, i64 3
  %131 = load i32, ptr %119, align 8, !tbaa !12
  %132 = load i32, ptr %120, align 8, !tbaa !12
  %133 = load i32, ptr %121, align 8, !tbaa !12
  %134 = load i32, ptr %122, align 8, !tbaa !12
  %135 = insertelement <4 x i32> poison, i32 %131, i64 0
  %136 = insertelement <4 x i32> %135, i32 %132, i64 1
  %137 = insertelement <4 x i32> %136, i32 %133, i64 2
  %138 = insertelement <4 x i32> %137, i32 %134, i64 3
  %139 = add <4 x i32> %vec.phi, %130
  %140 = add <4 x i32> %vec.phi174, %138
  %index.next = add nuw i64 %index, 8
  %141 = icmp eq i64 %index.next, %n.vec
  br i1 %141, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %140, %139
  %142 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %105
  br i1 %cmp.n, label %._crit_edge93, label %.lr.ph92.preheader177

.lr.ph92.preheader177:                            ; preds = %middle.block, %.lr.ph92.preheader
  %indvars.iv124.ph = phi i64 [ %101, %.lr.ph92.preheader ], [ %ind.end, %middle.block ]
  %.06290.ph = phi i32 [ %99, %.lr.ph92.preheader ], [ %ind.end172, %middle.block ]
  %.ph178 = phi i32 [ %95, %.lr.ph92.preheader ], [ %142, %middle.block ]
  br label %.lr.ph92

.lr.ph92:                                         ; preds = %.lr.ph92.preheader177, %.lr.ph92
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %.lr.ph92 ], [ %indvars.iv124.ph, %.lr.ph92.preheader177 ]
  %.06290 = phi i32 [ %147, %.lr.ph92 ], [ %.06290.ph, %.lr.ph92.preheader177 ]
  %143 = phi i32 [ %146, %.lr.ph92 ], [ %.ph178, %.lr.ph92.preheader177 ]
  %144 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %indvars.iv124
  %145 = load i32, ptr %144, align 8, !tbaa !12
  %146 = add nsw i32 %143, %145
  %indvars.iv.next125 = add nsw i64 %indvars.iv124, -1
  %147 = add nsw i32 %.06290, -2
  %148 = icmp ugt i32 %.06290, 3
  %149 = icmp ne i64 %indvars.iv124, 0
  %150 = and i1 %148, %149
  br i1 %150, label %.lr.ph92, label %._crit_edge93, !llvm.loop !22

._crit_edge93:                                    ; preds = %.lr.ph92, %middle.block
  %.lcssa162 = phi i32 [ %142, %middle.block ], [ %146, %.lr.ph92 ]
  store i32 %.lcssa162, ptr %7, align 4, !tbaa !8
  br label %151

151:                                              ; preds = %._crit_edge93, %90
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %153 = load i32, ptr %152, align 4, !tbaa !8
  store i32 %153, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %154

154:                                              ; preds = %151, %87
  %155 = icmp sgt i32 %.066, 0
  br i1 %155, label %156, label %..thread_crit_edge

..thread_crit_edge:                               ; preds = %154
  %.pre = load i32, ptr %5, align 4, !tbaa !8
  br label %.thread

156:                                              ; preds = %154
  %157 = load i32, ptr @num, align 4, !tbaa !8
  %158 = add nsw i32 %157, -1
  %159 = load i32, ptr %4, align 4, !tbaa !8
  %160 = add nsw i32 %159, -1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 %.066, ptr %8, align 4, !tbaa !8
  %161 = sext i32 %158 to i64
  %162 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %161, i32 1
  %163 = load i32, ptr %162, align 4, !tbaa !14
  %164 = icmp eq i32 %163, %19
  %165 = add nsw i32 %157, -2
  %spec.select = select i1 %164, i32 %165, i32 %158
  %166 = icmp ne i32 %160, 0
  %167 = icmp sgt i32 %spec.select, -1
  %or.cond = select i1 %166, i1 %167, i1 false
  br i1 %or.cond, label %168, label %175

168:                                              ; preds = %156
  %169 = zext nneg i32 %spec.select to i64
  %170 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %169
  %171 = load i32, ptr %170, align 8, !tbaa !12
  %172 = add nsw i32 %171, %.066
  store i32 %172, ptr %8, align 4, !tbaa !8
  %173 = add nsw i32 %spec.select, -1
  %174 = add nsw i32 %159, -2
  br label %175

175:                                              ; preds = %168, %156
  %.promoted102 = phi i32 [ %172, %168 ], [ %.066, %156 ]
  %.161 = phi i32 [ %173, %168 ], [ %spec.select, %156 ]
  %.059 = phi i32 [ %174, %168 ], [ %160, %156 ]
  %176 = icmp sgt i32 %.059, 1
  %177 = icmp sgt i32 %.161, -1
  %178 = select i1 %176, i1 %177, i1 false
  br i1 %178, label %.lr.ph96.split.preheader, label %.outer79._crit_edge

.lr.ph96.split.preheader:                         ; preds = %175, %.outer79
  %.1.ph104 = phi i32 [ %191, %.outer79 ], [ %.059, %175 ]
  %.2.ph103 = phi i32 [ %190, %.outer79 ], [ %.161, %175 ]
  %179 = phi i32 [ %189, %.outer79 ], [ %.promoted102, %175 ]
  br label %.lr.ph96.split

.lr.ph96.split:                                   ; preds = %.lr.ph96.split.preheader, %185
  %.295 = phi i32 [ %186, %185 ], [ %.2.ph103, %.lr.ph96.split.preheader ]
  %180 = zext nneg i32 %.295 to i64
  %181 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %180
  %182 = getelementptr inbounds i8, ptr %181, i64 4
  %183 = load i32, ptr %182, align 4, !tbaa !14
  %184 = icmp eq i32 %183, %19
  br i1 %184, label %185, label %.outer79

185:                                              ; preds = %.lr.ph96.split
  %186 = add nsw i32 %.295, -1
  %187 = icmp sgt i32 %.295, 0
  br i1 %187, label %.lr.ph96.split, label %.outer79._crit_edge, !llvm.loop !23

.outer79:                                         ; preds = %.lr.ph96.split
  %188 = load i32, ptr %181, align 8, !tbaa !12
  %189 = add nsw i32 %179, %188
  store i32 %189, ptr %8, align 4, !tbaa !8
  %190 = add nsw i32 %.295, -1
  %191 = add nsw i32 %.1.ph104, -2
  %192 = icmp sgt i32 %.1.ph104, 3
  %193 = icmp sgt i32 %.295, 0
  %194 = and i1 %192, %193
  br i1 %194, label %.lr.ph96.split.preheader, label %.outer79._crit_edge, !llvm.loop !23

.outer79._crit_edge:                              ; preds = %.outer79, %185, %175
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %196 = load i32, ptr %195, align 4, !tbaa !8
  store i32 %196, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  %197 = icmp sgt i32 %.067, 0
  br i1 %197, label %198, label %.thread

198:                                              ; preds = %.outer79._crit_edge
  %199 = load i32, ptr %4, align 4, !tbaa !8
  %.fr111 = freeze i32 %199
  %200 = add i32 %.fr111, -1
  %201 = load i32, ptr @num, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  %202 = add nuw nsw i32 %.066, %.067
  store i32 %202, ptr %9, align 4, !tbaa !8
  %203 = icmp sgt i32 %200, 1
  br i1 %203, label %.outer.split.preheader, label %.split105

.outer.split.preheader:                           ; preds = %198, %.outer
  %.0.in.ph171 = phi i32 [ %215, %.outer ], [ %201, %198 ]
  %.058.ph170 = phi i32 [ %218, %.outer ], [ %200, %198 ]
  %204 = phi i32 [ %217, %.outer ], [ %202, %198 ]
  %205 = zext i32 %.0.in.ph171 to i64
  br label %.outer.split

.outer.split:                                     ; preds = %.outer.split.preheader, %208
  %indvars.iv127 = phi i64 [ %205, %.outer.split.preheader ], [ %209, %208 ]
  %206 = trunc nuw i64 %indvars.iv127 to i32
  %207 = icmp sgt i32 %206, 0
  br i1 %207, label %208, label %.split105

208:                                              ; preds = %.outer.split
  %209 = add nsw i64 %indvars.iv127, -1
  %210 = getelementptr inbounds [1000123 x %"struct.std::pair"], ptr @arr, i64 0, i64 %209
  %211 = getelementptr inbounds i8, ptr %210, i64 4
  %212 = load i32, ptr %211, align 4, !tbaa !14
  %213 = icmp eq i32 %212, 1
  %214 = icmp eq i32 %212, %19
  %or.cond77 = or i1 %213, %214
  br i1 %or.cond77, label %.outer.split, label %.outer, !llvm.loop !24

.outer:                                           ; preds = %208
  %215 = trunc i64 %209 to i32
  %216 = load i32, ptr %210, align 8, !tbaa !12
  %217 = add nsw i32 %204, %216
  store i32 %217, ptr %9, align 4, !tbaa !8
  %218 = add nsw i32 %.058.ph170, -2
  %219 = icmp sgt i32 %.058.ph170, 3
  br i1 %219, label %.outer.split.preheader, label %.split105, !llvm.loop !24

.split105:                                        ; preds = %.outer, %.outer.split, %198
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %221 = load i32, ptr %220, align 4, !tbaa !8
  store i32 %221, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  br label %.thread

222:                                              ; preds = %61
  store i32 %.067, ptr %5, align 4, !tbaa !8
  br label %.thread

.thread:                                          ; preds = %..thread_crit_edge, %.outer79._crit_edge, %.split105, %222
  %223 = phi i32 [ %.pre, %..thread_crit_edge ], [ %196, %.outer79._crit_edge ], [ %221, %.split105 ], [ %.067, %222 ]
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %223)
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %224, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %226

226:                                              ; preds = %.thread, %.critedge
  %227 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %228 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %227, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = getelementptr i8, ptr %229, i64 -24
  %231 = load i64, ptr %230, align 8
  %232 = getelementptr inbounds i8, ptr %228, i64 %231
  %233 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %232)
  br i1 %233, label %.lr.ph108, label %._crit_edge109

._crit_edge109:                                   ; preds = %226, %2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  ret i32 0
}

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

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 #2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare 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 #2

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

; 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 #7

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

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

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !9, i64 0}
!13 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!14 = !{!13, !9, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !16, !21, !20}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}


; Effective O3 passes: AggressiveInstCombinePass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass