; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/数据结构 (TopTree)

; 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.info = type { i32, i32, i32, i32 }
%struct.mark = type { i32, i32 }

@nd = external dso_local global [440000 x ptr], align 16
@root = external dso_local global ptr, align 8
@_ZZ4mainE1w = external hidden global [440000 x i32], align 16
@_ZZ4mainE4edge = external hidden global [440000 x [2 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4markC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z7newnodei(i32 noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4infoC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6berootP4node(ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5chain5queryEP4nodeS1_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5chain4editEP4nodeS1_4mark(ptr noundef, ptr noundef, i64) #1

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN3sub5queryEP4node(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sub4editEP4node4mark(ptr noundef, i64) #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 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
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.info, align 4
  %15 = alloca %struct.mark, align 4
  %16 = alloca %struct.mark, align 4
  %17 = alloca %struct.info, align 4
  %18 = alloca %struct.info, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %38, %0
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sub nsw i32 %23, 1
  %25 = icmp sle i32 %22, %24
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %21
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [440000 x [2 x i32]], ptr @_ZZ4mainE4edge, i64 0, i64 %29
  %31 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 0
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %31)
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [440000 x [2 x i32]], ptr @_ZZ4mainE4edge, i64 0, i64 %34
  %36 = getelementptr inbounds [2 x i32], ptr %35, i64 0, i64 1
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %36)
  br label %38

38:                                               ; preds = %27
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %5, align 4, !tbaa !5
  br label %21, !llvm.loop !9

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

42:                                               ; preds = %60, %41
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %63

47:                                               ; preds = %42
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [440000 x i32], ptr @_ZZ4mainE1w, i64 0, i64 %49
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %50)
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [440000 x i32], ptr @_ZZ4mainE1w, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = call noundef ptr @_Z7newnodei(i32 noundef %55)
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %58
  store ptr %56, ptr %59, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %47
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %6, align 4, !tbaa !5
  br label %42, !llvm.loop !13

63:                                               ; preds = %46
  %64 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %4)
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  store ptr %68, ptr @root, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %92, %63
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = sub nsw i32 %71, 1
  %73 = icmp sle i32 %70, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %95

75:                                               ; preds = %69
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [440000 x [2 x i32]], ptr @_ZZ4mainE4edge, i64 0, i64 %77
  %79 = getelementptr inbounds [2 x i32], ptr %78, i64 0, i64 0
  %80 = load i32, ptr %79, align 8, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [440000 x [2 x i32]], ptr @_ZZ4mainE4edge, i64 0, i64 %85
  %87 = getelementptr inbounds [2 x i32], ptr %86, i64 0, i64 1
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  call void @_Z4linkP4nodeS0_(ptr noundef %83, ptr noundef %91)
  br label %92

92:                                               ; preds = %75
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %7, align 4, !tbaa !5
  br label %69, !llvm.loop !14

95:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %209, %95
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = icmp sle i32 %97, %98
  br i1 %99, label %101, label %100

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

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %102 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  call void @_ZN4infoC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef 2147483647, i32 noundef -2147483647, i32 noundef 0, i32 noundef 0)
  %103 = load ptr, ptr @root, align 8, !tbaa !11
  call void @_Z6berootP4node(ptr noundef %103)
  %104 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %104, label %208 [
    i32 0, label %105
    i32 5, label %105
    i32 1, label %118
    i32 2, label %124
    i32 6, label %124
    i32 3, label %142
    i32 4, label %142
    i32 11, label %142
    i32 7, label %167
    i32 8, label %167
    i32 10, label %167
    i32 9, label %197
  ]

105:                                              ; preds = %101, %101
  %106 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %10)
  %107 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %11)
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = icmp eq i32 %112, 0
  %114 = zext i1 %113 to i64
  %115 = select i1 %113, i32 0, i32 1
  %116 = load i32, ptr %11, align 4, !tbaa !5
  call void @_ZN4markC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef %115, i32 noundef %116)
  %117 = load i64, ptr %15, align 4
  call void @_ZN3sub4editEP4node4mark(ptr noundef %111, i64 %117)
  br label %208

118:                                              ; preds = %101
  %119 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %4)
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !11
  store ptr %123, ptr @root, align 8, !tbaa !11
  br label %208

124:                                              ; preds = %101, %101
  %125 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %10)
  %126 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %11)
  %127 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %12)
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = load i32, ptr %9, align 4, !tbaa !5
  %137 = icmp eq i32 %136, 2
  %138 = zext i1 %137 to i64
  %139 = select i1 %137, i32 0, i32 1
  %140 = load i32, ptr %12, align 4, !tbaa !5
  call void @_ZN4markC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef %139, i32 noundef %140)
  %141 = load i64, ptr %16, align 4
  call void @_ZN5chain4editEP4nodeS1_4mark(ptr noundef %131, ptr noundef %135, i64 %141)
  br label %208

142:                                              ; preds = %101, %101, %101
  %143 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %144 = load i32, ptr %10, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !11
  %148 = call { i64, i64 } @_ZN3sub5queryEP4node(ptr noundef %147)
  %149 = getelementptr inbounds { i64, i64 }, ptr %17, i32 0, i32 0
  %150 = extractvalue { i64, i64 } %148, 0
  store i64 %150, ptr %149, align 4
  %151 = getelementptr inbounds { i64, i64 }, ptr %17, i32 0, i32 1
  %152 = extractvalue { i64, i64 } %148, 1
  store i64 %152, ptr %151, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  %153 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %153, label %163 [
    i32 3, label %154
    i32 4, label %157
    i32 11, label %160
  ]

154:                                              ; preds = %142
  %155 = getelementptr inbounds %struct.info, ptr %14, i32 0, i32 0
  %156 = load i32, ptr %155, align 4, !tbaa !16
  store i32 %156, ptr %13, align 4, !tbaa !5
  br label %163

157:                                              ; preds = %142
  %158 = getelementptr inbounds %struct.info, ptr %14, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !18
  store i32 %159, ptr %13, align 4, !tbaa !5
  br label %163

160:                                              ; preds = %142
  %161 = getelementptr inbounds %struct.info, ptr %14, i32 0, i32 2
  %162 = load i32, ptr %161, align 4, !tbaa !19
  store i32 %162, ptr %13, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %160, %157, %154, %142
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %164)
  %166 = call i32 @putchar(i32 noundef 10)
  br label %208

167:                                              ; preds = %101, %101, %101
  %168 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %10)
  %169 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %171
  %173 = load ptr, ptr %172, align 8, !tbaa !11
  %174 = load i32, ptr %11, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !11
  %178 = call { i64, i64 } @_ZN5chain5queryEP4nodeS1_(ptr noundef %173, ptr noundef %177)
  %179 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %180 = extractvalue { i64, i64 } %178, 0
  store i64 %180, ptr %179, align 4
  %181 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %182 = extractvalue { i64, i64 } %178, 1
  store i64 %182, ptr %181, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  %183 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %183, label %193 [
    i32 7, label %184
    i32 8, label %187
    i32 10, label %190
  ]

184:                                              ; preds = %167
  %185 = getelementptr inbounds %struct.info, ptr %14, i32 0, i32 0
  %186 = load i32, ptr %185, align 4, !tbaa !16
  store i32 %186, ptr %13, align 4, !tbaa !5
  br label %193

187:                                              ; preds = %167
  %188 = getelementptr inbounds %struct.info, ptr %14, i32 0, i32 1
  %189 = load i32, ptr %188, align 4, !tbaa !18
  store i32 %189, ptr %13, align 4, !tbaa !5
  br label %193

190:                                              ; preds = %167
  %191 = getelementptr inbounds %struct.info, ptr %14, i32 0, i32 2
  %192 = load i32, ptr %191, align 4, !tbaa !19
  store i32 %192, ptr %13, align 4, !tbaa !5
  br label %193

193:                                              ; preds = %190, %187, %184, %167
  %194 = load i32, ptr %13, align 4, !tbaa !5
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %194)
  %196 = call i32 @putchar(i32 noundef 10)
  br label %208

197:                                              ; preds = %101
  %198 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %10)
  %199 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %11)
  %200 = load i32, ptr %10, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %201
  %203 = load ptr, ptr %202, align 8, !tbaa !11
  %204 = load i32, ptr %11, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %205
  %207 = load ptr, ptr %206, align 8, !tbaa !11
  call void @_Z12changefatherP4nodeS0_(ptr noundef %203, ptr noundef %207)
  br label %208

208:                                              ; preds = %197, %193, %163, %124, %118, %105, %101
  call void @llvm.lifetime.end.p0(i64 16, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %8, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %8, align 4, !tbaa !5
  br label %96, !llvm.loop !20

212:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @putchar(i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree 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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTS4info", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!18 = !{!17, !6, i64 4}
!19 = !{!17, !6, i64 8}
!20 = distinct !{!20, !10}


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

%struct.info = type { i32, i32, i32, i32 }
%struct.mark = type { i32, i32 }

@nd = external dso_local local_unnamed_addr global [440000 x ptr], align 16
@root = external dso_local local_unnamed_addr global ptr, align 8
@_ZZ4mainE1w = external hidden global [440000 x i32], align 16
@_ZZ4mainE4edge = external hidden global [440000 x [2 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4markC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z7newnodei(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) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4infoC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6berootP4node(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5chain5queryEP4nodeS1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5chain4editEP4nodeS1_4mark(ptr noundef, ptr noundef, i64) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN3sub5queryEP4node(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sub4editEP4node4mark(ptr noundef, i64) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.info, align 8
  %9 = alloca %struct.mark, align 8
  %10 = alloca %struct.mark, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %.not.not26 = icmp sgt i32 %13, 1
  br i1 %.not.not26, label %.lr.ph, label %.preheader25

.preheader25:                                     ; preds = %.lr.ph, %0
  %14 = phi i32 [ %13, %0 ], [ %19, %.lr.ph ]
  %.not28 = icmp slt i32 %14, 1
  br i1 %.not28, label %._crit_edge, label %.lr.ph30

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %15 = getelementptr inbounds [440000 x [2 x i32]], ptr @_ZZ4mainE4edge, i64 0, i64 %indvars.iv
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %15)
  %17 = getelementptr inbounds i8, ptr %15, i64 4
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %17)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %.not.not = icmp slt i64 %indvars.iv.next, %20
  br i1 %.not.not, label %.lr.ph, label %.preheader25, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph30, %.preheader25
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  store ptr %25, ptr @root, align 8, !tbaa !11
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %.not23.not31 = icmp sgt i32 %26, 1
  br i1 %.not23.not31, label %.lr.ph34, label %.preheader

.lr.ph30:                                         ; preds = %.preheader25, %.lr.ph30
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %.lr.ph30 ], [ 1, %.preheader25 ]
  %27 = getelementptr inbounds [440000 x i32], ptr @_ZZ4mainE1w, i64 0, i64 %indvars.iv42
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %27)
  %29 = load i32, ptr %27, align 4, !tbaa !5
  %30 = call noundef ptr @_Z7newnodei(i32 noundef %29)
  %31 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %indvars.iv42
  store ptr %30, ptr %31, align 8, !tbaa !11
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %.not.not40 = icmp slt i64 %indvars.iv42, %33
  br i1 %.not.not40, label %.lr.ph30, label %._crit_edge, !llvm.loop !13

.preheader:                                       ; preds = %.lr.ph34, %._crit_edge
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %.not2435 = icmp slt i32 %34, 1
  br i1 %.not2435, label %._crit_edge39, label %.lr.ph38

.lr.ph38:                                         ; preds = %.preheader
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br label %47

.lr.ph34:                                         ; preds = %._crit_edge, %.lr.ph34
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %.lr.ph34 ], [ 1, %._crit_edge ]
  %35 = getelementptr inbounds [440000 x [2 x i32]], ptr @_ZZ4mainE4edge, i64 0, i64 %indvars.iv45
  %36 = load i32, ptr %35, align 8, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %35, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  call void @_Z4linkP4nodeS0_(ptr noundef %39, ptr noundef %44)
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %.not23.not = icmp slt i64 %indvars.iv.next46, %46
  br i1 %.not23.not, label %.lr.ph34, label %.preheader, !llvm.loop !14

._crit_edge39:                                    ; preds = %142, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

47:                                               ; preds = %.lr.ph38, %142
  %.02137 = phi i32 [ 1, %.lr.ph38 ], [ %143, %142 ]
  %.02236 = phi i32 [ undef, %.lr.ph38 ], [ %.3, %142 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN4infoC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 2147483647, i32 noundef -2147483647, i32 noundef 0, i32 noundef 0)
  %49 = load ptr, ptr @root, align 8, !tbaa !11
  call void @_Z6berootP4node(ptr noundef %49)
  %50 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %50, label %142 [
    i32 0, label %51
    i32 5, label %51
    i32 1, label %63
    i32 2, label %69
    i32 6, label %69
    i32 3, label %86
    i32 4, label %86
    i32 11, label %86
    i32 7, label %106
    i32 8, label %106
    i32 10, label %106
    i32 9, label %131
  ]

51:                                               ; preds = %47, %47
  %52 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %53 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = icmp ne i32 %58, 0
  %60 = zext i1 %59 to i32
  %61 = load i32, ptr %6, align 4, !tbaa !5
  call void @_ZN4markC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %60, i32 noundef %61)
  %62 = load i64, ptr %9, align 8
  call void @_ZN3sub4editEP4node4mark(ptr noundef %57, i64 %62)
  br label %142

63:                                               ; preds = %47
  %64 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  store ptr %68, ptr @root, align 8, !tbaa !11
  br label %142

69:                                               ; preds = %47, %47
  %70 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %71 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %72 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = icmp ne i32 %81, 2
  %83 = zext i1 %82 to i32
  %84 = load i32, ptr %7, align 4, !tbaa !5
  call void @_ZN4markC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %83, i32 noundef %84)
  %85 = load i64, ptr %10, align 8
  call void @_ZN5chain4editEP4nodeS1_4mark(ptr noundef %76, ptr noundef %80, i64 %85)
  br label %142

86:                                               ; preds = %47, %47, %47
  %87 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = call { i64, i64 } @_ZN3sub5queryEP4node(ptr noundef %91)
  %93 = extractvalue { i64, i64 } %92, 0
  %94 = extractvalue { i64, i64 } %92, 1
  store i64 %93, ptr %8, align 8
  store i64 %94, ptr %.sroa.4.0..sroa_idx, align 8
  %95 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %95, label %103 [
    i32 3, label %96
    i32 4, label %98
    i32 11, label %101
  ]

96:                                               ; preds = %86
  %97 = trunc i64 %93 to i32
  br label %103

98:                                               ; preds = %86
  %99 = lshr i64 %93, 32
  %100 = trunc nuw i64 %99 to i32
  br label %103

101:                                              ; preds = %86
  %102 = trunc i64 %94 to i32
  br label %103

103:                                              ; preds = %101, %98, %96, %86
  %.1 = phi i32 [ %.02236, %86 ], [ %102, %101 ], [ %100, %98 ], [ %97, %96 ]
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.1)
  %105 = call i32 @putchar(i32 noundef 10)
  br label %142

106:                                              ; preds = %47, %47, %47
  %107 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %108 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %109 = load i32, ptr %5, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !11
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !11
  %117 = call { i64, i64 } @_ZN5chain5queryEP4nodeS1_(ptr noundef %112, ptr noundef %116)
  %118 = extractvalue { i64, i64 } %117, 0
  %119 = extractvalue { i64, i64 } %117, 1
  store i64 %118, ptr %8, align 8
  store i64 %119, ptr %.sroa.4.0..sroa_idx, align 8
  %120 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %120, label %128 [
    i32 7, label %121
    i32 8, label %123
    i32 10, label %126
  ]

121:                                              ; preds = %106
  %122 = trunc i64 %118 to i32
  br label %128

123:                                              ; preds = %106
  %124 = lshr i64 %118, 32
  %125 = trunc nuw i64 %124 to i32
  br label %128

126:                                              ; preds = %106
  %127 = trunc i64 %119 to i32
  br label %128

128:                                              ; preds = %126, %123, %121, %106
  %.2 = phi i32 [ %.02236, %106 ], [ %127, %126 ], [ %125, %123 ], [ %122, %121 ]
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.2)
  %130 = call i32 @putchar(i32 noundef 10)
  br label %142

131:                                              ; preds = %47
  %132 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %133 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %134 = load i32, ptr %5, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !11
  %138 = load i32, ptr %6, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [440000 x ptr], ptr @nd, i64 0, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !11
  call void @_Z12changefatherP4nodeS0_(ptr noundef %137, ptr noundef %141)
  br label %142

142:                                              ; preds = %131, %128, %103, %69, %63, %51, %47
  %.3 = phi i32 [ %.02236, %47 ], [ %.02236, %131 ], [ %.2, %128 ], [ %.1, %103 ], [ %.02236, %69 ], [ %.02236, %63 ], [ %.02236, %51 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %143 = add nuw nsw i32 %.02137, 1
  %144 = load i32, ptr %2, align 4, !tbaa !5
  %.not24.not = icmp slt i32 %.02137, %144
  br i1 %.not24.not, label %47, label %._crit_edge39, !llvm.loop !15
}

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #5

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

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

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


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