; 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.DynamicArray = type { ptr, i64, i64, i64 }
%"struct.graph::types::edge_t" = type { i32, i32, i64, i32 }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10test_utils40randomNumComponentsGraphWithTerminationsEiiiR12DynamicArrayIN5graph5types6edge_tIilEEE(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.DynamicArray, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !9
  %19 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = add nsw i32 %20, 2
  store i32 %21, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %106, %4
  %23 = load i32, ptr %10, align 4, !tbaa !5
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %110

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #3
  %28 = load i32, ptr %6, align 4, !tbaa !5
  call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEEC2Ej(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef %28)
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN10test_utils24randomConnectedComponentEiiR12DynamicArrayIN5graph5types6edge_tIilEEE(i32 noundef %29, i32 noundef %30, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %31 unwind label %43

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store ptr %12, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %32 = load ptr, ptr %15, align 8, !tbaa !9
  %33 = invoke noundef ptr @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %34 unwind label %47

34:                                               ; preds = %31
  store ptr %33, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %35 = load ptr, ptr %15, align 8, !tbaa !9
  %36 = invoke noundef ptr @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %37 unwind label %51

37:                                               ; preds = %34
  store ptr %36, ptr %17, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %96, %37
  %39 = load ptr, ptr %16, align 8, !tbaa !9
  %40 = load ptr, ptr %17, align 8, !tbaa !9
  %41 = icmp ne ptr %39, %40
  br i1 %41, label %55, label %42

42:                                               ; preds = %38
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %105

43:                                               ; preds = %27
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %13, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %14, align 4
  br label %109

47:                                               ; preds = %31
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %13, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %14, align 4
  br label %104

51:                                               ; preds = %34
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %13, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %14, align 4
  br label %103

55:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %56 = load ptr, ptr %16, align 8, !tbaa !9
  store ptr %56, ptr %18, align 8, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = load i32, ptr %10, align 4, !tbaa !5
  %59 = mul nsw i32 %57, %58
  %60 = load ptr, ptr %18, align 8, !tbaa !9
  %61 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !11
  %63 = add nsw i32 %62, %59
  store i32 %63, ptr %61, align 8, !tbaa !11
  %64 = load ptr, ptr %18, align 8, !tbaa !9
  %65 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %64, i32 0, i32 3
  %66 = load i32, ptr %65, align 8, !tbaa !15
  %67 = icmp eq i32 %66, 2
  br i1 %67, label %68, label %76

68:                                               ; preds = %55
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = mul nsw i32 %69, %70
  %72 = load ptr, ptr %18, align 8, !tbaa !9
  %73 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 4, !tbaa !16
  %75 = sub nsw i32 %74, %71
  store i32 %75, ptr %73, align 4, !tbaa !16
  br label %84

76:                                               ; preds = %55
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = mul nsw i32 %77, %78
  %80 = load ptr, ptr %18, align 8, !tbaa !9
  %81 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !16
  %83 = add nsw i32 %82, %79
  store i32 %83, ptr %81, align 4, !tbaa !16
  br label %84

84:                                               ; preds = %76, %68
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = mul nsw i32 %85, %86
  %88 = sext i32 %87 to i64
  %89 = load ptr, ptr %18, align 8, !tbaa !9
  %90 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %89, i32 0, i32 2
  %91 = load i64, ptr %90, align 8, !tbaa !17
  %92 = add nsw i64 %91, %88
  store i64 %92, ptr %90, align 8, !tbaa !17
  %93 = load ptr, ptr %8, align 8, !tbaa !9
  %94 = load ptr, ptr %18, align 8, !tbaa !9
  invoke void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %93, ptr noundef nonnull align 8 dereferenceable(24) %94)
          to label %95 unwind label %99

95:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %16, align 8, !tbaa !9
  %98 = getelementptr inbounds %"struct.graph::types::edge_t", ptr %97, i32 1
  store ptr %98, ptr %16, align 8, !tbaa !9
  br label %38

99:                                               ; preds = %84
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %13, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %103

103:                                              ; preds = %99, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %104

104:                                              ; preds = %103, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %109

105:                                              ; preds = %42
  call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #3
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %10, align 4, !tbaa !5
  br label %22, !llvm.loop !18

109:                                              ; preds = %104, %43
  call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %112

110:                                              ; preds = %26
  %111 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN10test_utils15shuffleEdgeListER12DynamicArrayIN5graph5types6edge_tIilEEE(ptr noundef nonnull align 8 dereferenceable(32) %111)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret void

112:                                              ; preds = %109
  %113 = load ptr, ptr %13, align 8
  %114 = load i32, ptr %14, align 4
  %115 = insertvalue { ptr, i32 } poison, ptr %113, 0
  %116 = insertvalue { ptr, i32 } %115, i32 %114, 1
  resume { ptr, i32 } %116
}

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


; 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.DynamicArray = type { ptr, i64, i64, i64 }

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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 #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10test_utils40randomNumComponentsGraphWithTerminationsEiiiR12DynamicArrayIN5graph5types6edge_tIilEEE(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.DynamicArray, align 8
  tail call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %6 = icmp sgt i32 %0, 0
  br i1 %6, label %.lr.ph39.preheader, label %._crit_edge40

.lr.ph39.preheader:                               ; preds = %4
  %7 = add nsw i32 %1, 2
  %8 = sext i32 %7 to i64
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.lr.ph39

._crit_edge40:                                    ; preds = %._crit_edge, %4
  call void @_ZN10test_utils15shuffleEdgeListER12DynamicArrayIN5graph5types6edge_tIilEEE(ptr noundef nonnull align 8 dereferenceable(32) %3)
  ret void

.lr.ph39:                                         ; preds = %.lr.ph39.preheader, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph39.preheader ], [ %indvars.iv.next, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #3
  call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEEC2Ej(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %1)
  invoke void @_ZN10test_utils24randomConnectedComponentEiiR12DynamicArrayIN5graph5types6edge_tIilEEE(i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %9 unwind label %15

9:                                                ; preds = %.lr.ph39
  %10 = call noundef ptr @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %11 = call noundef ptr @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %.not35 = icmp eq ptr %10, %11
  br i1 %.not35, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %12 = mul nsw i64 %indvars.iv, %8
  %13 = trunc nsw i64 %12 to i32
  %14 = sub i32 0, %13
  br label %17

._crit_edge:                                      ; preds = %28, %9
  call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
  %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_edge40, label %.lr.ph39, !llvm.loop !5

15:                                               ; preds = %.lr.ph39
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %32

17:                                               ; preds = %.lr.ph, %28
  %.03136 = phi ptr [ %10, %.lr.ph ], [ %29, %28 ]
  %18 = load i32, ptr %.03136, align 8, !tbaa !7
  %19 = add nsw i32 %18, %13
  store i32 %19, ptr %.03136, align 8, !tbaa !7
  %20 = getelementptr inbounds i8, ptr %.03136, i64 16
  %21 = load i32, ptr %20, align 8, !tbaa !14
  %22 = icmp eq i32 %21, 2
  %23 = getelementptr inbounds i8, ptr %.03136, i64 4
  %24 = load i32, ptr %23, align 4, !tbaa !15
  %.sink.p = select i1 %22, i32 %14, i32 %13
  %.sink = add i32 %24, %.sink.p
  store i32 %.sink, ptr %23, align 4, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %.03136, i64 8
  %26 = load i64, ptr %25, align 8, !tbaa !16
  %27 = add nsw i64 %26, %12
  store i64 %27, ptr %25, align 8, !tbaa !16
  invoke void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %.03136)
          to label %28 unwind label %30

28:                                               ; preds = %17
  %29 = getelementptr inbounds i8, ptr %.03136, i64 24
  %.not = icmp eq ptr %29, %11
  br i1 %.not, label %._crit_edge, label %17

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

32:                                               ; preds = %30, %15
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %16, %15 ]
  call void @_ZN12DynamicArrayIN5graph5types6edge_tIilEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
  resume { ptr, i32 } %.pn
}

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


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