; LLVM IR from Slingshot-Physics/slingshot-community :: tests/test_utils (random_graph_utils)

; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.graph::types::edge_t" = type { i32, i32, i64, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>

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

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

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

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

declare noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef, i32 noundef) #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10test_utils24randomConnectedComponentEiiR12DynamicArrayIN5graph5types6edge_tIilEEE(i32 noundef %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::set", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.graph::types::edge_t", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %"struct.std::pair", align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = icmp sge i32 %28, %29
  br i1 %30, label %31, label %42

31:                                               ; preds = %3
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef %33)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @.str.5)
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = sdiv i32 %36, 2
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 noundef %37)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.3)
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sdiv i32 %40, 2
  store i32 %41, ptr %5, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %31, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %43)
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %207, %42
  %45 = load i32, ptr %9, align 4, !tbaa !5
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %211

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  %50 = load i32, ptr %9, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 2
  store i64 %51, ptr %52, align 8, !tbaa !11
  %53 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 3
  store i32 0, ptr %53, align 8, !tbaa !15
  %54 = load i32, ptr %9, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %77

56:                                               ; preds = %49
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %57)
          to label %59 unwind label %73

59:                                               ; preds = %56
  %60 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 0
  store i32 %58, ptr %60, align 8, !tbaa !16
  br label %61

61:                                               ; preds = %66, %59
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %62)
          to label %64 unwind label %73

64:                                               ; preds = %61
  %65 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 1
  store i32 %63, ptr %65, align 4, !tbaa !17
  br label %66

66:                                               ; preds = %64
  %67 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !16
  %69 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !17
  %71 = icmp eq i32 %68, %70
  br i1 %71, label %61, label %72, !llvm.loop !18

72:                                               ; preds = %66
  br label %185

73:                                               ; preds = %204, %196, %185, %173, %119, %114, %61, %56
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %12, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %13, align 4
  br label %210

77:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %78 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  %79 = sub i64 %78, 1
  %80 = trunc i64 %79 to i32
  %81 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %80)
          to label %82 unwind label %92

82:                                               ; preds = %77
  store i32 %81, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr %8, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %83 = load ptr, ptr %16, align 8, !tbaa !9
  %84 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %83) #5
  %85 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %17, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %86 = load ptr, ptr %16, align 8, !tbaa !9
  %87 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %86) #5
  %88 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  br label %89

89:                                               ; preds = %111, %82
  %90 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %90, label %96, label %91

91:                                               ; preds = %89
  store i32 7, ptr %10, align 4
  br label %113

92:                                               ; preds = %77
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %12, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %210

96:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %98 = load i32, ptr %97, align 4, !tbaa !5
  store i32 %98, ptr %19, align 4, !tbaa !5
  %99 = load i32, ptr %15, align 4, !tbaa !5
  %100 = load i32, ptr %14, align 4, !tbaa !5
  %101 = icmp eq i32 %99, %100
  br i1 %101, label %102, label %105

102:                                              ; preds = %96
  %103 = load i32, ptr %19, align 4, !tbaa !5
  %104 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 0
  store i32 %103, ptr %104, align 8, !tbaa !16
  store i32 7, ptr %10, align 4
  br label %108

105:                                              ; preds = %96
  %106 = load i32, ptr %15, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %15, align 4, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %108

108:                                              ; preds = %105, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %109 = load i32, ptr %10, align 4
  switch i32 %109, label %113 [
    i32 0, label %110
  ]

110:                                              ; preds = %108
  br label %111

111:                                              ; preds = %110
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %89

113:                                              ; preds = %108, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %114

114:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %115 = invoke noundef float @_ZN8edbdmath12random_floatEv()
          to label %116 unwind label %73

116:                                              ; preds = %114
  %117 = fcmp olt float %115, 0x3FB99999A0000000
  br i1 %117, label %118, label %131

118:                                              ; preds = %116
  br label %119

119:                                              ; preds = %124, %118
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %120)
          to label %122 unwind label %73

122:                                              ; preds = %119
  %123 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 1
  store i32 %121, ptr %123, align 4, !tbaa !17
  br label %124

124:                                              ; preds = %122
  %125 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 0
  %126 = load i32, ptr %125, align 8, !tbaa !16
  %127 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !17
  %129 = icmp eq i32 %126, %128
  br i1 %129, label %119, label %130, !llvm.loop !20

130:                                              ; preds = %124
  br label %169

131:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %132 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  %133 = sub i64 %132, 1
  %134 = trunc i64 %133 to i32
  %135 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %134)
          to label %136 unwind label %146

136:                                              ; preds = %131
  store i32 %135, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store ptr %8, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %137 = load ptr, ptr %22, align 8, !tbaa !9
  %138 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %137) #5
  %139 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %23, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %140 = load ptr, ptr %22, align 8, !tbaa !9
  %141 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %140) #5
  %142 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %24, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  br label %143

143:                                              ; preds = %165, %136
  %144 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  br i1 %144, label %150, label %145

145:                                              ; preds = %143
  store i32 11, ptr %10, align 4
  br label %167

146:                                              ; preds = %131
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %210

150:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  %152 = load i32, ptr %151, align 4, !tbaa !5
  store i32 %152, ptr %25, align 4, !tbaa !5
  %153 = load i32, ptr %21, align 4, !tbaa !5
  %154 = load i32, ptr %20, align 4, !tbaa !5
  %155 = icmp eq i32 %153, %154
  br i1 %155, label %156, label %159

156:                                              ; preds = %150
  %157 = load i32, ptr %25, align 4, !tbaa !5
  %158 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 1
  store i32 %157, ptr %158, align 4, !tbaa !17
  store i32 11, ptr %10, align 4
  br label %162

159:                                              ; preds = %150
  %160 = load i32, ptr %21, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %21, align 4, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %162

162:                                              ; preds = %159, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  %163 = load i32, ptr %10, align 4
  switch i32 %163, label %167 [
    i32 0, label %164
  ]

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  br label %143

167:                                              ; preds = %162, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %168

168:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %169

169:                                              ; preds = %168, %130
  %170 = load i32, ptr %7, align 4, !tbaa !5
  %171 = load i32, ptr %5, align 4, !tbaa !5
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %173, label %184

173:                                              ; preds = %169
  %174 = invoke noundef float @_ZN8edbdmath12random_floatEv()
          to label %175 unwind label %73

175:                                              ; preds = %173
  %176 = fcmp olt float %174, 5.000000e-01
  br i1 %176, label %177, label %184

177:                                              ; preds = %175
  %178 = load i32, ptr %9, align 4, !tbaa !5
  %179 = mul nsw i32 -1, %178
  %180 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 1
  store i32 %179, ptr %180, align 4, !tbaa !17
  %181 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 3
  store i32 2, ptr %181, align 8, !tbaa !15
  %182 = load i32, ptr %7, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %7, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %177, %175, %169
  br label %185

185:                                              ; preds = %184, %72
  %186 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 0
  %187 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %186)
          to label %188 unwind label %73

188:                                              ; preds = %185
  %189 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %190 = extractvalue { ptr, i8 } %187, 0
  store ptr %190, ptr %189, align 8
  %191 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %192 = extractvalue { ptr, i8 } %187, 1
  store i8 %192, ptr %191, align 8
  %193 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 3
  %194 = load i32, ptr %193, align 8, !tbaa !15
  %195 = icmp ne i32 %194, 2
  br i1 %195, label %196, label %204

196:                                              ; preds = %188
  %197 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %11, i32 0, i32 1
  %198 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %197)
          to label %199 unwind label %73

199:                                              ; preds = %196
  %200 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 0
  %201 = extractvalue { ptr, i8 } %198, 0
  store ptr %201, ptr %200, align 8
  %202 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 1
  %203 = extractvalue { ptr, i8 } %198, 1
  store i8 %203, ptr %202, align 8
  br label %204

204:                                              ; preds = %199, %188
  %205 = load ptr, ptr %6, align 8, !tbaa !9
  invoke void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %205, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %206 unwind label %73

206:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  br label %207

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

210:                                              ; preds = %146, %92, %73
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %212

211:                                              ; preds = %48
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void

212:                                              ; preds = %210
  %213 = load ptr, ptr %12, align 8
  %214 = load i32, ptr %13, align 4
  %215 = insertvalue { ptr, i32 } poison, ptr %213, 0
  %216 = insertvalue { ptr, i32 } %215, i32 %214, 1
  resume { ptr, i32 } %216
}

declare noundef float @_ZN8edbdmath12random_floatEv() #1

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


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

%"class.std::basic_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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.graph::types::edge_t" = type { i32, i32, i64, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

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

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

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

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

declare noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10test_utils24randomConnectedComponentEiiR12DynamicArrayIN5graph5types6edge_tIilEEE(i32 noundef %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::set", align 8
  %5 = alloca %"struct.graph::types::edge_t", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %.not = icmp slt i32 %1, %0
  br i1 %.not, label %17, label %10

10:                                               ; preds = %3
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef %1)
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @.str.5)
  %14 = sdiv i32 %0, 2
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %14)
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @.str.3)
  br label %17

17:                                               ; preds = %10, %3
  %.0 = phi i32 [ %14, %10 ], [ %1, %3 ]
  tail call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  %18 = icmp sgt i32 %0, 0
  br i1 %18, label %.lr.ph71, label %._crit_edge

.lr.ph71:                                         ; preds = %17
  %19 = getelementptr inbounds i8, ptr %5, i64 8
  %20 = getelementptr inbounds i8, ptr %5, i64 16
  %21 = getelementptr inbounds i8, ptr %5, i64 4
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %22

._crit_edge:                                      ; preds = %88, %17
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  ret void

22:                                               ; preds = %.lr.ph71, %88
  %indvars.iv = phi i64 [ 0, %.lr.ph71 ], [ %indvars.iv.next, %88 ]
  %.03770 = phi i32 [ 0, %.lr.ph71 ], [ %.1, %88 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  store i64 %indvars.iv, ptr %19, align 8, !tbaa !5
  store i32 0, ptr %20, align 8, !tbaa !12
  %23 = icmp eq i64 %indvars.iv, 0
  br i1 %23, label %24, label %32

24:                                               ; preds = %22
  %25 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %0)
          to label %26 unwind label %.loopexit.split-lp.loopexit.split-lp

26:                                               ; preds = %24
  store i32 %25, ptr %5, align 8, !tbaa !13
  br label %27

27:                                               ; preds = %29, %26
  %28 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %0)
          to label %29 unwind label %.loopexit

29:                                               ; preds = %27
  store i32 %28, ptr %21, align 4, !tbaa !14
  %30 = load i32, ptr %5, align 8, !tbaa !13
  %31 = icmp eq i32 %30, %28
  br i1 %31, label %27, label %.loopexit58, !llvm.loop !15

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

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

.loopexit.split-lp.loopexit.split-lp:             ; preds = %87, %85, %.loopexit58, %74, %.loopexit64, %24
  %lpad.loopexit.split-lp60 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

32:                                               ; preds = %22
  %33 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  %34 = trunc i64 %33 to i32
  %35 = add i32 %34, -1
  %36 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %35)
          to label %37 unwind label %41

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %38 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %38, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %39 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %39, ptr %7, align 8
  %40 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %40, label %.lr.ph, label %.loopexit64

41:                                               ; preds = %32
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph:                                           ; preds = %37, %45
  %.04566 = phi i32 [ %46, %45 ], [ 0, %37 ]
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %.not51 = icmp eq i32 %.04566, %36
  br i1 %.not51, label %.thread, label %45

.thread:                                          ; preds = %.lr.ph
  %44 = load i32, ptr %43, align 4, !tbaa !17
  store i32 %44, ptr %5, align 8, !tbaa !13
  br label %.loopexit64

45:                                               ; preds = %.lr.ph
  %46 = add nuw nsw i32 %.04566, 1
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %48 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %48, label %.lr.ph, label %.loopexit64

.loopexit64:                                      ; preds = %45, %37, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %49 = invoke noundef float @_ZN8edbdmath12random_floatEv()
          to label %50 unwind label %.loopexit.split-lp.loopexit.split-lp

50:                                               ; preds = %.loopexit64
  %51 = fcmp olt float %49, 0x3FB99999A0000000
  br i1 %51, label %.preheader, label %56

.preheader:                                       ; preds = %50, %53
  %52 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %0)
          to label %53 unwind label %.loopexit.split-lp.loopexit

53:                                               ; preds = %.preheader
  store i32 %52, ptr %21, align 4, !tbaa !14
  %54 = load i32, ptr %5, align 8, !tbaa !13
  %55 = icmp eq i32 %54, %52
  br i1 %55, label %.preheader, label %.loopexit62, !llvm.loop !18

56:                                               ; preds = %50
  %57 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  %58 = trunc i64 %57 to i32
  %59 = add i32 %58, -1
  %60 = invoke noundef i32 @_ZN8edbdmath10random_intEii(i32 noundef 0, i32 noundef %59)
          to label %61 unwind label %65

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %62 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %62, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %63 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %63, ptr %9, align 8
  %64 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %64, label %.lr.ph68, label %.loopexit63

65:                                               ; preds = %56
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph68:                                         ; preds = %61, %69
  %.04367 = phi i32 [ %70, %69 ], [ 0, %61 ]
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %.not52 = icmp eq i32 %.04367, %60
  br i1 %.not52, label %.thread56, label %69

.thread56:                                        ; preds = %.lr.ph68
  %68 = load i32, ptr %67, align 4, !tbaa !17
  store i32 %68, ptr %21, align 4, !tbaa !14
  br label %.loopexit63

69:                                               ; preds = %.lr.ph68
  %70 = add nuw nsw i32 %.04367, 1
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %72 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %72, label %.lr.ph68, label %.loopexit63

.loopexit63:                                      ; preds = %69, %61, %.thread56
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %.loopexit62

.loopexit62:                                      ; preds = %53, %.loopexit63
  %73 = icmp slt i32 %.03770, %.0
  br i1 %73, label %74, label %.loopexit58

74:                                               ; preds = %.loopexit62
  %75 = invoke noundef float @_ZN8edbdmath12random_floatEv()
          to label %76 unwind label %.loopexit.split-lp.loopexit.split-lp

76:                                               ; preds = %74
  %77 = fcmp olt float %75, 5.000000e-01
  br i1 %77, label %78, label %.loopexit58

78:                                               ; preds = %76
  %79 = trunc i64 %indvars.iv to i32
  %80 = sub i32 0, %79
  store i32 %80, ptr %21, align 4, !tbaa !14
  store i32 2, ptr %20, align 8, !tbaa !12
  %81 = add nsw i32 %.03770, 1
  br label %.loopexit58

.loopexit58:                                      ; preds = %29, %.loopexit62, %76, %78
  %.1 = phi i32 [ %81, %78 ], [ %.03770, %76 ], [ %.03770, %.loopexit62 ], [ %.03770, %29 ]
  %82 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %83 unwind label %.loopexit.split-lp.loopexit.split-lp

83:                                               ; preds = %.loopexit58
  %84 = load i32, ptr %20, align 8, !tbaa !12
  %.not53 = icmp eq i32 %84, 2
  br i1 %.not53, label %87, label %85

85:                                               ; preds = %83
  %86 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %87 unwind label %.loopexit.split-lp.loopexit.split-lp

87:                                               ; preds = %85, %83
  invoke void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %88 unwind label %.loopexit.split-lp.loopexit.split-lp

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %22, !llvm.loop !19

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %65, %41
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %42, %41 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit59, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp60, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn
}

declare noundef float @_ZN8edbdmath12random_floatEv() local_unnamed_addr #1

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


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