; LLVM IR from ShahjalalShohag/code-library :: Graph Theory (Kirchoffs Theorem)

; 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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_pbds::gp_hash_table" = type { %"class.__gnu_pbds::basic_hash_table" }
%"class.__gnu_pbds::basic_hash_table" = type { %"class.__gnu_pbds::detail::gp_ht_map" }
%"class.__gnu_pbds::detail::gp_ht_map" = type { %"class.__gnu_pbds::hash_standard_resize_policy", %"class.__gnu_pbds::detail::ranged_probe_fn", [8 x i8], i64, i64, ptr }
%"class.__gnu_pbds::hash_standard_resize_policy" = type { %"class.__gnu_pbds::hash_load_check_resize_trigger.base", %"class.__gnu_pbds::hash_exponential_size_policy", i64 }
%"class.__gnu_pbds::hash_load_check_resize_trigger.base" = type <{ ptr, float, float, i64, i64, i8 }>
%"class.__gnu_pbds::hash_exponential_size_policy" = type { i64, i64 }
%"class.__gnu_pbds::detail::ranged_probe_fn" = type { %"class.__gnu_pbds::direct_mask_range_hashing" }
%"class.__gnu_pbds::direct_mask_range_hashing" = type { %"class.__gnu_pbds::detail::mask_based_range_hashing" }
%"class.__gnu_pbds::detail::mask_based_range_hashing" = type { i64 }
%"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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.dsu = type <{ %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", i32, [4 x i8] }>
%"struct.std::array" = type { [3 x i32] }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator.10" }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }

@w = external dso_local global [205 x [205 x i32]], align 16
@deg = external dso_local global [205 x i32], align 16
@vis = external dso_local global [205 x i32], align 16
@g = external dso_local global [205 x %"class.std::vector.0"], align 16
@f = external dso_local global i32, align 4
@mp = external dso_local global %"class.__gnu_pbds::gp_hash_table", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3detSt6vectorIS_IiSaIiEESaIS1_EE(ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 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::vector.5", align 8
  %7 = alloca %struct.dsu, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::array", align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::reverse_iterator", align 8
  %17 = alloca %"class.std::reverse_iterator", align 8
  %18 = alloca %struct.dsu, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::vector", align 8
  %28 = alloca %"class.std::vector.0", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::allocator.2", align 1
  %31 = alloca %"class.std::allocator", align 1
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::vector", align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %38 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %39 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %40 = getelementptr i8, ptr %39, i64 -24
  %41 = load i64, ptr %40, align 8
  %42 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %41
  %43 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %42, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !8
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %45

45:                                               ; preds = %437, %435, %0
  %46 = load i32, ptr %2, align 4, !tbaa !8
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr %2, align 4, !tbaa !8
  %48 = icmp ne i32 %46, 0
  br i1 %48, label %49, label %445

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #8
  %52 = load i32, ptr %4, align 4, !tbaa !8
  invoke void @_ZN3dsuC2Ei(ptr noundef nonnull align 8 dereferenceable(76) %7, i32 noundef %52)
          to label %53 unwind label %59

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %54

54:                                               ; preds = %81, %53
  %55 = load i32, ptr %10, align 4, !tbaa !8
  %56 = load i32, ptr %5, align 4, !tbaa !8
  %57 = icmp sle i32 %55, %56
  br i1 %57, label %63, label %58

58:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %93

59:                                               ; preds = %49
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  br label %444

63:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %65 unwind label %84

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %67 unwind label %84

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %69 unwind label %84

69:                                               ; preds = %67
  %70 = load i32, ptr %11, align 4, !tbaa !8
  %71 = load i32, ptr %12, align 4, !tbaa !8
  %72 = invoke noundef i32 @_ZN3dsu5mergeEii(ptr noundef nonnull align 8 dereferenceable(76) %7, i32 noundef %70, i32 noundef %71)
          to label %73 unwind label %84

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #8
  %74 = getelementptr inbounds %"struct.std::array", ptr %14, i32 0, i32 0
  %75 = load i32, ptr %13, align 4, !tbaa !8
  store i32 %75, ptr %74, align 4, !tbaa !8
  %76 = getelementptr inbounds i32, ptr %74, i64 1
  %77 = load i32, ptr %11, align 4, !tbaa !8
  store i32 %77, ptr %76, align 4, !tbaa !8
  %78 = getelementptr inbounds i32, ptr %74, i64 2
  %79 = load i32, ptr %12, align 4, !tbaa !8
  store i32 %79, ptr %78, align 4, !tbaa !8
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %80 unwind label %88

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

81:                                               ; preds = %80
  %82 = load i32, ptr %10, align 4, !tbaa !8
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %10, align 4, !tbaa !8
  br label %54, !llvm.loop !11

84:                                               ; preds = %69, %67, %65, %63
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  br label %92

88:                                               ; preds = %73
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  br label %92

92:                                               ; preds = %88, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %443

93:                                               ; preds = %58
  %94 = invoke noundef i32 @_ZN3dsu5countEv(ptr noundef nonnull align 8 dereferenceable(76) %7)
          to label %95 unwind label %110

95:                                               ; preds = %93
  %96 = icmp ne i32 %94, 1
  br i1 %96, label %97, label %114

97:                                               ; preds = %95
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %99 unwind label %110

99:                                               ; preds = %97
  %100 = load i32, ptr %3, align 4, !tbaa !8
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %3, align 4, !tbaa !8
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %98, i32 noundef %101)
          to label %103 unwind label %110

103:                                              ; preds = %99
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef @.str.3)
          to label %105 unwind label %110

105:                                              ; preds = %103
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %104, i32 noundef 0)
          to label %107 unwind label %110

107:                                              ; preds = %105
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %106, i8 noundef signext 10)
          to label %109 unwind label %110

109:                                              ; preds = %107
  store i32 2, ptr %15, align 4
  br label %435, !llvm.loop !13

110:                                              ; preds = %114, %107, %105, %103, %99, %97, %93
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  br label %443

114:                                              ; preds = %95
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  invoke void @_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS4_SaIS4_EEEEEEvT_SB_(ptr noundef %16, ptr noundef %17)
          to label %115 unwind label %110

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 80, ptr %18) #8
  %116 = load i32, ptr %4, align 4, !tbaa !8
  invoke void @_ZN3dsuC2Ei(ptr noundef nonnull align 8 dereferenceable(76) %18, i32 noundef %116)
          to label %117 unwind label %124

117:                                              ; preds = %115
  %118 = call noundef nonnull align 8 dereferenceable(76) ptr @_ZN3dsuaSEOS_(ptr noundef nonnull align 8 dereferenceable(76) %7, ptr noundef nonnull align 8 dereferenceable(76) %18) #8
  call void @_ZN3dsuD2Ev(ptr noundef nonnull align 8 dereferenceable(76) %18) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 1, ptr %19, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  br label %119

119:                                              ; preds = %418, %117
  %120 = load i32, ptr %20, align 4, !tbaa !8
  %121 = load i32, ptr %5, align 4, !tbaa !8
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %128, label %123

123:                                              ; preds = %119
  store i32 7, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %421

124:                                              ; preds = %115
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %8, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #8
  br label %443

128:                                              ; preds = %119
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 820, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 1, ptr %22, align 4, !tbaa !8
  br label %129

129:                                              ; preds = %138, %128
  %130 = load i32, ptr %22, align 4, !tbaa !8
  %131 = load i32, ptr %4, align 4, !tbaa !8
  %132 = icmp sle i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 10, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %141

134:                                              ; preds = %129
  %135 = load i32, ptr %22, align 4, !tbaa !8
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [205 x %"class.std::vector.0"], ptr @g, i64 0, i64 %136
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #8
  br label %138

138:                                              ; preds = %134
  %139 = load i32, ptr %22, align 4, !tbaa !8
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %22, align 4, !tbaa !8
  br label %129, !llvm.loop !14

141:                                              ; preds = %133
  store i32 0, ptr @f, align 4, !tbaa !8
  %142 = load i32, ptr %20, align 4, !tbaa !8
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %143) #8
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %144, i64 noundef 1) #8
  %146 = load i32, ptr %145, align 4, !tbaa !8
  %147 = invoke noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76) %7, i32 noundef %146)
          to label %148 unwind label %196

148:                                              ; preds = %141
  %149 = load i32, ptr %20, align 4, !tbaa !8
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %150) #8
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %151, i64 noundef 2) #8
  %153 = load i32, ptr %152, align 4, !tbaa !8
  %154 = invoke noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76) %7, i32 noundef %153)
          to label %155 unwind label %196

155:                                              ; preds = %148
  invoke void @_Z3addii(i32 noundef %147, i32 noundef %154)
          to label %156 unwind label %196

156:                                              ; preds = %155
  %157 = load i32, ptr %20, align 4, !tbaa !8
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %21, align 4, !tbaa !8
  br label %159

159:                                              ; preds = %193, %156
  %160 = load i32, ptr %21, align 4, !tbaa !8
  %161 = load i32, ptr %5, align 4, !tbaa !8
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %163, label %175

163:                                              ; preds = %159
  %164 = load i32, ptr %20, align 4, !tbaa !8
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %165) #8
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %166, i64 noundef 0) #8
  %168 = load i32, ptr %167, align 4, !tbaa !8
  %169 = load i32, ptr %21, align 4, !tbaa !8
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %170) #8
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %171, i64 noundef 0) #8
  %173 = load i32, ptr %172, align 4, !tbaa !8
  %174 = icmp eq i32 %168, %173
  br label %175

175:                                              ; preds = %163, %159
  %176 = phi i1 [ false, %159 ], [ %174, %163 ]
  br i1 %176, label %177, label %200

177:                                              ; preds = %175
  %178 = load i32, ptr %21, align 4, !tbaa !8
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %179) #8
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %180, i64 noundef 1) #8
  %182 = load i32, ptr %181, align 4, !tbaa !8
  %183 = invoke noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76) %7, i32 noundef %182)
          to label %184 unwind label %196

184:                                              ; preds = %177
  %185 = load i32, ptr %21, align 4, !tbaa !8
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %186) #8
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %187, i64 noundef 2) #8
  %189 = load i32, ptr %188, align 4, !tbaa !8
  %190 = invoke noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76) %7, i32 noundef %189)
          to label %191 unwind label %196

191:                                              ; preds = %184
  invoke void @_Z3addii(i32 noundef %183, i32 noundef %190)
          to label %192 unwind label %196

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %21, align 4, !tbaa !8
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %21, align 4, !tbaa !8
  br label %159, !llvm.loop !15

196:                                              ; preds = %191, %184, %177, %155, %148, %141
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %8, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %9, align 4
  br label %420

200:                                              ; preds = %175
  %201 = load i32, ptr @f, align 4, !tbaa !8
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %204, label %203

203:                                              ; preds = %200
  br label %418

204:                                              ; preds = %200
  call void @llvm.memset.p0.i64(ptr align 16 @w, i8 0, i64 168100, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @deg, i8 0, i64 820, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 1, ptr %23, align 4, !tbaa !8
  br label %205

205:                                              ; preds = %386, %204
  %206 = load i32, ptr %23, align 4, !tbaa !8
  %207 = load i32, ptr %4, align 4, !tbaa !8
  %208 = icmp sle i32 %206, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %205
  store i32 16, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %390

210:                                              ; preds = %205
  %211 = load i32, ptr %23, align 4, !tbaa !8
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [205 x i32], ptr @vis, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !8
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %385, label %216

216:                                              ; preds = %210
  invoke void @_ZN10__gnu_pbds6detail9gp_ht_mapIiiNSt3tr14hashIiEESt8equal_toIiESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb0EmEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(104) @mp)
          to label %217 unwind label %226

217:                                              ; preds = %216
  %218 = load i32, ptr %23, align 4, !tbaa !8
  invoke void @_Z3dfsi(i32 noundef %218)
          to label %219 unwind label %226

219:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %220 = invoke noundef i64 @_ZNK10__gnu_pbds6detail9gp_ht_mapIiiNSt3tr14hashIiEESt8equal_toIiESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb0EmEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(104) @mp)
          to label %221 unwind label %230

221:                                              ; preds = %219
  %222 = trunc i64 %220 to i32
  store i32 %222, ptr %24, align 4, !tbaa !8
  %223 = load i32, ptr %24, align 4, !tbaa !8
  %224 = icmp sle i32 %223, 1
  br i1 %224, label %225, label %234

225:                                              ; preds = %221
  store i32 0, ptr getelementptr inbounds ([205 x i32], ptr getelementptr inbounds ([205 x [205 x i32]], ptr @w, i64 0, i64 1), i64 0, i64 1), align 4, !tbaa !8
  store i32 0, ptr getelementptr inbounds ([205 x i32], ptr @deg, i64 0, i64 1), align 4, !tbaa !8
  store i32 18, ptr %15, align 4
  br label %380

226:                                              ; preds = %217, %216
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %8, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %9, align 4
  br label %389

230:                                              ; preds = %219
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %8, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %9, align 4
  br label %384

234:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 1, ptr %25, align 4, !tbaa !8
  br label %235

235:                                              ; preds = %282, %234
  %236 = load i32, ptr %25, align 4, !tbaa !8
  %237 = load i32, ptr %24, align 4, !tbaa !8
  %238 = icmp sle i32 %236, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %235
  store i32 19, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %285

240:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 1, ptr %26, align 4, !tbaa !8
  br label %241

241:                                              ; preds = %278, %240
  %242 = load i32, ptr %26, align 4, !tbaa !8
  %243 = load i32, ptr %24, align 4, !tbaa !8
  %244 = icmp sle i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  store i32 22, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %281

246:                                              ; preds = %241
  %247 = load i32, ptr %25, align 4, !tbaa !8
  %248 = load i32, ptr %26, align 4, !tbaa !8
  %249 = icmp eq i32 %247, %248
  br i1 %249, label %250, label %261

250:                                              ; preds = %246
  %251 = load i32, ptr %25, align 4, !tbaa !8
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [205 x i32], ptr @deg, i64 0, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !8
  %255 = load i32, ptr %25, align 4, !tbaa !8
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [205 x [205 x i32]], ptr @w, i64 0, i64 %256
  %258 = load i32, ptr %26, align 4, !tbaa !8
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [205 x i32], ptr %257, i64 0, i64 %259
  store i32 %254, ptr %260, align 4, !tbaa !8
  br label %277

261:                                              ; preds = %246
  %262 = load i32, ptr %25, align 4, !tbaa !8
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [205 x [205 x i32]], ptr @w, i64 0, i64 %263
  %265 = load i32, ptr %26, align 4, !tbaa !8
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [205 x i32], ptr %264, i64 0, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !8
  %269 = sub nsw i32 1000210433, %268
  %270 = srem i32 %269, 1000210433
  %271 = load i32, ptr %25, align 4, !tbaa !8
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [205 x [205 x i32]], ptr @w, i64 0, i64 %272
  %274 = load i32, ptr %26, align 4, !tbaa !8
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [205 x i32], ptr %273, i64 0, i64 %275
  store i32 %270, ptr %276, align 4, !tbaa !8
  br label %277

277:                                              ; preds = %261, %250
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %26, align 4, !tbaa !8
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %26, align 4, !tbaa !8
  br label %241, !llvm.loop !16

281:                                              ; preds = %245
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %25, align 4, !tbaa !8
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %25, align 4, !tbaa !8
  br label %235, !llvm.loop !17

285:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #8
  %286 = load i32, ptr %24, align 4, !tbaa !8
  %287 = sub nsw i32 %286, 1
  %288 = sext i32 %287 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  %289 = load i32, ptr %24, align 4, !tbaa !8
  %290 = sub nsw i32 %289, 1
  %291 = sext i32 %290 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %291, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %292 unwind label %299

292:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #8
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #8
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %288, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %293 unwind label %303

293:                                              ; preds = %292
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 1, ptr %32, align 4, !tbaa !8
  br label %294

294:                                              ; preds = %334, %293
  %295 = load i32, ptr %32, align 4, !tbaa !8
  %296 = load i32, ptr %24, align 4, !tbaa !8
  %297 = icmp slt i32 %295, %296
  br i1 %297, label %308, label %298

298:                                              ; preds = %294
  store i32 25, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %337

299:                                              ; preds = %285
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %8, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %9, align 4
  br label %307

303:                                              ; preds = %292
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %8, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br label %307

307:                                              ; preds = %303, %299
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  br label %383

308:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 1, ptr %33, align 4, !tbaa !8
  br label %309

309:                                              ; preds = %330, %308
  %310 = load i32, ptr %33, align 4, !tbaa !8
  %311 = load i32, ptr %24, align 4, !tbaa !8
  %312 = icmp slt i32 %310, %311
  br i1 %312, label %314, label %313

313:                                              ; preds = %309
  store i32 28, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %333

314:                                              ; preds = %309
  %315 = load i32, ptr %32, align 4, !tbaa !8
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [205 x [205 x i32]], ptr @w, i64 0, i64 %316
  %318 = load i32, ptr %33, align 4, !tbaa !8
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [205 x i32], ptr %317, i64 0, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !8
  %322 = load i32, ptr %32, align 4, !tbaa !8
  %323 = sub nsw i32 %322, 1
  %324 = sext i32 %323 to i64
  %325 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %324) #8
  %326 = load i32, ptr %33, align 4, !tbaa !8
  %327 = sub nsw i32 %326, 1
  %328 = sext i32 %327 to i64
  %329 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %325, i64 noundef %328) #8
  store i32 %321, ptr %329, align 4, !tbaa !8
  br label %330

330:                                              ; preds = %314
  %331 = load i32, ptr %33, align 4, !tbaa !8
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %33, align 4, !tbaa !8
  br label %309, !llvm.loop !18

333:                                              ; preds = %313
  br label %334

334:                                              ; preds = %333
  %335 = load i32, ptr %32, align 4, !tbaa !8
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %32, align 4, !tbaa !8
  br label %294, !llvm.loop !19

337:                                              ; preds = %298
  %338 = load i32, ptr %19, align 4, !tbaa !8
  %339 = sext i32 %338 to i64
  %340 = mul nsw i64 1, %339
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %341 unwind label %352

341:                                              ; preds = %337
  %342 = call noundef i32 @_Z3detSt6vectorIS_IiSaIiEESaIS1_EE(ptr noundef %34)
  %343 = sext i32 %342 to i64
  %344 = mul nsw i64 %340, %343
  %345 = srem i64 %344, 1000210433
  %346 = trunc i64 %345 to i32
  store i32 %346, ptr %19, align 4, !tbaa !8
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 1, ptr %35, align 4, !tbaa !8
  br label %347

347:                                              ; preds = %376, %341
  %348 = load i32, ptr %35, align 4, !tbaa !8
  %349 = load i32, ptr %24, align 4, !tbaa !8
  %350 = icmp sle i32 %348, %349
  br i1 %350, label %356, label %351

351:                                              ; preds = %347
  store i32 31, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %379

352:                                              ; preds = %337
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %8, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %9, align 4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  br label %383

356:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 1, ptr %36, align 4, !tbaa !8
  br label %357

357:                                              ; preds = %369, %356
  %358 = load i32, ptr %36, align 4, !tbaa !8
  %359 = load i32, ptr %24, align 4, !tbaa !8
  %360 = icmp sle i32 %358, %359
  br i1 %360, label %362, label %361

361:                                              ; preds = %357
  store i32 34, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %372

362:                                              ; preds = %357
  %363 = load i32, ptr %35, align 4, !tbaa !8
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [205 x [205 x i32]], ptr @w, i64 0, i64 %364
  %366 = load i32, ptr %36, align 4, !tbaa !8
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [205 x i32], ptr %365, i64 0, i64 %367
  store i32 0, ptr %368, align 4, !tbaa !8
  br label %369

369:                                              ; preds = %362
  %370 = load i32, ptr %36, align 4, !tbaa !8
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %36, align 4, !tbaa !8
  br label %357, !llvm.loop !20

372:                                              ; preds = %361
  %373 = load i32, ptr %35, align 4, !tbaa !8
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [205 x i32], ptr @deg, i64 0, i64 %374
  store i32 0, ptr %375, align 4, !tbaa !8
  br label %376

376:                                              ; preds = %372
  %377 = load i32, ptr %35, align 4, !tbaa !8
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %35, align 4, !tbaa !8
  br label %347, !llvm.loop !21

379:                                              ; preds = %351
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  store i32 0, ptr %15, align 4
  br label %380

380:                                              ; preds = %379, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %381 = load i32, ptr %15, align 4
  switch i32 %381, label %452 [
    i32 0, label %382
    i32 18, label %386
  ]

382:                                              ; preds = %380
  br label %385

383:                                              ; preds = %352, %307
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  br label %384

384:                                              ; preds = %383, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %389

385:                                              ; preds = %382, %210
  br label %386

386:                                              ; preds = %385, %380
  %387 = load i32, ptr %23, align 4, !tbaa !8
  %388 = add nsw i32 %387, 1
  store i32 %388, ptr %23, align 4, !tbaa !8
  br label %205, !llvm.loop !22

389:                                              ; preds = %384, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %420

390:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %391 = load i32, ptr %20, align 4, !tbaa !8
  store i32 %391, ptr %37, align 4, !tbaa !8
  br label %392

392:                                              ; preds = %410, %390
  %393 = load i32, ptr %37, align 4, !tbaa !8
  %394 = load i32, ptr %21, align 4, !tbaa !8
  %395 = icmp slt i32 %393, %394
  br i1 %395, label %397, label %396

396:                                              ; preds = %392
  store i32 37, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %417

397:                                              ; preds = %392
  %398 = load i32, ptr %37, align 4, !tbaa !8
  %399 = sext i32 %398 to i64
  %400 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %399) #8
  %401 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %400, i64 noundef 1) #8
  %402 = load i32, ptr %401, align 4, !tbaa !8
  %403 = load i32, ptr %37, align 4, !tbaa !8
  %404 = sext i32 %403 to i64
  %405 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %404) #8
  %406 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %405, i64 noundef 2) #8
  %407 = load i32, ptr %406, align 4, !tbaa !8
  %408 = invoke noundef i32 @_ZN3dsu5mergeEii(ptr noundef nonnull align 8 dereferenceable(76) %7, i32 noundef %402, i32 noundef %407)
          to label %409 unwind label %413

409:                                              ; preds = %397
  br label %410

410:                                              ; preds = %409
  %411 = load i32, ptr %37, align 4, !tbaa !8
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %37, align 4, !tbaa !8
  br label %392, !llvm.loop !23

413:                                              ; preds = %397
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %8, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %420

417:                                              ; preds = %396
  br label %418

418:                                              ; preds = %417, %203
  %419 = load i32, ptr %21, align 4, !tbaa !8
  store i32 %419, ptr %20, align 4, !tbaa !8
  br label %119, !llvm.loop !24

420:                                              ; preds = %413, %389, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %442

421:                                              ; preds = %123
  %422 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %423 unwind label %438

423:                                              ; preds = %421
  %424 = load i32, ptr %3, align 4, !tbaa !8
  %425 = add nsw i32 %424, 1
  store i32 %425, ptr %3, align 4, !tbaa !8
  %426 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %422, i32 noundef %425)
          to label %427 unwind label %438

427:                                              ; preds = %423
  %428 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %426, ptr noundef @.str.3)
          to label %429 unwind label %438

429:                                              ; preds = %427
  %430 = load i32, ptr %19, align 4, !tbaa !8
  %431 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %428, i32 noundef %430)
          to label %432 unwind label %438

432:                                              ; preds = %429
  %433 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %431, i8 noundef signext 10)
          to label %434 unwind label %438

434:                                              ; preds = %432
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  store i32 0, ptr %15, align 4
  br label %435

435:                                              ; preds = %434, %109
  call void @_ZN3dsuD2Ev(ptr noundef nonnull align 8 dereferenceable(76) %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #8
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, 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
  %436 = load i32, ptr %15, align 4
  switch i32 %436, label %452 [
    i32 0, label %437
    i32 2, label %45
  ]

437:                                              ; preds = %435
  br label %45, !llvm.loop !13

438:                                              ; preds = %432, %429, %427, %423, %421
  %439 = landingpad { ptr, i32 }
          cleanup
  %440 = extractvalue { ptr, i32 } %439, 0
  store ptr %440, ptr %8, align 8
  %441 = extractvalue { ptr, i32 } %439, 1
  store i32 %441, ptr %9, align 4
  br label %442

442:                                              ; preds = %438, %420
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %443

443:                                              ; preds = %442, %124, %110, %92
  call void @_ZN3dsuD2Ev(ptr noundef nonnull align 8 dereferenceable(76) %7) #8
  br label %444

444:                                              ; preds = %443, %59
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #8
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, 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 %447

445:                                              ; preds = %45
  store i32 0, ptr %1, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %446 = load i32, ptr %1, align 4
  ret i32 %446

447:                                              ; preds = %444
  %448 = load ptr, ptr %8, align 8
  %449 = load i32, ptr %9, align 4
  %450 = insertvalue { ptr, i32 } poison, ptr %448, 0
  %451 = insertvalue { ptr, i32 } %450, i32 %449, 1
  resume { ptr, i32 } %451

452:                                              ; preds = %435, %380
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #1 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)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3dsuC2Ei(ptr noundef nonnull align 8 dereferenceable(76), i32 noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3dsu5mergeEii(ptr noundef nonnull align 8 dereferenceable(76), i32 noundef, i32 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3dsu5countEv(ptr noundef nonnull align 8 dereferenceable(76)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(76) ptr @_ZN3dsuaSEOS_(ptr noundef nonnull align 8 dereferenceable(76), ptr noundef nonnull align 8 dereferenceable(76)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z3addii(i32 noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76), i32 noundef) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds6detail9gp_ht_mapIiiNSt3tr14hashIiEESt8equal_toIiESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb0EmEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(104)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

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


; 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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_pbds::gp_hash_table" = type { %"class.__gnu_pbds::basic_hash_table" }
%"class.__gnu_pbds::basic_hash_table" = type { %"class.__gnu_pbds::detail::gp_ht_map" }
%"class.__gnu_pbds::detail::gp_ht_map" = type { %"class.__gnu_pbds::hash_standard_resize_policy", %"class.__gnu_pbds::detail::ranged_probe_fn", [8 x i8], i64, i64, ptr }
%"class.__gnu_pbds::hash_standard_resize_policy" = type { %"class.__gnu_pbds::hash_load_check_resize_trigger.base", %"class.__gnu_pbds::hash_exponential_size_policy", i64 }
%"class.__gnu_pbds::hash_load_check_resize_trigger.base" = type <{ ptr, float, float, i64, i64, i8 }>
%"class.__gnu_pbds::hash_exponential_size_policy" = type { i64, i64 }
%"class.__gnu_pbds::detail::ranged_probe_fn" = type { %"class.__gnu_pbds::direct_mask_range_hashing" }
%"class.__gnu_pbds::direct_mask_range_hashing" = type { %"class.__gnu_pbds::detail::mask_based_range_hashing" }
%"class.__gnu_pbds::detail::mask_based_range_hashing" = type { i64 }
%"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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.dsu = type <{ %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", i32, [4 x i8] }>
%"struct.std::array" = type { [3 x i32] }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator.10" }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }

@w = external dso_local local_unnamed_addr global [205 x [205 x i32]], align 16
@deg = external dso_local local_unnamed_addr global [205 x i32], align 16
@vis = external dso_local local_unnamed_addr global [205 x i32], align 16
@g = external dso_local global [205 x %"class.std::vector.0"], align 16
@f = external dso_local local_unnamed_addr global i32, align 4
@mp = external dso_local global %"class.__gnu_pbds::gp_hash_table", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3detSt6vectorIS_IiSaIiEESaIS1_EE(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 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.5", align 8
  %5 = alloca %struct.dsu, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::array", align 4
  %10 = alloca %"class.std::reverse_iterator", align 8
  %11 = alloca %"class.std::reverse_iterator", align 8
  %12 = alloca %struct.dsu, align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::vector.0", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::allocator.2", align 1
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::vector", align 8
  %19 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %20 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %22
  %24 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %23, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %26 = load i32, ptr %1, align 4, !tbaa !8
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr %1, align 4, !tbaa !8
  %.not177 = icmp eq i32 %26, 0
  br i1 %.not177, label %._crit_edge181, label %.lr.ph180

.lr.ph180:                                        ; preds = %0
  %28 = getelementptr inbounds i8, ptr %9, i64 4
  %29 = getelementptr inbounds i8, ptr %9, i64 8
  br label %30

30:                                               ; preds = %.lr.ph180, %209
  %.094178 = phi i32 [ 0, %.lr.ph180 ], [ %.195, %209 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #9
  %33 = load i32, ptr %2, align 4, !tbaa !8
  invoke void @_ZN3dsuC2Ei(ptr noundef nonnull align 8 dereferenceable(76) %5, i32 noundef %33)
          to label %.preheader125 unwind label %36

.preheader125:                                    ; preds = %30
  %34 = load i32, ptr %3, align 4, !tbaa !8
  %.not97139 = icmp slt i32 %34, 1
  br i1 %.not97139, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %51, %.preheader125
  %35 = call noundef i32 @_ZN3dsu5countEv(ptr noundef nonnull align 8 dereferenceable(76) %5)
  %.not98 = icmp eq i32 %35, 1
  br i1 %.not98, label %72, label %59

36:                                               ; preds = %30
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %215

.lr.ph:                                           ; preds = %.preheader125, %51
  %.080140 = phi i32 [ %52, %51 ], [ 1, %.preheader125 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %39 unwind label %54

39:                                               ; preds = %.lr.ph
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %41 unwind label %54

41:                                               ; preds = %39
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %43 unwind label %54

43:                                               ; preds = %41
  %44 = load i32, ptr %6, align 4, !tbaa !8
  %45 = load i32, ptr %7, align 4, !tbaa !8
  %46 = invoke noundef i32 @_ZN3dsu5mergeEii(ptr noundef nonnull align 8 dereferenceable(76) %5, i32 noundef %44, i32 noundef %45)
          to label %47 unwind label %54

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #9
  %48 = load i32, ptr %8, align 4, !tbaa !8
  store i32 %48, ptr %9, align 4, !tbaa !8
  %49 = load i32, ptr %6, align 4, !tbaa !8
  store i32 %49, ptr %28, align 4, !tbaa !8
  %50 = load i32, ptr %7, align 4, !tbaa !8
  store i32 %50, ptr %29, align 4, !tbaa !8
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %51 unwind label %56

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  %52 = add nuw nsw i32 %.080140, 1
  %53 = load i32, ptr %3, align 4, !tbaa !8
  %.not97.not = icmp slt i32 %.080140, %53
  br i1 %.not97.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

54:                                               ; preds = %43, %41, %39, %.lr.ph
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %47
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  br label %58

58:                                               ; preds = %56, %54
  %.pn115 = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %214

59:                                               ; preds = %._crit_edge
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %61 unwind label %70

61:                                               ; preds = %59
  %62 = add nsw i32 %.094178, 1
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %60, i32 noundef %62)
          to label %64 unwind label %70

64:                                               ; preds = %61
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.3)
          to label %66 unwind label %70

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %65, i32 noundef 0)
          to label %68 unwind label %70

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %67, i8 noundef signext 10)
          to label %209 unwind label %70, !llvm.loop !13

70:                                               ; preds = %72, %68, %66, %64, %61, %59
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %214

72:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  invoke void @_ZSt4sortISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS4_SaIS4_EEEEEEvT_SB_(ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %73 unwind label %70

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #9
  %74 = load i32, ptr %2, align 4, !tbaa !8
  invoke void @_ZN3dsuC2Ei(ptr noundef nonnull align 8 dereferenceable(76) %12, i32 noundef %74)
          to label %75 unwind label %80

75:                                               ; preds = %73
  %76 = call noundef nonnull align 8 dereferenceable(76) ptr @_ZN3dsuaSEOS_(ptr noundef nonnull align 8 dereferenceable(76) %5, ptr noundef nonnull align 8 dereferenceable(76) %12) #9
  call void @_ZN3dsuD2Ev(ptr noundef nonnull align 8 dereferenceable(76) %12) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #9
  %77 = load i32, ptr %3, align 4, !tbaa !8
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph174, label %._crit_edge175

._crit_edge175:                                   ; preds = %.loopexit, %75
  %.079.lcssa = phi i32 [ 1, %75 ], [ %.4, %.loopexit ]
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %200 unwind label %212

80:                                               ; preds = %73
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #9
  br label %214

.lr.ph174:                                        ; preds = %75, %.loopexit
  %.078172 = phi i32 [ %119, %.loopexit ], [ 0, %75 ]
  %.079171 = phi i32 [ %.4, %.loopexit ], [ 1, %75 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(820) @vis, i8 0, i64 820, i1 false)
  %82 = load i32, ptr %2, align 4, !tbaa !8
  %.not99141 = icmp slt i32 %82, 1
  br i1 %.not99141, label %._crit_edge145, label %.lr.ph144

._crit_edge145:                                   ; preds = %.lr.ph144, %.lr.ph174
  store i32 0, ptr @f, align 4, !tbaa !8
  %83 = sext i32 %.078172 to i64
  %84 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %83) #9
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %84, i64 noundef 1) #9
  %86 = load i32, ptr %85, align 4, !tbaa !8
  %87 = invoke noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76) %5, i32 noundef %86)
          to label %91 unwind label %.loopexit.split-lp

.lr.ph144:                                        ; preds = %.lr.ph174, %.lr.ph144
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph144 ], [ 1, %.lr.ph174 ]
  %88 = getelementptr inbounds [205 x %"class.std::vector.0"], ptr @g, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %89 = load i32, ptr %2, align 4, !tbaa !8
  %90 = sext i32 %89 to i64
  %.not99.not = icmp slt i64 %indvars.iv, %90
  br i1 %.not99.not, label %.lr.ph144, label %._crit_edge145, !llvm.loop !14

91:                                               ; preds = %._crit_edge145
  %92 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %83) #9
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %92, i64 noundef 2) #9
  %94 = load i32, ptr %93, align 4, !tbaa !8
  %95 = invoke noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76) %5, i32 noundef %94)
          to label %96 unwind label %.loopexit.split-lp

96:                                               ; preds = %91
  invoke void @_Z3addii(i32 noundef %87, i32 noundef %95)
          to label %.preheader123 unwind label %.loopexit.split-lp

.preheader123:                                    ; preds = %96, %118
  %indvars.iv220.in = phi i32 [ %indvars.iv220, %118 ], [ %.078172, %96 ]
  %indvars.iv185 = phi i64 [ %indvars.iv.next186, %118 ], [ %83, %96 ]
  %indvars.iv220 = add i32 %indvars.iv220.in, 1
  %indvars.iv.next186 = add nsw i64 %indvars.iv185, 1
  %97 = load i32, ptr %3, align 4, !tbaa !8
  %98 = sext i32 %97 to i64
  %99 = icmp slt i64 %indvars.iv.next186, %98
  br i1 %99, label %100, label %.critedge

100:                                              ; preds = %.preheader123
  %101 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %83) #9
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %101, i64 noundef 0) #9
  %103 = load i32, ptr %102, align 4, !tbaa !8
  %104 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next186) #9
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %104, i64 noundef 0) #9
  %106 = load i32, ptr %105, align 4, !tbaa !8
  %107 = icmp eq i32 %103, %106
  br i1 %107, label %108, label %.critedge

108:                                              ; preds = %100
  %109 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next186) #9
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %109, i64 noundef 1) #9
  %111 = load i32, ptr %110, align 4, !tbaa !8
  %112 = invoke noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76) %5, i32 noundef %111)
          to label %113 unwind label %.loopexit124

113:                                              ; preds = %108
  %114 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next186) #9
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %114, i64 noundef 2) #9
  %116 = load i32, ptr %115, align 4, !tbaa !8
  %117 = invoke noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76) %5, i32 noundef %116)
          to label %118 unwind label %.loopexit124

118:                                              ; preds = %113
  invoke void @_Z3addii(i32 noundef %112, i32 noundef %117)
          to label %.preheader123 unwind label %.loopexit124, !llvm.loop !15

.loopexit124:                                     ; preds = %108, %113, %118
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %214

.loopexit.split-lp:                               ; preds = %._crit_edge145, %91, %96
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %214

.critedge:                                        ; preds = %.preheader123, %100
  %119 = trunc nsw i64 %indvars.iv.next186 to i32
  %120 = trunc nsw i64 %indvars.iv185 to i32
  %121 = load i32, ptr @f, align 4, !tbaa !8
  %.not100 = icmp eq i32 %121, 0
  br i1 %.not100, label %.loopexit, label %122

122:                                              ; preds = %.critedge
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(168100) @w, i8 0, i64 168100, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(820) @deg, i8 0, i64 820, i1 false)
  %123 = load i32, ptr %2, align 4, !tbaa !8
  %.not101163 = icmp slt i32 %123, 1
  br i1 %.not101163, label %.preheader122, label %.lr.ph167

.preheader122:                                    ; preds = %185, %122
  %.1.lcssa = phi i32 [ %.079171, %122 ], [ %.3, %185 ]
  %.not102168 = icmp sgt i32 %.078172, %120
  br i1 %.not102168, label %.loopexit, label %.lr.ph170

.lr.ph167:                                        ; preds = %122, %185
  %indvars.iv214 = phi i64 [ %indvars.iv.next215, %185 ], [ 1, %122 ]
  %.1164 = phi i32 [ %.3, %185 ], [ %.079171, %122 ]
  %124 = getelementptr inbounds [205 x i32], ptr @vis, i64 0, i64 %indvars.iv214
  %125 = load i32, ptr %124, align 4, !tbaa !8
  %.not103 = icmp eq i32 %125, 0
  br i1 %.not103, label %126, label %185

126:                                              ; preds = %.lr.ph167
  invoke void @_ZN10__gnu_pbds6detail9gp_ht_mapIiiNSt3tr14hashIiEESt8equal_toIiESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb0EmEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(104) @mp)
          to label %127 unwind label %135

127:                                              ; preds = %126
  %128 = trunc nuw nsw i64 %indvars.iv214 to i32
  invoke void @_Z3dfsi(i32 noundef %128)
          to label %129 unwind label %135

129:                                              ; preds = %127
  %130 = call noundef i64 @_ZNK10__gnu_pbds6detail9gp_ht_mapIiiNSt3tr14hashIiEESt8equal_toIiESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb0EmEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(104) @mp)
  %131 = trunc i64 %130 to i32
  %132 = icmp slt i32 %131, 2
  br i1 %132, label %134, label %.preheader120.preheader

.preheader120.preheader:                          ; preds = %129
  %133 = add nuw nsw i64 %130, 1
  %wide.trip.count194 = and i64 %133, 4294967295
  br label %.preheader120

134:                                              ; preds = %129
  store i32 0, ptr getelementptr inbounds (i8, ptr @w, i64 824), align 8, !tbaa !8
  store i32 0, ptr getelementptr inbounds (i8, ptr @deg, i64 4), align 4, !tbaa !8
  br label %185

135:                                              ; preds = %127, %126
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %214

.preheader120:                                    ; preds = %.preheader120.preheader, %._crit_edge149
  %indvars.iv191 = phi i64 [ 1, %.preheader120.preheader ], [ %indvars.iv.next192, %._crit_edge149 ]
  %137 = getelementptr inbounds [205 x i32], ptr @deg, i64 0, i64 %indvars.iv191
  %138 = getelementptr inbounds [205 x [205 x i32]], ptr @w, i64 0, i64 %indvars.iv191, i64 %indvars.iv191
  br label %141

.split:                                           ; preds = %._crit_edge149
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  %139 = add i64 %130, 4294967295
  %140 = and i64 %139, 4294967295
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  store i32 0, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %140, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %151 unwind label %159

._crit_edge149:                                   ; preds = %150
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %exitcond195.not = icmp eq i64 %indvars.iv.next192, %wide.trip.count194
  br i1 %exitcond195.not, label %.split, label %.preheader120, !llvm.loop !16

141:                                              ; preds = %.preheader120, %150
  %indvars.iv188 = phi i64 [ 1, %.preheader120 ], [ %indvars.iv.next189, %150 ]
  %142 = icmp eq i64 %indvars.iv191, %indvars.iv188
  br i1 %142, label %143, label %145

143:                                              ; preds = %141
  %144 = load i32, ptr %137, align 4, !tbaa !8
  store i32 %144, ptr %138, align 4, !tbaa !8
  br label %150

145:                                              ; preds = %141
  %146 = getelementptr inbounds [205 x [205 x i32]], ptr @w, i64 0, i64 %indvars.iv191, i64 %indvars.iv188
  %147 = load i32, ptr %146, align 4, !tbaa !8
  %148 = sub nsw i32 1000210433, %147
  %149 = srem i32 %148, 1000210433
  store i32 %149, ptr %146, align 4, !tbaa !8
  br label %150

150:                                              ; preds = %143, %145
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next189, %wide.trip.count194
  br i1 %exitcond.not, label %._crit_edge149, label %141, !llvm.loop !17

151:                                              ; preds = %.split
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #9
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %140, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %.preheader119.us.preheader unwind label %161

.preheader119.us.preheader:                       ; preds = %151
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  %wide.trip.count204 = and i64 %130, 2147483647
  br label %.preheader119.us

.preheader119.us:                                 ; preds = %.preheader119.us.preheader, %._crit_edge153.us
  %indvars.iv201 = phi i64 [ 1, %.preheader119.us.preheader ], [ %indvars.iv.next202, %._crit_edge153.us ]
  %152 = add nsw i64 %indvars.iv201, -1
  br label %153

153:                                              ; preds = %.preheader119.us, %153
  %indvars.iv196 = phi i64 [ 1, %.preheader119.us ], [ %indvars.iv.next197, %153 ]
  %154 = getelementptr inbounds [205 x [205 x i32]], ptr @w, i64 0, i64 %indvars.iv201, i64 %indvars.iv196
  %155 = load i32, ptr %154, align 4, !tbaa !8
  %156 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %152) #9
  %157 = add nsw i64 %indvars.iv196, -1
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %157) #9
  store i32 %155, ptr %158, align 4, !tbaa !8
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %exitcond200.not = icmp eq i64 %indvars.iv.next197, %wide.trip.count204
  br i1 %exitcond200.not, label %._crit_edge153.us, label %153, !llvm.loop !18

._crit_edge153.us:                                ; preds = %153
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %exitcond205.not = icmp eq i64 %indvars.iv.next202, %wide.trip.count204
  br i1 %exitcond205.not, label %._crit_edge155.split.us, label %.preheader119.us, !llvm.loop !19

._crit_edge155.split.us:                          ; preds = %._crit_edge153.us
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %.preheader.preheader unwind label %182

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

161:                                              ; preds = %151
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br label %163

163:                                              ; preds = %161, %159
  %.pn = phi { ptr, i32 } [ %162, %161 ], [ %160, %159 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  br label %184

.preheader.preheader:                             ; preds = %._crit_edge155.split.us
  %164 = sext i32 %.1164 to i64
  %165 = call noundef i32 @_Z3detSt6vectorIS_IiSaIiEESaIS1_EE(ptr noundef nonnull %18)
  %166 = sext i32 %165 to i64
  %167 = mul nsw i64 %166, %164
  %168 = srem i64 %167, 1000210433
  %169 = trunc nsw i64 %168 to i32
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %smax = call i32 @llvm.smax.i32(i32 %131, i32 1)
  %170 = zext nneg i32 %smax to i64
  %171 = shl nuw nsw i64 %170, 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) getelementptr inbounds (i8, ptr @deg, i64 4), i8 0, i64 %171, i1 false), !tbaa !8
  %xtraiter = and i64 %170, 7
  %172 = icmp slt i32 %131, 8
  br i1 %172, label %._crit_edge162.split.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %170, 2147483640
  br label %.preheader

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %indvar = phi i64 [ 0, %.preheader.preheader.new ], [ %indvar.next.7, %.preheader ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.7, %.preheader ]
  %173 = mul nuw nsw i64 %indvar, 820
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 %173
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep, i8 0, i64 %171, i1 false), !tbaa !8
  %174 = mul nuw i64 %indvar, 820
  %gep237 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 820), i64 %174
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %gep237, i8 0, i64 %171, i1 false), !tbaa !8
  %175 = mul nuw i64 %indvar, 820
  %gep238 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 1640), i64 %175
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep238, i8 0, i64 %171, i1 false), !tbaa !8
  %176 = mul nuw i64 %indvar, 820
  %gep239 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 2460), i64 %176
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %gep239, i8 0, i64 %171, i1 false), !tbaa !8
  %177 = mul nuw i64 %indvar, 820
  %gep240 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 3280), i64 %177
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep240, i8 0, i64 %171, i1 false), !tbaa !8
  %178 = mul nuw i64 %indvar, 820
  %gep241 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 4100), i64 %178
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %gep241, i8 0, i64 %171, i1 false), !tbaa !8
  %179 = mul nuw i64 %indvar, 820
  %gep242 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 4920), i64 %179
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep242, i8 0, i64 %171, i1 false), !tbaa !8
  %180 = mul nuw i64 %indvar, 820
  %gep243 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 5740), i64 %180
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %gep243, i8 0, i64 %171, i1 false), !tbaa !8
  %indvar.next.7 = add nuw nsw i64 %indvar, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge162.split.unr-lcssa, label %.preheader, !llvm.loop !20

._crit_edge162.split.unr-lcssa:                   ; preds = %.preheader, %.preheader.preheader
  %indvar.unr = phi i64 [ 0, %.preheader.preheader ], [ %indvar.next.7, %.preheader ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge162.split, label %.preheader.epil

.preheader.epil:                                  ; preds = %._crit_edge162.split.unr-lcssa, %.preheader.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader.epil ], [ %indvar.unr, %._crit_edge162.split.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader.epil ], [ 0, %._crit_edge162.split.unr-lcssa ]
  %181 = mul nuw nsw i64 %indvar.epil, 820
  %gep.epil = getelementptr i8, ptr getelementptr inbounds (i8, ptr @w, i64 824), i64 %181
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %gep.epil, i8 0, i64 %171, i1 false), !tbaa !8
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge162.split, label %.preheader.epil, !llvm.loop !21

._crit_edge162.split:                             ; preds = %.preheader.epil, %._crit_edge162.split.unr-lcssa
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  br label %185

182:                                              ; preds = %._crit_edge155.split.us
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  br label %184

184:                                              ; preds = %182, %163
  %.pn106 = phi { ptr, i32 } [ %183, %182 ], [ %.pn, %163 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  br label %214

185:                                              ; preds = %134, %._crit_edge162.split, %.lr.ph167
  %.3 = phi i32 [ %.1164, %.lr.ph167 ], [ %.1164, %134 ], [ %169, %._crit_edge162.split ]
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
  %186 = load i32, ptr %2, align 4, !tbaa !8
  %187 = sext i32 %186 to i64
  %.not101.not = icmp slt i64 %indvars.iv214, %187
  br i1 %.not101.not, label %.lr.ph167, label %.preheader122, !llvm.loop !23

.lr.ph170:                                        ; preds = %.preheader122, %195
  %indvars.iv217 = phi i64 [ %indvars.iv.next218, %195 ], [ %83, %.preheader122 ]
  %188 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv217) #9
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %188, i64 noundef 1) #9
  %190 = load i32, ptr %189, align 4, !tbaa !8
  %191 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv217) #9
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %191, i64 noundef 2) #9
  %193 = load i32, ptr %192, align 4, !tbaa !8
  %194 = invoke noundef i32 @_ZN3dsu5mergeEii(ptr noundef nonnull align 8 dereferenceable(76) %5, i32 noundef %190, i32 noundef %193)
          to label %195 unwind label %196

195:                                              ; preds = %.lr.ph170
  %indvars.iv.next218 = add nsw i64 %indvars.iv217, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next218 to i32
  %exitcond223.not = icmp eq i32 %indvars.iv220, %lftr.wideiv
  br i1 %exitcond223.not, label %.loopexit, label %.lr.ph170, !llvm.loop !24

196:                                              ; preds = %.lr.ph170
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %214

.loopexit:                                        ; preds = %195, %.preheader122, %.critedge
  %.4 = phi i32 [ %.079171, %.critedge ], [ %.1.lcssa, %.preheader122 ], [ %.1.lcssa, %195 ]
  %198 = load i32, ptr %3, align 4, !tbaa !8
  %199 = icmp sgt i32 %198, %119
  br i1 %199, label %.lr.ph174, label %._crit_edge175, !llvm.loop !25

200:                                              ; preds = %._crit_edge175
  %201 = add nsw i32 %.094178, 1
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %79, i32 noundef %201)
          to label %203 unwind label %212

203:                                              ; preds = %200
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef nonnull @.str.3)
          to label %205 unwind label %212

205:                                              ; preds = %203
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %204, i32 noundef %.079.lcssa)
          to label %207 unwind label %212

207:                                              ; preds = %205
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %206, i8 noundef signext 10)
          to label %209 unwind label %212

209:                                              ; preds = %207, %68
  %.195 = phi i32 [ %62, %68 ], [ %201, %207 ]
  call void @_ZN3dsuD2Ev(ptr noundef nonnull align 8 dereferenceable(76) %5) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #9
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  %210 = load i32, ptr %1, align 4, !tbaa !8
  %211 = add nsw i32 %210, -1
  store i32 %211, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %210, 0
  br i1 %.not, label %._crit_edge181, label %30

212:                                              ; preds = %207, %205, %203, %200, %._crit_edge175
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %214

214:                                              ; preds = %.loopexit124, %.loopexit.split-lp, %212, %135, %184, %196, %80, %70, %58
  %.pn115.pn = phi { ptr, i32 } [ %.pn115, %58 ], [ %71, %70 ], [ %81, %80 ], [ %213, %212 ], [ %197, %196 ], [ %.pn106, %184 ], [ %136, %135 ], [ %lpad.loopexit, %.loopexit124 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN3dsuD2Ev(ptr noundef nonnull align 8 dereferenceable(76) %5) #9
  br label %215

215:                                              ; preds = %214, %36
  %.pn115.pn.pn = phi { ptr, i32 } [ %.pn115.pn, %214 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #9
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn115.pn.pn

._crit_edge181:                                   ; preds = %209, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #1 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 #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3dsuC2Ei(ptr noundef nonnull align 8 dereferenceable(76), i32 noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3dsu5mergeEii(ptr noundef nonnull align 8 dereferenceable(76), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3dsu5countEv(ptr noundef nonnull align 8 dereferenceable(76)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(76) ptr @_ZN3dsuaSEOS_(ptr noundef nonnull align 8 dereferenceable(76), ptr noundef nonnull align 8 dereferenceable(76)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z3addii(i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3dsu4findEi(ptr noundef nonnull align 8 dereferenceable(76), i32 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds6detail9gp_ht_mapIiiNSt3tr14hashIiEESt8equal_toIiESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb0EmEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


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