; LLVM IR from imteekay/algorithms :: competitive-programming/uri (help_the_federation)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<team, std::allocator<team>>::_Vector_impl" }
%"struct.std::_Vector_base<team, std::allocator<team>>::_Vector_impl" = type { %"struct.std::_Vector_base<team, std::allocator<team>>::_Vector_impl_data" }
%"struct.std::_Vector_base<team, std::allocator<team>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.team = type <{ i32, [4 x i8], %"class.std::__cxx11::basic_string", i32, i32, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z12compareTeamsRK4teamS1_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(52)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 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 i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.team, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %24 unwind label %39

24:                                               ; preds = %0
  br label %25

25:                                               ; preds = %305, %24
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr %2, align 4, !tbaa !5
  %28 = icmp ne i32 %26, 0
  br i1 %28, label %29, label %307

29:                                               ; preds = %25
  %30 = 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 %31 unwind label %39

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %33 unwind label %39

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @_ZNSt6vectorI4teamSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %70, %33
  %35 = load i32, ptr %13, align 4, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %43, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %82

39:                                               ; preds = %31, %29, %0
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %10, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %11, align 4
  br label %309

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 56, ptr %14) #8
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 56, i1 false)
  call void @_ZN4teamC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %14) #8
  invoke void @_ZNSt6vectorI4teamSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(52) %14)
          to label %44 unwind label %73

44:                                               ; preds = %43
  call void @_ZN4teamD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %14) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #8
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %46 unwind label %77

46:                                               ; preds = %44
  %47 = load i32, ptr %13, align 4, !tbaa !5
  %48 = load i32, ptr %13, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %49) #8
  %51 = getelementptr inbounds %struct.team, ptr %50, i32 0, i32 0
  store i32 %47, ptr %51, align 8, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %53) #8
  %55 = getelementptr inbounds %struct.team, ptr %54, i32 0, i32 2
  %56 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %57 unwind label %77

57:                                               ; preds = %46
  %58 = load i32, ptr %13, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %59) #8
  %61 = getelementptr inbounds %struct.team, ptr %60, i32 0, i32 3
  store i32 0, ptr %61, align 8, !tbaa !15
  %62 = load i32, ptr %13, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %63) #8
  %65 = getelementptr inbounds %struct.team, ptr %64, i32 0, i32 4
  store i32 0, ptr %65, align 4, !tbaa !16
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %67) #8
  %69 = getelementptr inbounds %struct.team, ptr %68, i32 0, i32 5
  store i32 0, ptr %69, align 8, !tbaa !17
  br label %70

70:                                               ; preds = %57
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %13, align 4, !tbaa !5
  br label %34, !llvm.loop !18

73:                                               ; preds = %43
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %10, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %11, align 4
  call void @_ZN4teamD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %14) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #8
  br label %81

77:                                               ; preds = %46, %44
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %10, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %11, align 4
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %306

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

83:                                               ; preds = %266, %82
  %84 = load i32, ptr %15, align 4, !tbaa !5
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 7, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %269

88:                                               ; preds = %83
  %89 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %90 unwind label %107

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %92 unwind label %107

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %94 unwind label %107

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %93, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %96 unwind label %107

96:                                               ; preds = %94
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = icmp sgt i32 %97, %98
  br i1 %99, label %100, label %156

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %152, %100
  %102 = load i32, ptr %17, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %105 = icmp ult i64 %103, %104
  br i1 %105, label %111, label %106

106:                                              ; preds = %101
  store i32 10, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %155

107:                                              ; preds = %94, %92, %90, %88
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %10, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %306

111:                                              ; preds = %101
  %112 = load i32, ptr %17, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %113) #8
  %115 = getelementptr inbounds %struct.team, ptr %114, i32 0, i32 2
  %116 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br i1 %116, label %117, label %137

117:                                              ; preds = %111
  %118 = load i32, ptr %17, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %119) #8
  %121 = getelementptr inbounds %struct.team, ptr %120, i32 0, i32 3
  %122 = load i32, ptr %121, align 8, !tbaa !15
  %123 = add nsw i32 %122, 3
  store i32 %123, ptr %121, align 8, !tbaa !15
  %124 = load i32, ptr %17, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %125) #8
  %127 = getelementptr inbounds %struct.team, ptr %126, i32 0, i32 4
  %128 = load i32, ptr %127, align 4, !tbaa !16
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %127, align 4, !tbaa !16
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = load i32, ptr %17, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %132) #8
  %134 = getelementptr inbounds %struct.team, ptr %133, i32 0, i32 5
  %135 = load i32, ptr %134, align 8, !tbaa !17
  %136 = add nsw i32 %135, %130
  store i32 %136, ptr %134, align 8, !tbaa !17
  br label %137

137:                                              ; preds = %117, %111
  %138 = load i32, ptr %17, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %139) #8
  %141 = getelementptr inbounds %struct.team, ptr %140, i32 0, i32 2
  %142 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %141, ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br i1 %142, label %143, label %151

143:                                              ; preds = %137
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = load i32, ptr %17, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %146) #8
  %148 = getelementptr inbounds %struct.team, ptr %147, i32 0, i32 5
  %149 = load i32, ptr %148, align 8, !tbaa !17
  %150 = add nsw i32 %149, %144
  store i32 %150, ptr %148, align 8, !tbaa !17
  br label %151

151:                                              ; preds = %143, %137
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %17, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %17, align 4, !tbaa !5
  br label %101, !llvm.loop !20

155:                                              ; preds = %106
  br label %265

156:                                              ; preds = %96
  %157 = load i32, ptr %5, align 4, !tbaa !5
  %158 = load i32, ptr %6, align 4, !tbaa !5
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %160, label %212

160:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %208, %160
  %162 = load i32, ptr %18, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %165 = icmp ult i64 %163, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %161
  store i32 13, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %211

167:                                              ; preds = %161
  %168 = load i32, ptr %18, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %169) #8
  %171 = getelementptr inbounds %struct.team, ptr %170, i32 0, i32 2
  %172 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %171, ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br i1 %172, label %173, label %193

173:                                              ; preds = %167
  %174 = load i32, ptr %18, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %175) #8
  %177 = getelementptr inbounds %struct.team, ptr %176, i32 0, i32 3
  %178 = load i32, ptr %177, align 8, !tbaa !15
  %179 = add nsw i32 %178, 3
  store i32 %179, ptr %177, align 8, !tbaa !15
  %180 = load i32, ptr %18, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %181) #8
  %183 = getelementptr inbounds %struct.team, ptr %182, i32 0, i32 4
  %184 = load i32, ptr %183, align 4, !tbaa !16
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %183, align 4, !tbaa !16
  %186 = load i32, ptr %6, align 4, !tbaa !5
  %187 = load i32, ptr %18, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %188) #8
  %190 = getelementptr inbounds %struct.team, ptr %189, i32 0, i32 5
  %191 = load i32, ptr %190, align 8, !tbaa !17
  %192 = add nsw i32 %191, %186
  store i32 %192, ptr %190, align 8, !tbaa !17
  br label %193

193:                                              ; preds = %173, %167
  %194 = load i32, ptr %18, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %195) #8
  %197 = getelementptr inbounds %struct.team, ptr %196, i32 0, i32 2
  %198 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %197, ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br i1 %198, label %199, label %207

199:                                              ; preds = %193
  %200 = load i32, ptr %5, align 4, !tbaa !5
  %201 = load i32, ptr %18, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %202) #8
  %204 = getelementptr inbounds %struct.team, ptr %203, i32 0, i32 5
  %205 = load i32, ptr %204, align 8, !tbaa !17
  %206 = add nsw i32 %205, %200
  store i32 %206, ptr %204, align 8, !tbaa !17
  br label %207

207:                                              ; preds = %199, %193
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %18, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %18, align 4, !tbaa !5
  br label %161, !llvm.loop !21

211:                                              ; preds = %166
  br label %264

212:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %260, %212
  %214 = load i32, ptr %19, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %217 = icmp ult i64 %215, %216
  br i1 %217, label %219, label %218

218:                                              ; preds = %213
  store i32 16, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %263

219:                                              ; preds = %213
  %220 = load i32, ptr %19, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %221) #8
  %223 = getelementptr inbounds %struct.team, ptr %222, i32 0, i32 2
  %224 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %223, ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br i1 %224, label %225, label %239

225:                                              ; preds = %219
  %226 = load i32, ptr %19, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %227) #8
  %229 = getelementptr inbounds %struct.team, ptr %228, i32 0, i32 3
  %230 = load i32, ptr %229, align 8, !tbaa !15
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %229, align 8, !tbaa !15
  %232 = load i32, ptr %5, align 4, !tbaa !5
  %233 = load i32, ptr %19, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %234) #8
  %236 = getelementptr inbounds %struct.team, ptr %235, i32 0, i32 5
  %237 = load i32, ptr %236, align 8, !tbaa !17
  %238 = add nsw i32 %237, %232
  store i32 %238, ptr %236, align 8, !tbaa !17
  br label %239

239:                                              ; preds = %225, %219
  %240 = load i32, ptr %19, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %241) #8
  %243 = getelementptr inbounds %struct.team, ptr %242, i32 0, i32 2
  %244 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %243, ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br i1 %244, label %245, label %259

245:                                              ; preds = %239
  %246 = load i32, ptr %19, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %247) #8
  %249 = getelementptr inbounds %struct.team, ptr %248, i32 0, i32 3
  %250 = load i32, ptr %249, align 8, !tbaa !15
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %249, align 8, !tbaa !15
  %252 = load i32, ptr %6, align 4, !tbaa !5
  %253 = load i32, ptr %19, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %254) #8
  %256 = getelementptr inbounds %struct.team, ptr %255, i32 0, i32 5
  %257 = load i32, ptr %256, align 8, !tbaa !17
  %258 = add nsw i32 %257, %252
  store i32 %258, ptr %256, align 8, !tbaa !17
  br label %259

259:                                              ; preds = %245, %239
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %19, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %19, align 4, !tbaa !5
  br label %213, !llvm.loop !22

263:                                              ; preds = %218
  br label %264

264:                                              ; preds = %263, %211
  br label %265

265:                                              ; preds = %264, %155
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %15, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %15, align 4, !tbaa !5
  br label %83, !llvm.loop !23

269:                                              ; preds = %87
  %270 = call ptr @_ZNSt6vectorI4teamSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %271 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %270, ptr %271, align 8
  %272 = call ptr @_ZNSt6vectorI4teamSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %273 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %272, ptr %273, align 8
  %274 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %275 = load ptr, ptr %274, align 8
  %276 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %277 = load ptr, ptr %276, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4teamSt6vectorIS2_SaIS2_EEEEPFbRKS2_S9_EEvT_SC_T0_(ptr %275, ptr %277, ptr noundef @_Z12compareTeamsRK4teamS1_)
          to label %278 unwind label %285

278:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %279

279:                                              ; preds = %298, %278
  %280 = load i32, ptr %22, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %283 = icmp ult i64 %281, %282
  br i1 %283, label %289, label %284

284:                                              ; preds = %279
  store i32 19, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %305

285:                                              ; preds = %269
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %10, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %11, align 4
  br label %306

289:                                              ; preds = %279
  %290 = load i32, ptr %22, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %291) #8
  %293 = getelementptr inbounds %struct.team, ptr %292, i32 0, i32 2
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %293)
          to label %295 unwind label %301

295:                                              ; preds = %289
  %296 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %294, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %297 unwind label %301

297:                                              ; preds = %295
  br label %298

298:                                              ; preds = %297
  %299 = load i32, ptr %22, align 4, !tbaa !5
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %22, align 4, !tbaa !5
  br label %279, !llvm.loop !24

301:                                              ; preds = %295, %289
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %10, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %306

305:                                              ; preds = %284
  call void @_ZNSt6vectorI4teamSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  br label %25, !llvm.loop !25

306:                                              ; preds = %301, %285, %107, %81
  call void @_ZNSt6vectorI4teamSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  br label %309

307:                                              ; preds = %25
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %308 = load i32, ptr %1, align 4
  ret i32 %308

309:                                              ; preds = %306, %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %310

310:                                              ; preds = %309
  %311 = load ptr, ptr %10, align 8
  %312 = load i32, ptr %11, align 4
  %313 = insertvalue { ptr, i32 } poison, ptr %311, 0
  %314 = insertvalue { ptr, i32 } %313, i32 %312, 1
  resume { ptr, i32 } %314
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 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)) #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4teamSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(52)) #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 @_ZN4teamC2Ev(ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4teamD2Ev(ptr noundef nonnull align 8 dereferenceable(52)) 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) #2

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

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

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

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

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

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

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

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

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

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

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

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

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


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<team, std::allocator<team>>::_Vector_impl" }
%"struct.std::_Vector_base<team, std::allocator<team>>::_Vector_impl" = type { %"struct.std::_Vector_base<team, std::allocator<team>>::_Vector_impl_data" }
%"struct.std::_Vector_base<team, std::allocator<team>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.team = type <{ i32, [4 x i8], %"class.std::__cxx11::basic_string", i32, i32, i32, [4 x i8] }>

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z12compareTeamsRK4teamS1_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(52)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 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 i32, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %struct.team, align 8
  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 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  %11 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %.preheader64 unwind label %.loopexit.split-lp

.preheader64:                                     ; preds = %0
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr %1, align 4, !tbaa !5
  %.not78 = icmp eq i32 %12, 0
  br i1 %.not78, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %.preheader64, %._crit_edge77
  %14 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %15 unwind label %.loopexit65

15:                                               ; preds = %.lr.ph79
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %17 unwind label %.loopexit65

17:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorI4teamSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %.preheader63

.preheader63:                                     ; preds = %30, %17
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph74, label %._crit_edge

.loopexit65:                                      ; preds = %.lr.ph79, %15
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %172

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

.lr.ph:                                           ; preds = %17, %30
  %indvars.iv = phi i64 [ %indvars.iv.next, %30 ], [ 0, %17 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %10, i8 0, i64 56, i1 false)
  call void @_ZN4teamC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %10) #8
  invoke void @_ZNSt6vectorI4teamSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(52) %10)
          to label %22 unwind label %40

22:                                               ; preds = %.lr.ph
  call void @_ZN4teamD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %10) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #8
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %24 unwind label %42

24:                                               ; preds = %22
  %25 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #8
  %26 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %26, ptr %25, align 8, !tbaa !9
  %27 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #8
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %30 unwind label %42

30:                                               ; preds = %24
  %31 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #8
  %32 = getelementptr inbounds i8, ptr %31, i64 40
  store i32 0, ptr %32, align 8, !tbaa !15
  %33 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #8
  %34 = getelementptr inbounds i8, ptr %33, i64 44
  store i32 0, ptr %34, align 4, !tbaa !16
  %35 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #8
  %36 = getelementptr inbounds i8, ptr %35, i64 48
  store i32 0, ptr %36, align 8, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %.lr.ph, label %.preheader63, !llvm.loop !18

40:                                               ; preds = %.lr.ph
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4teamD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %10) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #8
  br label %171

42:                                               ; preds = %24, %22
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %171

._crit_edge:                                      ; preds = %.loopexit, %.preheader63
  %44 = call ptr @_ZNSt6vectorI4teamSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %45 = call ptr @_ZNSt6vectorI4teamSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4teamSt6vectorIS2_SaIS2_EEEEPFbRKS2_S9_EEvT_SC_T0_(ptr %44, ptr %45, ptr noundef nonnull @_Z12compareTeamsRK4teamS1_)
          to label %.preheader62 unwind label %159

.preheader62:                                     ; preds = %._crit_edge
  %46 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %.not84 = icmp eq i64 %46, 0
  br i1 %.not84, label %._crit_edge77, label %.lr.ph76

.lr.ph74:                                         ; preds = %.preheader63, %.loopexit
  %.04473 = phi i32 [ %154, %.loopexit ], [ 0, %.preheader63 ]
  %47 = 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 %48 unwind label %59

48:                                               ; preds = %.lr.ph74
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %50 unwind label %59

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %52 unwind label %59

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %54 unwind label %59

54:                                               ; preds = %52
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = icmp sgt i32 %55, %56
  br i1 %57, label %.preheader, label %91

.preheader:                                       ; preds = %54
  %58 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %.not83 = icmp eq i64 %58, 0
  br i1 %.not83, label %.loopexit, label %.lr.ph72

59:                                               ; preds = %52, %50, %48, %.lr.ph74
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %171

.lr.ph72:                                         ; preds = %.preheader, %88
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %88 ], [ 0, %.preheader ]
  %61 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv94) #8
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br i1 %63, label %64, label %78

64:                                               ; preds = %.lr.ph72
  %65 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv94) #8
  %66 = getelementptr inbounds i8, ptr %65, i64 40
  %67 = load i32, ptr %66, align 8, !tbaa !15
  %68 = add nsw i32 %67, 3
  store i32 %68, ptr %66, align 8, !tbaa !15
  %69 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv94) #8
  %70 = getelementptr inbounds i8, ptr %69, i64 44
  %71 = load i32, ptr %70, align 4, !tbaa !16
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !16
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv94) #8
  %75 = getelementptr inbounds i8, ptr %74, i64 48
  %76 = load i32, ptr %75, align 8, !tbaa !17
  %77 = add nsw i32 %76, %73
  store i32 %77, ptr %75, align 8, !tbaa !17
  br label %78

78:                                               ; preds = %64, %.lr.ph72
  %79 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv94) #8
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %80, ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br i1 %81, label %82, label %88

82:                                               ; preds = %78
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv94) #8
  %85 = getelementptr inbounds i8, ptr %84, i64 48
  %86 = load i32, ptr %85, align 8, !tbaa !17
  %87 = add nsw i32 %86, %83
  store i32 %87, ptr %85, align 8, !tbaa !17
  br label %88

88:                                               ; preds = %78, %82
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %89 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %90 = icmp ugt i64 %89, %indvars.iv.next95
  br i1 %90, label %.lr.ph72, label %.loopexit, !llvm.loop !20

91:                                               ; preds = %54
  %92 = icmp slt i32 %55, %56
  %93 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %.not82 = icmp eq i64 %93, 0
  br i1 %92, label %.preheader58, label %.preheader60

.preheader60:                                     ; preds = %91
  br i1 %.not82, label %.loopexit, label %.lr.ph68

.preheader58:                                     ; preds = %91
  br i1 %.not82, label %.loopexit, label %.lr.ph70

.lr.ph70:                                         ; preds = %.preheader58, %121
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %121 ], [ 0, %.preheader58 ]
  %94 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv91) #8
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %95, ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br i1 %96, label %97, label %111

97:                                               ; preds = %.lr.ph70
  %98 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv91) #8
  %99 = getelementptr inbounds i8, ptr %98, i64 40
  %100 = load i32, ptr %99, align 8, !tbaa !15
  %101 = add nsw i32 %100, 3
  store i32 %101, ptr %99, align 8, !tbaa !15
  %102 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv91) #8
  %103 = getelementptr inbounds i8, ptr %102, i64 44
  %104 = load i32, ptr %103, align 4, !tbaa !16
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %103, align 4, !tbaa !16
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv91) #8
  %108 = getelementptr inbounds i8, ptr %107, i64 48
  %109 = load i32, ptr %108, align 8, !tbaa !17
  %110 = add nsw i32 %109, %106
  store i32 %110, ptr %108, align 8, !tbaa !17
  br label %111

111:                                              ; preds = %97, %.lr.ph70
  %112 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv91) #8
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %113, ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br i1 %114, label %115, label %121

115:                                              ; preds = %111
  %116 = load i32, ptr %4, align 4, !tbaa !5
  %117 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv91) #8
  %118 = getelementptr inbounds i8, ptr %117, i64 48
  %119 = load i32, ptr %118, align 8, !tbaa !17
  %120 = add nsw i32 %119, %116
  store i32 %120, ptr %118, align 8, !tbaa !17
  br label %121

121:                                              ; preds = %111, %115
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %122 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %123 = icmp ugt i64 %122, %indvars.iv.next92
  br i1 %123, label %.lr.ph70, label %.loopexit, !llvm.loop !21

.lr.ph68:                                         ; preds = %.preheader60, %151
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %151 ], [ 0, %.preheader60 ]
  %124 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv88) #8
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  %126 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %125, ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br i1 %126, label %127, label %137

127:                                              ; preds = %.lr.ph68
  %128 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv88) #8
  %129 = getelementptr inbounds i8, ptr %128, i64 40
  %130 = load i32, ptr %129, align 8, !tbaa !15
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %129, align 8, !tbaa !15
  %132 = load i32, ptr %4, align 4, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv88) #8
  %134 = getelementptr inbounds i8, ptr %133, i64 48
  %135 = load i32, ptr %134, align 8, !tbaa !17
  %136 = add nsw i32 %135, %132
  store i32 %136, ptr %134, align 8, !tbaa !17
  br label %137

137:                                              ; preds = %127, %.lr.ph68
  %138 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv88) #8
  %139 = getelementptr inbounds i8, ptr %138, i64 8
  %140 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %139, ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br i1 %140, label %141, label %151

141:                                              ; preds = %137
  %142 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv88) #8
  %143 = getelementptr inbounds i8, ptr %142, i64 40
  %144 = load i32, ptr %143, align 8, !tbaa !15
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %143, align 8, !tbaa !15
  %146 = load i32, ptr %5, align 4, !tbaa !5
  %147 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv88) #8
  %148 = getelementptr inbounds i8, ptr %147, i64 48
  %149 = load i32, ptr %148, align 8, !tbaa !17
  %150 = add nsw i32 %149, %146
  store i32 %150, ptr %148, align 8, !tbaa !17
  br label %151

151:                                              ; preds = %137, %141
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %152 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %153 = icmp ugt i64 %152, %indvars.iv.next89
  br i1 %153, label %.lr.ph68, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %151, %121, %88, %.preheader60, %.preheader58, %.preheader
  %154 = add nuw nsw i32 %.04473, 1
  %155 = load i32, ptr %3, align 4, !tbaa !5
  %156 = icmp slt i32 %154, %155
  br i1 %156, label %.lr.ph74, label %._crit_edge, !llvm.loop !23

._crit_edge77:                                    ; preds = %166, %.preheader62
  call void @_ZNSt6vectorI4teamSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  %157 = load i32, ptr %1, align 4, !tbaa !5
  %158 = add nsw i32 %157, -1
  store i32 %158, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %157, 0
  br i1 %.not, label %._crit_edge80, label %.lr.ph79, !llvm.loop !24

159:                                              ; preds = %._crit_edge
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %171

.lr.ph76:                                         ; preds = %.preheader62, %166
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %166 ], [ 0, %.preheader62 ]
  %161 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorI4teamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv97) #8
  %162 = getelementptr inbounds i8, ptr %161, i64 8
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %162)
          to label %164 unwind label %169

164:                                              ; preds = %.lr.ph76
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %166 unwind label %169

166:                                              ; preds = %164
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %167 = call noundef i64 @_ZNKSt6vectorI4teamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %168 = icmp ugt i64 %167, %indvars.iv.next98
  br i1 %168, label %.lr.ph76, label %._crit_edge77, !llvm.loop !25

169:                                              ; preds = %164, %.lr.ph76
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %171

171:                                              ; preds = %40, %42, %169, %159, %59
  %.pn.pn = phi { ptr, i32 } [ %60, %59 ], [ %170, %169 ], [ %160, %159 ], [ %43, %42 ], [ %41, %40 ]
  call void @_ZNSt6vectorI4teamSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  br label %172

._crit_edge80:                                    ; preds = %._crit_edge77, %.preheader64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, 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

172:                                              ; preds = %.loopexit65, %.loopexit.split-lp, %171
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %171 ], [ %lpad.loopexit, %.loopexit65 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, 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 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 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 #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4teamSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(52)) 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 @_ZN4teamC2Ev(ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4teamD2Ev(ptr noundef nonnull align 8 dereferenceable(52)) 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) #2

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

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

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

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

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

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

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

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

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

; 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 @_ZNSt6vectorI4teamSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass