; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/Neps Academy/Bora Bora (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Player, std::allocator<Player>>::_Vector_impl" }
%"struct.std::_Vector_base<Player, std::allocator<Player>>::_Vector_impl" = type { %"struct.std::_Vector_base<Player, std::allocator<Player>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Player, std::allocator<Player>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Card, std::allocator<Card>>::_Vector_impl" }
%"struct.std::_Vector_base<Card, std::allocator<Card>>::_Vector_impl" = type { %"struct.std::_Vector_base<Card, std::allocator<Card>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Card, std::allocator<Card>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Player = type { i32, i32, %"class.std::vector.0" }
%struct.Card = type { i32, i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.Player, align 8
  %10 = alloca %struct.Card, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.Card, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca %struct.Card, align 4
  %24 = alloca %struct.Card, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %27 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %28 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %30
  %32 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #9
  call void @_ZNSt6vectorI6PlayerSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #9
  call void @_ZNSt6vectorI4CardSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  br label %33

33:                                               ; preds = %539, %0
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %35 unwind label %75

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %37 unwind label %75

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %39 unwind label %75

39:                                               ; preds = %37
  %40 = load ptr, ptr %38, align 8, !tbaa !5
  %41 = getelementptr i8, ptr %40, i64 -24
  %42 = load i64, ptr %41, align 8
  %43 = getelementptr inbounds i8, ptr %38, i64 %42
  %44 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %43)
          to label %45 unwind label %75

45:                                               ; preds = %39
  br i1 %44, label %46, label %55

46:                                               ; preds = %45
  %47 = load i32, ptr %4, align 4, !tbaa !8
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %55

49:                                               ; preds = %46
  %50 = load i32, ptr %3, align 4, !tbaa !8
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %49
  %53 = load i32, ptr %2, align 4, !tbaa !8
  %54 = icmp ne i32 %53, 0
  br label %55

55:                                               ; preds = %52, %49, %46, %45
  %56 = phi i1 [ false, %49 ], [ false, %46 ], [ false, %45 ], [ %54, %52 ]
  br i1 %56, label %57, label %541

57:                                               ; preds = %55
  %58 = load i32, ptr %4, align 4, !tbaa !8
  %59 = sext i32 %58 to i64
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #9
  %60 = getelementptr inbounds %struct.Player, ptr %9, i32 0, i32 0
  store i32 0, ptr %60, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.Player, ptr %9, i32 0, i32 1
  %62 = load i32, ptr %3, align 4, !tbaa !8
  store i32 %62, ptr %61, align 4, !tbaa !18
  %63 = getelementptr inbounds %struct.Player, ptr %9, i32 0, i32 2
  call void @llvm.memset.p0.i64(ptr align 8 %63, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorI4CardSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #9
  invoke void @_ZNSt6vectorI6PlayerSaIS0_EE6assignEmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %59, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %64 unwind label %79

64:                                               ; preds = %57
  call void @_ZN6PlayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #9
  %65 = load i32, ptr %2, align 4, !tbaa !8
  %66 = sext i32 %65 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %67 = getelementptr inbounds %struct.Card, ptr %10, i32 0, i32 0
  store i32 0, ptr %67, align 4, !tbaa !19
  %68 = getelementptr inbounds %struct.Card, ptr %10, i32 0, i32 1
  store i8 48, ptr %68, align 4, !tbaa !21
  invoke void @_ZNSt6vectorI4CardSaIS0_EE6assignEmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %66, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %69 unwind label %83

69:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %70

70:                                               ; preds = %100, %69
  %71 = load i32, ptr %11, align 4, !tbaa !8
  %72 = load i32, ptr %2, align 4, !tbaa !8
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %87, label %74

74:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %107

75:                                               ; preds = %39, %37, %35, %33
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  br label %543

79:                                               ; preds = %57
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  call void @_ZN6PlayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #9
  br label %543

83:                                               ; preds = %64
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %543

87:                                               ; preds = %70
  %88 = load i32, ptr %11, align 4, !tbaa !8
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %89) #9
  %91 = getelementptr inbounds %struct.Card, ptr %90, i32 0, i32 0
  %92 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %91)
          to label %93 unwind label %103

93:                                               ; preds = %87
  %94 = load i32, ptr %11, align 4, !tbaa !8
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %95) #9
  %97 = getelementptr inbounds %struct.Card, ptr %96, i32 0, i32 1
  %98 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 1 dereferenceable(1) %97)
          to label %99 unwind label %103

99:                                               ; preds = %93
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %11, align 4, !tbaa !8
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %11, align 4, !tbaa !8
  br label %70, !llvm.loop !22

103:                                              ; preds = %93, %87
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %7, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %543

107:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 0, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 1, ptr %13, align 4, !tbaa !8
  br label %108

108:                                              ; preds = %142, %107
  %109 = load i32, ptr %13, align 4, !tbaa !8
  %110 = load i32, ptr %4, align 4, !tbaa !8
  %111 = icmp sle i32 %109, %110
  br i1 %111, label %112, label %143

112:                                              ; preds = %108
  %113 = load i32, ptr %13, align 4, !tbaa !8
  %114 = load i32, ptr %13, align 4, !tbaa !8
  %115 = sub nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %116) #9
  %118 = getelementptr inbounds %struct.Player, ptr %117, i32 0, i32 0
  store i32 %113, ptr %118, align 8, !tbaa !11
  %119 = load i32, ptr %12, align 4, !tbaa !8
  %120 = load i32, ptr %13, align 4, !tbaa !8
  %121 = load i32, ptr %3, align 4, !tbaa !8
  %122 = mul nsw i32 %120, %121
  %123 = icmp slt i32 %119, %122
  br i1 %123, label %124, label %139

124:                                              ; preds = %112
  %125 = load i32, ptr %13, align 4, !tbaa !8
  %126 = sub nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %127) #9
  %129 = getelementptr inbounds %struct.Player, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %12, align 4, !tbaa !8
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %12, align 4, !tbaa !8
  %132 = sext i32 %130 to i64
  %133 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %132) #9
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %129, ptr noundef nonnull align 4 dereferenceable(8) %133)
          to label %134 unwind label %135

134:                                              ; preds = %124
  br label %142

135:                                              ; preds = %124
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %7, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %8, align 4
  br label %540

139:                                              ; preds = %112
  %140 = load i32, ptr %13, align 4, !tbaa !8
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %13, align 4, !tbaa !8
  br label %142

142:                                              ; preds = %139, %134
  br label %108, !llvm.loop !24

143:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %144 = load i32, ptr %12, align 4, !tbaa !8
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %12, align 4, !tbaa !8
  %146 = sext i32 %144 to i64
  %147 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %146) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %147, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %148 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %149 = load i32, ptr %148, align 4, !tbaa !19
  %150 = icmp eq i32 %149, 12
  %151 = zext i1 %150 to i64
  %152 = select i1 %150, i32 -1, i32 1
  store i32 %152, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %153

153:                                              ; preds = %537, %143
  br label %154

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #9
  store i8 0, ptr %18, align 1, !tbaa !27
  %155 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %156 = load i32, ptr %155, align 4, !tbaa !19
  %157 = icmp eq i32 %156, 7
  br i1 %157, label %158, label %207

158:                                              ; preds = %154
  %159 = load i32, ptr %16, align 4, !tbaa !8
  %160 = load i32, ptr %17, align 4, !tbaa !8
  %161 = icmp eq i32 %159, %160
  br i1 %161, label %162, label %207

162:                                              ; preds = %158
  %163 = load i32, ptr %12, align 4, !tbaa !8
  %164 = load i32, ptr %2, align 4, !tbaa !8
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %166, label %186

166:                                              ; preds = %162
  %167 = load i32, ptr %16, align 4, !tbaa !8
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %168) #9
  %170 = getelementptr inbounds %struct.Player, ptr %169, i32 0, i32 2
  %171 = load i32, ptr %12, align 4, !tbaa !8
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %12, align 4, !tbaa !8
  %173 = sext i32 %171 to i64
  %174 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %173) #9
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef nonnull align 4 dereferenceable(8) %174)
          to label %175 unwind label %182

175:                                              ; preds = %166
  %176 = load i32, ptr %16, align 4, !tbaa !8
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %177) #9
  %179 = getelementptr inbounds %struct.Player, ptr %178, i32 0, i32 1
  %180 = load i32, ptr %179, align 4, !tbaa !18
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %179, align 4, !tbaa !18
  br label %186

182:                                              ; preds = %486, %479, %219, %190, %166
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %7, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %8, align 4
  br label %538

186:                                              ; preds = %175, %162
  %187 = load i32, ptr %12, align 4, !tbaa !8
  %188 = load i32, ptr %2, align 4, !tbaa !8
  %189 = icmp slt i32 %187, %188
  br i1 %189, label %190, label %206

190:                                              ; preds = %186
  %191 = load i32, ptr %16, align 4, !tbaa !8
  %192 = sext i32 %191 to i64
  %193 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %192) #9
  %194 = getelementptr inbounds %struct.Player, ptr %193, i32 0, i32 2
  %195 = load i32, ptr %12, align 4, !tbaa !8
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %12, align 4, !tbaa !8
  %197 = sext i32 %195 to i64
  %198 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %197) #9
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %194, ptr noundef nonnull align 4 dereferenceable(8) %198)
          to label %199 unwind label %182

199:                                              ; preds = %190
  %200 = load i32, ptr %16, align 4, !tbaa !8
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %201) #9
  %203 = getelementptr inbounds %struct.Player, ptr %202, i32 0, i32 1
  %204 = load i32, ptr %203, align 4, !tbaa !18
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %203, align 4, !tbaa !18
  br label %206

206:                                              ; preds = %199, %186
  br label %469

207:                                              ; preds = %158, %154
  %208 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %209 = load i32, ptr %208, align 4, !tbaa !19
  %210 = icmp eq i32 %209, 1
  br i1 %210, label %211, label %236

211:                                              ; preds = %207
  %212 = load i32, ptr %16, align 4, !tbaa !8
  %213 = load i32, ptr %17, align 4, !tbaa !8
  %214 = icmp eq i32 %212, %213
  br i1 %214, label %215, label %236

215:                                              ; preds = %211
  %216 = load i32, ptr %12, align 4, !tbaa !8
  %217 = load i32, ptr %2, align 4, !tbaa !8
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %219, label %235

219:                                              ; preds = %215
  %220 = load i32, ptr %16, align 4, !tbaa !8
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %221) #9
  %223 = getelementptr inbounds %struct.Player, ptr %222, i32 0, i32 2
  %224 = load i32, ptr %12, align 4, !tbaa !8
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %12, align 4, !tbaa !8
  %226 = sext i32 %224 to i64
  %227 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %226) #9
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %223, ptr noundef nonnull align 4 dereferenceable(8) %227)
          to label %228 unwind label %182

228:                                              ; preds = %219
  %229 = load i32, ptr %16, align 4, !tbaa !8
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %230) #9
  %232 = getelementptr inbounds %struct.Player, ptr %231, i32 0, i32 1
  %233 = load i32, ptr %232, align 4, !tbaa !18
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %232, align 4, !tbaa !18
  br label %235

235:                                              ; preds = %228, %215
  br label %468

236:                                              ; preds = %211, %207
  %237 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %238 = load i32, ptr %237, align 4, !tbaa !19
  %239 = icmp ne i32 %238, 11
  br i1 %239, label %240, label %244

240:                                              ; preds = %236
  %241 = load i32, ptr %16, align 4, !tbaa !8
  %242 = load i32, ptr %17, align 4, !tbaa !8
  %243 = icmp eq i32 %241, %242
  br i1 %243, label %248, label %244

244:                                              ; preds = %240, %236
  %245 = load i32, ptr %16, align 4, !tbaa !8
  %246 = load i32, ptr %17, align 4, !tbaa !8
  %247 = icmp ne i32 %245, %246
  br i1 %247, label %248, label %467

248:                                              ; preds = %244, %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 -1, ptr %19, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #9
  store i8 65, ptr %21, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !8
  br label %249

249:                                              ; preds = %370, %248
  %250 = load i32, ptr %22, align 4, !tbaa !8
  %251 = load i32, ptr %16, align 4, !tbaa !8
  %252 = sext i32 %251 to i64
  %253 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %252) #9
  %254 = getelementptr inbounds %struct.Player, ptr %253, i32 0, i32 2
  %255 = call noundef i64 @_ZNKSt6vectorI4CardSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %254) #9
  %256 = trunc i64 %255 to i32
  %257 = icmp slt i32 %250, %256
  br i1 %257, label %259, label %258

258:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %373

259:                                              ; preds = %249
  %260 = load i32, ptr %16, align 4, !tbaa !8
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %261) #9
  %263 = getelementptr inbounds %struct.Player, ptr %262, i32 0, i32 2
  %264 = load i32, ptr %22, align 4, !tbaa !8
  %265 = sext i32 %264 to i64
  %266 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %263, i64 noundef %265) #9
  %267 = getelementptr inbounds %struct.Card, ptr %266, i32 0, i32 0
  %268 = load i32, ptr %267, align 4, !tbaa !19
  %269 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %270 = load i32, ptr %269, align 4, !tbaa !19
  %271 = icmp eq i32 %268, %270
  br i1 %271, label %287, label %272

272:                                              ; preds = %259
  %273 = load i32, ptr %16, align 4, !tbaa !8
  %274 = sext i32 %273 to i64
  %275 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %274) #9
  %276 = getelementptr inbounds %struct.Player, ptr %275, i32 0, i32 2
  %277 = load i32, ptr %22, align 4, !tbaa !8
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %276, i64 noundef %278) #9
  %280 = getelementptr inbounds %struct.Card, ptr %279, i32 0, i32 1
  %281 = load i8, ptr %280, align 4, !tbaa !21
  %282 = sext i8 %281 to i32
  %283 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 1
  %284 = load i8, ptr %283, align 4, !tbaa !21
  %285 = sext i8 %284 to i32
  %286 = icmp eq i32 %282, %285
  br i1 %286, label %287, label %369

287:                                              ; preds = %272, %259
  %288 = load i32, ptr %16, align 4, !tbaa !8
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %289) #9
  %291 = getelementptr inbounds %struct.Player, ptr %290, i32 0, i32 2
  %292 = load i32, ptr %22, align 4, !tbaa !8
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %291, i64 noundef %293) #9
  %295 = getelementptr inbounds %struct.Card, ptr %294, i32 0, i32 1
  %296 = load i8, ptr %295, align 4, !tbaa !21
  %297 = sext i8 %296 to i32
  %298 = icmp ne i32 %297, 49
  br i1 %298, label %299, label %369

299:                                              ; preds = %287
  %300 = load i32, ptr %16, align 4, !tbaa !8
  %301 = sext i32 %300 to i64
  %302 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %301) #9
  %303 = getelementptr inbounds %struct.Player, ptr %302, i32 0, i32 2
  %304 = load i32, ptr %22, align 4, !tbaa !8
  %305 = sext i32 %304 to i64
  %306 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %303, i64 noundef %305) #9
  %307 = getelementptr inbounds %struct.Card, ptr %306, i32 0, i32 0
  %308 = load i32, ptr %307, align 4, !tbaa !19
  %309 = icmp ne i32 %308, 0
  br i1 %309, label %310, label %369

310:                                              ; preds = %299
  %311 = load i32, ptr %16, align 4, !tbaa !8
  %312 = sext i32 %311 to i64
  %313 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %312) #9
  %314 = getelementptr inbounds %struct.Player, ptr %313, i32 0, i32 2
  %315 = load i32, ptr %22, align 4, !tbaa !8
  %316 = sext i32 %315 to i64
  %317 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %314, i64 noundef %316) #9
  %318 = getelementptr inbounds %struct.Card, ptr %317, i32 0, i32 0
  %319 = load i32, ptr %318, align 4, !tbaa !19
  %320 = load i32, ptr %20, align 4, !tbaa !8
  %321 = icmp sgt i32 %319, %320
  br i1 %321, label %348, label %322

322:                                              ; preds = %310
  %323 = load i32, ptr %16, align 4, !tbaa !8
  %324 = sext i32 %323 to i64
  %325 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %324) #9
  %326 = getelementptr inbounds %struct.Player, ptr %325, i32 0, i32 2
  %327 = load i32, ptr %22, align 4, !tbaa !8
  %328 = sext i32 %327 to i64
  %329 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %326, i64 noundef %328) #9
  %330 = getelementptr inbounds %struct.Card, ptr %329, i32 0, i32 0
  %331 = load i32, ptr %330, align 4, !tbaa !19
  %332 = load i32, ptr %20, align 4, !tbaa !8
  %333 = icmp eq i32 %331, %332
  br i1 %333, label %334, label %368

334:                                              ; preds = %322
  %335 = load i32, ptr %16, align 4, !tbaa !8
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %336) #9
  %338 = getelementptr inbounds %struct.Player, ptr %337, i32 0, i32 2
  %339 = load i32, ptr %22, align 4, !tbaa !8
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %338, i64 noundef %340) #9
  %342 = getelementptr inbounds %struct.Card, ptr %341, i32 0, i32 1
  %343 = load i8, ptr %342, align 4, !tbaa !21
  %344 = sext i8 %343 to i32
  %345 = load i8, ptr %21, align 1, !tbaa !26
  %346 = sext i8 %345 to i32
  %347 = icmp sgt i32 %344, %346
  br i1 %347, label %348, label %368

348:                                              ; preds = %334, %310
  %349 = load i32, ptr %16, align 4, !tbaa !8
  %350 = sext i32 %349 to i64
  %351 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %350) #9
  %352 = getelementptr inbounds %struct.Player, ptr %351, i32 0, i32 2
  %353 = load i32, ptr %22, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %352, i64 noundef %354) #9
  %356 = getelementptr inbounds %struct.Card, ptr %355, i32 0, i32 0
  %357 = load i32, ptr %356, align 4, !tbaa !19
  store i32 %357, ptr %20, align 4, !tbaa !8
  %358 = load i32, ptr %16, align 4, !tbaa !8
  %359 = sext i32 %358 to i64
  %360 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %359) #9
  %361 = getelementptr inbounds %struct.Player, ptr %360, i32 0, i32 2
  %362 = load i32, ptr %22, align 4, !tbaa !8
  %363 = sext i32 %362 to i64
  %364 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %361, i64 noundef %363) #9
  %365 = getelementptr inbounds %struct.Card, ptr %364, i32 0, i32 1
  %366 = load i8, ptr %365, align 4, !tbaa !21
  store i8 %366, ptr %21, align 1, !tbaa !26
  %367 = load i32, ptr %22, align 4, !tbaa !8
  store i32 %367, ptr %19, align 4, !tbaa !8
  br label %368

368:                                              ; preds = %348, %334, %322
  br label %369

369:                                              ; preds = %368, %299, %287, %272
  br label %370

370:                                              ; preds = %369
  %371 = load i32, ptr %22, align 4, !tbaa !8
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %22, align 4, !tbaa !8
  br label %249, !llvm.loop !29

373:                                              ; preds = %258
  %374 = load i32, ptr %19, align 4, !tbaa !8
  %375 = icmp ne i32 %374, -1
  br i1 %375, label %376, label %412

376:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %377 = getelementptr inbounds %struct.Card, ptr %23, i32 0, i32 0
  %378 = load i32, ptr %16, align 4, !tbaa !8
  %379 = sext i32 %378 to i64
  %380 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %379) #9
  %381 = getelementptr inbounds %struct.Player, ptr %380, i32 0, i32 2
  %382 = load i32, ptr %19, align 4, !tbaa !8
  %383 = sext i32 %382 to i64
  %384 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %381, i64 noundef %383) #9
  %385 = getelementptr inbounds %struct.Card, ptr %384, i32 0, i32 0
  %386 = load i32, ptr %385, align 4, !tbaa !19
  store i32 %386, ptr %377, align 4, !tbaa !19
  %387 = getelementptr inbounds %struct.Card, ptr %23, i32 0, i32 1
  %388 = load i32, ptr %16, align 4, !tbaa !8
  %389 = sext i32 %388 to i64
  %390 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %389) #9
  %391 = getelementptr inbounds %struct.Player, ptr %390, i32 0, i32 2
  %392 = load i32, ptr %19, align 4, !tbaa !8
  %393 = sext i32 %392 to i64
  %394 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %391, i64 noundef %393) #9
  %395 = getelementptr inbounds %struct.Card, ptr %394, i32 0, i32 1
  %396 = load i8, ptr %395, align 4, !tbaa !21
  store i8 %396, ptr %387, align 4, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %397 = getelementptr inbounds %struct.Card, ptr %24, i32 0, i32 0
  store i32 0, ptr %397, align 4, !tbaa !19
  %398 = getelementptr inbounds %struct.Card, ptr %24, i32 0, i32 1
  store i8 49, ptr %398, align 4, !tbaa !21
  %399 = load i32, ptr %16, align 4, !tbaa !8
  %400 = sext i32 %399 to i64
  %401 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %400) #9
  %402 = getelementptr inbounds %struct.Player, ptr %401, i32 0, i32 2
  %403 = load i32, ptr %19, align 4, !tbaa !8
  %404 = sext i32 %403 to i64
  %405 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %402, i64 noundef %404) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %405, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  %406 = load i32, ptr %16, align 4, !tbaa !8
  %407 = sext i32 %406 to i64
  %408 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %407) #9
  %409 = getelementptr inbounds %struct.Player, ptr %408, i32 0, i32 1
  %410 = load i32, ptr %409, align 4, !tbaa !18
  %411 = add nsw i32 %410, -1
  store i32 %411, ptr %409, align 4, !tbaa !18
  store i8 1, ptr %18, align 1, !tbaa !27
  br label %412

412:                                              ; preds = %376, %373
  %413 = load i8, ptr %18, align 1, !tbaa !27, !range !30, !noundef !31
  %414 = trunc i8 %413 to i1
  br i1 %414, label %466, label %415

415:                                              ; preds = %412
  %416 = load i32, ptr %12, align 4, !tbaa !8
  %417 = load i32, ptr %2, align 4, !tbaa !8
  %418 = icmp slt i32 %416, %417
  br i1 %418, label %419, label %465

419:                                              ; preds = %415
  %420 = load i32, ptr %12, align 4, !tbaa !8
  %421 = sext i32 %420 to i64
  %422 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %421) #9
  %423 = getelementptr inbounds %struct.Card, ptr %422, i32 0, i32 0
  %424 = load i32, ptr %423, align 4, !tbaa !19
  %425 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %426 = load i32, ptr %425, align 4, !tbaa !19
  %427 = icmp eq i32 %424, %426
  br i1 %427, label %439, label %428

428:                                              ; preds = %419
  %429 = load i32, ptr %12, align 4, !tbaa !8
  %430 = sext i32 %429 to i64
  %431 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %430) #9
  %432 = getelementptr inbounds %struct.Card, ptr %431, i32 0, i32 1
  %433 = load i8, ptr %432, align 4, !tbaa !21
  %434 = sext i8 %433 to i32
  %435 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 1
  %436 = load i8, ptr %435, align 4, !tbaa !21
  %437 = sext i8 %436 to i32
  %438 = icmp eq i32 %434, %437
  br i1 %438, label %439, label %443

439:                                              ; preds = %428, %419
  %440 = load i32, ptr %12, align 4, !tbaa !8
  %441 = sext i32 %440 to i64
  %442 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %441) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %442, i64 8, i1 false), !tbaa.struct !25
  store i8 1, ptr %18, align 1, !tbaa !27
  br label %462

443:                                              ; preds = %428
  %444 = load i32, ptr %16, align 4, !tbaa !8
  %445 = sext i32 %444 to i64
  %446 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %445) #9
  %447 = getelementptr inbounds %struct.Player, ptr %446, i32 0, i32 2
  %448 = load i32, ptr %12, align 4, !tbaa !8
  %449 = sext i32 %448 to i64
  %450 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %449) #9
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %447, ptr noundef nonnull align 4 dereferenceable(8) %450)
          to label %451 unwind label %458

451:                                              ; preds = %443
  %452 = load i32, ptr %16, align 4, !tbaa !8
  %453 = sext i32 %452 to i64
  %454 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %453) #9
  %455 = getelementptr inbounds %struct.Player, ptr %454, i32 0, i32 1
  %456 = load i32, ptr %455, align 4, !tbaa !18
  %457 = add nsw i32 %456, 1
  store i32 %457, ptr %455, align 4, !tbaa !18
  br label %462

458:                                              ; preds = %443
  %459 = landingpad { ptr, i32 }
          cleanup
  %460 = extractvalue { ptr, i32 } %459, 0
  store ptr %460, ptr %7, align 8
  %461 = extractvalue { ptr, i32 } %459, 1
  store i32 %461, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %538

462:                                              ; preds = %451, %439
  %463 = load i32, ptr %12, align 4, !tbaa !8
  %464 = add nsw i32 %463, 1
  store i32 %464, ptr %12, align 4, !tbaa !8
  br label %465

465:                                              ; preds = %462, %415
  br label %466

466:                                              ; preds = %465, %412
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %467

467:                                              ; preds = %466, %244
  br label %468

468:                                              ; preds = %467, %235
  br label %469

469:                                              ; preds = %468, %206
  store i32 -1, ptr %17, align 4, !tbaa !8
  %470 = load i8, ptr %18, align 1, !tbaa !27, !range !30, !noundef !31
  %471 = trunc i8 %470 to i1
  br i1 %471, label %472, label %489

472:                                              ; preds = %469
  %473 = load i32, ptr %16, align 4, !tbaa !8
  %474 = sext i32 %473 to i64
  %475 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %474) #9
  %476 = getelementptr inbounds %struct.Player, ptr %475, i32 0, i32 1
  %477 = load i32, ptr %476, align 4, !tbaa !18
  %478 = icmp eq i32 %477, 0
  br i1 %478, label %479, label %489

479:                                              ; preds = %472
  %480 = load i32, ptr %16, align 4, !tbaa !8
  %481 = sext i32 %480 to i64
  %482 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %481) #9
  %483 = getelementptr inbounds %struct.Player, ptr %482, i32 0, i32 0
  %484 = load i32, ptr %483, align 8, !tbaa !11
  %485 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %484)
          to label %486 unwind label %182

486:                                              ; preds = %479
  %487 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %485, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %488 unwind label %182

488:                                              ; preds = %486
  store i32 10, ptr %25, align 4
  br label %535

489:                                              ; preds = %472, %469
  %490 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %491 = load i32, ptr %490, align 4, !tbaa !19
  %492 = icmp eq i32 %491, 12
  br i1 %492, label %493, label %501

493:                                              ; preds = %489
  %494 = load i8, ptr %18, align 1, !tbaa !27, !range !30, !noundef !31
  %495 = trunc i8 %494 to i1
  br i1 %495, label %496, label %501

496:                                              ; preds = %493
  %497 = load i32, ptr %15, align 4, !tbaa !8
  %498 = icmp eq i32 %497, -1
  %499 = zext i1 %498 to i64
  %500 = select i1 %498, i32 1, i32 -1
  store i32 %500, ptr %15, align 4, !tbaa !8
  br label %501

501:                                              ; preds = %496, %493, %489
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %502 = load i32, ptr %16, align 4, !tbaa !8
  store i32 %502, ptr %26, align 4, !tbaa !8
  %503 = load i32, ptr %15, align 4, !tbaa !8
  %504 = load i32, ptr %16, align 4, !tbaa !8
  %505 = add nsw i32 %504, %503
  store i32 %505, ptr %16, align 4, !tbaa !8
  %506 = load i32, ptr %16, align 4, !tbaa !8
  %507 = icmp slt i32 %506, 0
  br i1 %507, label %508, label %511

508:                                              ; preds = %501
  %509 = load i32, ptr %4, align 4, !tbaa !8
  %510 = sub nsw i32 %509, 1
  store i32 %510, ptr %16, align 4, !tbaa !8
  br label %517

511:                                              ; preds = %501
  %512 = load i32, ptr %16, align 4, !tbaa !8
  %513 = load i32, ptr %4, align 4, !tbaa !8
  %514 = icmp sge i32 %512, %513
  br i1 %514, label %515, label %516

515:                                              ; preds = %511
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %516

516:                                              ; preds = %515, %511
  br label %517

517:                                              ; preds = %516, %508
  %518 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %519 = load i32, ptr %518, align 4, !tbaa !19
  %520 = icmp eq i32 %519, 1
  br i1 %520, label %529, label %521

521:                                              ; preds = %517
  %522 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %523 = load i32, ptr %522, align 4, !tbaa !19
  %524 = icmp eq i32 %523, 7
  br i1 %524, label %529, label %525

525:                                              ; preds = %521
  %526 = getelementptr inbounds %struct.Card, ptr %14, i32 0, i32 0
  %527 = load i32, ptr %526, align 4, !tbaa !19
  %528 = icmp eq i32 %527, 11
  br i1 %528, label %529, label %534

529:                                              ; preds = %525, %521, %517
  %530 = load i8, ptr %18, align 1, !tbaa !27, !range !30, !noundef !31
  %531 = trunc i8 %530 to i1
  br i1 %531, label %532, label %534

532:                                              ; preds = %529
  %533 = load i32, ptr %16, align 4, !tbaa !8
  store i32 %533, ptr %17, align 4, !tbaa !8
  br label %534

534:                                              ; preds = %532, %529, %525
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  store i32 0, ptr %25, align 4
  br label %535

535:                                              ; preds = %534, %488
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #9
  %536 = load i32, ptr %25, align 4
  switch i32 %536, label %549 [
    i32 0, label %537
    i32 10, label %539
  ]

537:                                              ; preds = %535
  br label %153, !llvm.loop !32

538:                                              ; preds = %458, %182
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %540

539:                                              ; preds = %535
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %33, !llvm.loop !33

540:                                              ; preds = %538, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %543

541:                                              ; preds = %55
  store i32 0, ptr %1, align 4
  store i32 1, ptr %25, align 4
  call void @_ZNSt6vectorI4CardSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  call void @_ZNSt6vectorI6PlayerSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %542 = load i32, ptr %1, align 4
  ret i32 %542

543:                                              ; preds = %540, %103, %83, %79, %75
  call void @_ZNSt6vectorI4CardSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  call void @_ZNSt6vectorI6PlayerSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %544

544:                                              ; preds = %543
  %545 = load ptr, ptr %7, align 8
  %546 = load i32, ptr %8, align 4
  %547 = insertvalue { ptr, i32 } poison, ptr %545, 0
  %548 = insertvalue { ptr, i32 } %547, i32 %546, 1
  resume { ptr, i32 } %548

549:                                              ; preds = %535
  unreachable
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6PlayerSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4CardSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6PlayerSaIS0_EE6assignEmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6PlayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4CardSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6PlayerSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 0}
!12 = !{!"_ZTS6Player", !9, i64 0, !9, i64 4, !13, i64 8}
!13 = !{!"_ZTSSt6vectorI4CardSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI4CardSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI4CardSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI4CardSaIS0_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !10, i64 0}
!18 = !{!12, !9, i64 4}
!19 = !{!20, !9, i64 0}
!20 = !{!"_ZTS4Card", !9, i64 0, !10, i64 4}
!21 = !{!20, !10, i64 4}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{i64 0, i64 4, !8, i64 4, i64 1, !26}
!26 = !{!10, !10, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"bool", !10, i64 0}
!29 = distinct !{!29, !23}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = distinct !{!32, !23}
!33 = distinct !{!33, !23}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Player, std::allocator<Player>>::_Vector_impl" }
%"struct.std::_Vector_base<Player, std::allocator<Player>>::_Vector_impl" = type { %"struct.std::_Vector_base<Player, std::allocator<Player>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Player, std::allocator<Player>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Card, std::allocator<Card>>::_Vector_impl" }
%"struct.std::_Vector_base<Card, std::allocator<Card>>::_Vector_impl" = type { %"struct.std::_Vector_base<Card, std::allocator<Card>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Card, std::allocator<Card>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Player = type { i32, i32, %"class.std::vector.0" }
%struct.Card = type { i32, i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %struct.Player, align 8
  %7 = alloca %struct.Card, align 4
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorI6PlayerSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorI4CardSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %14 = getelementptr inbounds i8, ptr %6, i64 4
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  %16 = getelementptr inbounds i8, ptr %7, i64 4
  br label %.loopexit

.loopexit:                                        ; preds = %253, %0
  %17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %18 unwind label %44

18:                                               ; preds = %.loopexit
  %19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %20 unwind label %44

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %22 unwind label %44

22:                                               ; preds = %20
  %23 = load ptr, ptr %21, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %21, i64 %25
  %27 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %26)
          to label %28 unwind label %44

28:                                               ; preds = %22
  %29 = load i32, ptr %3, align 4
  %30 = icmp ne i32 %29, 0
  %or.cond = select i1 %27, i1 %30, i1 false
  %31 = load i32, ptr %2, align 4
  %32 = icmp ne i32 %31, 0
  %or.cond3 = select i1 %or.cond, i1 %32, i1 false
  %33 = load i32, ptr %1, align 4
  %34 = icmp ne i32 %33, 0
  %or.cond11 = select i1 %or.cond3, i1 %34, i1 false
  br i1 %or.cond11, label %35, label %.critedge

35:                                               ; preds = %28
  %36 = sext i32 %29 to i64
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  store i32 0, ptr %6, align 8, !tbaa !8
  store i32 %31, ptr %14, align 4, !tbaa !17
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %15, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorI4CardSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  invoke void @_ZNSt6vectorI6PlayerSaIS0_EE6assignEmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %36, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %37 unwind label %46

37:                                               ; preds = %35
  call void @_ZN6PlayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %38 = load i32, ptr %1, align 4, !tbaa !18
  %39 = sext i32 %38 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store i32 0, ptr %7, align 4, !tbaa !19
  store i8 48, ptr %16, align 4, !tbaa !21
  invoke void @_ZNSt6vectorI4CardSaIS0_EE6assignEmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %39, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %40 unwind label %48

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %41 = load i32, ptr %1, align 4, !tbaa !18
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph, label %.preheader200

.preheader200:                                    ; preds = %56, %40
  %43 = load i32, ptr %3, align 4, !tbaa !18
  %.not203 = icmp slt i32 %43, 1
  br i1 %.not203, label %._crit_edge, label %.lr.ph206

44:                                               ; preds = %22, %20, %18, %.loopexit
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %264

46:                                               ; preds = %35
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6PlayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %264

48:                                               ; preds = %37
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %264

.lr.ph:                                           ; preds = %40, %56
  %indvars.iv = phi i64 [ %indvars.iv.next, %56 ], [ 0, %40 ]
  %50 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #8
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %50)
          to label %52 unwind label %60

52:                                               ; preds = %.lr.ph
  %53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #8
  %54 = getelementptr inbounds i8, ptr %53, i64 4
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 1 dereferenceable(1) %54)
          to label %56 unwind label %60

56:                                               ; preds = %52
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i32, ptr %1, align 4, !tbaa !18
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next, %58
  br i1 %59, label %.lr.ph, label %.preheader200, !llvm.loop !22

60:                                               ; preds = %52, %.lr.ph
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %264

.lr.ph206:                                        ; preds = %.preheader200, %78
  %.0124205 = phi i32 [ %.1125, %78 ], [ 0, %.preheader200 ]
  %.0147204 = phi i32 [ %.1148, %78 ], [ 1, %.preheader200 ]
  %62 = add nsw i32 %.0147204, -1
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %63) #8
  store i32 %.0147204, ptr %64, align 8, !tbaa !8
  %65 = load i32, ptr %2, align 4, !tbaa !18
  %66 = mul nsw i32 %65, %.0147204
  %67 = icmp slt i32 %.0124205, %66
  br i1 %67, label %68, label %76

68:                                               ; preds = %.lr.ph206
  %69 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %63) #8
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = add nsw i32 %.0124205, 1
  %72 = sext i32 %.0124205 to i64
  %73 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %72) #8
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 4 dereferenceable(8) %73)
          to label %78 unwind label %74

74:                                               ; preds = %68
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %264

76:                                               ; preds = %.lr.ph206
  %77 = add nsw i32 %.0147204, 1
  br label %78

78:                                               ; preds = %68, %76
  %.1148 = phi i32 [ %.0147204, %68 ], [ %77, %76 ]
  %.1125 = phi i32 [ %71, %68 ], [ %.0124205, %76 ]
  %79 = load i32, ptr %3, align 4, !tbaa !18
  %.not = icmp sgt i32 %.1148, %79
  br i1 %.not, label %._crit_edge, label %.lr.ph206, !llvm.loop !24

._crit_edge:                                      ; preds = %78, %.preheader200
  %.0124.lcssa = phi i32 [ 0, %.preheader200 ], [ %.1125, %78 ]
  %80 = add nsw i32 %.0124.lcssa, 1
  %81 = sext i32 %.0124.lcssa to i64
  %82 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %81) #8
  %.sroa.077.0.copyload = load i32, ptr %82, align 4, !tbaa !18
  %.sroa.16.0..sroa_idx = getelementptr inbounds i8, ptr %82, i64 4
  %.sroa.16.0.copyload = load i8, ptr %.sroa.16.0..sroa_idx, align 4, !tbaa !25
  %83 = icmp eq i32 %.sroa.077.0.copyload, 12
  %84 = select i1 %83, i32 -1, i32 1
  br label %85

85:                                               ; preds = %.backedge, %._crit_edge
  %.sroa.16.0 = phi i8 [ %.sroa.16.0.copyload, %._crit_edge ], [ %.sroa.16.4182, %.backedge ]
  %.sroa.077.0 = phi i32 [ %.sroa.077.0.copyload, %._crit_edge ], [ %.sroa.077.4184, %.backedge ]
  %.0144 = phi i32 [ %84, %._crit_edge ], [ %.1145, %.backedge ]
  %.0141 = phi i32 [ 0, %._crit_edge ], [ %.1142, %.backedge ]
  %.0138 = phi i32 [ 0, %._crit_edge ], [ %.0138.be, %.backedge ]
  %.2126 = phi i32 [ %80, %._crit_edge ], [ %.5186, %.backedge ]
  %86 = icmp eq i32 %.sroa.077.0, 7
  %87 = icmp eq i32 %.0141, %.0138
  %or.cond162 = select i1 %86, i1 %87, i1 false
  br i1 %or.cond162, label %88, label %118

88:                                               ; preds = %85
  %89 = load i32, ptr %1, align 4, !tbaa !18
  %90 = icmp slt i32 %.2126, %89
  br i1 %90, label %91, label %103

91:                                               ; preds = %88
  %92 = sext i32 %.0141 to i64
  %93 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %92) #8
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  %95 = sext i32 %.2126 to i64
  %96 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %95) #8
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 4 dereferenceable(8) %96)
          to label %97 unwind label %.loopexit227

97:                                               ; preds = %91
  %98 = add nsw i32 %.2126, 1
  %99 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %92) #8
  %100 = getelementptr inbounds i8, ptr %99, i64 4
  %101 = load i32, ptr %100, align 4, !tbaa !17
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %100, align 4, !tbaa !17
  %.pre = load i32, ptr %1, align 4, !tbaa !18
  br label %103

.loopexit227:                                     ; preds = %91, %106, %123
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %264

.loopexit.split-lp:                               ; preds = %249, %253
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %264

103:                                              ; preds = %97, %88
  %104 = phi i32 [ %.pre, %97 ], [ %89, %88 ]
  %.3 = phi i32 [ %98, %97 ], [ %.2126, %88 ]
  %105 = icmp slt i32 %.3, %104
  br i1 %105, label %106, label %.thread176

106:                                              ; preds = %103
  %107 = sext i32 %.0141 to i64
  %108 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %107) #8
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = sext i32 %.3 to i64
  %111 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %110) #8
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 4 dereferenceable(8) %111)
          to label %112 unwind label %.loopexit227

112:                                              ; preds = %106
  %113 = add nsw i32 %.3, 1
  %114 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %107) #8
  %115 = getelementptr inbounds i8, ptr %114, i64 4
  %116 = load i32, ptr %115, align 4, !tbaa !17
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %115, align 4, !tbaa !17
  br label %.thread176

118:                                              ; preds = %85
  %119 = icmp eq i32 %.sroa.077.0, 1
  %or.cond163 = select i1 %119, i1 %87, i1 false
  br i1 %or.cond163, label %120, label %135

120:                                              ; preds = %118
  %121 = load i32, ptr %1, align 4, !tbaa !18
  %122 = icmp slt i32 %.2126, %121
  br i1 %122, label %123, label %.thread176

123:                                              ; preds = %120
  %124 = sext i32 %.0141 to i64
  %125 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %124) #8
  %126 = getelementptr inbounds i8, ptr %125, i64 8
  %127 = sext i32 %.2126 to i64
  %128 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %127) #8
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 4 dereferenceable(8) %128)
          to label %129 unwind label %.loopexit227

129:                                              ; preds = %123
  %130 = add nsw i32 %.2126, 1
  %131 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %124) #8
  %132 = getelementptr inbounds i8, ptr %131, i64 4
  %133 = load i32, ptr %132, align 4, !tbaa !17
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %132, align 4, !tbaa !17
  br label %.thread176

135:                                              ; preds = %118
  %.not151 = icmp ne i32 %.sroa.077.0, 11
  %or.cond164 = select i1 %.not151, i1 %87, i1 false
  %or.cond164.not = xor i1 %or.cond164, true
  %or.cond165 = select i1 %or.cond164.not, i1 %87, i1 false
  br i1 %or.cond165, label %.thread176, label %.preheader

.preheader:                                       ; preds = %135
  %136 = sext i32 %.0141 to i64
  %137 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %138 = getelementptr inbounds i8, ptr %137, i64 8
  %139 = call noundef i64 @_ZNKSt6vectorI4CardSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #8
  %140 = trunc i64 %139 to i32
  %141 = icmp sgt i32 %140, 0
  br i1 %141, label %.lr.ph211, label %._crit_edge212.thread

._crit_edge212:                                   ; preds = %195
  %.not153 = icmp eq i32 %.1133, -1
  br i1 %.not153, label %._crit_edge212.thread, label %.thread187

.lr.ph211:                                        ; preds = %.preheader, %195
  %indvars.iv216 = phi i64 [ %indvars.iv.next217, %195 ], [ 0, %.preheader ]
  %.0128209 = phi i8 [ %.1129, %195 ], [ 65, %.preheader ]
  %.0130208 = phi i32 [ %.1131, %195 ], [ 0, %.preheader ]
  %.0132207 = phi i32 [ %.1133, %195 ], [ -1, %.preheader ]
  %142 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %143 = getelementptr inbounds i8, ptr %142, i64 8
  %144 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %indvars.iv216) #8
  %145 = load i32, ptr %144, align 4, !tbaa !19
  %146 = icmp eq i32 %145, %.sroa.077.0
  br i1 %146, label %154, label %147

147:                                              ; preds = %.lr.ph211
  %148 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  %150 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %indvars.iv216) #8
  %151 = getelementptr inbounds i8, ptr %150, i64 4
  %152 = load i8, ptr %151, align 4, !tbaa !21
  %153 = icmp eq i8 %152, %.sroa.16.0
  br i1 %153, label %154, label %195

154:                                              ; preds = %147, %.lr.ph211
  %155 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %156 = getelementptr inbounds i8, ptr %155, i64 8
  %157 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %indvars.iv216) #8
  %158 = getelementptr inbounds i8, ptr %157, i64 4
  %159 = load i8, ptr %158, align 4, !tbaa !21
  %.not154 = icmp eq i8 %159, 49
  br i1 %.not154, label %195, label %160

160:                                              ; preds = %154
  %161 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %162 = getelementptr inbounds i8, ptr %161, i64 8
  %163 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %indvars.iv216) #8
  %164 = load i32, ptr %163, align 4, !tbaa !19
  %.not155 = icmp eq i32 %164, 0
  br i1 %.not155, label %195, label %165

165:                                              ; preds = %160
  %166 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %167 = getelementptr inbounds i8, ptr %166, i64 8
  %168 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %indvars.iv216) #8
  %169 = load i32, ptr %168, align 4, !tbaa !19
  %170 = icmp sgt i32 %169, %.0130208
  br i1 %170, label %184, label %171

171:                                              ; preds = %165
  %172 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %173 = getelementptr inbounds i8, ptr %172, i64 8
  %174 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %indvars.iv216) #8
  %175 = load i32, ptr %174, align 4, !tbaa !19
  %176 = icmp eq i32 %175, %.0130208
  br i1 %176, label %177, label %195

177:                                              ; preds = %171
  %178 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %179 = getelementptr inbounds i8, ptr %178, i64 8
  %180 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %indvars.iv216) #8
  %181 = getelementptr inbounds i8, ptr %180, i64 4
  %182 = load i8, ptr %181, align 4, !tbaa !21
  %183 = icmp sgt i8 %182, %.0128209
  br i1 %183, label %184, label %195

184:                                              ; preds = %177, %165
  %185 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %186 = getelementptr inbounds i8, ptr %185, i64 8
  %187 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %indvars.iv216) #8
  %188 = load i32, ptr %187, align 4, !tbaa !19
  %189 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %190 = getelementptr inbounds i8, ptr %189, i64 8
  %191 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %indvars.iv216) #8
  %192 = getelementptr inbounds i8, ptr %191, i64 4
  %193 = load i8, ptr %192, align 4, !tbaa !21
  %194 = trunc nuw nsw i64 %indvars.iv216 to i32
  br label %195

195:                                              ; preds = %147, %154, %160, %184, %177, %171
  %.1133 = phi i32 [ %194, %184 ], [ %.0132207, %177 ], [ %.0132207, %171 ], [ %.0132207, %160 ], [ %.0132207, %154 ], [ %.0132207, %147 ]
  %.1131 = phi i32 [ %188, %184 ], [ %.0130208, %177 ], [ %.0130208, %171 ], [ %.0130208, %160 ], [ %.0130208, %154 ], [ %.0130208, %147 ]
  %.1129 = phi i8 [ %193, %184 ], [ %.0128209, %177 ], [ %.0128209, %171 ], [ %.0128209, %160 ], [ %.0128209, %154 ], [ %.0128209, %147 ]
  %indvars.iv.next217 = add nuw nsw i64 %indvars.iv216, 1
  %196 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %197 = getelementptr inbounds i8, ptr %196, i64 8
  %198 = call noundef i64 @_ZNKSt6vectorI4CardSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %197) #8
  %sext = shl i64 %198, 32
  %199 = ashr exact i64 %sext, 32
  %200 = icmp slt i64 %indvars.iv.next217, %199
  br i1 %200, label %.lr.ph211, label %._crit_edge212, !llvm.loop !26

.thread187:                                       ; preds = %._crit_edge212
  %201 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %202 = getelementptr inbounds i8, ptr %201, i64 8
  %203 = sext i32 %.1133 to i64
  %204 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %203) #8
  %205 = load i32, ptr %204, align 4, !tbaa !19
  %206 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %207 = getelementptr inbounds i8, ptr %206, i64 8
  %208 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %207, i64 noundef %203) #8
  %209 = getelementptr inbounds i8, ptr %208, i64 4
  %210 = load i8, ptr %209, align 4, !tbaa !21
  %211 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %212 = getelementptr inbounds i8, ptr %211, i64 8
  %213 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %203) #8
  store i32 0, ptr %213, align 4, !tbaa !18
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %213, i64 4
  store i8 49, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !25
  %214 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %215 = getelementptr inbounds i8, ptr %214, i64 4
  %216 = load i32, ptr %215, align 4, !tbaa !17
  %217 = add nsw i32 %216, -1
  store i32 %217, ptr %215, align 4, !tbaa !17
  br label %244

._crit_edge212.thread:                            ; preds = %.preheader, %._crit_edge212
  %218 = load i32, ptr %1, align 4
  %219 = icmp slt i32 %.2126, %218
  br i1 %219, label %220, label %.thread176

220:                                              ; preds = %._crit_edge212.thread
  %221 = sext i32 %.2126 to i64
  %222 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %221) #8
  %223 = load i32, ptr %222, align 4, !tbaa !19
  %224 = icmp eq i32 %223, %.sroa.077.0
  br i1 %224, label %.thread195, label %225

225:                                              ; preds = %220
  %226 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %221) #8
  %227 = getelementptr inbounds i8, ptr %226, i64 4
  %228 = load i8, ptr %227, align 4, !tbaa !21
  %229 = icmp eq i8 %228, %.sroa.16.0
  br i1 %229, label %.thread195, label %232

.thread195:                                       ; preds = %220, %225
  %230 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %221) #8
  %.sroa.077.0.copyload87 = load i32, ptr %230, align 4, !tbaa !18
  %.sroa.16.0..sroa_idx88 = getelementptr inbounds i8, ptr %230, i64 4
  %.sroa.16.0.copyload89 = load i8, ptr %.sroa.16.0..sroa_idx88, align 4, !tbaa !25
  %231 = add nsw i32 %.2126, 1
  br label %244

232:                                              ; preds = %225
  %233 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %234 = getelementptr inbounds i8, ptr %233, i64 8
  %235 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI4CardSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %221) #8
  invoke void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %234, ptr noundef nonnull align 4 dereferenceable(8) %235)
          to label %238 unwind label %236

236:                                              ; preds = %232
  %237 = landingpad { ptr, i32 }
          cleanup
  br label %264

238:                                              ; preds = %232
  %239 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %240 = getelementptr inbounds i8, ptr %239, i64 4
  %241 = load i32, ptr %240, align 4, !tbaa !17
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %240, align 4, !tbaa !17
  %243 = add nsw i32 %.2126, 1
  br label %.thread176

244:                                              ; preds = %.thread195, %.thread187
  %.5194 = phi i32 [ %.2126, %.thread187 ], [ %231, %.thread195 ]
  %.sroa.077.4193 = phi i32 [ %205, %.thread187 ], [ %.sroa.077.0.copyload87, %.thread195 ]
  %.sroa.16.4192 = phi i8 [ %210, %.thread187 ], [ %.sroa.16.0.copyload89, %.thread195 ]
  %245 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %246 = getelementptr inbounds i8, ptr %245, i64 4
  %247 = load i32, ptr %246, align 4, !tbaa !17
  %248 = icmp eq i32 %247, 0
  br i1 %248, label %249, label %.thread176

249:                                              ; preds = %244
  %250 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6PlayerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #8
  %251 = load i32, ptr %250, align 8, !tbaa !8
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %251)
          to label %253 unwind label %.loopexit.split-lp

253:                                              ; preds = %249
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %252, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit unwind label %.loopexit.split-lp, !llvm.loop !27

.thread176:                                       ; preds = %._crit_edge212.thread, %135, %120, %129, %103, %112, %238, %244
  %255 = phi i1 [ true, %244 ], [ false, %238 ], [ false, %112 ], [ false, %103 ], [ false, %129 ], [ false, %120 ], [ false, %135 ], [ false, %._crit_edge212.thread ]
  %.5186 = phi i32 [ %.5194, %244 ], [ %243, %238 ], [ %113, %112 ], [ %.3, %103 ], [ %130, %129 ], [ %.2126, %120 ], [ %.2126, %135 ], [ %.2126, %._crit_edge212.thread ]
  %.sroa.077.4184 = phi i32 [ %.sroa.077.4193, %244 ], [ %.sroa.077.0, %238 ], [ 7, %112 ], [ 7, %103 ], [ 1, %129 ], [ 1, %120 ], [ %.sroa.077.0, %135 ], [ %.sroa.077.0, %._crit_edge212.thread ]
  %.sroa.16.4182 = phi i8 [ %.sroa.16.4192, %244 ], [ %.sroa.16.0, %238 ], [ %.sroa.16.0, %112 ], [ %.sroa.16.0, %103 ], [ %.sroa.16.0, %129 ], [ %.sroa.16.0, %120 ], [ %.sroa.16.0, %135 ], [ %.sroa.16.0, %._crit_edge212.thread ]
  %256 = icmp eq i32 %.sroa.077.4184, 12
  %brmerge.not = and i1 %255, %256
  %257 = icmp eq i32 %.0144, -1
  %258 = select i1 %257, i32 1, i32 -1
  %.1145 = select i1 %brmerge.not, i32 %258, i32 %.0144
  %259 = add nsw i32 %.1145, %.0141
  %260 = icmp slt i32 %259, 0
  %261 = load i32, ptr %3, align 4, !tbaa !18
  %262 = add nsw i32 %261, -1
  %.not156 = icmp slt i32 %259, %261
  %spec.store.select = select i1 %.not156, i32 %259, i32 0
  %.1142 = select i1 %260, i32 %262, i32 %spec.store.select
  switch i32 %.sroa.077.4184, label %.backedge [
    i32 11, label %263
    i32 7, label %263
    i32 1, label %263
  ]

263:                                              ; preds = %.thread176, %.thread176, %.thread176
  %spec.select = select i1 %255, i32 %.1142, i32 -1
  br label %.backedge

.backedge:                                        ; preds = %263, %.thread176
  %.0138.be = phi i32 [ %spec.select, %263 ], [ -1, %.thread176 ]
  br label %85, !llvm.loop !27

.critedge:                                        ; preds = %28
  call void @_ZNSt6vectorI4CardSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorI6PlayerSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

264:                                              ; preds = %.loopexit227, %.loopexit.split-lp, %74, %236, %60, %48, %46, %44
  %.pn160 = phi { ptr, i32 } [ %61, %60 ], [ %49, %48 ], [ %47, %46 ], [ %45, %44 ], [ %75, %74 ], [ %237, %236 ], [ %lpad.loopexit, %.loopexit227 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorI4CardSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorI6PlayerSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn160
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6PlayerSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4CardSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6PlayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4CardSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

; 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 #4 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)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4CardSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6PlayerSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTS6Player", !10, i64 0, !10, i64 4, !12, i64 8}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"_ZTSSt6vectorI4CardSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseI4CardSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI4CardSaIS0_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI4CardSaIS0_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !11, i64 0}
!17 = !{!9, !10, i64 4}
!18 = !{!10, !10, i64 0}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTS4Card", !10, i64 0, !11, i64 4}
!21 = !{!20, !11, i64 4}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!11, !11, i64 0}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}


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