; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/275 Division 2/Problem D (D)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@bits = external dso_local global [30 x [100001 x i32]], align 16
@a = external dso_local global [100001 x i32], align 16
@qu = external dso_local global [100001 x [3 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5queryiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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
  store i32 0, ptr %1, align 4
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %73, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @m, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %76

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr %4, align 4, !tbaa !5
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = add nsw i32 %23, -1
  store i32 %24, ptr %5, align 4, !tbaa !5
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [100001 x [3 x i32]], ptr @qu, i64 0, i64 %27
  %29 = getelementptr inbounds [3 x i32], ptr %28, i64 0, i64 0
  store i32 %25, ptr %29, align 4, !tbaa !5
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100001 x [3 x i32]], ptr @qu, i64 0, i64 %32
  %34 = getelementptr inbounds [3 x i32], ptr %33, i64 0, i64 1
  store i32 %30, ptr %34, align 4, !tbaa !5
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100001 x [3 x i32]], ptr @qu, i64 0, i64 %37
  %39 = getelementptr inbounds [3 x i32], ptr %38, i64 0, i64 2
  store i32 %35, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %69, %19
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 30
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %72

44:                                               ; preds = %40
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = shl i32 1, %46
  %48 = and i32 %45, %47
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %50, label %68

50:                                               ; preds = %44
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %52
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [100001 x i32], ptr %53, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %56, align 4, !tbaa !5
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %60
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100001 x i32], ptr %61, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = add nsw i32 %66, -1
  store i32 %67, ptr %65, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %50, %44
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %7, align 4, !tbaa !5
  br label %40, !llvm.loop !9

72:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !11

76:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %139, %76
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = load i32, ptr @n, align 4, !tbaa !5
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %142

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

83:                                               ; preds = %109, %82
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %86, label %89

86:                                               ; preds = %83
  %87 = load i32, ptr %9, align 4, !tbaa !5
  %88 = icmp slt i32 %87, 30
  br label %89

89:                                               ; preds = %86, %83
  %90 = phi i1 [ false, %83 ], [ %88, %86 ]
  br i1 %90, label %92, label %91

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

92:                                               ; preds = %89
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %94
  %96 = load i32, ptr %8, align 4, !tbaa !5
  %97 = sub nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100001 x i32], ptr %95, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %102
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [100001 x i32], ptr %103, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %107, %100
  store i32 %108, ptr %106, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %92
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %9, align 4, !tbaa !5
  br label %83, !llvm.loop !12

112:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %135, %112
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = icmp slt i32 %114, 30
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %138

117:                                              ; preds = %113
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %119
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100001 x i32], ptr %120, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = icmp sgt i32 %124, 0
  br i1 %125, label %126, label %134

126:                                              ; preds = %117
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = shl i32 1, %127
  %129 = load i32, ptr %8, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = or i32 %132, %128
  store i32 %133, ptr %131, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %126, %117
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %10, align 4, !tbaa !5
  br label %113, !llvm.loop !13

138:                                              ; preds = %116
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %8, align 4, !tbaa !5
  br label %77, !llvm.loop !14

142:                                              ; preds = %81
  %143 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z5buildiii(i32 noundef 1, i32 noundef 0, i32 noundef %143)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %172, %142
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = load i32, ptr @m, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 17, ptr %3, align 4
  br label %175

149:                                              ; preds = %144
  %150 = load i32, ptr %11, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [100001 x [3 x i32]], ptr @qu, i64 0, i64 %151
  %153 = getelementptr inbounds [3 x i32], ptr %152, i64 0, i64 0
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100001 x [3 x i32]], ptr @qu, i64 0, i64 %156
  %158 = getelementptr inbounds [3 x i32], ptr %157, i64 0, i64 1
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  %161 = load i32, ptr @n, align 4, !tbaa !5
  %162 = call noundef i32 @_Z5queryiiiii(i32 noundef %154, i32 noundef %160, i32 noundef 1, i32 noundef 0, i32 noundef %161)
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [100001 x [3 x i32]], ptr @qu, i64 0, i64 %164
  %166 = getelementptr inbounds [3 x i32], ptr %165, i64 0, i64 2
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = icmp ne i32 %162, %167
  br i1 %168, label %169, label %171

169:                                              ; preds = %149
  %170 = call i32 @puts(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %175

171:                                              ; preds = %149
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %11, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %11, align 4, !tbaa !5
  br label %144, !llvm.loop !15

175:                                              ; preds = %169, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %176 = load i32, ptr %3, align 4
  switch i32 %176, label %197 [
    i32 17, label %177
    i32 1, label %195
  ]

177:                                              ; preds = %175
  %178 = call i32 @puts(ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %190, %177
  %180 = load i32, ptr %12, align 4, !tbaa !5
  %181 = load i32, ptr @n, align 4, !tbaa !5
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %193

184:                                              ; preds = %179
  %185 = load i32, ptr %12, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %188)
  br label %190

190:                                              ; preds = %184
  %191 = load i32, ptr %12, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %12, align 4, !tbaa !5
  br label %179, !llvm.loop !16

193:                                              ; preds = %183
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 0, ptr %1, align 4
  br label %195

195:                                              ; preds = %193, %175
  %196 = load i32, ptr %1, align 4
  ret i32 %196

197:                                              ; preds = %175
  unreachable
}

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

declare i32 @puts(ptr noundef) #3

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

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

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

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@bits = external dso_local local_unnamed_addr global [30 x [100001 x i32]], align 16
@a = external dso_local local_unnamed_addr global [100001 x i32], align 16
@qu = external dso_local local_unnamed_addr global [100001 x [3 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %5 = load i32, ptr @m, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.preheader49

.preheader49:                                     ; preds = %20, %0
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.preheader48.preheader, label %._crit_edge

.preheader48.preheader:                           ; preds = %.preheader49
  %wide.trip.count = zext nneg i32 %7 to i64
  br label %.preheader48

.lr.ph:                                           ; preds = %0, %20
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %20 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  %14 = getelementptr inbounds [100001 x [3 x i32]], ptr @qu, i64 0, i64 %indvars.iv66
  store i32 %11, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 4
  store i32 %13, ptr %15, align 4, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %14, i64 8
  store i32 %16, ptr %17, align 4, !tbaa !5
  %18 = sext i32 %11 to i64
  %19 = sext i32 %12 to i64
  br label %24

20:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %21 = load i32, ptr @m, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = icmp slt i64 %indvars.iv.next67, %22
  br i1 %23, label %.lr.ph, label %.preheader49, !llvm.loop !9

24:                                               ; preds = %.lr.ph, %35
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %35 ]
  %25 = trunc nuw nsw i64 %indvars.iv to i32
  %26 = shl nuw nsw i32 1, %25
  %27 = and i32 %26, %16
  %.not44 = icmp eq i32 %27, 0
  br i1 %.not44, label %35, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %indvars.iv, i64 %18
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %29, align 4, !tbaa !5
  %32 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %indvars.iv, i64 %19
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = add nsw i32 %33, -1
  store i32 %34, ptr %32, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %24, %28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 30
  br i1 %exitcond.not, label %20, label %24, !llvm.loop !11

.preheader48:                                     ; preds = %.preheader48.preheader, %190
  %indvars.iv77 = phi i64 [ 0, %.preheader48.preheader ], [ %indvars.iv.next78, %190 ]
  %.not64 = icmp eq i64 %indvars.iv77, 0
  br i1 %.not64, label %.preheader, label %.lr.ph53

.lr.ph53:                                         ; preds = %.preheader48
  %36 = add nsw i64 %indvars.iv77, -1
  %37 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 0, i64 %indvars.iv77
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = add nsw i32 %40, %38
  store i32 %41, ptr %39, align 4, !tbaa !5
  %42 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 1, i64 %36
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 1, i64 %indvars.iv77
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = add nsw i32 %45, %43
  store i32 %46, ptr %44, align 4, !tbaa !5
  %47 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 2, i64 %36
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 2, i64 %indvars.iv77
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = add nsw i32 %50, %48
  store i32 %51, ptr %49, align 4, !tbaa !5
  %52 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 3, i64 %36
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 3, i64 %indvars.iv77
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add nsw i32 %55, %53
  store i32 %56, ptr %54, align 4, !tbaa !5
  %57 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 4, i64 %36
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 4, i64 %indvars.iv77
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = add nsw i32 %60, %58
  store i32 %61, ptr %59, align 4, !tbaa !5
  %62 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 5, i64 %36
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 5, i64 %indvars.iv77
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add nsw i32 %65, %63
  store i32 %66, ptr %64, align 4, !tbaa !5
  %67 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 6, i64 %36
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 6, i64 %indvars.iv77
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = add nsw i32 %70, %68
  store i32 %71, ptr %69, align 4, !tbaa !5
  %72 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 7, i64 %36
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 7, i64 %indvars.iv77
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = add nsw i32 %75, %73
  store i32 %76, ptr %74, align 4, !tbaa !5
  %77 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 8, i64 %36
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 8, i64 %indvars.iv77
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = add nsw i32 %80, %78
  store i32 %81, ptr %79, align 4, !tbaa !5
  %82 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 9, i64 %36
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 9, i64 %indvars.iv77
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = add nsw i32 %85, %83
  store i32 %86, ptr %84, align 4, !tbaa !5
  %87 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 10, i64 %36
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 10, i64 %indvars.iv77
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add nsw i32 %90, %88
  store i32 %91, ptr %89, align 4, !tbaa !5
  %92 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 11, i64 %36
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 11, i64 %indvars.iv77
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = add nsw i32 %95, %93
  store i32 %96, ptr %94, align 4, !tbaa !5
  %97 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 12, i64 %36
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 12, i64 %indvars.iv77
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = add nsw i32 %100, %98
  store i32 %101, ptr %99, align 4, !tbaa !5
  %102 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 13, i64 %36
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 13, i64 %indvars.iv77
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = add nsw i32 %105, %103
  store i32 %106, ptr %104, align 4, !tbaa !5
  %107 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 14, i64 %36
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 14, i64 %indvars.iv77
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = add nsw i32 %110, %108
  store i32 %111, ptr %109, align 4, !tbaa !5
  %112 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 15, i64 %36
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 15, i64 %indvars.iv77
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = add nsw i32 %115, %113
  store i32 %116, ptr %114, align 4, !tbaa !5
  %117 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 16, i64 %36
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 16, i64 %indvars.iv77
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = add nsw i32 %120, %118
  store i32 %121, ptr %119, align 4, !tbaa !5
  %122 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 17, i64 %36
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 17, i64 %indvars.iv77
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %125, %123
  store i32 %126, ptr %124, align 4, !tbaa !5
  %127 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 18, i64 %36
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 18, i64 %indvars.iv77
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = add nsw i32 %130, %128
  store i32 %131, ptr %129, align 4, !tbaa !5
  %132 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 19, i64 %36
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 19, i64 %indvars.iv77
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = add nsw i32 %135, %133
  store i32 %136, ptr %134, align 4, !tbaa !5
  %137 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 20, i64 %36
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 20, i64 %indvars.iv77
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = add nsw i32 %140, %138
  store i32 %141, ptr %139, align 4, !tbaa !5
  %142 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 21, i64 %36
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 21, i64 %indvars.iv77
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = add nsw i32 %145, %143
  store i32 %146, ptr %144, align 4, !tbaa !5
  %147 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 22, i64 %36
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 22, i64 %indvars.iv77
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = add nsw i32 %150, %148
  store i32 %151, ptr %149, align 4, !tbaa !5
  %152 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 23, i64 %36
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 23, i64 %indvars.iv77
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = add nsw i32 %155, %153
  store i32 %156, ptr %154, align 4, !tbaa !5
  %157 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 24, i64 %36
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 24, i64 %indvars.iv77
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = add nsw i32 %160, %158
  store i32 %161, ptr %159, align 4, !tbaa !5
  %162 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 25, i64 %36
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 25, i64 %indvars.iv77
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = add nsw i32 %165, %163
  store i32 %166, ptr %164, align 4, !tbaa !5
  %167 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 26, i64 %36
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 26, i64 %indvars.iv77
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = add nsw i32 %170, %168
  store i32 %171, ptr %169, align 4, !tbaa !5
  %172 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 27, i64 %36
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 27, i64 %indvars.iv77
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = add nsw i32 %175, %173
  store i32 %176, ptr %174, align 4, !tbaa !5
  %177 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 28, i64 %36
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 28, i64 %indvars.iv77
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = add nsw i32 %180, %178
  store i32 %181, ptr %179, align 4, !tbaa !5
  %182 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 29, i64 %36
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 29, i64 %indvars.iv77
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = add nsw i32 %185, %183
  store i32 %186, ptr %184, align 4, !tbaa !5
  br label %.preheader

._crit_edge:                                      ; preds = %190, %.preheader49
  call void @_Z5buildiii(i32 noundef 1, i32 noundef 0, i32 noundef %7)
  %187 = load i32, ptr @m, align 4, !tbaa !5
  %188 = icmp sgt i32 %187, 0
  br i1 %188, label %.lr.ph58, label %._crit_edge59

.preheader:                                       ; preds = %.lr.ph53, %.preheader48
  %189 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv77
  br label %191

190:                                              ; preds = %209
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count
  br i1 %exitcond80.not, label %._crit_edge, label %.preheader48, !llvm.loop !12

191:                                              ; preds = %209, %.preheader
  %indvars.iv73 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next74.1, %209 ]
  %192 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %indvars.iv73, i64 %indvars.iv77
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = icmp sgt i32 %193, 0
  br i1 %194, label %195, label %200

195:                                              ; preds = %191
  %196 = trunc nuw nsw i64 %indvars.iv73 to i32
  %197 = shl nuw nsw i32 1, %196
  %198 = load i32, ptr %189, align 4, !tbaa !5
  %199 = or i32 %198, %197
  store i32 %199, ptr %189, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %191, %195
  %indvars.iv.next74 = or disjoint i64 %indvars.iv73, 1
  %201 = getelementptr inbounds [30 x [100001 x i32]], ptr @bits, i64 0, i64 %indvars.iv.next74, i64 %indvars.iv77
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = icmp sgt i32 %202, 0
  br i1 %203, label %204, label %209

204:                                              ; preds = %200
  %205 = trunc nuw nsw i64 %indvars.iv.next74 to i32
  %206 = shl nuw nsw i32 1, %205
  %207 = load i32, ptr %189, align 4, !tbaa !5
  %208 = or i32 %207, %206
  store i32 %208, ptr %189, align 4, !tbaa !5
  br label %209

209:                                              ; preds = %204, %200
  %indvars.iv.next74.1 = add nuw nsw i64 %indvars.iv73, 2
  %exitcond76.not.1 = icmp eq i64 %indvars.iv.next74.1, 30
  br i1 %exitcond76.not.1, label %190, label %191, !llvm.loop !13

210:                                              ; preds = %.lr.ph58
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %211 = load i32, ptr @m, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = icmp slt i64 %indvars.iv.next82, %212
  br i1 %213, label %.lr.ph58, label %._crit_edge59, !llvm.loop !14

.lr.ph58:                                         ; preds = %._crit_edge, %210
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %210 ], [ 0, %._crit_edge ]
  %214 = getelementptr inbounds [100001 x [3 x i32]], ptr @qu, i64 0, i64 %indvars.iv81
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = getelementptr inbounds i8, ptr %214, i64 4
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  %219 = load i32, ptr @n, align 4, !tbaa !5
  %220 = call noundef i32 @_Z5queryiiiii(i32 noundef %215, i32 noundef %218, i32 noundef 1, i32 noundef 0, i32 noundef %219)
  %221 = getelementptr inbounds i8, ptr %214, i64 8
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %.not = icmp eq i32 %220, %222
  br i1 %.not, label %210, label %223

223:                                              ; preds = %.lr.ph58
  %224 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %235

._crit_edge59:                                    ; preds = %210, %._crit_edge
  %225 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  %226 = load i32, ptr @n, align 4, !tbaa !5
  %227 = icmp sgt i32 %226, 0
  br i1 %227, label %.lr.ph62, label %._crit_edge63

._crit_edge63:                                    ; preds = %.lr.ph62, %._crit_edge59
  %228 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %235

.lr.ph62:                                         ; preds = %._crit_edge59, %.lr.ph62
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph62 ], [ 0, %._crit_edge59 ]
  %229 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv84
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %230)
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %232 = load i32, ptr @n, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = icmp slt i64 %indvars.iv.next85, %233
  br i1 %234, label %.lr.ph62, label %._crit_edge63, !llvm.loop !15

235:                                              ; preds = %223, %._crit_edge63
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3

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

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

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

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


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