; LLVM IR from kazunetakahashi/atcoder :: 2017/0122_AGC009 (C2)

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

@N = external dso_local global i32, align 4
@A = external dso_local global i64, align 8
@B = external dso_local global i64, align 8
@S = external dso_local global [100010 x i64], align 16
@X = external dso_local global [100010 x i64], align 16
@kB = external dso_local global [100010 x i32], align 16
@underA = external dso_local global [100010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z6calc_Xi(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 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
  store i32 0, ptr %1, align 4
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) @A)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) @B)
  %15 = load i64, ptr @A, align 8, !tbaa !5
  %16 = load i64, ptr @B, align 8, !tbaa !5
  %17 = icmp sgt i64 %15, %16
  br i1 %17, label %18, label %19

18:                                               ; preds = %0
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) @A, ptr noundef nonnull align 8 dereferenceable(8) @B) #6
  br label %19

19:                                               ; preds = %18, %0
  store i64 -2000000000000000010, ptr @S, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %31, %19
  %21 = load i32, ptr %2, align 4, !tbaa !9
  %22 = load i32, ptr @N, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %34

25:                                               ; preds = %20
  %26 = load i32, ptr %2, align 4, !tbaa !9
  %27 = add nsw i32 %26, 1
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %28
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %29)
  br label %31

31:                                               ; preds = %25
  %32 = load i32, ptr %2, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %2, align 4, !tbaa !9
  br label %20, !llvm.loop !11

34:                                               ; preds = %24
  %35 = load i32, ptr @N, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr @N, align 4, !tbaa !9
  %37 = load i32, ptr @N, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr @N, align 4, !tbaa !9
  %39 = sext i32 %37 to i64
  %40 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %39
  store i64 2000000000000000010, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %47, %34
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = load i32, ptr @N, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

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

46:                                               ; preds = %41
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %3, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %3, align 4, !tbaa !9
  br label %41, !llvm.loop !13

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 2, ptr %4, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %73, %50
  %52 = load i32, ptr %4, align 4, !tbaa !9
  %53 = load i32, ptr @N, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 8, ptr %5, align 4
  br label %76

56:                                               ; preds = %51
  %57 = load i32, ptr %4, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !5
  %61 = load i32, ptr %4, align 4, !tbaa !9
  %62 = sub nsw i32 %61, 2
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = sub nsw i64 %60, %65
  %67 = load i64, ptr @A, align 8, !tbaa !5
  %68 = icmp slt i64 %66, %67
  br i1 %68, label %69, label %72

69:                                               ; preds = %56
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %76

72:                                               ; preds = %56
  br label %73

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

76:                                               ; preds = %69, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %77 = load i32, ptr %5, align 4
  switch i32 %77, label %179 [
    i32 8, label %78
    i32 1, label %177
  ]

78:                                               ; preds = %76
  %79 = load i32, ptr @N, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr @kB, i64 %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 -1, ptr %6, align 4, !tbaa !9
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @kB, ptr noundef %81, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %113, %78
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = load i32, ptr @N, align 4, !tbaa !9
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %86, label %114

86:                                               ; preds = %82
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !5
  %95 = sub nsw i64 %90, %94
  %96 = load i64, ptr @B, align 8, !tbaa !5
  %97 = icmp sge i64 %95, %96
  br i1 %97, label %98, label %105

98:                                               ; preds = %86
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100010 x i32], ptr @kB, i64 0, i64 %101
  store i32 %99, ptr %102, align 4, !tbaa !9
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !9
  br label %113

105:                                              ; preds = %86
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = sub nsw i32 %106, 1
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [100010 x i32], ptr @kB, i64 0, i64 %109
  store i32 %107, ptr %110, align 4, !tbaa !9
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %8, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %105, %98
  br label %82, !llvm.loop !15

114:                                              ; preds = %82
  %115 = load i32, ptr @N, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i64, ptr @X, i64 %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 -1, ptr %9, align 4, !tbaa !9
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @X, ptr noundef %117, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  store i64 1, ptr @X, align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([100010 x i64], ptr @X, i64 0, i64 1), align 8, !tbaa !5
  store i32 0, ptr @underA, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %148, %114
  %119 = load i32, ptr %10, align 4, !tbaa !9
  %120 = load i32, ptr @N, align 4, !tbaa !9
  %121 = sub nsw i32 %120, 1
  %122 = icmp slt i32 %119, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %118
  store i32 13, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %151

124:                                              ; preds = %118
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !5
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !5
  %134 = sub nsw i64 %129, %133
  %135 = load i64, ptr @A, align 8, !tbaa !5
  %136 = icmp slt i64 %134, %135
  br i1 %136, label %137, label %142

137:                                              ; preds = %124
  %138 = load i32, ptr %10, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %140
  store i32 1, ptr %141, align 4, !tbaa !9
  br label %147

142:                                              ; preds = %124
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %145
  store i32 0, ptr %146, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %142, %137
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %10, align 4, !tbaa !9
  br label %118, !llvm.loop !16

151:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %168, %151
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr @N, align 4, !tbaa !9
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  store i32 16, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %171

157:                                              ; preds = %152
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !9
  %162 = load i32, ptr %11, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = add nsw i32 %166, %161
  store i32 %167, ptr %165, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %157
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %11, align 4, !tbaa !9
  br label %152, !llvm.loop !17

171:                                              ; preds = %156
  %172 = load i32, ptr @N, align 4, !tbaa !9
  %173 = sub nsw i32 %172, 1
  %174 = call noundef i64 @_Z6calc_Xi(i32 noundef %173)
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %174)
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %177

177:                                              ; preds = %171, %76
  %178 = load i32, ptr %1, align 4
  ret i32 %178

179:                                              ; preds = %76
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 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)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !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"

%"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" }

@N = external dso_local global i32, align 4
@A = external dso_local global i64, align 8
@B = external dso_local global i64, align 8
@S = external dso_local global [100010 x i64], align 16
@X = external dso_local global [100010 x i64], align 16
@kB = external dso_local global [100010 x i32], align 16
@underA = external dso_local local_unnamed_addr global [100010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z6calc_Xi(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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(8) @A)
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) @B)
  %6 = load i64, ptr @A, align 8, !tbaa !5
  %7 = load i64, ptr @B, align 8, !tbaa !5
  %8 = icmp sgt i64 %6, %7
  br i1 %8, label %9, label %10

9:                                                ; preds = %0
  tail call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) @A, ptr noundef nonnull align 8 dereferenceable(8) @B) #6
  br label %10

10:                                               ; preds = %9, %0
  store i64 -2000000000000000010, ptr @S, align 16, !tbaa !5
  %11 = load i32, ptr @N, align 4, !tbaa !9
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %10
  %13 = add nsw i32 %11, 1
  %14 = add nsw i32 %11, 2
  store i32 %14, ptr @N, align 4, !tbaa !9
  %15 = sext i32 %13 to i64
  %16 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %15
  store i64 2000000000000000010, ptr %16, align 8, !tbaa !5
  br label %._crit_edge52

._crit_edge:                                      ; preds = %.lr.ph
  %17 = add nsw i32 %24, 1
  %18 = add nsw i32 %24, 2
  store i32 %18, ptr @N, align 4, !tbaa !9
  %19 = sext i32 %17 to i64
  %20 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %19
  store i64 2000000000000000010, ptr %20, align 8, !tbaa !5
  %21 = icmp sgt i32 %24, 0
  br i1 %21, label %.lr.ph51, label %._crit_edge52

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

.lr.ph51:                                         ; preds = %._crit_edge
  %27 = load i64, ptr @A, align 8, !tbaa !5
  %wide.trip.count = zext nneg i32 %18 to i64
  br label %29

28:                                               ; preds = %29
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge52, label %29, !llvm.loop !13

29:                                               ; preds = %.lr.ph51, %28
  %indvars.iv68 = phi i64 [ 2, %.lr.ph51 ], [ %indvars.iv.next69, %28 ]
  %30 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %indvars.iv68
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = add nsw i64 %indvars.iv68, -2
  %33 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %32
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = sub nsw i64 %31, %34
  %36 = icmp slt i64 %35, %27
  br i1 %36, label %37, label %28

37:                                               ; preds = %29
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %107

._crit_edge52:                                    ; preds = %28, %._crit_edge.thread, %._crit_edge
  %40 = phi i32 [ %14, %._crit_edge.thread ], [ %18, %._crit_edge ], [ %18, %28 ]
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr @kB, i64 %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 -1, ptr %1, align 4, !tbaa !9
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @kB, ptr noundef nonnull %42, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %43 = load i32, ptr @N, align 4, !tbaa !9
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph56, label %._crit_edge57

.lr.ph56:                                         ; preds = %._crit_edge52
  %45 = load i64, ptr @B, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %.lr.ph56, %46
  %.03154 = phi i32 [ 0, %.lr.ph56 ], [ %.1, %46 ]
  %.03253 = phi i32 [ 0, %.lr.ph56 ], [ %.133, %46 ]
  %47 = zext nneg i32 %.03154 to i64
  %48 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %50 = zext nneg i32 %.03253 to i64
  %51 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = sub nsw i64 %49, %52
  %.not = icmp slt i64 %53, %45
  %54 = sext i1 %.not to i32
  %.03253.sink = add nsw i32 %.03253, %54
  %not..not = xor i1 %.not, true
  %55 = zext i1 %not..not to i32
  %.133 = add nuw nsw i32 %.03253, %55
  %56 = zext i1 %.not to i32
  %.1 = add nuw nsw i32 %.03154, %56
  %57 = getelementptr inbounds [100010 x i32], ptr @kB, i64 0, i64 %47
  store i32 %.03253.sink, ptr %57, align 4
  %58 = icmp slt i32 %.1, %43
  br i1 %58, label %46, label %._crit_edge57, !llvm.loop !14

._crit_edge57:                                    ; preds = %46, %._crit_edge52
  %59 = sext i32 %43 to i64
  %60 = getelementptr inbounds i64, ptr @X, i64 %59
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 -1, ptr %2, align 4, !tbaa !9
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @X, ptr noundef nonnull %60, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  store i64 1, ptr @X, align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @X, i64 8), align 8, !tbaa !5
  store i32 0, ptr @underA, align 16, !tbaa !9
  %61 = load i32, ptr @N, align 4, !tbaa !9
  %62 = add i32 %61, -1
  %63 = icmp sgt i32 %61, 1
  br i1 %63, label %.lr.ph61, label %.preheader

.lr.ph61:                                         ; preds = %._crit_edge57
  %64 = load i64, ptr @A, align 8, !tbaa !5
  %wide.trip.count74 = zext nneg i32 %62 to i64
  %.pre = load i64, ptr @S, align 16, !tbaa !5
  %min.iters.check = icmp ult i32 %61, 5
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph61
  %.ph = phi i64 [ %.pre, %.lr.ph61 ], [ %vector.recur.extract, %middle.block ]
  %indvars.iv71.ph = phi i64 [ 0, %.lr.ph61 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph61
  %n.vec = and i64 %wide.trip.count74, 2147483644
  %vector.recur.init = insertelement <2 x i64> poison, i64 %.pre, i64 1
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %64, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <2 x i64> [ %vector.recur.init, %vector.ph ], [ %wide.load83, %vector.body ]
  %65 = or disjoint i64 %index, 1
  %66 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %65
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %wide.load = load <2 x i64>, ptr %66, align 8, !tbaa !5
  %wide.load83 = load <2 x i64>, ptr %67, align 8, !tbaa !5
  %68 = shufflevector <2 x i64> %vector.recur, <2 x i64> %wide.load, <2 x i32> <i32 1, i32 2>
  %69 = shufflevector <2 x i64> %wide.load, <2 x i64> %wide.load83, <2 x i32> <i32 1, i32 2>
  %70 = sub nsw <2 x i64> %wide.load, %68
  %71 = sub nsw <2 x i64> %wide.load83, %69
  %72 = icmp slt <2 x i64> %70, %broadcast.splat
  %73 = icmp slt <2 x i64> %71, %broadcast.splat
  %74 = zext <2 x i1> %72 to <2 x i32>
  %75 = zext <2 x i1> %73 to <2 x i32>
  %76 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %65
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  store <2 x i32> %74, ptr %76, align 4
  store <2 x i32> %75, ptr %77, align 4
  %index.next = add nuw i64 %index, 4
  %78 = icmp eq i64 %index.next, %n.vec
  br i1 %78, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %vector.recur.extract = extractelement <2 x i64> %wide.load83, i64 1
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count74
  br i1 %cmp.n, label %.preheader, label %scalar.ph.preheader

.preheader:                                       ; preds = %scalar.ph, %middle.block, %._crit_edge57
  %79 = icmp sgt i32 %61, 0
  br i1 %79, label %.lr.ph65.preheader, label %._crit_edge66

.lr.ph65.preheader:                               ; preds = %.preheader
  %wide.trip.count79 = zext nneg i32 %61 to i64
  %.pre81 = load i32, ptr @underA, align 16, !tbaa !9
  %xtraiter = and i64 %wide.trip.count79, 3
  %80 = icmp ult i32 %61, 4
  br i1 %80, label %._crit_edge66.loopexit.unr-lcssa, label %.lr.ph65.preheader.new

.lr.ph65.preheader.new:                           ; preds = %.lr.ph65.preheader
  %unroll_iter = and i64 %wide.trip.count79, 2147483644
  br label %.lr.ph65

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %81 = phi i64 [ %83, %scalar.ph ], [ %.ph, %scalar.ph.preheader ]
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %scalar.ph ], [ %indvars.iv71.ph, %scalar.ph.preheader ]
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %82 = getelementptr inbounds [100010 x i64], ptr @S, i64 0, i64 %indvars.iv.next72
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = sub nsw i64 %83, %81
  %85 = icmp slt i64 %84, %64
  %spec.select = zext i1 %85 to i32
  %86 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %indvars.iv.next72
  store i32 %spec.select, ptr %86, align 4
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %.preheader, label %scalar.ph, !llvm.loop !18

._crit_edge66.loopexit.unr-lcssa:                 ; preds = %.lr.ph65, %.lr.ph65.preheader
  %.unr = phi i32 [ %.pre81, %.lr.ph65.preheader ], [ %106, %.lr.ph65 ]
  %indvars.iv76.unr = phi i64 [ 0, %.lr.ph65.preheader ], [ %indvars.iv.next77.3, %.lr.ph65 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge66, label %.lr.ph65.epil

.lr.ph65.epil:                                    ; preds = %._crit_edge66.loopexit.unr-lcssa, %.lr.ph65.epil
  %87 = phi i32 [ %90, %.lr.ph65.epil ], [ %.unr, %._crit_edge66.loopexit.unr-lcssa ]
  %indvars.iv76.epil = phi i64 [ %indvars.iv.next77.epil, %.lr.ph65.epil ], [ %indvars.iv76.unr, %._crit_edge66.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph65.epil ], [ 0, %._crit_edge66.loopexit.unr-lcssa ]
  %indvars.iv.next77.epil = add nuw nsw i64 %indvars.iv76.epil, 1
  %88 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %indvars.iv.next77.epil
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = add nsw i32 %89, %87
  store i32 %90, ptr %88, align 4, !tbaa !9
  %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_edge66, label %.lr.ph65.epil, !llvm.loop !19

._crit_edge66:                                    ; preds = %._crit_edge66.loopexit.unr-lcssa, %.lr.ph65.epil, %.preheader
  %91 = call noundef i64 @_Z6calc_Xi(i32 noundef %62)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %91)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %107

.lr.ph65:                                         ; preds = %.lr.ph65, %.lr.ph65.preheader.new
  %94 = phi i32 [ %.pre81, %.lr.ph65.preheader.new ], [ %106, %.lr.ph65 ]
  %indvars.iv76 = phi i64 [ 0, %.lr.ph65.preheader.new ], [ %indvars.iv.next77.3, %.lr.ph65 ]
  %niter = phi i64 [ 0, %.lr.ph65.preheader.new ], [ %niter.next.3, %.lr.ph65 ]
  %indvars.iv.next77 = or disjoint i64 %indvars.iv76, 1
  %95 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %indvars.iv.next77
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = add nsw i32 %96, %94
  store i32 %97, ptr %95, align 4, !tbaa !9
  %indvars.iv.next77.1 = or disjoint i64 %indvars.iv76, 2
  %98 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %indvars.iv.next77.1
  %99 = load i32, ptr %98, align 8, !tbaa !9
  %100 = add nsw i32 %99, %97
  store i32 %100, ptr %98, align 8, !tbaa !9
  %indvars.iv.next77.2 = or disjoint i64 %indvars.iv76, 3
  %101 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %indvars.iv.next77.2
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = add nsw i32 %102, %100
  store i32 %103, ptr %101, align 4, !tbaa !9
  %indvars.iv.next77.3 = add nuw nsw i64 %indvars.iv76, 4
  %104 = getelementptr inbounds [100010 x i32], ptr @underA, i64 0, i64 %indvars.iv.next77.3
  %105 = load i32, ptr %104, align 16, !tbaa !9
  %106 = add nsw i32 %105, %103
  store i32 %106, ptr %104, align 16, !tbaa !9
  %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_edge66.loopexit.unr-lcssa, label %.lr.ph65, !llvm.loop !21

107:                                              ; preds = %37, %._crit_edge66
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; 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 #0 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)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; 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 #0 align 2

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 = { "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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !12, !17, !16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !12}


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