; LLVM IR from kazunetakahashi/atcoder :: 201411_201509/1130_CR/main_second.ll (Z6shokanv)

; 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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.base", %"struct.std::_Head_base.7" }
%"struct.std::_Tuple_impl.base" = type <{ %"struct.std::_Tuple_impl.2", %"struct.std::_Head_base.6" }>
%"struct.std::_Tuple_impl.2" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Head_base.6" = type { i32 }
%"struct.std::_Head_base.7" = type { i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"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] }

@M = external dso_local global [1010 x %"class.std::tuple"], align 16
@have = external dso_local global [25 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13koushin_scorev() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11init_playerv() #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8shokan_aB5cxx11i(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11torihiki_upi(i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6shokanv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @_Z11init_playerv()
  call void @_Z13koushin_scorev()
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  br label %8

8:                                                ; preds = %99, %0
  br label %9

9:                                                ; preds = %8
  invoke void @_ZSt4sortIPSt5tupleIJiiSt6vectorIiSaIiEEEEEvT_S6_(ptr noundef getelementptr inbounds (%"class.std::tuple", ptr @M, i64 250), ptr noundef getelementptr inbounds (%"class.std::tuple", ptr @M, i64 500))
          to label %10 unwind label %16

10:                                               ; preds = %9
  invoke void @_ZSt7reverseIPSt5tupleIJiiSt6vectorIiSaIiEEEEEvT_S6_(ptr noundef getelementptr inbounds (%"class.std::tuple", ptr @M, i64 250), ptr noundef getelementptr inbounds (%"class.std::tuple", ptr @M, i64 500))
          to label %11 unwind label %16

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

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

15:                                               ; preds = %12
  store i32 4, ptr %5, align 4
  br label %97

16:                                               ; preds = %10, %9
  %17 = landingpad { ptr, i32 }
          cleanup
  %18 = extractvalue { ptr, i32 } %17, 0
  store ptr %18, ptr %2, align 8
  %19 = extractvalue { ptr, i32 } %17, 1
  store i32 %19, ptr %3, align 4
  br label %100

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

21:                                               ; preds = %41, %20
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 25
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 7, ptr %5, align 4
  br label %44

25:                                               ; preds = %21
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %27
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %31) #5
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [25 x i32], ptr @have, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = icmp sgt i32 %33, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %25
  store i32 10, ptr %5, align 4
  br label %44

40:                                               ; preds = %25
  br label %41

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

44:                                               ; preds = %39, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %45 = load i32, ptr %5, align 4
  switch i32 %45, label %97 [
    i32 7, label %46
    i32 10, label %93
  ]

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.22)
          to label %48 unwind label %84

48:                                               ; preds = %46
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %50
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %51) #5
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %47, i32 noundef %53)
          to label %55 unwind label %84

55:                                               ; preds = %48
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @.str.23)
          to label %57 unwind label %84

57:                                               ; preds = %55
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %59
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %60) #5
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %56, i32 noundef %62)
          to label %64 unwind label %84

64:                                               ; preds = %57
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %66 unwind label %84

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %68
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %69) #5
  %71 = load i32, ptr %70, align 4, !tbaa !5
  invoke void @_Z8shokan_aB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, i32 noundef %71)
          to label %72 unwind label %88

72:                                               ; preds = %66
  %73 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %75 unwind label %84

75:                                               ; preds = %72
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %77 unwind label %84

77:                                               ; preds = %75
  %78 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.24)
          to label %79 unwind label %84

79:                                               ; preds = %77
  br i1 %78, label %80, label %92

80:                                               ; preds = %79
  invoke void @_Z11torihiki_upi(i32 noundef 1)
          to label %81 unwind label %84

81:                                               ; preds = %80
  invoke void @_Z11init_playerv()
          to label %82 unwind label %84

82:                                               ; preds = %81
  invoke void @_Z13koushin_scorev()
          to label %83 unwind label %84

83:                                               ; preds = %82
  br label %92

84:                                               ; preds = %82, %81, %80, %77, %75, %72, %64, %57, %55, %48, %46
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %2, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %3, align 4
  br label %98

88:                                               ; preds = %66
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %2, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  br label %98

92:                                               ; preds = %83, %79
  store i32 4, ptr %5, align 4
  br label %97

93:                                               ; preds = %44
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %4, align 4, !tbaa !5
  br label %12, !llvm.loop !11

97:                                               ; preds = %92, %44, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %99

98:                                               ; preds = %88, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %100

99:                                               ; preds = %97
  br label %8, !llvm.loop !12

100:                                              ; preds = %98, %16
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #5
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr %2, align 8
  %103 = load i32, ptr %3, align 4
  %104 = insertvalue { ptr, i32 } poison, ptr %102, 0
  %105 = insertvalue { ptr, i32 } %104, i32 %103, 1
  resume { ptr, i32 } %105
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.base", %"struct.std::_Head_base.7" }
%"struct.std::_Tuple_impl.base" = type <{ %"struct.std::_Tuple_impl.2", %"struct.std::_Head_base.6" }>
%"struct.std::_Tuple_impl.2" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Head_base.6" = type { i32 }
%"struct.std::_Head_base.7" = type { i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"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] }

@M = external dso_local global [1010 x %"class.std::tuple"], align 16
@have = external dso_local local_unnamed_addr global [25 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13koushin_scorev() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11init_playerv() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) 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 #2 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8shokan_aB5cxx11i(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11torihiki_upi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_Z6shokanv() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @_Z11init_playerv()
  tail call void @_Z13koushin_scorev()
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  br label %3

3:                                                ; preds = %.loopexit, %0
  invoke void @_ZSt4sortIPSt5tupleIJiiSt6vectorIiSaIiEEEEEvT_S6_(ptr noundef nonnull getelementptr inbounds (i8, ptr @M, i64 8000), ptr noundef nonnull getelementptr inbounds (i8, ptr @M, i64 16000))
          to label %4 unwind label %11

4:                                                ; preds = %3
  invoke void @_ZSt7reverseIPSt5tupleIJiiSt6vectorIiSaIiEEEEEvT_S6_(ptr noundef nonnull getelementptr inbounds (i8, ptr @M, i64 8000), ptr noundef nonnull getelementptr inbounds (i8, ptr @M, i64 16000))
          to label %.preheader unwind label %11

.preheader:                                       ; preds = %4, %191
  %indvars.iv = phi i64 [ %indvars.iv.next, %191 ], [ 250, %4 ]
  %5 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %indvars.iv
  %6 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %7 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #6
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = load i32, ptr @have, align 16, !tbaa !5
  %10 = icmp sgt i32 %8, %9
  br i1 %10, label %191, label %13

11:                                               ; preds = %4, %3
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %192

13:                                               ; preds = %.preheader
  %14 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 1) #6
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 4), align 4, !tbaa !5
  %18 = icmp sgt i32 %16, %17
  br i1 %18, label %191, label %19

19:                                               ; preds = %13
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 2) #6
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 8), align 8, !tbaa !5
  %24 = icmp sgt i32 %22, %23
  br i1 %24, label %191, label %25

25:                                               ; preds = %19
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 3) #6
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 12), align 4, !tbaa !5
  %30 = icmp sgt i32 %28, %29
  br i1 %30, label %191, label %31

31:                                               ; preds = %25
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef 4) #6
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 16), align 16, !tbaa !5
  %36 = icmp sgt i32 %34, %35
  br i1 %36, label %191, label %37

37:                                               ; preds = %31
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 5) #6
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 20), align 4, !tbaa !5
  %42 = icmp sgt i32 %40, %41
  br i1 %42, label %191, label %43

43:                                               ; preds = %37
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 6) #6
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 24), align 8, !tbaa !5
  %48 = icmp sgt i32 %46, %47
  br i1 %48, label %191, label %49

49:                                               ; preds = %43
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef 7) #6
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 28), align 4, !tbaa !5
  %54 = icmp sgt i32 %52, %53
  br i1 %54, label %191, label %55

55:                                               ; preds = %49
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef 8) #6
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 32), align 16, !tbaa !5
  %60 = icmp sgt i32 %58, %59
  br i1 %60, label %191, label %61

61:                                               ; preds = %55
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef 9) #6
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 36), align 4, !tbaa !5
  %66 = icmp sgt i32 %64, %65
  br i1 %66, label %191, label %67

67:                                               ; preds = %61
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef 10) #6
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 40), align 8, !tbaa !5
  %72 = icmp sgt i32 %70, %71
  br i1 %72, label %191, label %73

73:                                               ; preds = %67
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef 11) #6
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 44), align 4, !tbaa !5
  %78 = icmp sgt i32 %76, %77
  br i1 %78, label %191, label %79

79:                                               ; preds = %73
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef 12) #6
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 48), align 16, !tbaa !5
  %84 = icmp sgt i32 %82, %83
  br i1 %84, label %191, label %85

85:                                               ; preds = %79
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef 13) #6
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 52), align 4, !tbaa !5
  %90 = icmp sgt i32 %88, %89
  br i1 %90, label %191, label %91

91:                                               ; preds = %85
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef 14) #6
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 56), align 8, !tbaa !5
  %96 = icmp sgt i32 %94, %95
  br i1 %96, label %191, label %97

97:                                               ; preds = %91
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef 15) #6
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 60), align 4, !tbaa !5
  %102 = icmp sgt i32 %100, %101
  br i1 %102, label %191, label %103

103:                                              ; preds = %97
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef 16) #6
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 64), align 16, !tbaa !5
  %108 = icmp sgt i32 %106, %107
  br i1 %108, label %191, label %109

109:                                              ; preds = %103
  %110 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef 17) #6
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 68), align 4, !tbaa !5
  %114 = icmp sgt i32 %112, %113
  br i1 %114, label %191, label %115

115:                                              ; preds = %109
  %116 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef 18) #6
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 72), align 8, !tbaa !5
  %120 = icmp sgt i32 %118, %119
  br i1 %120, label %191, label %121

121:                                              ; preds = %115
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef 19) #6
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 76), align 4, !tbaa !5
  %126 = icmp sgt i32 %124, %125
  br i1 %126, label %191, label %127

127:                                              ; preds = %121
  %128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef 20) #6
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 80), align 16, !tbaa !5
  %132 = icmp sgt i32 %130, %131
  br i1 %132, label %191, label %133

133:                                              ; preds = %127
  %134 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef 21) #6
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 84), align 4, !tbaa !5
  %138 = icmp sgt i32 %136, %137
  br i1 %138, label %191, label %139

139:                                              ; preds = %133
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef 22) #6
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 88), align 8, !tbaa !5
  %144 = icmp sgt i32 %142, %143
  br i1 %144, label %191, label %145

145:                                              ; preds = %139
  %146 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef 23) #6
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 92), align 4, !tbaa !5
  %150 = icmp sgt i32 %148, %149
  br i1 %150, label %191, label %151

151:                                              ; preds = %145
  %152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef 24) #6
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 96), align 16, !tbaa !5
  %156 = icmp sgt i32 %154, %155
  br i1 %156, label %191, label %157

157:                                              ; preds = %151
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.22)
          to label %159 unwind label %187

159:                                              ; preds = %157
  %160 = and i64 %indvars.iv, 4294967295
  %161 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %160
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %161) #6
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %158, i32 noundef %163)
          to label %165 unwind label %187

165:                                              ; preds = %159
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef nonnull @.str.23)
          to label %167 unwind label %187

167:                                              ; preds = %165
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %161) #6
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %166, i32 noundef %169)
          to label %171 unwind label %187

171:                                              ; preds = %167
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %173 unwind label %187

173:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %161) #6
  %175 = load i32, ptr %174, align 4, !tbaa !5
  invoke void @_Z8shokan_aB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, i32 noundef %175)
          to label %176 unwind label %189

176:                                              ; preds = %173
  %177 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %179 unwind label %187

179:                                              ; preds = %176
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %181 unwind label %187

181:                                              ; preds = %179
  %182 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.24)
          to label %183 unwind label %187

183:                                              ; preds = %181
  br i1 %182, label %184, label %.loopexit

184:                                              ; preds = %183
  invoke void @_Z11torihiki_upi(i32 noundef 1)
          to label %185 unwind label %187

185:                                              ; preds = %184
  invoke void @_Z11init_playerv()
          to label %186 unwind label %187

186:                                              ; preds = %185
  invoke void @_Z13koushin_scorev()
          to label %.loopexit unwind label %187

187:                                              ; preds = %186, %185, %184, %181, %179, %176, %171, %167, %165, %159, %157
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %192

189:                                              ; preds = %173
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  br label %192

191:                                              ; preds = %151, %145, %139, %133, %127, %121, %115, %109, %103, %97, %91, %85, %79, %73, %67, %61, %55, %49, %43, %37, %31, %25, %19, %13, %.preheader
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 500
  br i1 %exitcond.not, label %.loopexit, label %.preheader, !llvm.loop !9

.loopexit:                                        ; preds = %191, %183, %186
  br label %3, !llvm.loop !11

192:                                              ; preds = %187, %189, %11
  %.pn.pn = phi { ptr, i32 } [ %12, %11 ], [ %188, %187 ], [ %190, %189 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

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


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