; LLVM IR from alibaba/euler :: euler/core/graph (graph_builder)

; 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.euler::Status" = type { i32, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.euler::LogMessage" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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 }
%"struct.euler::TaskInfo" = type { ptr, ptr, i32, i32, i32, %"class.std::vector.10", %"class.std::vector.15" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<euler::Node *, std::allocator<euler::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<euler::Node *, std::allocator<euler::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<euler::Node *, std::allocator<euler::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<euler::Node *, std::allocator<euler::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<euler::Edge *, std::allocator<euler::Edge *>>::_Vector_impl" }
%"struct.std::_Vector_base<euler::Edge *, std::allocator<euler::Edge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<euler::Edge *, std::allocator<euler::Edge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<euler::Edge *, std::allocator<euler::Edge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.23 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [18 x i8], align 1

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

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

declare void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5euler12GraphBuilder10AddToGraphEPNS_5GraphEPKNS_8TaskInfoES5_(ptr dead_on_unwind noalias writable sret(%"class.euler::Status") align 8 %0, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.euler::LogMessage", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca %"class.euler::LogMessage", align 8
  %17 = alloca i64, align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8
  br label %19

19:                                               ; preds = %33, %5
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = icmp ult ptr %20, %21
  br i1 %22, label %23, label %36

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %24, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.euler::TaskInfo", ptr %26, i32 0, i32 5
  %28 = call noundef zeroext i1 @_ZN5euler5Graph11AddNodeFromERKSt6vectorIPNS_4NodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(816) %25, ptr noundef nonnull align 8 dereferenceable(24) %27)
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.euler::TaskInfo", ptr %30, i32 0, i32 6
  %32 = call noundef zeroext i1 @_ZN5euler5Graph11AddEdgeFromERKSt6vectorIPNS_4EdgeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(816) %29, ptr noundef nonnull align 8 dereferenceable(24) %31)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %33

33:                                               ; preds = %23
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.euler::TaskInfo", ptr %34, i32 1
  store ptr %35, ptr %9, align 8, !tbaa !5
  br label %19, !llvm.loop !9

36:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 392, ptr %12) #5
  call void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef @.str.23, i32 noundef 168, i32 noundef 1)
  %37 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA18_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef nonnull align 1 dereferenceable(18) @.str.32)
          to label %38 unwind label %51

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = invoke noundef i64 @_ZN5euler5Graph11getNodeSizeEv(ptr noundef nonnull align 8 dereferenceable(816) %39)
          to label %41 unwind label %55

41:                                               ; preds = %38
  store i64 %40, ptr %15, align 8, !tbaa !11
  %42 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageElEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %37, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %43 unwind label %55

43:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 392, ptr %16) #5
  call void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %16, ptr noundef @.str.23, i32 noundef 169, i32 noundef 1)
  %44 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA18_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %16, ptr noundef nonnull align 1 dereferenceable(18) @.str.33)
          to label %45 unwind label %60

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = invoke noundef i64 @_ZN5euler5Graph11getEdgeSizeEv(ptr noundef nonnull align 8 dereferenceable(816) %46)
          to label %48 unwind label %64

48:                                               ; preds = %45
  store i64 %47, ptr %17, align 8, !tbaa !11
  %49 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageElEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %44, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %50 unwind label %64

50:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %16) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr %16) #5
  call void @_ZN5euler6Status2OKEv(ptr dead_on_unwind writable sret(%"class.euler::Status") align 8 %0)
  ret void

51:                                               ; preds = %36
  %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 %59

55:                                               ; preds = %41, %38
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %13, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %59

59:                                               ; preds = %55, %51
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr %12) #5
  br label %69

60:                                               ; preds = %43
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %13, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %14, align 4
  br label %68

64:                                               ; preds = %48, %45
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %13, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %68

68:                                               ; preds = %64, %60
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %16) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr %16) #5
  br label %69

69:                                               ; preds = %68, %59
  %70 = load ptr, ptr %13, align 8
  %71 = load i32, ptr %14, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5euler6Status2OKEv(ptr dead_on_unwind noalias writable sret(%"class.euler::Status") align 8) #3 align 2

declare noundef zeroext i1 @_ZN5euler5Graph11AddNodeFromERKSt6vectorIPNS_4NodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(816), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef zeroext i1 @_ZN5euler5Graph11AddEdgeFromERKSt6vectorIPNS_4EdgeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(816), ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageElEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA18_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(18)) #4

declare noundef i64 @_ZN5euler5Graph11getNodeSizeEv(ptr noundef nonnull align 8 dereferenceable(816)) #1

declare noundef i64 @_ZN5euler5Graph11getEdgeSizeEv(ptr noundef nonnull align 8 dereferenceable(816)) #1

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


; 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.euler::Status" = type { i32, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.euler::LogMessage" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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 }

@.str.23 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [18 x i8], align 1

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

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

declare void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5euler12GraphBuilder10AddToGraphEPNS_5GraphEPKNS_8TaskInfoES5_(ptr dead_on_unwind noalias writable sret(%"class.euler::Status") align 8 %0, ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %1, ptr noundef %2, ptr noundef %3, ptr noundef readnone %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.euler::LogMessage", align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.euler::LogMessage", align 8
  %9 = alloca i64, align 8
  %10 = icmp ult ptr %3, %4
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5, %.lr.ph
  %.01520 = phi ptr [ %15, %.lr.ph ], [ %3, %5 ]
  %11 = getelementptr inbounds i8, ptr %.01520, i64 32
  %12 = tail call noundef zeroext i1 @_ZN5euler5Graph11AddNodeFromERKSt6vectorIPNS_4NodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(816) %2, ptr noundef nonnull align 8 dereferenceable(24) %11)
  %13 = getelementptr inbounds i8, ptr %.01520, i64 56
  %14 = tail call noundef zeroext i1 @_ZN5euler5Graph11AddEdgeFromERKSt6vectorIPNS_4EdgeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(816) %2, ptr noundef nonnull align 8 dereferenceable(24) %13)
  %15 = getelementptr inbounds i8, ptr %.01520, i64 80
  %16 = icmp ult ptr %15, %4
  br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %5
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %6) #5
  call void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %6, ptr noundef nonnull @.str.23, i32 noundef 168, i32 noundef 1)
  %17 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA18_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %6, ptr noundef nonnull align 1 dereferenceable(18) @.str.32)
          to label %18 unwind label %29

18:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %19 = invoke noundef i64 @_ZN5euler5Graph11getNodeSizeEv(ptr noundef nonnull align 8 dereferenceable(816) %2)
          to label %20 unwind label %31

20:                                               ; preds = %18
  store i64 %19, ptr %7, align 8, !tbaa !7
  %21 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageElEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %17, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %22 unwind label %31

22:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %6) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %8) #5
  call void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull @.str.23, i32 noundef 169, i32 noundef 1)
  %23 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA18_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 1 dereferenceable(18) @.str.33)
          to label %24 unwind label %34

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %25 = invoke noundef i64 @_ZN5euler5Graph11getEdgeSizeEv(ptr noundef nonnull align 8 dereferenceable(816) %2)
          to label %26 unwind label %36

26:                                               ; preds = %24
  store i64 %25, ptr %9, align 8, !tbaa !7
  %27 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageElEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %23, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %28 unwind label %36

28:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %8) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %8) #5
  call void @_ZN5euler6Status2OKEv(ptr dead_on_unwind writable sret(%"class.euler::Status") align 8 %0)
  ret void

29:                                               ; preds = %._crit_edge
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %33

31:                                               ; preds = %20, %18
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %33

33:                                               ; preds = %31, %29
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %30, %29 ]
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %6) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %6) #5
  br label %39

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

36:                                               ; preds = %26, %24
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %38

38:                                               ; preds = %36, %34
  %.pn17 = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %8) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %8) #5
  br label %39

39:                                               ; preds = %38, %33
  %.pn17.pn = phi { ptr, i32 } [ %.pn17, %38 ], [ %.pn, %33 ]
  resume { ptr, i32 } %.pn17.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5euler6Status2OKEv(ptr dead_on_unwind noalias writable sret(%"class.euler::Status") align 8) local_unnamed_addr #3 align 2

declare noundef zeroext i1 @_ZN5euler5Graph11AddNodeFromERKSt6vectorIPNS_4NodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(816), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN5euler5Graph11AddEdgeFromERKSt6vectorIPNS_4EdgeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(816), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageElEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA18_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(18)) local_unnamed_addr #4

declare noundef i64 @_ZN5euler5Graph11getNodeSizeEv(ptr noundef nonnull align 8 dereferenceable(816)) local_unnamed_addr #1

declare noundef i64 @_ZN5euler5Graph11getEdgeSizeEv(ptr noundef nonnull align 8 dereferenceable(816)) local_unnamed_addr #1

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


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass