; LLVM IR from lzyrapx/Competitive-Programming :: Retired_code/CDQ Divide and Conquer (HDU 5618（三维偏序）)

; 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.Query = type { i32, i32, i32, i32, i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"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 }

@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@s = external dso_local global [200010 x i32], align 16
@ans = external dso_local global [200010 x i32], align 16
@a = external dso_local global [200010 x %struct.Query], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmpx5QueryS_(ptr noundef byval(%struct.Query) align 8, ptr noundef byval(%struct.Query) align 8) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #4 {
  %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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = 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) #8
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %6)
  br label %15

15:                                               ; preds = %164, %2
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %6, align 4, !tbaa !5
  %18 = icmp ne i32 %16, 0
  br i1 %18, label %19, label %165

19:                                               ; preds = %15
  call void @llvm.memset.p0.i64(ptr align 16 @s, i8 0, i64 800040, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @a, i8 0, i64 4800240, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @ans, i8 0, i64 800040, i1 false)
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %40, %19
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %26, label %25

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

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

40:                                               ; preds = %26
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %7, align 4, !tbaa !5
  br label %21, !llvm.loop !11

43:                                               ; preds = %25
  store i32 100010, ptr @k, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %55, %43
  %45 = load i32, ptr %8, align 4, !tbaa !5
  %46 = load i32, ptr @n, align 4, !tbaa !5
  %47 = icmp sle i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %58

49:                                               ; preds = %44
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %52
  %54 = getelementptr inbounds %struct.Query, ptr %53, i32 0, i32 5
  store i32 %50, ptr %54, align 4, !tbaa !13
  br label %55

55:                                               ; preds = %49
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !5
  br label %44, !llvm.loop !15

58:                                               ; preds = %48
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct.Query, ptr @a, i64 %60
  %62 = getelementptr inbounds %struct.Query, ptr %61, i64 1
  call void @_ZSt4sortIP5QueryPFbS0_S0_EEvT_S4_T0_(ptr noundef getelementptr inbounds (%struct.Query, ptr @a, i64 1), ptr noundef %62, ptr noundef @_Z4cmpx5QueryS_)
  %63 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3cdqii(i32 noundef 1, i32 noundef %63)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %146, %58
  %65 = load i32, ptr %9, align 4, !tbaa !5
  %66 = load i32, ptr @n, align 4, !tbaa !5
  %67 = icmp sle i32 %65, %66
  br i1 %67, label %68, label %148

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.Query, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !16
  store i32 %75, ptr %11, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %118, %68
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = icmp sle i32 %77, %78
  br i1 %79, label %80, label %116

80:                                               ; preds = %76
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %82
  %84 = getelementptr inbounds %struct.Query, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !17
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %87
  %89 = getelementptr inbounds %struct.Query, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !17
  %91 = icmp eq i32 %85, %90
  br i1 %91, label %92, label %116

92:                                               ; preds = %80
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %94
  %96 = getelementptr inbounds %struct.Query, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 4, !tbaa !18
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %99
  %101 = getelementptr inbounds %struct.Query, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = icmp eq i32 %97, %102
  br i1 %103, label %104, label %116

104:                                              ; preds = %92
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %106
  %108 = getelementptr inbounds %struct.Query, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 8, !tbaa !19
  %110 = load i32, ptr %10, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %111
  %113 = getelementptr inbounds %struct.Query, ptr %112, i32 0, i32 2
  %114 = load i32, ptr %113, align 8, !tbaa !19
  %115 = icmp eq i32 %109, %114
  br label %116

116:                                              ; preds = %104, %92, %80, %76
  %117 = phi i1 [ false, %92 ], [ false, %80 ], [ false, %76 ], [ %115, %104 ]
  br i1 %117, label %118, label %127

118:                                              ; preds = %116
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %120
  %122 = getelementptr inbounds %struct.Query, ptr %121, i32 0, i32 3
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %122, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %124 = load i32, ptr %123, align 4, !tbaa !5
  store i32 %124, ptr %11, align 4, !tbaa !5
  %125 = load i32, ptr %10, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %10, align 4, !tbaa !5
  br label %76, !llvm.loop !20

127:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %128 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %128, ptr %12, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %143, %127
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %134, label %133

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

134:                                              ; preds = %129
  %135 = load i32, ptr %11, align 4, !tbaa !5
  %136 = load i32, ptr %12, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %137
  %139 = getelementptr inbounds %struct.Query, ptr %138, i32 0, i32 5
  %140 = load i32, ptr %139, align 4, !tbaa !13
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [200010 x i32], ptr @ans, i64 0, i64 %141
  store i32 %135, ptr %142, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %134
  %144 = load i32, ptr %12, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %12, align 4, !tbaa !5
  br label %129, !llvm.loop !21

146:                                              ; preds = %133
  %147 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %147, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %64, !llvm.loop !22

148:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %161, %148
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = load i32, ptr @n, align 4, !tbaa !5
  %152 = icmp sle i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %164

154:                                              ; preds = %149
  %155 = load i32, ptr %13, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [200010 x i32], ptr @ans, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %158)
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %159, i8 noundef signext 10)
  br label %161

161:                                              ; preds = %154
  %162 = load i32, ptr %13, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %13, align 4, !tbaa !5
  br label %149, !llvm.loop !23

164:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %15, !llvm.loop !24

165:                                              ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  ret i32 0
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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)) #7

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

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

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

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

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


; 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.Query = type { i32, i32, i32, i32, i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"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 }

@n = external dso_local global i32, align 4
@k = external dso_local local_unnamed_addr global i32, align 4
@s = external dso_local local_unnamed_addr global [200010 x i32], align 16
@ans = external dso_local local_unnamed_addr global [200010 x i32], align 16
@a = external dso_local global [200010 x %struct.Query], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmpx5QueryS_(ptr noundef byval(%struct.Query) align 8, ptr noundef byval(%struct.Query) align 8) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #4 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %6 = load i32, ptr %3, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr %3, align 4, !tbaa !5
  %.not83 = icmp eq i32 %6, 0
  br i1 %.not83, label %._crit_edge86, label %.lr.ph85

.loopexit:                                        ; preds = %.lr.ph82, %._crit_edge48, %.preheader
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = add nsw i32 %8, -1
  store i32 %9, ptr %3, align 4, !tbaa !5
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %._crit_edge86, label %.lr.ph85, !llvm.loop !9

.lr.ph85:                                         ; preds = %2, %.loopexit
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800040) @s, i8 0, i64 800040, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4800240) @a, i8 0, i64 4800240, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800040) @ans, i8 0, i64 800040, i1 false)
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %.not3642 = icmp slt i32 %11, 1
  br i1 %.not3642, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %.lr.ph85
  store i32 100010, ptr @k, align 4, !tbaa !5
  br label %._crit_edge48

._crit_edge:                                      ; preds = %.lr.ph
  store i32 100010, ptr @k, align 4, !tbaa !5
  %.not3744 = icmp slt i32 %18, 1
  br i1 %.not3744, label %._crit_edge48, label %.lr.ph47.preheader

.lr.ph47.preheader:                               ; preds = %._crit_edge
  %12 = zext nneg i32 %18 to i64
  %xtraiter = and i64 %12, 3
  %13 = icmp ult i32 %18, 4
  br i1 %13, label %._crit_edge48.loopexit.unr-lcssa, label %.lr.ph47.preheader.new

.lr.ph47.preheader.new:                           ; preds = %.lr.ph47.preheader
  %unroll_iter = and i64 %12, 2147483644
  br label %.lr.ph47

.lr.ph:                                           ; preds = %.lr.ph85, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph85 ]
  %14 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv
  %15 = getelementptr inbounds i8, ptr %14, i64 4
  %16 = getelementptr inbounds i8, ptr %14, i64 8
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %.not36.not = icmp slt i64 %indvars.iv, %19
  br i1 %.not36.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge48.loopexit.unr-lcssa:                 ; preds = %.lr.ph47, %.lr.ph47.preheader
  %indvars.iv89.unr = phi i64 [ 1, %.lr.ph47.preheader ], [ %indvars.iv.next90.3, %.lr.ph47 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge48, label %.lr.ph47.epil

.lr.ph47.epil:                                    ; preds = %._crit_edge48.loopexit.unr-lcssa, %.lr.ph47.epil
  %indvars.iv89.epil = phi i64 [ %indvars.iv.next90.epil, %.lr.ph47.epil ], [ %indvars.iv89.unr, %._crit_edge48.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph47.epil ], [ 0, %._crit_edge48.loopexit.unr-lcssa ]
  %20 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv89.epil, i32 5
  %21 = trunc nuw nsw i64 %indvars.iv89.epil to i32
  store i32 %21, ptr %20, align 4, !tbaa !12
  %indvars.iv.next90.epil = add nuw nsw i64 %indvars.iv89.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge48, label %.lr.ph47.epil, !llvm.loop !14

._crit_edge48:                                    ; preds = %._crit_edge48.loopexit.unr-lcssa, %.lr.ph47.epil, %._crit_edge.thread, %._crit_edge
  %.lcssa106 = phi i32 [ %11, %._crit_edge.thread ], [ %18, %._crit_edge ], [ %18, %.lr.ph47.epil ], [ %18, %._crit_edge48.loopexit.unr-lcssa ]
  %22 = sext i32 %.lcssa106 to i64
  %gep = getelementptr %struct.Query, ptr getelementptr inbounds (i8, ptr @a, i64 24), i64 %22
  call void @_ZSt4sortIP5QueryPFbS0_S0_EEvT_S4_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 24), ptr noundef nonnull %gep, ptr noundef nonnull @_Z4cmpx5QueryS_)
  %23 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3cdqii(i32 noundef 1, i32 noundef %23)
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %.not3876 = icmp slt i32 %24, 1
  br i1 %.not3876, label %.loopexit, label %.lr.ph79

.lr.ph47:                                         ; preds = %.lr.ph47, %.lr.ph47.preheader.new
  %indvars.iv89 = phi i64 [ 1, %.lr.ph47.preheader.new ], [ %indvars.iv.next90.3, %.lr.ph47 ]
  %niter = phi i64 [ 0, %.lr.ph47.preheader.new ], [ %niter.next.3, %.lr.ph47 ]
  %25 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv89, i32 5
  %26 = trunc nuw nsw i64 %indvars.iv89 to i32
  store i32 %26, ptr %25, align 4, !tbaa !12
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %27 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv.next90, i32 5
  %28 = trunc nuw nsw i64 %indvars.iv.next90 to i32
  store i32 %28, ptr %27, align 4, !tbaa !12
  %indvars.iv.next90.1 = add nuw nsw i64 %indvars.iv89, 2
  %29 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv.next90.1, i32 5
  %30 = trunc nuw nsw i64 %indvars.iv.next90.1 to i32
  store i32 %30, ptr %29, align 4, !tbaa !12
  %indvars.iv.next90.2 = add nuw nsw i64 %indvars.iv89, 3
  %31 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv.next90.2, i32 5
  %32 = trunc nuw nsw i64 %indvars.iv.next90.2 to i32
  store i32 %32, ptr %31, align 4, !tbaa !12
  %indvars.iv.next90.3 = add nuw nsw i64 %indvars.iv89, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge48.loopexit.unr-lcssa, label %.lr.ph47, !llvm.loop !16

.preheader:                                       ; preds = %._crit_edge75
  %.not3980 = icmp slt i32 %67, 1
  br i1 %.not3980, label %.loopexit, label %.lr.ph82

.lr.ph79:                                         ; preds = %._crit_edge48, %._crit_edge75
  %33 = phi i32 [ %67, %._crit_edge75 ], [ %24, %._crit_edge48 ]
  %.03277 = phi i32 [ %.031.lcssa, %._crit_edge75 ], [ 1, %._crit_edge48 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %34 = sext i32 %.03277 to i64
  %35 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %34
  %36 = getelementptr inbounds i8, ptr %35, i64 12
  %37 = getelementptr inbounds i8, ptr %35, i64 4
  %38 = getelementptr inbounds i8, ptr %35, i64 8
  %storemerge49 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %storemerge49, ptr %4, align 4, !tbaa !5
  %.03150 = add nsw i32 %.03277, 1
  %.not40.not51 = icmp slt i32 %.03277, %33
  br i1 %.not40.not51, label %.lr.ph56.preheader, label %.critedge

.lr.ph56.preheader:                               ; preds = %.lr.ph79
  %39 = add nsw i64 %34, 1
  %40 = load i32, ptr %35, align 8, !tbaa !17
  %41 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %39
  %42 = load i32, ptr %41, align 8, !tbaa !17
  %43 = icmp eq i32 %40, %42
  %44 = trunc nsw i64 %39 to i32
  br i1 %43, label %.lr.ph136, label %.critedge

.lr.ph56:                                         ; preds = %62
  %45 = load i32, ptr %35, align 8, !tbaa !17
  %46 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv.next93
  %47 = load i32, ptr %46, align 8, !tbaa !17
  %48 = icmp eq i32 %45, %47
  %49 = trunc nsw i64 %indvars.iv.next93 to i32
  br i1 %48, label %.lr.ph136, label %.critedge, !llvm.loop !18

.lr.ph136:                                        ; preds = %.lr.ph56.preheader, %.lr.ph56
  %50 = phi i32 [ %49, %.lr.ph56 ], [ %44, %.lr.ph56.preheader ]
  %51 = phi ptr [ %46, %.lr.ph56 ], [ %41, %.lr.ph56.preheader ]
  %.031.in52135 = phi i32 [ %50, %.lr.ph56 ], [ %.03277, %.lr.ph56.preheader ]
  %storemerge53134 = phi i32 [ %storemerge, %.lr.ph56 ], [ %storemerge49, %.lr.ph56.preheader ]
  %indvars.iv92133 = phi i64 [ %indvars.iv.next93, %.lr.ph56 ], [ %39, %.lr.ph56.preheader ]
  %52 = phi i32 [ %65, %.lr.ph56 ], [ %33, %.lr.ph56.preheader ]
  %53 = load i32, ptr %37, align 4, !tbaa !19
  %54 = getelementptr inbounds i8, ptr %51, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !19
  %56 = icmp eq i32 %53, %55
  br i1 %56, label %57, label %.critedge

57:                                               ; preds = %.lr.ph136
  %58 = load i32, ptr %38, align 8, !tbaa !20
  %59 = getelementptr inbounds i8, ptr %51, i64 8
  %60 = load i32, ptr %59, align 8, !tbaa !20
  %61 = icmp eq i32 %58, %60
  br i1 %61, label %62, label %.critedge

62:                                               ; preds = %57
  %63 = getelementptr inbounds i8, ptr %51, i64 12
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %storemerge = load i32, ptr %64, align 4, !tbaa !5
  store i32 %storemerge, ptr %4, align 4, !tbaa !5
  %indvars.iv.next93 = add nsw i64 %indvars.iv92133, 1
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %.not40.not = icmp slt i64 %indvars.iv92133, %66
  br i1 %.not40.not, label %.lr.ph56, label %.critedge.loopexit.split.loop.exit114, !llvm.loop !18

.critedge.loopexit.split.loop.exit114:            ; preds = %62
  %indvars.le = trunc i64 %indvars.iv.next93 to i32
  br label %.critedge

.critedge:                                        ; preds = %57, %.lr.ph56, %.lr.ph136, %.lr.ph56.preheader, %.critedge.loopexit.split.loop.exit114, %.lr.ph79
  %67 = phi i32 [ %33, %.lr.ph79 ], [ %65, %.critedge.loopexit.split.loop.exit114 ], [ %33, %.lr.ph56.preheader ], [ %52, %.lr.ph136 ], [ %65, %.lr.ph56 ], [ %52, %57 ]
  %.031.in.lcssa = phi i32 [ %.03277, %.lr.ph79 ], [ %50, %.critedge.loopexit.split.loop.exit114 ], [ %.03277, %.lr.ph56.preheader ], [ %.031.in52135, %.lr.ph136 ], [ %50, %.lr.ph56 ], [ %.031.in52135, %57 ]
  %storemerge.lcssa = phi i32 [ %storemerge49, %.lr.ph79 ], [ %storemerge, %.critedge.loopexit.split.loop.exit114 ], [ %storemerge49, %.lr.ph56.preheader ], [ %storemerge53134, %.lr.ph136 ], [ %storemerge, %.lr.ph56 ], [ %storemerge53134, %57 ]
  %.031.lcssa = phi i32 [ %.03150, %.lr.ph79 ], [ %indvars.le, %.critedge.loopexit.split.loop.exit114 ], [ %44, %.lr.ph56.preheader ], [ %50, %.lr.ph136 ], [ %49, %.lr.ph56 ], [ %50, %57 ]
  %.not4172 = icmp sgt i32 %.03277, %.031.in.lcssa
  br i1 %.not4172, label %._crit_edge75, label %.lr.ph74.preheader

.lr.ph74.preheader:                               ; preds = %.critedge
  %68 = add i32 %.031.in.lcssa, 1
  %69 = sub i32 %68, %.03277
  %70 = sub i32 %.031.in.lcssa, %.03277
  %xtraiter154 = and i32 %69, 3
  %lcmp.mod155.not = icmp eq i32 %xtraiter154, 0
  br i1 %lcmp.mod155.not, label %.lr.ph74.prol.loopexit, label %.lr.ph74.prol

.lr.ph74.prol:                                    ; preds = %.lr.ph74.preheader, %.lr.ph74.prol
  %indvars.iv95.prol = phi i64 [ %indvars.iv.next96.prol, %.lr.ph74.prol ], [ %34, %.lr.ph74.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph74.prol ], [ 0, %.lr.ph74.preheader ]
  %71 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv95.prol, i32 5
  %72 = load i32, ptr %71, align 4, !tbaa !12
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [200010 x i32], ptr @ans, i64 0, i64 %73
  store i32 %storemerge.lcssa, ptr %74, align 4, !tbaa !5
  %indvars.iv.next96.prol = add nsw i64 %indvars.iv95.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter154
  br i1 %prol.iter.cmp.not, label %.lr.ph74.prol.loopexit, label %.lr.ph74.prol, !llvm.loop !21

.lr.ph74.prol.loopexit:                           ; preds = %.lr.ph74.prol, %.lr.ph74.preheader
  %indvars.iv95.unr = phi i64 [ %34, %.lr.ph74.preheader ], [ %indvars.iv.next96.prol, %.lr.ph74.prol ]
  %75 = icmp ult i32 %70, 3
  br i1 %75, label %._crit_edge75, label %.lr.ph74

._crit_edge75:                                    ; preds = %.lr.ph74.prol.loopexit, %.lr.ph74, %.critedge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  %.not38 = icmp sgt i32 %.031.lcssa, %67
  br i1 %.not38, label %.preheader, label %.lr.ph79, !llvm.loop !22

.lr.ph74:                                         ; preds = %.lr.ph74.prol.loopexit, %.lr.ph74
  %indvars.iv95 = phi i64 [ %indvars.iv.next96.3, %.lr.ph74 ], [ %indvars.iv95.unr, %.lr.ph74.prol.loopexit ]
  %76 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv95, i32 5
  %77 = load i32, ptr %76, align 4, !tbaa !12
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [200010 x i32], ptr @ans, i64 0, i64 %78
  store i32 %storemerge.lcssa, ptr %79, align 4, !tbaa !5
  %indvars.iv.next96 = add nsw i64 %indvars.iv95, 1
  %80 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv.next96, i32 5
  %81 = load i32, ptr %80, align 4, !tbaa !12
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [200010 x i32], ptr @ans, i64 0, i64 %82
  store i32 %storemerge.lcssa, ptr %83, align 4, !tbaa !5
  %indvars.iv.next96.1 = add nsw i64 %indvars.iv95, 2
  %84 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv.next96.1, i32 5
  %85 = load i32, ptr %84, align 4, !tbaa !12
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [200010 x i32], ptr @ans, i64 0, i64 %86
  store i32 %storemerge.lcssa, ptr %87, align 4, !tbaa !5
  %indvars.iv.next96.2 = add nsw i64 %indvars.iv95, 3
  %88 = getelementptr inbounds [200010 x %struct.Query], ptr @a, i64 0, i64 %indvars.iv.next96.2, i32 5
  %89 = load i32, ptr %88, align 4, !tbaa !12
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [200010 x i32], ptr @ans, i64 0, i64 %90
  store i32 %storemerge.lcssa, ptr %91, align 4, !tbaa !5
  %indvars.iv.next96.3 = add nsw i64 %indvars.iv95, 4
  %lftr.wideiv.3 = trunc i64 %indvars.iv.next96.3 to i32
  %exitcond99.not.3 = icmp eq i32 %68, %lftr.wideiv.3
  br i1 %exitcond99.not.3, label %._crit_edge75, label %.lr.ph74, !llvm.loop !23

.lr.ph82:                                         ; preds = %.preheader, %.lr.ph82
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %.lr.ph82 ], [ 1, %.preheader ]
  %92 = getelementptr inbounds [200010 x i32], ptr @ans, i64 0, i64 %indvars.iv100
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %93)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %94, i8 noundef signext 10)
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %96 = load i32, ptr @n, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %.not39.not = icmp slt i64 %indvars.iv100, %97
  br i1 %.not39.not, label %.lr.ph82, label %.loopexit, !llvm.loop !24

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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: 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 #2

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

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


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