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

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

@s_d = external dso_local global [5 x i32], align 16
@s_u = external dso_local global [5 x i32], align 16
@prev_score = external dso_local global [5 x i32], align 16
@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
@_ZSt4cerr = 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 [5 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = 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 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: 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
define dso_local void @_Z6shokani(i32 noundef %0) #2 personality ptr @__gxx_personality_v0 {
  %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 %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = sub nsw i32 5, %11
  %13 = mul nsw i32 %12, 2
  %14 = sub nsw i32 %13, 1
  store i32 %14, ptr %4, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %1
  br label %16

16:                                               ; preds = %15
  call void @_Z11init_playerv()
  call void @_Z13koushin_scorev()
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [5 x i32], ptr @s_d, i64 0, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds %"class.std::tuple", ptr @M, i64 %21
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [5 x i32], ptr @s_u, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds %"class.std::tuple", ptr @M, i64 %27
  call void @_ZSt4sortIPSt5tupleIJiiSt6vectorIiSaIiEEEEEvT_S6_(ptr noundef %22, ptr noundef %28)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [5 x i32], ptr @s_d, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %"class.std::tuple", ptr @M, i64 %33
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [5 x i32], ptr @s_u, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %"class.std::tuple", ptr @M, i64 %39
  call void @_ZSt7reverseIPSt5tupleIJiiSt6vectorIiSaIiEEEEEvT_S6_(ptr noundef %34, ptr noundef %40)
  br label %41

41:                                               ; preds = %147, %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [5 x i32], ptr @s_d, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  store i32 %45, ptr %5, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %144, %41
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [5 x i32], ptr @s_u, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = icmp slt i32 %47, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %46
  store i32 5, ptr %6, align 4
  br label %147

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

55:                                               ; preds = %75, %54
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 25
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 8, ptr %6, align 4
  br label %78

59:                                               ; preds = %55
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %61
  %63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %62) #5
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %65) #5
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [25 x i32], ptr @have, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = icmp sgt i32 %67, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %59
  store i32 11, ptr %6, align 4
  br label %78

74:                                               ; preds = %59
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %7, align 4, !tbaa !5
  br label %55, !llvm.loop !9

78:                                               ; preds = %73, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %79 = load i32, ptr %6, align 4
  switch i32 %79, label %147 [
    i32 8, label %80
    i32 11, label %143
  ]

80:                                               ; preds = %78
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %83, label %98

83:                                               ; preds = %80
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = sub nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [5 x i32], ptr @prev_score, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %90
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %91) #5
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = icmp sgt i32 %88, %93
  br i1 %94, label %95, label %98

95:                                               ; preds = %83
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.22)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 1, ptr %6, align 4
  br label %147

98:                                               ; preds = %83, %80
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.23)
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %101
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %102) #5
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %99, i32 noundef %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @.str.24)
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %108
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %109) #5
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %106, i32 noundef %111)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %115
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %116) #5
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [5 x i32], ptr @prev_score, i64 0, i64 %120
  store i32 %118, ptr %121, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %123
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %124) #5
  %126 = load i32, ptr %125, align 4, !tbaa !5
  call void @_Z8shokan_aB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, i32 noundef %126)
  %127 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.25)
          to label %128 unwind label %136

128:                                              ; preds = %98
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  br i1 %127, label %129, label %141

129:                                              ; preds = %128
  %130 = load i32, ptr %3, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %3, align 4, !tbaa !5
  %132 = load i32, ptr %3, align 4, !tbaa !5
  %133 = load i32, ptr %4, align 4, !tbaa !5
  %134 = icmp eq i32 %132, %133
  br i1 %134, label %135, label %140

135:                                              ; preds = %129
  store i32 1, ptr %6, align 4
  br label %147

136:                                              ; preds = %98
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %151

140:                                              ; preds = %129
  br label %142

141:                                              ; preds = %128
  store i32 4, ptr %6, align 4
  br label %147

142:                                              ; preds = %140
  br label %143

143:                                              ; preds = %142, %78
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %5, align 4, !tbaa !5
  br label %46, !llvm.loop !11

147:                                              ; preds = %141, %135, %95, %78, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %148 = load i32, ptr %6, align 4
  switch i32 %148, label %150 [
    i32 5, label %149
    i32 4, label %41
  ]

149:                                              ; preds = %147
  store i32 1, ptr %6, align 4
  br label %150

150:                                              ; preds = %149, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void

151:                                              ; preds = %136
  %152 = load ptr, ptr %9, align 8
  %153 = load i32, ptr %10, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155
}

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


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

@s_d = external dso_local local_unnamed_addr global [5 x i32], align 16
@s_u = external dso_local local_unnamed_addr global [5 x i32], align 16
@prev_score = external dso_local local_unnamed_addr global [5 x i32], align 16
@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
@_ZSt4cerr = 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 [5 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = 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 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: 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
define dso_local void @_Z6shokani(i32 noundef %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = shl i32 %0, 1
  %4 = sub i32 9, %3
  tail call void @_Z11init_playerv()
  tail call void @_Z13koushin_scorev()
  %5 = sext i32 %0 to i64
  %6 = getelementptr inbounds [5 x i32], ptr @s_d, i64 0, i64 %5
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds %"class.std::tuple", ptr @M, i64 %8
  %10 = getelementptr inbounds [5 x i32], ptr @s_u, i64 0, i64 %5
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds %"class.std::tuple", ptr @M, i64 %12
  tail call void @_ZSt4sortIPSt5tupleIJiiSt6vectorIiSaIiEEEEEvT_S6_(ptr noundef nonnull %9, ptr noundef nonnull %13)
  %14 = load i32, ptr %6, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds %"class.std::tuple", ptr @M, i64 %15
  %17 = load i32, ptr %10, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds %"class.std::tuple", ptr @M, i64 %18
  tail call void @_ZSt7reverseIPSt5tupleIJiiSt6vectorIiSaIiEEEEEvT_S6_(ptr noundef nonnull %16, ptr noundef nonnull %19)
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = load i32, ptr %10, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %.preheader.lr.ph.lr.ph, label %.loopexit40

.preheader.lr.ph.lr.ph:                           ; preds = %1
  %23 = icmp sgt i32 %0, 0
  %24 = add nsw i32 %0, -1
  %25 = zext nneg i32 %24 to i64
  %26 = getelementptr inbounds [5 x i32], ptr @prev_score, i64 0, i64 %25
  %27 = getelementptr inbounds [5 x i32], ptr @prev_score, i64 0, i64 %5
  br label %.preheader.lr.ph

.loopexit41:                                      ; preds = %207
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %.preheader.lr.ph, label %.loopexit40

.preheader.lr.ph:                                 ; preds = %.preheader.lr.ph.lr.ph, %.loopexit41
  %31 = phi i32 [ %20, %.preheader.lr.ph.lr.ph ], [ %28, %.loopexit41 ]
  %.050 = phi i32 [ 0, %.preheader.lr.ph.lr.ph ], [ %.147, %.loopexit41 ]
  %32 = sext i32 %31 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.loopexit
  %indvars.iv = phi i64 [ %32, %.preheader.lr.ph ], [ %indvars.iv.next, %.loopexit ]
  %.147 = phi i32 [ %.050, %.preheader.lr.ph ], [ %.2, %.loopexit ]
  %33 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @M, i64 0, i64 %indvars.iv
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef 0) #5
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = load i32, ptr @have, align 16, !tbaa !5
  %38 = icmp sgt i32 %36, %37
  br i1 %38, label %.loopexit, label %39

39:                                               ; preds = %.preheader
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef 1) #5
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 4), align 4, !tbaa !5
  %44 = icmp sgt i32 %42, %43
  br i1 %44, label %.loopexit, label %45

45:                                               ; preds = %39
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef 2) #5
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 8), align 8, !tbaa !5
  %50 = icmp sgt i32 %48, %49
  br i1 %50, label %.loopexit, label %51

51:                                               ; preds = %45
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef 3) #5
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 12), align 4, !tbaa !5
  %56 = icmp sgt i32 %54, %55
  br i1 %56, label %.loopexit, label %57

57:                                               ; preds = %51
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef 4) #5
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 16), align 16, !tbaa !5
  %62 = icmp sgt i32 %60, %61
  br i1 %62, label %.loopexit, label %63

63:                                               ; preds = %57
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef 5) #5
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 20), align 4, !tbaa !5
  %68 = icmp sgt i32 %66, %67
  br i1 %68, label %.loopexit, label %69

69:                                               ; preds = %63
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef 6) #5
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 24), align 8, !tbaa !5
  %74 = icmp sgt i32 %72, %73
  br i1 %74, label %.loopexit, label %75

75:                                               ; preds = %69
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef 7) #5
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 28), align 4, !tbaa !5
  %80 = icmp sgt i32 %78, %79
  br i1 %80, label %.loopexit, label %81

81:                                               ; preds = %75
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef 8) #5
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 32), align 16, !tbaa !5
  %86 = icmp sgt i32 %84, %85
  br i1 %86, label %.loopexit, label %87

87:                                               ; preds = %81
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef 9) #5
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 36), align 4, !tbaa !5
  %92 = icmp sgt i32 %90, %91
  br i1 %92, label %.loopexit, label %93

93:                                               ; preds = %87
  %94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef 10) #5
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 40), align 8, !tbaa !5
  %98 = icmp sgt i32 %96, %97
  br i1 %98, label %.loopexit, label %99

99:                                               ; preds = %93
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef 11) #5
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 44), align 4, !tbaa !5
  %104 = icmp sgt i32 %102, %103
  br i1 %104, label %.loopexit, label %105

105:                                              ; preds = %99
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef 12) #5
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 48), align 16, !tbaa !5
  %110 = icmp sgt i32 %108, %109
  br i1 %110, label %.loopexit, label %111

111:                                              ; preds = %105
  %112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef 13) #5
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 52), align 4, !tbaa !5
  %116 = icmp sgt i32 %114, %115
  br i1 %116, label %.loopexit, label %117

117:                                              ; preds = %111
  %118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef 14) #5
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 56), align 8, !tbaa !5
  %122 = icmp sgt i32 %120, %121
  br i1 %122, label %.loopexit, label %123

123:                                              ; preds = %117
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef 15) #5
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 60), align 4, !tbaa !5
  %128 = icmp sgt i32 %126, %127
  br i1 %128, label %.loopexit, label %129

129:                                              ; preds = %123
  %130 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef 16) #5
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 64), align 16, !tbaa !5
  %134 = icmp sgt i32 %132, %133
  br i1 %134, label %.loopexit, label %135

135:                                              ; preds = %129
  %136 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef 17) #5
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 68), align 4, !tbaa !5
  %140 = icmp sgt i32 %138, %139
  br i1 %140, label %.loopexit, label %141

141:                                              ; preds = %135
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef 18) #5
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 72), align 8, !tbaa !5
  %146 = icmp sgt i32 %144, %145
  br i1 %146, label %.loopexit, label %147

147:                                              ; preds = %141
  %148 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef 19) #5
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 76), align 4, !tbaa !5
  %152 = icmp sgt i32 %150, %151
  br i1 %152, label %.loopexit, label %153

153:                                              ; preds = %147
  %154 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef 20) #5
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 80), align 16, !tbaa !5
  %158 = icmp sgt i32 %156, %157
  br i1 %158, label %.loopexit, label %159

159:                                              ; preds = %153
  %160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef 21) #5
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 84), align 4, !tbaa !5
  %164 = icmp sgt i32 %162, %163
  br i1 %164, label %.loopexit, label %165

165:                                              ; preds = %159
  %166 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef 22) #5
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 88), align 8, !tbaa !5
  %170 = icmp sgt i32 %168, %169
  br i1 %170, label %.loopexit, label %171

171:                                              ; preds = %165
  %172 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef 23) #5
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 92), align 4, !tbaa !5
  %176 = icmp sgt i32 %174, %175
  br i1 %176, label %.loopexit, label %177

177:                                              ; preds = %171
  %178 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZSt3getILm2EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef 24) #5
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = load i32, ptr getelementptr inbounds (i8, ptr @have, i64 96), align 16, !tbaa !5
  %182 = icmp sgt i32 %180, %181
  br i1 %182, label %.loopexit, label %183

183:                                              ; preds = %177
  br i1 %23, label %184, label %192

184:                                              ; preds = %183
  %185 = load i32, ptr %26, align 4, !tbaa !5
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = icmp sgt i32 %185, %187
  br i1 %188, label %189, label %192

189:                                              ; preds = %184
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.22)
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.loopexit40

192:                                              ; preds = %184, %183
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.23)
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %193, i32 noundef %195)
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull @.str.24)
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %197, i32 noundef %199)
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %203 = load i32, ptr %202, align 4, !tbaa !5
  store i32 %203, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiSt6vectorIiSaIiEEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  %205 = load i32, ptr %204, align 4, !tbaa !5
  call void @_Z8shokan_aB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, i32 noundef %205)
  %206 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.25)
          to label %207 unwind label %211

207:                                              ; preds = %192
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br i1 %206, label %208, label %.loopexit41

208:                                              ; preds = %207
  %209 = add nsw i32 %.147, 1
  %210 = icmp eq i32 %209, %4
  br i1 %210, label %.loopexit40, label %.loopexit

211:                                              ; preds = %192
  %212 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  resume { ptr, i32 } %212

.loopexit:                                        ; preds = %.preheader, %39, %45, %51, %57, %63, %69, %75, %81, %87, %93, %99, %105, %111, %117, %123, %129, %135, %141, %147, %153, %159, %165, %171, %177, %208
  %.2 = phi i32 [ %209, %208 ], [ %.147, %177 ], [ %.147, %171 ], [ %.147, %165 ], [ %.147, %159 ], [ %.147, %153 ], [ %.147, %147 ], [ %.147, %141 ], [ %.147, %135 ], [ %.147, %129 ], [ %.147, %123 ], [ %.147, %117 ], [ %.147, %111 ], [ %.147, %105 ], [ %.147, %99 ], [ %.147, %93 ], [ %.147, %87 ], [ %.147, %81 ], [ %.147, %75 ], [ %.147, %69 ], [ %.147, %63 ], [ %.147, %57 ], [ %.147, %51 ], [ %.147, %45 ], [ %.147, %39 ], [ %.147, %.preheader ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %213 = load i32, ptr %10, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = icmp slt i64 %indvars.iv.next, %214
  br i1 %215, label %.preheader, label %.loopexit40, !llvm.loop !9

.loopexit40:                                      ; preds = %.loopexit41, %208, %.loopexit, %1, %189
  ret void
}

; 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: 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 = { 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"}


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