; LLVM IR from jdlph/TransOMS :: src/utils.ll (ZN8transoms13NetworkHandle10auto_setupEv)

; 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.transoms::Demand" = type { i16, %"class.std::__cxx11::basic_string", ptr }
%"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.transoms::NetworkHandle" = type { %"class.transoms::ColumnPool", %"class.transoms::PhyNetwork", %"class.std::vector.58", %"class.std::vector.63", %"class.std::vector.68", i16, i16, i16, i32, %"class.std::vector.73", %"class.std::vector.78", %"class.std::map.83" }
%"class.transoms::ColumnPool" = type { %"class.std::map.22", %"class.std::vector.28" }
%"class.std::map.22" = type { %"class.std::_Rb_tree.23" }
%"class.std::_Rb_tree.23" = type { %"struct.std::_Rb_tree<std::tuple<unsigned int, unsigned int, unsigned short, unsigned short>, std::pair<const std::tuple<unsigned int, unsigned int, unsigned short, unsigned short>, unsigned int>, std::_Select1st<std::pair<const std::tuple<unsigned int, unsigned int, unsigned short, unsigned short>, unsigned int>>, std::less<std::tuple<unsigned int, unsigned int, unsigned short, unsigned short>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::tuple<unsigned int, unsigned int, unsigned short, unsigned short>, std::pair<const std::tuple<unsigned int, unsigned int, unsigned short, unsigned short>, unsigned int>, std::_Select1st<std::pair<const std::tuple<unsigned int, unsigned int, unsigned short, unsigned short>, unsigned int>>, std::less<std::tuple<unsigned int, unsigned int, unsigned short, unsigned short>>>::_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 }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<transoms::ColumnVec, std::allocator<transoms::ColumnVec>>::_Vector_impl" }
%"struct.std::_Vector_base<transoms::ColumnVec, std::allocator<transoms::ColumnVec>>::_Vector_impl" = type { %"struct.std::_Vector_base<transoms::ColumnVec, std::allocator<transoms::ColumnVec>>::_Vector_impl_data" }
%"struct.std::_Vector_base<transoms::ColumnVec, std::allocator<transoms::ColumnVec>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.transoms::PhyNetwork" = type { %"class.transoms::Network", i32, %"class.std::vector.33", %"class.std::vector.38", %"class.std::map.43", %"class.std::map.43", %"class.std::vector.48", %"class.std::vector", %"class.std::map.53" }
%"class.transoms::Network" = type { ptr }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<transoms::Link *, std::allocator<transoms::Link *>>::_Vector_impl" }
%"struct.std::_Vector_base<transoms::Link *, std::allocator<transoms::Link *>>::_Vector_impl" = type { %"struct.std::_Vector_base<transoms::Link *, std::allocator<transoms::Link *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<transoms::Link *, std::allocator<transoms::Link *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<transoms::Node *, std::allocator<transoms::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<transoms::Node *, std::allocator<transoms::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<transoms::Node *, std::allocator<transoms::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<transoms::Node *, std::allocator<transoms::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.43" = type { %"class.std::_Rb_tree.44" }
%"class.std::_Rb_tree.44" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.48" = type { %"struct.std::_Vector_base.49" }
%"struct.std::_Vector_base.49" = type { %"struct.std::_Vector_base<const transoms::Node *, std::allocator<const transoms::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<const transoms::Node *, std::allocator<const transoms::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const transoms::Node *, std::allocator<const transoms::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const transoms::Node *, std::allocator<const transoms::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.53" = type { %"class.std::_Rb_tree.54" }
%"class.std::_Rb_tree.54" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, transoms::Zone *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, transoms::Zone *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, transoms::Zone *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, transoms::Zone *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.58" = type { %"struct.std::_Vector_base.59" }
%"struct.std::_Vector_base.59" = type { %"struct.std::_Vector_base<transoms::SPNetwork *, std::allocator<transoms::SPNetwork *>>::_Vector_impl" }
%"struct.std::_Vector_base<transoms::SPNetwork *, std::allocator<transoms::SPNetwork *>>::_Vector_impl" = type { %"struct.std::_Vector_base<transoms::SPNetwork *, std::allocator<transoms::SPNetwork *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<transoms::SPNetwork *, std::allocator<transoms::SPNetwork *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.63" = type { %"struct.std::_Vector_base.64" }
%"struct.std::_Vector_base.64" = type { %"struct.std::_Vector_base<const transoms::AgentType *, std::allocator<const transoms::AgentType *>>::_Vector_impl" }
%"struct.std::_Vector_base<const transoms::AgentType *, std::allocator<const transoms::AgentType *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const transoms::AgentType *, std::allocator<const transoms::AgentType *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const transoms::AgentType *, std::allocator<const transoms::AgentType *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.68" = type { %"struct.std::_Vector_base.69" }
%"struct.std::_Vector_base.69" = type { %"struct.std::_Vector_base<const transoms::DemandPeriod *, std::allocator<const transoms::DemandPeriod *>>::_Vector_impl" }
%"struct.std::_Vector_base<const transoms::DemandPeriod *, std::allocator<const transoms::DemandPeriod *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const transoms::DemandPeriod *, std::allocator<const transoms::DemandPeriod *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const transoms::DemandPeriod *, std::allocator<const transoms::DemandPeriod *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.73" = type { %"struct.std::_Vector_base.74" }
%"struct.std::_Vector_base.74" = type { %"struct.std::_Vector_base<transoms::LinkQueue, std::allocator<transoms::LinkQueue>>::_Vector_impl" }
%"struct.std::_Vector_base<transoms::LinkQueue, std::allocator<transoms::LinkQueue>>::_Vector_impl" = type { %"struct.std::_Vector_base<transoms::LinkQueue, std::allocator<transoms::LinkQueue>>::_Vector_impl_data" }
%"struct.std::_Vector_base<transoms::LinkQueue, std::allocator<transoms::LinkQueue>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.78" = type { %"struct.std::_Vector_base.79" }
%"struct.std::_Vector_base.79" = type { %"struct.std::_Vector_base<transoms::Agent, std::allocator<transoms::Agent>>::_Vector_impl" }
%"struct.std::_Vector_base<transoms::Agent, std::allocator<transoms::Agent>>::_Vector_impl" = type { %"struct.std::_Vector_base<transoms::Agent, std::allocator<transoms::Agent>>::_Vector_impl_data" }
%"struct.std::_Vector_base<transoms::Agent, std::allocator<transoms::Agent>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.83" = type { %"class.std::_Rb_tree.84" }
%"class.std::_Rb_tree.84" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, std::vector<unsigned int>>, std::_Select1st<std::pair<const unsigned int, std::vector<unsigned int>>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, std::vector<unsigned int>>, std::_Select1st<std::pair<const unsigned int, std::vector<unsigned int>>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8transoms13NetworkHandle10auto_setupEv(ptr noundef nonnull align 8 dereferenceable(512) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"class.transoms::Demand", align 8
  %8 = alloca i1, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %10 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #6
  invoke void @_ZN8transoms9AgentTypeC2Ev(ptr noundef nonnull align 8 dereferenceable(73) %10)
          to label %11 unwind label %18

11:                                               ; preds = %1
  store ptr %10, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %12 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 112) #6
  store i1 true, ptr %8, align 1
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN8transoms6DemandC2EPKNS_9AgentTypeE(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef %13)
          to label %14 unwind label %22

14:                                               ; preds = %11
  invoke void @_ZN8transoms12DemandPeriodC2EONS_6DemandE(ptr noundef nonnull align 8 dereferenceable(112) %12, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %15 unwind label %26

15:                                               ; preds = %14
  store i1 false, ptr %8, align 1
  call void @_ZN8transoms6DemandD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  store ptr %12, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %9, i32 0, i32 3
  call void @_ZNSt6vectorIPKN8transoms9AgentTypeESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %17 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %9, i32 0, i32 4
  call void @_ZNSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void

18:                                               ; preds = %1
  %19 = landingpad { ptr, i32 }
          cleanup
  %20 = extractvalue { ptr, i32 } %19, 0
  store ptr %20, ptr %4, align 8
  %21 = extractvalue { ptr, i32 } %19, 1
  store i32 %21, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %10, i64 noundef 80) #7
  br label %34

22:                                               ; preds = %11
  %23 = landingpad { ptr, i32 }
          cleanup
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %4, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %5, align 4
  br label %30

26:                                               ; preds = %14
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %4, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %5, align 4
  call void @_ZN8transoms6DemandD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  br label %30

30:                                               ; preds = %26, %22
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  %31 = load i1, ptr %8, align 1
  br i1 %31, label %32, label %33

32:                                               ; preds = %30
  call void @_ZdlPvm(ptr noundef %12, i64 noundef 112) #7
  br label %33

33:                                               ; preds = %32, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %34

34:                                               ; preds = %33, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %35

35:                                               ; preds = %34
  %36 = load ptr, ptr %4, align 8
  %37 = load i32, ptr %5, align 4
  %38 = insertvalue { ptr, i32 } poison, ptr %36, 0
  %39 = insertvalue { ptr, i32 } %38, i32 %37, 1
  resume { ptr, i32 } %39
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8transoms6DemandC2EPKNS_9AgentTypeE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8transoms12DemandPeriodC2EONS_6DemandE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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"}


; 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.transoms::Demand" = type { i16, %"class.std::__cxx11::basic_string", ptr }
%"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] }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8transoms13NetworkHandle10auto_setupEv(ptr noundef nonnull align 8 dereferenceable(512) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.transoms::Demand", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %5 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #6
  invoke void @_ZN8transoms9AgentTypeC2Ev(ptr noundef nonnull align 8 dereferenceable(73) %5)
          to label %6 unwind label %12

6:                                                ; preds = %1
  store ptr %5, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %7 = tail call noalias noundef nonnull dereferenceable(112) ptr @_Znwm(i64 noundef 112) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  invoke void @_ZN8transoms6DemandC2EPKNS_9AgentTypeE(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull %5)
          to label %8 unwind label %14

8:                                                ; preds = %6
  invoke void @_ZN8transoms12DemandPeriodC2EONS_6DemandE(ptr noundef nonnull align 8 dereferenceable(112) %7, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %9 unwind label %16

9:                                                ; preds = %8
  call void @_ZN8transoms6DemandD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  store ptr %7, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 352
  call void @_ZNSt6vectorIPKN8transoms9AgentTypeESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %11 = getelementptr inbounds i8, ptr %0, i64 376
  call void @_ZNSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret void

12:                                               ; preds = %1
  %13 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 80) #7
  br label %19

14:                                               ; preds = %6
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %18

16:                                               ; preds = %8
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8transoms6DemandD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  br label %18

18:                                               ; preds = %16, %14
  %.pn = phi { ptr, i32 } [ %17, %16 ], [ %15, %14 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  call void @_ZdlPvm(ptr noundef nonnull %7, i64 noundef 112) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %19

19:                                               ; preds = %18, %12
  %.pn.pn = phi { ptr, i32 } [ %.pn, %18 ], [ %13, %12 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8transoms6DemandC2EPKNS_9AgentTypeE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8transoms12DemandPeriodC2EONS_6DemandE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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"}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass