; LLVM IR from kazunetakahashi/atcoder :: 2017/0325_yahoo-procon2017-final (A)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"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" }

@_Z1YB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1SB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@dp = external dso_local global [5 x [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: 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 @_Z2f5iiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #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
  store i32 0, ptr %1, align 4
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %9 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11) #6
  %10 = trunc i64 %9 to i32
  store i32 %10, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %11

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

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

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

16:                                               ; preds = %27, %15
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = icmp slt i32 %17, 100010
  br i1 %18, label %20, label %19

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

20:                                               ; preds = %16
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 %22
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [100010 x i32], ptr %23, i64 0, i64 %25
  store i32 1000000007, ptr %26, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %20
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %5, align 4, !tbaa !5
  br label %16, !llvm.loop !9

30:                                               ; preds = %19
  br label %31

31:                                               ; preds = %30
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %3, align 4, !tbaa !5
  br label %11, !llvm.loop !11

34:                                               ; preds = %14
  store i32 0, ptr @dp, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %86, %34
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %89

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

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

44:                                               ; preds = %41
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %85

45:                                               ; preds = %41
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %47)
  %49 = load i8, ptr %48, align 1, !tbaa !12
  %50 = sext i8 %49 to i32
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = srem i32 %51, 5
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1YB5cxx11, i64 noundef %53)
  %55 = load i8, ptr %54, align 1, !tbaa !12
  %56 = sext i8 %55 to i32
  %57 = icmp eq i32 %50, %56
  br i1 %57, label %58, label %65

58:                                               ; preds = %45
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z2f5iiiii(i32 noundef %60, i32 noundef %62, i32 noundef %63, i32 noundef %64, i32 noundef 0)
  br label %65

65:                                               ; preds = %58, %45
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z2f5iiiii(i32 noundef %67, i32 noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef 1)
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z2f5iiiii(i32 noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef 1)
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z2f5iiiii(i32 noundef %77, i32 noundef %79, i32 noundef %80, i32 noundef %81, i32 noundef 1)
  br label %82

82:                                               ; preds = %65
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %7, align 4, !tbaa !5
  br label %41, !llvm.loop !13

85:                                               ; preds = %44
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %6, align 4, !tbaa !5
  br label %35, !llvm.loop !14

89:                                               ; preds = %39
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [100010 x i32], ptr @dp, i64 0, i64 %91
  %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 @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %96 = load i32, ptr %1, align 4
  ret i32 %96
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #4 align 2

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) #1 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

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 = { 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 = { 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 = !{!"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 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"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" }

@_Z1YB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1SB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@dp = external dso_local local_unnamed_addr global [5 x [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 void @_Z2f5iiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
.preheader35:
  %0 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11)
  %1 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11) #5
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %.preheader35
  %index = phi i64 [ 0, %.preheader35 ], [ %index.next.2, %vector.body ]
  %2 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 0, i64 %index
  %3 = getelementptr inbounds i8, ptr %2, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %2, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %3, align 16, !tbaa !5
  %index.next = add nuw nsw i64 %index, 8
  %4 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 0, i64 %index.next
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %4, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %5, align 16, !tbaa !5
  %index.next.1 = add nuw nsw i64 %index, 16
  %6 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 0, i64 %index.next.1
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %6, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %7, align 16, !tbaa !5
  %index.next.2 = add nuw nsw i64 %index, 24
  %8 = icmp eq i64 %index.next.2, 100008
  br i1 %8, label %scalar.ph, label %vector.body, !llvm.loop !9

.preheader.preheader:                             ; preds = %.preheader35.4
  %wide.trip.count = and i64 %1, 2147483647
  br label %.preheader

vector.body62:                                    ; preds = %vector.body62, %.preheader35.1.preheader
  %index63 = phi i64 [ 0, %.preheader35.1.preheader ], [ %index.next64.2, %vector.body62 ]
  %9 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 2, i64 %index63
  %10 = getelementptr inbounds i8, ptr %9, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %9, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %10, align 16, !tbaa !5
  %index.next64 = add nuw nsw i64 %index63, 8
  %11 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 2, i64 %index.next64
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %11, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %12, align 16, !tbaa !5
  %index.next64.1 = add nuw nsw i64 %index63, 16
  %13 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 2, i64 %index.next64.1
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %13, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %14, align 16, !tbaa !5
  %index.next64.2 = add nuw nsw i64 %index63, 24
  %15 = icmp eq i64 %index.next64.2, 100008
  br i1 %15, label %.preheader35.2, label %vector.body62, !llvm.loop !13

.preheader35.2:                                   ; preds = %vector.body62
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 1200112), align 16, !tbaa !5
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 1200116), align 4, !tbaa !5
  br label %vector.body69

vector.body69:                                    ; preds = %vector.body69, %.preheader35.2
  %index70 = phi i64 [ 0, %.preheader35.2 ], [ %index.next71.2, %vector.body69 ]
  %16 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 3, i64 %index70
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %16, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %17, align 8, !tbaa !5
  %index.next71 = add nuw nsw i64 %index70, 8
  %18 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 3, i64 %index.next71
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %18, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %19, align 8, !tbaa !5
  %index.next71.1 = add nuw nsw i64 %index70, 16
  %20 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 3, i64 %index.next71.1
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %20, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %21, align 8, !tbaa !5
  %index.next71.2 = add nuw nsw i64 %index70, 24
  %22 = icmp eq i64 %index.next71.2, 100008
  br i1 %22, label %.preheader35.3, label %vector.body69, !llvm.loop !14

.preheader35.3:                                   ; preds = %vector.body69
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 1600152), align 8, !tbaa !5
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 1600156), align 4, !tbaa !5
  br label %vector.body76

vector.body76:                                    ; preds = %vector.body76, %.preheader35.3
  %index77 = phi i64 [ 0, %.preheader35.3 ], [ %index.next78.2, %vector.body76 ]
  %23 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 4, i64 %index77
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %23, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %24, align 16, !tbaa !5
  %index.next78 = add nuw nsw i64 %index77, 8
  %25 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 4, i64 %index.next78
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %25, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %26, align 16, !tbaa !5
  %index.next78.1 = add nuw nsw i64 %index77, 16
  %27 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 4, i64 %index.next78.1
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %27, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %28, align 16, !tbaa !5
  %index.next78.2 = add nuw nsw i64 %index77, 24
  %29 = icmp eq i64 %index.next78.2, 100008
  br i1 %29, label %.preheader35.4, label %vector.body76, !llvm.loop !15

.preheader35.4:                                   ; preds = %vector.body76
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 2000192), align 16, !tbaa !5
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 2000196), align 4, !tbaa !5
  %30 = trunc i64 %1 to i32
  store i32 0, ptr @dp, align 16, !tbaa !5
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.preheader.preheader, label %._crit_edge

scalar.ph:                                        ; preds = %vector.body
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 400032), align 16, !tbaa !5
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 400036), align 4, !tbaa !5
  br label %vector.body55

vector.body55:                                    ; preds = %vector.body55, %scalar.ph
  %index56 = phi i64 [ 0, %scalar.ph ], [ %index.next57.2, %vector.body55 ]
  %32 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 1, i64 %index56
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %32, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %33, align 8, !tbaa !5
  %index.next57 = add nuw nsw i64 %index56, 8
  %34 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 1, i64 %index.next57
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %34, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %35, align 8, !tbaa !5
  %index.next57.1 = add nuw nsw i64 %index56, 16
  %36 = getelementptr inbounds [5 x [100010 x i32]], ptr @dp, i64 0, i64 1, i64 %index.next57.1
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %36, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %37, align 8, !tbaa !5
  %index.next57.2 = add nuw nsw i64 %index56, 24
  %38 = icmp eq i64 %index.next57.2, 100008
  br i1 %38, label %.preheader35.1.preheader, label %vector.body55, !llvm.loop !16

.preheader35.1.preheader:                         ; preds = %vector.body55
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 800072), align 8, !tbaa !5
  store i32 1000000007, ptr getelementptr inbounds (i8, ptr @dp, i64 800076), align 4, !tbaa !5
  br label %vector.body62

.preheader:                                       ; preds = %.preheader.preheader, %45
  %indvars.iv46 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next47, %45 ]
  %indvars48 = trunc i64 %indvars.iv46 to i32
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %39 = add nuw nsw i32 %indvars48, 1
  br label %46

._crit_edge:                                      ; preds = %45, %.preheader35.4
  %sext = shl i64 %1, 32
  %40 = ashr exact i64 %sext, 32
  %41 = getelementptr inbounds [100010 x i32], ptr @dp, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %42)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

45:                                               ; preds = %._crit_edge50
  %exitcond49.not = icmp eq i64 %indvars.iv.next47, %wide.trip.count
  br i1 %exitcond49.not, label %._crit_edge, label %.preheader, !llvm.loop !17

46:                                               ; preds = %.preheader, %._crit_edge50
  %.038 = phi i32 [ 0, %.preheader ], [ %54, %._crit_edge50 ]
  %47 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %indvars.iv46)
  %48 = load i8, ptr %47, align 1, !tbaa !18
  %.lhs.trunc = trunc nuw i32 %.038 to i8
  %49 = urem i8 %.lhs.trunc, 5
  %50 = zext nneg i8 %49 to i64
  %51 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1YB5cxx11, i64 noundef %50)
  %52 = load i8, ptr %51, align 1, !tbaa !18
  %53 = icmp eq i8 %48, %52
  %54 = add nuw nsw i32 %.038, 1
  br i1 %53, label %55, label %._crit_edge50

55:                                               ; preds = %46
  tail call void @_Z2f5iiiii(i32 noundef %54, i32 noundef %39, i32 noundef %.038, i32 noundef %indvars48, i32 noundef 0)
  br label %._crit_edge50

._crit_edge50:                                    ; preds = %46, %55
  tail call void @_Z2f5iiiii(i32 noundef %54, i32 noundef %39, i32 noundef %.038, i32 noundef %indvars48, i32 noundef 1)
  tail call void @_Z2f5iiiii(i32 noundef %54, i32 noundef %indvars48, i32 noundef %.038, i32 noundef %indvars48, i32 noundef 1)
  tail call void @_Z2f5iiiii(i32 noundef %.038, i32 noundef %39, i32 noundef %.038, i32 noundef %indvars48, i32 noundef 1)
  %exitcond45.not = icmp eq i32 %54, 11
  br i1 %exitcond45.not, label %45, label %46, !llvm.loop !19
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #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 #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)) #4

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 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 #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 = { 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 = { 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 #5 = { 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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11, !12}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !11, !12}
!17 = distinct !{!17, !10}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !10}


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