; LLVM IR from kazunetakahashi/atcoder :: 201510_201609/1028_ARC043 (B)

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

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

@D = external dso_local global [100010 x i32], align 16
@S = external dso_local global [100010 x i32], align 16
@X = external dso_local global [5 x [100010 x i64]], align 16
@Y = external dso_local global [4 x [100010 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %22, %0
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %25

17:                                               ; preds = %12
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [100010 x i32], ptr @D, i64 0, i64 %19
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br label %22

22:                                               ; preds = %17
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %3, align 4, !tbaa !5
  br label %12, !llvm.loop !9

25:                                               ; preds = %16
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr @D, i64 %27
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @D, ptr noundef %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %60, %25
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %33, label %37

33:                                               ; preds = %29
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br label %37

37:                                               ; preds = %33, %29
  %38 = phi i1 [ false, %29 ], [ %36, %33 ]
  br i1 %38, label %39, label %61

39:                                               ; preds = %37
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [100010 x i32], ptr @D, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = mul nsw i32 %43, 2
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100010 x i32], ptr @D, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = icmp sle i32 %44, %48
  br i1 %49, label %50, label %57

50:                                               ; preds = %39
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %53
  store i32 %51, ptr %54, align 4, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %4, align 4, !tbaa !5
  br label %60

57:                                               ; preds = %39
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %5, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %57, %50
  br label %29, !llvm.loop !11

61:                                               ; preds = %37
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %61
  br label %68

66:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 31, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

67:                                               ; No predecessors!
  br label %68

68:                                               ; preds = %67, %65
  br label %69

69:                                               ; preds = %73, %68
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %73, label %80

73:                                               ; preds = %69
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %76
  store i32 %74, ptr %77, align 4, !tbaa !5
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %4, align 4, !tbaa !5
  br label %69, !llvm.loop !12

80:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %90, %80
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %93

86:                                               ; preds = %81
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %88
  store i64 1, ptr %89, align 8, !tbaa !13
  br label %90

90:                                               ; preds = %86
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %6, align 4, !tbaa !5
  br label %81, !llvm.loop !15

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

94:                                               ; preds = %167, %93
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = icmp sle i32 %95, 3
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  store i32 12, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %170

98:                                               ; preds = %94
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 %100
  %102 = load i32, ptr %2, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100010 x i64], ptr %101, i64 0, i64 %103
  store i64 0, ptr %104, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = sub nsw i32 %105, 1
  store i32 %106, ptr %9, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %135, %98
  %108 = load i32, ptr %9, align 4, !tbaa !5
  %109 = icmp sge i32 %108, 0
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  store i32 15, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %138

111:                                              ; preds = %107
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 %113
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100010 x i64], ptr %114, i64 0, i64 %117
  %119 = load i64, ptr %118, align 8, !tbaa !13
  %120 = load i32, ptr %7, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 %121
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [100010 x i64], ptr %122, i64 0, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !13
  %127 = add nsw i64 %119, %126
  %128 = srem i64 %127, 1000000007
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 %130
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [100010 x i64], ptr %131, i64 0, i64 %133
  store i64 %128, ptr %134, align 8, !tbaa !13
  br label %135

135:                                              ; preds = %111
  %136 = load i32, ptr %9, align 4, !tbaa !5
  %137 = add nsw i32 %136, -1
  store i32 %137, ptr %9, align 4, !tbaa !5
  br label %107, !llvm.loop !16

138:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %139 = load i32, ptr %2, align 4, !tbaa !5
  %140 = sub nsw i32 %139, 1
  store i32 %140, ptr %10, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %163, %138
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = icmp sge i32 %142, 0
  br i1 %143, label %145, label %144

144:                                              ; preds = %141
  store i32 18, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %166

145:                                              ; preds = %141
  %146 = load i32, ptr %7, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 %147
  %149 = load i32, ptr %10, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [100010 x i64], ptr %148, i64 0, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !13
  %156 = load i32, ptr %7, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 %158
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100010 x i64], ptr %159, i64 0, i64 %161
  store i64 %155, ptr %162, align 8, !tbaa !13
  br label %163

163:                                              ; preds = %145
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = add nsw i32 %164, -1
  store i32 %165, ptr %10, align 4, !tbaa !5
  br label %141, !llvm.loop !17

166:                                              ; preds = %144
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %7, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %7, align 4, !tbaa !5
  br label %94, !llvm.loop !18

170:                                              ; preds = %97
  %171 = load i64, ptr getelementptr inbounds ([4 x [100010 x i64]], ptr @Y, i64 0, i64 3), align 16, !tbaa !13
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %171)
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %174 = load i32, ptr %1, align 4
  ret i32 %174
}

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

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

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

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

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

@D = external dso_local global [100010 x i32], align 16
@S = external dso_local local_unnamed_addr global [100010 x i32], align 16
@X = external dso_local local_unnamed_addr global [5 x [100010 x i64]], align 16
@Y = external dso_local local_unnamed_addr global [4 x [100010 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre105 = sext i32 %3 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre105, %.._crit_edge_crit_edge ], [ %11, %.lr.ph ]
  %5 = getelementptr inbounds i32, ptr @D, i64 %.pre-phi
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @D, ptr noundef nonnull %5)
  %6 = load i32, ptr %1, align 4
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph53, label %._crit_edge54

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %8 = getelementptr inbounds [100010 x i32], ptr @D, i64 0, i64 %indvars.iv
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = icmp slt i64 %indvars.iv.next, %11
  br i1 %12, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph53:                                         ; preds = %._crit_edge, %25
  %.03951 = phi i32 [ %.1, %25 ], [ 0, %._crit_edge ]
  %.04050 = phi i32 [ %.141, %25 ], [ 0, %._crit_edge ]
  %13 = sext i32 %.04050 to i64
  %14 = getelementptr inbounds [100010 x i32], ptr @D, i64 0, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = shl nsw i32 %15, 1
  %17 = sext i32 %.03951 to i64
  %18 = getelementptr inbounds [100010 x i32], ptr @D, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %.not = icmp sgt i32 %16, %19
  br i1 %.not, label %23, label %20

20:                                               ; preds = %.lr.ph53
  %21 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %13
  store i32 %.03951, ptr %21, align 4, !tbaa !5
  %22 = add nsw i32 %.04050, 1
  br label %25

23:                                               ; preds = %.lr.ph53
  %24 = add nsw i32 %.03951, 1
  br label %25

25:                                               ; preds = %23, %20
  %.141 = phi i32 [ %22, %20 ], [ %.04050, %23 ]
  %.1 = phi i32 [ %.03951, %20 ], [ %24, %23 ]
  %26 = icmp slt i32 %.141, %6
  %27 = icmp slt i32 %.1, %6
  %28 = select i1 %26, i1 %27, i1 false
  br i1 %28, label %.lr.ph53, label %._crit_edge54, !llvm.loop !11

._crit_edge54:                                    ; preds = %25, %._crit_edge
  %.040.lcssa = phi i32 [ 0, %._crit_edge ], [ %.141, %25 ]
  %.039.lcssa = phi i32 [ 0, %._crit_edge ], [ %.1, %25 ]
  %29 = icmp eq i32 %.039.lcssa, %6
  br i1 %29, label %.preheader47, label %36

.preheader47:                                     ; preds = %._crit_edge54
  %30 = icmp slt i32 %.040.lcssa, %6
  br i1 %30, label %.lr.ph59.preheader, label %.preheader46

.lr.ph59.preheader:                               ; preds = %.preheader47
  %31 = sext i32 %.040.lcssa to i64
  %wide.trip.count = sext i32 %6 to i64
  %32 = sub nsw i64 %wide.trip.count, %31
  %min.iters.check = icmp ult i64 %32, 8
  br i1 %min.iters.check, label %.lr.ph59.preheader118, label %vector.ph

.lr.ph59.preheader118:                            ; preds = %middle.block, %.lr.ph59.preheader
  %indvars.iv77.ph = phi i64 [ %31, %.lr.ph59.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph59

vector.ph:                                        ; preds = %.lr.ph59.preheader
  %n.vec = and i64 %32, -8
  %ind.end = add nsw i64 %n.vec, %31
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %6, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %index, %31
  %33 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %offset.idx
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  store <4 x i32> %broadcast.splat, ptr %33, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat, ptr %34, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %35 = icmp eq i64 %index.next, %n.vec
  br i1 %35, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %32, %n.vec
  br i1 %cmp.n, label %.preheader46, label %.lr.ph59.preheader118

36:                                               ; preds = %._crit_edge54
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 31, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

.preheader46:                                     ; preds = %.lr.ph59, %middle.block, %.preheader47
  br i1 %7, label %.lr.ph61.preheader, label %.preheader45.thread

.preheader45.thread:                              ; preds = %.preheader46
  %37 = sext i32 %6 to i64
  br label %.preheader.preheader

.lr.ph61.preheader:                               ; preds = %.preheader46
  %wide.trip.count83 = zext nneg i32 %6 to i64
  %min.iters.check108 = icmp ult i32 %6, 4
  br i1 %min.iters.check108, label %.lr.ph61.preheader117, label %vector.ph109

.lr.ph61.preheader117:                            ; preds = %middle.block106, %.lr.ph61.preheader
  %indvars.iv80.ph = phi i64 [ 0, %.lr.ph61.preheader ], [ %n.vec111, %middle.block106 ]
  br label %.lr.ph61

vector.ph109:                                     ; preds = %.lr.ph61.preheader
  %n.vec111 = and i64 %wide.trip.count83, 2147483644
  br label %vector.body113

vector.body113:                                   ; preds = %vector.body113, %vector.ph109
  %index114 = phi i64 [ 0, %vector.ph109 ], [ %index.next115, %vector.body113 ]
  %38 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %index114
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  store <2 x i64> <i64 1, i64 1>, ptr %38, align 16, !tbaa !15
  store <2 x i64> <i64 1, i64 1>, ptr %39, align 16, !tbaa !15
  %index.next115 = add nuw i64 %index114, 4
  %40 = icmp eq i64 %index.next115, %n.vec111
  br i1 %40, label %middle.block106, label %vector.body113, !llvm.loop !17

middle.block106:                                  ; preds = %vector.body113
  %cmp.n116 = icmp eq i64 %n.vec111, %wide.trip.count83
  br i1 %cmp.n116, label %.preheader45, label %.lr.ph61.preheader117

.lr.ph59:                                         ; preds = %.lr.ph59.preheader118, %.lr.ph59
  %indvars.iv77 = phi i64 [ %indvars.iv.next78, %.lr.ph59 ], [ %indvars.iv77.ph, %.lr.ph59.preheader118 ]
  %41 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %indvars.iv77
  store i32 %6, ptr %41, align 4, !tbaa !5
  %indvars.iv.next78 = add nsw i64 %indvars.iv77, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count
  br i1 %exitcond.not, label %.preheader46, label %.lr.ph59, !llvm.loop !18

.preheader45:                                     ; preds = %.lr.ph61, %middle.block106
  %42 = zext nneg i32 %6 to i64
  br i1 %7, label %.lr.ph64.us.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader45.thread, %.preheader45
  %43 = phi i64 [ %37, %.preheader45.thread ], [ %42, %.preheader45 ]
  %44 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 0, i64 %43
  store i64 0, ptr %44, align 8, !tbaa !15
  %45 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 1, i64 %43
  store i64 0, ptr %45, align 8, !tbaa !15
  %46 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 2, i64 %43
  store i64 0, ptr %46, align 8, !tbaa !15
  %47 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 3, i64 %43
  store i64 0, ptr %47, align 8, !tbaa !15
  br label %.split.us

.lr.ph64.us.preheader:                            ; preds = %.preheader45
  %48 = zext nneg i32 %6 to i64
  %49 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 0, i64 %42
  store i64 0, ptr %49, align 8, !tbaa !15
  %.phi.trans.insert = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 0, i64 %48
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !15
  %xtraiter = and i64 %42, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph64.us.preheader
  %indvars.iv.next90.prol = add nsw i64 %48, -1
  %50 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 0, i64 %indvars.iv.next90.prol
  %51 = load i64, ptr %50, align 8, !tbaa !15
  %52 = add nsw i64 %51, %.pre
  %53 = srem i64 %52, 1000000007
  %54 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 0, i64 %indvars.iv.next90.prol
  store i64 %53, ptr %54, align 8, !tbaa !15
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph64.us.preheader
  %.unr = phi i64 [ %.pre, %.lr.ph64.us.preheader ], [ %53, %.prol.loopexit.unr-lcssa ]
  %indvars.iv89.unr = phi i64 [ %48, %.lr.ph64.us.preheader ], [ %indvars.iv.next90.prol, %.prol.loopexit.unr-lcssa ]
  %55 = icmp eq i32 %6, 1
  br i1 %55, label %.lr.ph66.us.preheader, label %.lr.ph64.us.preheader.new

._crit_edge67.us:                                 ; preds = %.lr.ph66.us
  %56 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 1, i64 %42
  store i64 0, ptr %56, align 8, !tbaa !15
  %.phi.trans.insert99 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 1, i64 %48
  %.pre100 = load i64, ptr %.phi.trans.insert99, align 8, !tbaa !15
  br label %57

57:                                               ; preds = %57, %._crit_edge67.us
  %58 = phi i64 [ %.pre100, %._crit_edge67.us ], [ %62, %57 ]
  %indvars.iv89.1 = phi i64 [ %48, %._crit_edge67.us ], [ %indvars.iv.next90.1, %57 ]
  %indvars.iv.next90.1 = add nsw i64 %indvars.iv89.1, -1
  %59 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 1, i64 %indvars.iv.next90.1
  %60 = load i64, ptr %59, align 8, !tbaa !15
  %61 = add nsw i64 %60, %58
  %62 = srem i64 %61, 1000000007
  %63 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 1, i64 %indvars.iv.next90.1
  store i64 %62, ptr %63, align 8, !tbaa !15
  %64 = icmp sgt i64 %indvars.iv89.1, 1
  br i1 %64, label %57, label %.lr.ph66.us.1, !llvm.loop !19

.lr.ph66.us.1:                                    ; preds = %57, %.lr.ph66.us.1
  %indvars.iv92.1 = phi i64 [ %indvars.iv.next93.1, %.lr.ph66.us.1 ], [ %48, %57 ]
  %indvars.iv.next93.1 = add nsw i64 %indvars.iv92.1, -1
  %65 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %indvars.iv.next93.1
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 1, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 2, i64 %indvars.iv.next93.1
  store i64 %69, ptr %70, align 8, !tbaa !15
  %71 = icmp sgt i64 %indvars.iv92.1, 1
  br i1 %71, label %.lr.ph66.us.1, label %._crit_edge67.us.1, !llvm.loop !20

._crit_edge67.us.1:                               ; preds = %.lr.ph66.us.1
  %72 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 2, i64 %42
  store i64 0, ptr %72, align 8, !tbaa !15
  %.phi.trans.insert101 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 2, i64 %48
  %.pre102 = load i64, ptr %.phi.trans.insert101, align 8, !tbaa !15
  br label %73

73:                                               ; preds = %73, %._crit_edge67.us.1
  %74 = phi i64 [ %.pre102, %._crit_edge67.us.1 ], [ %78, %73 ]
  %indvars.iv89.2 = phi i64 [ %48, %._crit_edge67.us.1 ], [ %indvars.iv.next90.2, %73 ]
  %indvars.iv.next90.2 = add nsw i64 %indvars.iv89.2, -1
  %75 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 2, i64 %indvars.iv.next90.2
  %76 = load i64, ptr %75, align 8, !tbaa !15
  %77 = add nsw i64 %76, %74
  %78 = srem i64 %77, 1000000007
  %79 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 2, i64 %indvars.iv.next90.2
  store i64 %78, ptr %79, align 8, !tbaa !15
  %80 = icmp sgt i64 %indvars.iv89.2, 1
  br i1 %80, label %73, label %.lr.ph66.us.2, !llvm.loop !19

.lr.ph66.us.2:                                    ; preds = %73, %.lr.ph66.us.2
  %indvars.iv92.2 = phi i64 [ %indvars.iv.next93.2, %.lr.ph66.us.2 ], [ %48, %73 ]
  %indvars.iv.next93.2 = add nsw i64 %indvars.iv92.2, -1
  %81 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %indvars.iv.next93.2
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 2, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !15
  %86 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 3, i64 %indvars.iv.next93.2
  store i64 %85, ptr %86, align 8, !tbaa !15
  %87 = icmp sgt i64 %indvars.iv92.2, 1
  br i1 %87, label %.lr.ph66.us.2, label %._crit_edge67.us.2, !llvm.loop !20

._crit_edge67.us.2:                               ; preds = %.lr.ph66.us.2
  %88 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 3, i64 %42
  store i64 0, ptr %88, align 8, !tbaa !15
  %.phi.trans.insert103 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 3, i64 %48
  %.pre104 = load i64, ptr %.phi.trans.insert103, align 8, !tbaa !15
  br label %89

89:                                               ; preds = %89, %._crit_edge67.us.2
  %90 = phi i64 [ %.pre104, %._crit_edge67.us.2 ], [ %94, %89 ]
  %indvars.iv89.3 = phi i64 [ %48, %._crit_edge67.us.2 ], [ %indvars.iv.next90.3, %89 ]
  %indvars.iv.next90.3 = add nsw i64 %indvars.iv89.3, -1
  %91 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 3, i64 %indvars.iv.next90.3
  %92 = load i64, ptr %91, align 8, !tbaa !15
  %93 = add nsw i64 %92, %90
  %94 = srem i64 %93, 1000000007
  %95 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 3, i64 %indvars.iv.next90.3
  store i64 %94, ptr %95, align 8, !tbaa !15
  %96 = icmp sgt i64 %indvars.iv89.3, 1
  br i1 %96, label %89, label %.lr.ph66.us.3, !llvm.loop !19

.lr.ph66.us.3:                                    ; preds = %89, %.lr.ph66.us.3
  %indvars.iv92.3 = phi i64 [ %indvars.iv.next93.3, %.lr.ph66.us.3 ], [ %48, %89 ]
  %indvars.iv.next93.3 = add nsw i64 %indvars.iv92.3, -1
  %97 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %indvars.iv.next93.3
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 3, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !15
  %102 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 4, i64 %indvars.iv.next93.3
  store i64 %101, ptr %102, align 8, !tbaa !15
  %103 = icmp sgt i64 %indvars.iv92.3, 1
  br i1 %103, label %.lr.ph66.us.3, label %.split.us, !llvm.loop !20

.lr.ph66.us:                                      ; preds = %.lr.ph66.us.preheader, %.lr.ph66.us
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %.lr.ph66.us ], [ %48, %.lr.ph66.us.preheader ]
  %indvars.iv.next93 = add nsw i64 %indvars.iv92, -1
  %104 = getelementptr inbounds [100010 x i32], ptr @S, i64 0, i64 %indvars.iv.next93
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 0, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !15
  %109 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 1, i64 %indvars.iv.next93
  store i64 %108, ptr %109, align 8, !tbaa !15
  %110 = icmp sgt i64 %indvars.iv92, 1
  br i1 %110, label %.lr.ph66.us, label %._crit_edge67.us, !llvm.loop !20

.lr.ph64.us.preheader.new:                        ; preds = %.prol.loopexit, %.lr.ph64.us.preheader.new
  %111 = phi i64 [ %120, %.lr.ph64.us.preheader.new ], [ %.unr, %.prol.loopexit ]
  %indvars.iv89 = phi i64 [ %indvars.iv.next90.1120, %.lr.ph64.us.preheader.new ], [ %indvars.iv89.unr, %.prol.loopexit ]
  %indvars.iv.next90 = add nsw i64 %indvars.iv89, -1
  %112 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 0, i64 %indvars.iv.next90
  %113 = load i64, ptr %112, align 8, !tbaa !15
  %114 = add nsw i64 %113, %111
  %115 = srem i64 %114, 1000000007
  %116 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 0, i64 %indvars.iv.next90
  store i64 %115, ptr %116, align 8, !tbaa !15
  %indvars.iv.next90.1120 = add nsw i64 %indvars.iv89, -2
  %117 = getelementptr inbounds [5 x [100010 x i64]], ptr @X, i64 0, i64 0, i64 %indvars.iv.next90.1120
  %118 = load i64, ptr %117, align 8, !tbaa !15
  %119 = add nsw i64 %118, %115
  %120 = srem i64 %119, 1000000007
  %121 = getelementptr inbounds [4 x [100010 x i64]], ptr @Y, i64 0, i64 0, i64 %indvars.iv.next90.1120
  store i64 %120, ptr %121, align 8, !tbaa !15
  %122 = icmp ugt i64 %indvars.iv.next90, 1
  br i1 %122, label %.lr.ph64.us.preheader.new, label %.lr.ph66.us.preheader, !llvm.loop !19

.lr.ph66.us.preheader:                            ; preds = %.lr.ph64.us.preheader.new, %.prol.loopexit
  br label %.lr.ph66.us

.lr.ph61:                                         ; preds = %.lr.ph61.preheader117, %.lr.ph61
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %.lr.ph61 ], [ %indvars.iv80.ph, %.lr.ph61.preheader117 ]
  %123 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %indvars.iv80
  store i64 1, ptr %123, align 8, !tbaa !15
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next81, %wide.trip.count83
  br i1 %exitcond84.not, label %.preheader45, label %.lr.ph61, !llvm.loop !21

.split.us:                                        ; preds = %.lr.ph66.us.3, %.preheader.preheader
  %124 = load i64, ptr getelementptr inbounds (i8, ptr @Y, i64 2400240), align 16, !tbaa !15
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %124)
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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


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