; LLVM IR from aspuru-guzik-group/qtorch :: XregGraphGen (main)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<GraphNode>, std::allocator<std::shared_ptr<GraphNode>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<GraphNode>, std::allocator<std::shared_ptr<GraphNode>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<GraphNode>, std::allocator<std::shared_ptr<GraphNode>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<GraphNode>, std::allocator<std::shared_ptr<GraphNode>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon.0 = type { i8 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.GraphNode = type { i32, i8, %"class.std::vector" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z16alreadyConnectedSt10shared_ptrI9GraphNodeES1_(ptr noundef, ptr noundef) #0

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3runiRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(5000) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %class.anon.0, align 1
  %17 = alloca %"class.std::uniform_int_distribution", align 4
  %18 = alloca %"class.std::basic_ofstream", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca %"class.std::shared_ptr", align 8
  %25 = alloca i1, align 1
  %26 = alloca %"class.std::shared_ptr", align 8
  %27 = alloca i1, align 1
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::shared_ptr", align 8
  %30 = alloca i1, align 1
  %31 = alloca %"class.std::shared_ptr", align 8
  %32 = alloca i1, align 1
  %33 = alloca i32, align 4
  %34 = alloca i8, align 1
  %35 = alloca ptr, align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca ptr, align 8
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @_ZNSaISt10shared_ptrI9GraphNodeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %40, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %41 unwind label %63

41:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorISt10shared_ptrI9GraphNodeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  %42 = call ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %42, ptr %43, align 8
  %44 = call ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  %46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8
  invoke void @"_ZSt8generateIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI9GraphNodeESt6vectorIS4_SaIS4_EEEEZ3runiRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiE3$_0EvT_SM_T0_"(ptr %47, ptr %49)
          to label %50 unwind label %67

50:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = sub nsw i32 %51, 1
  invoke void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 0, i32 noundef %52)
          to label %53 unwind label %71

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 512, ptr %18) #6
  %54 = load ptr, ptr %8, align 8, !tbaa !9
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %18, ptr noundef nonnull align 8 dereferenceable(32) %54, i32 noundef 16)
          to label %55 unwind label %75

55:                                               ; preds = %53
  %56 = invoke noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %18)
          to label %57 unwind label %79

57:                                               ; preds = %55
  br i1 %56, label %83, label %58

58:                                               ; preds = %57
  %59 = 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 %60 unwind label %79

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %62 unwind label %79

62:                                               ; preds = %60
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %19, align 4
  br label %397

63:                                               ; preds = %4
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %12, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %13, align 4
  call void @_ZNSt15__new_allocatorISt10shared_ptrI9GraphNodeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %403

67:                                               ; preds = %41
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %12, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %13, align 4
  br label %402

71:                                               ; preds = %50
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %12, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %13, align 4
  br label %401

75:                                               ; preds = %53
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %12, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %13, align 4
  br label %400

79:                                               ; preds = %95, %93, %90, %88, %85, %83, %60, %58, %55
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  br label %399

83:                                               ; preds = %57
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @.str.1)
          to label %85 unwind label %79

85:                                               ; preds = %83
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %84, i32 noundef %86)
          to label %88 unwind label %79

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef @.str.2)
          to label %90 unwind label %79

90:                                               ; preds = %88
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef %91)
          to label %93 unwind label %79

93:                                               ; preds = %90
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef @.str.3)
          to label %95 unwind label %79

95:                                               ; preds = %93
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %97 unwind label %79

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

98:                                               ; preds = %354, %97
  %99 = load i32, ptr %22, align 4, !tbaa !5
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = mul nsw i32 %100, %101
  %103 = sdiv i32 %102, 2
  %104 = icmp slt i32 %99, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %98
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %358

106:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  store i8 0, ptr %23, align 1, !tbaa !11
  %107 = load ptr, ptr %7, align 8, !tbaa !9
  %108 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(5000) %107)
          to label %109 unwind label %207

109:                                              ; preds = %106
  store i32 %108, ptr %20, align 4, !tbaa !5
  %110 = load ptr, ptr %7, align 8, !tbaa !9
  %111 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(5000) %110)
          to label %112 unwind label %207

112:                                              ; preds = %109
  store i32 %111, ptr %21, align 4, !tbaa !5
  %113 = load i32, ptr %20, align 4, !tbaa !5
  %114 = load i32, ptr %21, align 4, !tbaa !5
  %115 = icmp ne i32 %113, %114
  br i1 %115, label %116, label %222

116:                                              ; preds = %112
  %117 = load i32, ptr %20, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %118) #6
  %120 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %119) #6
  %121 = getelementptr inbounds %struct.GraphNode, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 8, !tbaa !13
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = icmp slt i32 %122, %123
  store i1 false, ptr %25, align 1
  store i1 false, ptr %27, align 1
  br i1 %124, label %125, label %144

125:                                              ; preds = %116
  %126 = load i32, ptr %21, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %127) #6
  %129 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %128) #6
  %130 = getelementptr inbounds %struct.GraphNode, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 8, !tbaa !13
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %134, label %144

134:                                              ; preds = %125
  %135 = load i32, ptr %20, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %136) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %137) #6
  store i1 true, ptr %25, align 1
  %138 = load i32, ptr %21, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %139) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %140) #6
  store i1 true, ptr %27, align 1
  %141 = invoke noundef zeroext i1 @_Z16alreadyConnectedSt10shared_ptrI9GraphNodeES1_(ptr noundef %24, ptr noundef %26)
          to label %142 unwind label %211

142:                                              ; preds = %134
  %143 = xor i1 %141, true
  br label %144

144:                                              ; preds = %142, %125, %116
  %145 = phi i1 [ false, %125 ], [ false, %116 ], [ %143, %142 ]
  %146 = load i1, ptr %27, align 1
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %148

148:                                              ; preds = %147, %144
  %149 = load i1, ptr %25, align 1
  br i1 %149, label %150, label %151

150:                                              ; preds = %148
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  br label %151

151:                                              ; preds = %150, %148
  br i1 %145, label %152, label %221

152:                                              ; preds = %151
  %153 = load i32, ptr %20, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %154) #6
  %156 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %155) #6
  %157 = getelementptr inbounds %struct.GraphNode, ptr %156, i32 0, i32 2
  %158 = load i32, ptr %21, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %159) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 8 dereferenceable(16) %160)
          to label %161 unwind label %207

161:                                              ; preds = %152
  %162 = load i32, ptr %21, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %163) #6
  %165 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %164) #6
  %166 = getelementptr inbounds %struct.GraphNode, ptr %165, i32 0, i32 2
  %167 = load i32, ptr %20, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %168) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %166, ptr noundef nonnull align 8 dereferenceable(16) %169)
          to label %170 unwind label %207

170:                                              ; preds = %161
  %171 = load i32, ptr %20, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %172) #6
  %174 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %173) #6
  %175 = getelementptr inbounds %struct.GraphNode, ptr %174, i32 0, i32 0
  %176 = load i32, ptr %175, align 8, !tbaa !13
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %175, align 8, !tbaa !13
  %178 = load i32, ptr %21, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %179) #6
  %181 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %180) #6
  %182 = getelementptr inbounds %struct.GraphNode, ptr %181, i32 0, i32 0
  %183 = load i32, ptr %182, align 8, !tbaa !13
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %182, align 8, !tbaa !13
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @.str.4)
          to label %186 unwind label %207

186:                                              ; preds = %170
  %187 = load i32, ptr %20, align 4, !tbaa !5
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %185, i32 noundef %187)
          to label %189 unwind label %207

189:                                              ; preds = %186
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef @.str.5)
          to label %191 unwind label %207

191:                                              ; preds = %189
  %192 = load i32, ptr %21, align 4, !tbaa !5
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %190, i32 noundef %192)
          to label %194 unwind label %207

194:                                              ; preds = %191
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %193, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %196 unwind label %207

196:                                              ; preds = %194
  store i8 1, ptr %23, align 1, !tbaa !11
  %197 = load i32, ptr %20, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %198) #6
  %200 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %199) #6
  %201 = getelementptr inbounds %struct.GraphNode, ptr %200, i32 0, i32 1
  store i8 1, ptr %201, align 4, !tbaa !19
  %202 = load i32, ptr %21, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %203) #6
  %205 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %204) #6
  %206 = getelementptr inbounds %struct.GraphNode, ptr %205, i32 0, i32 1
  store i8 1, ptr %206, align 4, !tbaa !19
  br label %221

207:                                              ; preds = %194, %191, %189, %186, %170, %161, %152, %109, %106
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %12, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %13, align 4
  br label %357

211:                                              ; preds = %134
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %12, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %13, align 4
  %215 = load i1, ptr %27, align 1
  br i1 %215, label %216, label %217

216:                                              ; preds = %211
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %217

217:                                              ; preds = %216, %211
  %218 = load i1, ptr %25, align 1
  br i1 %218, label %219, label %220

219:                                              ; preds = %217
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  br label %220

220:                                              ; preds = %219, %217
  br label %357

221:                                              ; preds = %196, %151
  br label %222

222:                                              ; preds = %221, %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %348, %222
  %224 = load i32, ptr %28, align 4, !tbaa !5
  %225 = icmp slt i32 %224, 100
  br i1 %225, label %227, label %226

226:                                              ; preds = %223
  store i32 5, ptr %19, align 4
  br label %351

227:                                              ; preds = %223
  %228 = load ptr, ptr %7, align 8, !tbaa !9
  %229 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(5000) %228)
          to label %230 unwind label %328

230:                                              ; preds = %227
  store i32 %229, ptr %20, align 4, !tbaa !5
  %231 = load ptr, ptr %7, align 8, !tbaa !9
  %232 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(5000) %231)
          to label %233 unwind label %328

233:                                              ; preds = %230
  store i32 %232, ptr %21, align 4, !tbaa !5
  %234 = load i32, ptr %20, align 4, !tbaa !5
  %235 = load i32, ptr %21, align 4, !tbaa !5
  %236 = icmp ne i32 %234, %235
  br i1 %236, label %237, label %343

237:                                              ; preds = %233
  %238 = load i32, ptr %20, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %239) #6
  %241 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %240) #6
  %242 = getelementptr inbounds %struct.GraphNode, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 8, !tbaa !13
  %244 = load i32, ptr %9, align 4, !tbaa !5
  %245 = icmp slt i32 %243, %244
  store i1 false, ptr %30, align 1
  store i1 false, ptr %32, align 1
  br i1 %245, label %246, label %265

246:                                              ; preds = %237
  %247 = load i32, ptr %21, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %248) #6
  %250 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %249) #6
  %251 = getelementptr inbounds %struct.GraphNode, ptr %250, i32 0, i32 0
  %252 = load i32, ptr %251, align 8, !tbaa !13
  %253 = load i32, ptr %9, align 4, !tbaa !5
  %254 = icmp slt i32 %252, %253
  br i1 %254, label %255, label %265

255:                                              ; preds = %246
  %256 = load i32, ptr %20, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %257) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %258) #6
  store i1 true, ptr %30, align 1
  %259 = load i32, ptr %21, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %260) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %261) #6
  store i1 true, ptr %32, align 1
  %262 = invoke noundef zeroext i1 @_Z16alreadyConnectedSt10shared_ptrI9GraphNodeES1_(ptr noundef %29, ptr noundef %31)
          to label %263 unwind label %332

263:                                              ; preds = %255
  %264 = xor i1 %262, true
  br label %265

265:                                              ; preds = %263, %246, %237
  %266 = phi i1 [ false, %246 ], [ false, %237 ], [ %264, %263 ]
  %267 = load i1, ptr %32, align 1
  br i1 %267, label %268, label %269

268:                                              ; preds = %265
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  br label %269

269:                                              ; preds = %268, %265
  %270 = load i1, ptr %30, align 1
  br i1 %270, label %271, label %272

271:                                              ; preds = %269
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  br label %272

272:                                              ; preds = %271, %269
  br i1 %266, label %273, label %342

273:                                              ; preds = %272
  %274 = load i32, ptr %20, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %275) #6
  %277 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %276) #6
  %278 = getelementptr inbounds %struct.GraphNode, ptr %277, i32 0, i32 2
  %279 = load i32, ptr %21, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %280) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %278, ptr noundef nonnull align 8 dereferenceable(16) %281)
          to label %282 unwind label %328

282:                                              ; preds = %273
  %283 = load i32, ptr %21, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %284) #6
  %286 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %285) #6
  %287 = getelementptr inbounds %struct.GraphNode, ptr %286, i32 0, i32 2
  %288 = load i32, ptr %20, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %289) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %287, ptr noundef nonnull align 8 dereferenceable(16) %290)
          to label %291 unwind label %328

291:                                              ; preds = %282
  %292 = load i32, ptr %20, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %293) #6
  %295 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %294) #6
  %296 = getelementptr inbounds %struct.GraphNode, ptr %295, i32 0, i32 0
  %297 = load i32, ptr %296, align 8, !tbaa !13
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %296, align 8, !tbaa !13
  %299 = load i32, ptr %21, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %300) #6
  %302 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %301) #6
  %303 = getelementptr inbounds %struct.GraphNode, ptr %302, i32 0, i32 0
  %304 = load i32, ptr %303, align 8, !tbaa !13
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %303, align 8, !tbaa !13
  %306 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @.str.4)
          to label %307 unwind label %328

307:                                              ; preds = %291
  %308 = load i32, ptr %20, align 4, !tbaa !5
  %309 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %306, i32 noundef %308)
          to label %310 unwind label %328

310:                                              ; preds = %307
  %311 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %309, ptr noundef @.str.5)
          to label %312 unwind label %328

312:                                              ; preds = %310
  %313 = load i32, ptr %21, align 4, !tbaa !5
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %311, i32 noundef %313)
          to label %315 unwind label %328

315:                                              ; preds = %312
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %314, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %317 unwind label %328

317:                                              ; preds = %315
  store i8 1, ptr %23, align 1, !tbaa !11
  %318 = load i32, ptr %20, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %319) #6
  %321 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %320) #6
  %322 = getelementptr inbounds %struct.GraphNode, ptr %321, i32 0, i32 1
  store i8 1, ptr %322, align 4, !tbaa !19
  %323 = load i32, ptr %21, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %324) #6
  %326 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %325) #6
  %327 = getelementptr inbounds %struct.GraphNode, ptr %326, i32 0, i32 1
  store i8 1, ptr %327, align 4, !tbaa !19
  br label %342

328:                                              ; preds = %315, %312, %310, %307, %291, %282, %273, %230, %227
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %12, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %13, align 4
  br label %352

332:                                              ; preds = %255
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %12, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %13, align 4
  %336 = load i1, ptr %32, align 1
  br i1 %336, label %337, label %338

337:                                              ; preds = %332
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  br label %338

338:                                              ; preds = %337, %332
  %339 = load i1, ptr %30, align 1
  br i1 %339, label %340, label %341

340:                                              ; preds = %338
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  br label %341

341:                                              ; preds = %340, %338
  br label %352

342:                                              ; preds = %317, %272
  br label %343

343:                                              ; preds = %342, %233
  %344 = load i8, ptr %23, align 1, !tbaa !11, !range !20, !noundef !21
  %345 = trunc i8 %344 to i1
  br i1 %345, label %346, label %347

346:                                              ; preds = %343
  store i32 5, ptr %19, align 4
  br label %351

347:                                              ; preds = %343
  br label %348

348:                                              ; preds = %347
  %349 = load i32, ptr %28, align 4, !tbaa !5
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr %28, align 4, !tbaa !5
  br label %223, !llvm.loop !22

351:                                              ; preds = %346, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %353

352:                                              ; preds = %341, %328
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %357

353:                                              ; preds = %351
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %354

354:                                              ; preds = %353
  %355 = load i32, ptr %22, align 4, !tbaa !5
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %22, align 4, !tbaa !5
  br label %98, !llvm.loop !24

357:                                              ; preds = %352, %220, %207
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %396

358:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  store i8 1, ptr %34, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  store ptr %10, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %359 = load ptr, ptr %35, align 8, !tbaa !9
  %360 = call ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %359) #6
  %361 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %360, ptr %361, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %362 = load ptr, ptr %35, align 8, !tbaa !9
  %363 = call ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %362) #6
  %364 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %363, ptr %364, align 8
  br label %365

365:                                              ; preds = %380, %358
  %366 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrI9GraphNodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  br i1 %366, label %368, label %367

367:                                              ; preds = %365
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %382

368:                                              ; preds = %365
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %369 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI9GraphNodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  store ptr %369, ptr %38, align 8, !tbaa !9
  %370 = load ptr, ptr %38, align 8, !tbaa !9
  %371 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %370) #6
  %372 = getelementptr inbounds %struct.GraphNode, ptr %371, i32 0, i32 0
  %373 = load i32, ptr %372, align 8, !tbaa !13
  %374 = load i32, ptr %9, align 4, !tbaa !5
  %375 = icmp slt i32 %373, %374
  br i1 %375, label %376, label %379

376:                                              ; preds = %368
  %377 = load i32, ptr %33, align 4, !tbaa !5
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %33, align 4, !tbaa !5
  store i8 0, ptr %34, align 1, !tbaa !11
  br label %379

379:                                              ; preds = %376, %368
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %380

380:                                              ; preds = %379
  %381 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI9GraphNodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br label %365

382:                                              ; preds = %367
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %18)
          to label %383 unwind label %390

383:                                              ; preds = %382
  %384 = load i8, ptr %34, align 1, !tbaa !11, !range !20, !noundef !21
  %385 = trunc i8 %384 to i1
  br i1 %385, label %386, label %389

386:                                              ; preds = %383
  %387 = load i32, ptr %33, align 4, !tbaa !5
  %388 = icmp sgt i32 %387, 0
  br i1 %388, label %389, label %394

389:                                              ; preds = %386, %383
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %19, align 4
  br label %395

390:                                              ; preds = %382
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %12, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %396

394:                                              ; preds = %386
  store i32 0, ptr %5, align 4
  store i32 1, ptr %19, align 4
  br label %395

395:                                              ; preds = %394, %389
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %397

396:                                              ; preds = %390, %357
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %399

397:                                              ; preds = %395, %62
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %18) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  %398 = load i32, ptr %5, align 4
  ret i32 %398

399:                                              ; preds = %396, %79
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %18) #6
  br label %400

400:                                              ; preds = %399, %75
  call void @llvm.lifetime.end.p0(i64 512, ptr %18) #6
  br label %401

401:                                              ; preds = %400, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %402

402:                                              ; preds = %401, %67
  call void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %403

403:                                              ; preds = %402, %63
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  br label %404

404:                                              ; preds = %403
  %405 = load ptr, ptr %12, align 8
  %406 = load i32, ptr %13, align 4
  %407 = insertvalue { ptr, i32 } poison, ptr %405, 0
  %408 = insertvalue { ptr, i32 } %407, i32 %406, 1
  resume { ptr, i32 } %408
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt8generateIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI9GraphNodeESt6vectorIS4_SaIS4_EEEEZ3runiRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiE3$_0EvT_SM_T0_"(ptr, ptr) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(5000)) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) #0 align 2

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS9GraphNode", !6, i64 0, !12, i64 4, !15, i64 8}
!15 = !{!"_ZTSSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrI9GraphNodeESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrI9GraphNodeESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrI9GraphNodeESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!14, !12, i64 4}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<GraphNode>, std::allocator<std::shared_ptr<GraphNode>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<GraphNode>, std::allocator<std::shared_ptr<GraphNode>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<GraphNode>, std::allocator<std::shared_ptr<GraphNode>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<GraphNode>, std::allocator<std::shared_ptr<GraphNode>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z16alreadyConnectedSt10shared_ptrI9GraphNodeES1_(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -1, 1) i32 @_Z3runiRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(5000) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::uniform_int_distribution", align 4
  %8 = alloca %"class.std::basic_ofstream", align 8
  %9 = alloca %"class.std::shared_ptr", align 8
  %10 = alloca %"class.std::shared_ptr", align 8
  %11 = alloca %"class.std::shared_ptr", align 8
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %15 = sext i32 %0 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaISt10shared_ptrI9GraphNodeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %15, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %16 unwind label %28

16:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorISt10shared_ptrI9GraphNodeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %17 = call ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %18 = call ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @"_ZSt8generateIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI9GraphNodeESt6vectorIS4_SaIS4_EEEEZ3runiRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiE3$_0EvT_SM_T0_"(ptr %17, ptr %18)
          to label %19 unwind label %30

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %20 = add nsw i32 %0, -1
  invoke void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef 0, i32 noundef %20)
          to label %21 unwind label %32

21:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %8) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %8, ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef 16)
          to label %22 unwind label %34

22:                                               ; preds = %21
  %23 = call noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %8)
  br i1 %23, label %38, label %24

24:                                               ; preds = %22
  %25 = 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 %26 unwind label %36

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %205 unwind label %36

28:                                               ; preds = %4
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt10shared_ptrI9GraphNodeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %209

30:                                               ; preds = %16
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %208

32:                                               ; preds = %19
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %207

34:                                               ; preds = %21
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %206

36:                                               ; preds = %48, %46, %44, %42, %40, %38, %26, %24
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit119

38:                                               ; preds = %22
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.1)
          to label %40 unwind label %36

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %39, i32 noundef %0)
          to label %42 unwind label %36

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull @.str.2)
          to label %44 unwind label %36

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef %3)
          to label %46 unwind label %36

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

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader unwind label %36

.preheader:                                       ; preds = %48
  %50 = mul nsw i32 %3, %0
  %51 = sdiv i32 %50, 2
  %52 = icmp sgt i32 %50, 1
  br i1 %52, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %53 = call ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %53, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %54 = call ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %54, ptr %14, align 8
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrI9GraphNodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %55, label %.lr.ph136, label %._crit_edge137

.lr.ph:                                           ; preds = %.preheader, %.loopexit
  %.085132 = phi i32 [ %191, %.loopexit ], [ 0, %.preheader ]
  %56 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %57 unwind label %111

57:                                               ; preds = %.lr.ph
  %58 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %59 unwind label %111

59:                                               ; preds = %57
  %.not = icmp eq i32 %56, %58
  br i1 %.not, label %.critedge.thread.split.preheader, label %60

60:                                               ; preds = %59
  %61 = sext i32 %56 to i64
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %61) #6
  %63 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #6
  %64 = load i32, ptr %63, align 8, !tbaa !5
  %65 = icmp slt i32 %64, %3
  br i1 %65, label %66, label %.critedge.thread.split.preheader

66:                                               ; preds = %60
  %67 = sext i32 %58 to i64
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %67) #6
  %69 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %68) #6
  %70 = load i32, ptr %69, align 8, !tbaa !5
  %71 = icmp slt i32 %70, %3
  br i1 %71, label %72, label %.critedge.thread.split.preheader

.critedge.thread.split.preheader:                 ; preds = %59, %.critedge, %60, %66
  br label %.critedge.thread.split

72:                                               ; preds = %66
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %61) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %73) #6
  %74 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %67) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %74) #6
  %75 = invoke noundef zeroext i1 @_Z16alreadyConnectedSt10shared_ptrI9GraphNodeES1_(ptr noundef nonnull %9, ptr noundef nonnull %10)
          to label %.critedge unwind label %113

.critedge:                                        ; preds = %72
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br i1 %75, label %.critedge.thread.split.preheader, label %76

76:                                               ; preds = %.critedge
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %61) #6
  %78 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %77) #6
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %67) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 8 dereferenceable(16) %80)
          to label %81 unwind label %111

81:                                               ; preds = %76
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %67) #6
  %83 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %82) #6
  %84 = getelementptr inbounds i8, ptr %83, i64 8
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %61) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(16) %85)
          to label %86 unwind label %111

86:                                               ; preds = %81
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %61) #6
  %88 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %87) #6
  %89 = load i32, ptr %88, align 8, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %88, align 8, !tbaa !5
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %67) #6
  %92 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %91) #6
  %93 = load i32, ptr %92, align 8, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %92, align 8, !tbaa !5
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.4)
          to label %96 unwind label %111

96:                                               ; preds = %86
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %95, i32 noundef %56)
          to label %98 unwind label %111

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull @.str.5)
          to label %100 unwind label %111

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %99, i32 noundef %58)
          to label %102 unwind label %111

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.critedge.thread.split.us.critedge unwind label %111

.critedge.thread.split.us.critedge:               ; preds = %102
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %61) #6
  %105 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %104) #6
  %106 = getelementptr inbounds i8, ptr %105, i64 4
  store i8 1, ptr %106, align 4, !tbaa !16
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %67) #6
  %108 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %107) #6
  %109 = getelementptr inbounds i8, ptr %108, i64 4
  store i8 1, ptr %109, align 4, !tbaa !16
  %110 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %115 unwind label %.loopexit119.split.us

111:                                              ; preds = %102, %100, %98, %96, %86, %81, %76, %57, %.lr.ph
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit119

113:                                              ; preds = %72
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %.loopexit119

115:                                              ; preds = %.critedge.thread.split.us.critedge
  %116 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %117 unwind label %.loopexit119.split.us

117:                                              ; preds = %115
  %.not101.us = icmp eq i32 %110, %116
  br i1 %.not101.us, label %.loopexit, label %118

118:                                              ; preds = %117
  %119 = sext i32 %110 to i64
  %120 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %119) #6
  %121 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %120) #6
  %122 = load i32, ptr %121, align 8, !tbaa !5
  %123 = icmp slt i32 %122, %3
  br i1 %123, label %124, label %.loopexit

124:                                              ; preds = %118
  %125 = sext i32 %116 to i64
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %125) #6
  %127 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %126) #6
  %128 = load i32, ptr %127, align 8, !tbaa !5
  %129 = icmp slt i32 %128, %3
  br i1 %129, label %130, label %.loopexit

130:                                              ; preds = %124
  %131 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %119) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %131) #6
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %125) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %132) #6
  %133 = invoke noundef zeroext i1 @_Z16alreadyConnectedSt10shared_ptrI9GraphNodeES1_(ptr noundef nonnull %11, ptr noundef nonnull %12)
          to label %.critedge111.us unwind label %.split.us

.critedge111.us:                                  ; preds = %130
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br i1 %133, label %.loopexit, label %.split128.us

.loopexit119.split.us:                            ; preds = %115, %.critedge.thread.split.us.critedge
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit119

.split.us:                                        ; preds = %130
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %189

.critedge.thread.split:                           ; preds = %.critedge.thread.split.preheader, %.critedge111.thread
  %.079125 = phi i32 [ %190, %.critedge111.thread ], [ 0, %.critedge.thread.split.preheader ]
  %135 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %136 unwind label %.loopexit119.split

136:                                              ; preds = %.critedge.thread.split
  %137 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %138 unwind label %.loopexit119.split

138:                                              ; preds = %136
  %.not101 = icmp eq i32 %135, %137
  br i1 %.not101, label %.critedge111.thread, label %139

139:                                              ; preds = %138
  %140 = sext i32 %135 to i64
  %141 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %140) #6
  %142 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %141) #6
  %143 = load i32, ptr %142, align 8, !tbaa !5
  %144 = icmp slt i32 %143, %3
  br i1 %144, label %145, label %.critedge111.thread

145:                                              ; preds = %139
  %146 = sext i32 %137 to i64
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %146) #6
  %148 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %147) #6
  %149 = load i32, ptr %148, align 8, !tbaa !5
  %150 = icmp slt i32 %149, %3
  br i1 %150, label %151, label %.critedge111.thread

151:                                              ; preds = %145
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %140) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %152) #6
  %153 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %146) #6
  call void @_ZNSt10shared_ptrI9GraphNodeEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %153) #6
  %154 = invoke noundef zeroext i1 @_Z16alreadyConnectedSt10shared_ptrI9GraphNodeES1_(ptr noundef nonnull %11, ptr noundef nonnull %12)
          to label %.critedge111 unwind label %.split

.critedge111:                                     ; preds = %151
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br i1 %154, label %.critedge111.thread, label %.split128.us

.split128.us:                                     ; preds = %.critedge111, %.critedge111.us
  %.pre-phi = phi i64 [ %125, %.critedge111.us ], [ %146, %.critedge111 ]
  %.us-phi129 = phi i64 [ %119, %.critedge111.us ], [ %140, %.critedge111 ]
  %.us-phi130 = phi i32 [ %116, %.critedge111.us ], [ %137, %.critedge111 ]
  %.us-phi131 = phi i32 [ %110, %.critedge111.us ], [ %135, %.critedge111 ]
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.us-phi129) #6
  %156 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %155) #6
  %157 = getelementptr inbounds i8, ptr %156, i64 8
  %158 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.pre-phi) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 8 dereferenceable(16) %158)
          to label %159 unwind label %.loopexit.split-lp

159:                                              ; preds = %.split128.us
  %160 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.pre-phi) #6
  %161 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %160) #6
  %162 = getelementptr inbounds i8, ptr %161, i64 8
  %163 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.us-phi129) #6
  invoke void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef nonnull align 8 dereferenceable(16) %163)
          to label %164 unwind label %.loopexit.split-lp

164:                                              ; preds = %159
  %165 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.us-phi129) #6
  %166 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %165) #6
  %167 = load i32, ptr %166, align 8, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %166, align 8, !tbaa !5
  %169 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.pre-phi) #6
  %170 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %169) #6
  %171 = load i32, ptr %170, align 8, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %170, align 8, !tbaa !5
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.4)
          to label %174 unwind label %.loopexit.split-lp

174:                                              ; preds = %164
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %173, i32 noundef %.us-phi131)
          to label %176 unwind label %.loopexit.split-lp

176:                                              ; preds = %174
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull @.str.5)
          to label %178 unwind label %.loopexit.split-lp

178:                                              ; preds = %176
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %177, i32 noundef %.us-phi130)
          to label %180 unwind label %.loopexit.split-lp

180:                                              ; preds = %178
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread117 unwind label %.loopexit.split-lp

.thread117:                                       ; preds = %180
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.us-phi129) #6
  %183 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %182) #6
  %184 = getelementptr inbounds i8, ptr %183, i64 4
  store i8 1, ptr %184, align 4, !tbaa !16
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.pre-phi) #6
  %186 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %185) #6
  %187 = getelementptr inbounds i8, ptr %186, i64 4
  store i8 1, ptr %187, align 4, !tbaa !16
  br label %.loopexit

.loopexit119.split:                               ; preds = %.critedge.thread.split, %136
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit119

.loopexit.split-lp:                               ; preds = %.split128.us, %159, %164, %174, %176, %178, %180
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit119

.split:                                           ; preds = %151
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %189

189:                                              ; preds = %.split.us, %.split
  %.us-phi126 = phi { ptr, i32 } [ %188, %.split ], [ %134, %.split.us ]
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZNSt12__shared_ptrI9GraphNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %.loopexit119

.critedge111.thread:                              ; preds = %145, %139, %.critedge111, %138
  %190 = add nuw nsw i32 %.079125, 1
  %exitcond.not = icmp eq i32 %190, 100
  br i1 %exitcond.not, label %.loopexit, label %.critedge.thread.split, !llvm.loop !17

.loopexit:                                        ; preds = %.critedge111.thread, %.critedge111.us, %124, %118, %117, %.thread117
  %191 = add nuw nsw i32 %.085132, 1
  %exitcond147.not = icmp eq i32 %191, %51
  br i1 %exitcond147.not, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge137.loopexit:                          ; preds = %.lr.ph136
  %192 = icmp ne i32 %spec.select, 0
  %193 = xor i1 %spec.select112, true
  %194 = select i1 %193, i1 true, i1 %192
  %195 = sext i1 %194 to i32
  br label %._crit_edge137

._crit_edge137:                                   ; preds = %._crit_edge137.loopexit, %._crit_edge
  %.073.lcssa = phi i32 [ 0, %._crit_edge ], [ %195, %._crit_edge137.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %8)
          to label %205 unwind label %203

.lr.ph136:                                        ; preds = %._crit_edge, %.lr.ph136
  %.073134 = phi i1 [ %spec.select112, %.lr.ph136 ], [ true, %._crit_edge ]
  %.075133 = phi i32 [ %spec.select, %.lr.ph136 ], [ 0, %._crit_edge ]
  %196 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI9GraphNodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %197 = call noundef ptr @_ZNKSt19__shared_ptr_accessI9GraphNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %196) #6
  %198 = load i32, ptr %197, align 8, !tbaa !5
  %199 = icmp slt i32 %198, %3
  %200 = zext i1 %199 to i32
  %spec.select = add nuw nsw i32 %.075133, %200
  %not.139 = xor i1 %199, true
  %spec.select112 = select i1 %not.139, i1 %.073134, i1 false
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI9GraphNodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %202 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrI9GraphNodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %202, label %.lr.ph136, label %._crit_edge137.loopexit

203:                                              ; preds = %._crit_edge137
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit119

205:                                              ; preds = %._crit_edge137, %26
  %.1 = phi i32 [ -1, %26 ], [ %.073.lcssa, %._crit_edge137 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %8) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret i32 %.1

.loopexit119:                                     ; preds = %.loopexit.split-lp, %.loopexit119.split.us, %.loopexit119.split, %203, %189, %113, %111, %36
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %37, %36 ], [ %204, %203 ], [ %112, %111 ], [ %114, %113 ], [ %.us-phi126, %189 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit119.split ], [ %lpad.loopexit.us, %.loopexit119.split.us ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %8) #6
  br label %206

206:                                              ; preds = %.loopexit119, %34
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %.loopexit119 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %8) #6
  br label %207

207:                                              ; preds = %206, %32
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %206 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %208

208:                                              ; preds = %207, %30
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %207 ], [ %31, %30 ]
  call void @_ZNSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %209

209:                                              ; preds = %208, %28
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %208 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt8generateIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI9GraphNodeESt6vectorIS4_SaIS4_EEEEZ3runiRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiE3$_0EvT_SM_T0_"(ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #0 align 2

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS9GraphNode", !7, i64 0, !10, i64 4, !11, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt6vectorISt10shared_ptrI9GraphNodeESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrI9GraphNodeESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrI9GraphNodeESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrI9GraphNodeESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!6, !10, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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