; LLVM IR from jdlph/TransOMS :: src (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::__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" }

@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8transoms13NetworkHandle26update_simulation_settingsEtRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %0, i16 noundef zeroext %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca i1, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca i1, align 1
  %16 = alloca i1, align 1
  %17 = alloca i16, align 2
  %18 = alloca i16, align 2
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i16 %1, ptr %5, align 2, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  %20 = load i16, ptr %5, align 2, !tbaa !9
  %21 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %19, i32 0, i32 6
  store i16 %20, ptr %21, align 2, !tbaa !11
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  call void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef @.str.10, i64 noundef 13)
  %23 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  store i1 false, ptr %9, align 1
  store i1 false, ptr %12, align 1
  br i1 %23, label %28, label %24

24:                                               ; preds = %3
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  store i1 true, ptr %9, align 1
  invoke void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef @.str.11, i64 noundef 13)
          to label %26 unwind label %38

26:                                               ; preds = %24
  store i1 true, ptr %12, align 1
  %27 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %28

28:                                               ; preds = %26, %3
  %29 = phi i1 [ true, %3 ], [ %27, %26 ]
  %30 = load i1, ptr %12, align 1
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %32

32:                                               ; preds = %31, %28
  %33 = load i1, ptr %9, align 1
  br i1 %33, label %34, label %35

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

35:                                               ; preds = %34, %32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  br i1 %29, label %36, label %45

36:                                               ; preds = %35
  %37 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %19, i32 0, i32 8
  store i32 1, ptr %37, align 8, !tbaa !80
  br label %70

38:                                               ; preds = %24
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %10, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %11, align 4
  %42 = load i1, ptr %9, align 1
  br i1 %42, label %43, label %44

43:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  br label %44

44:                                               ; preds = %43, %38
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  br label %86

45:                                               ; preds = %35
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef @.str.12, i64 noundef 14)
  %47 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  store i1 false, ptr %15, align 1
  store i1 false, ptr %16, align 1
  br i1 %47, label %52, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  store i1 true, ptr %15, align 1
  invoke void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef @.str.13, i64 noundef 14)
          to label %50 unwind label %62

50:                                               ; preds = %48
  store i1 true, ptr %16, align 1
  %51 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %52

52:                                               ; preds = %50, %45
  %53 = phi i1 [ true, %45 ], [ %51, %50 ]
  %54 = load i1, ptr %16, align 1
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %56

56:                                               ; preds = %55, %52
  %57 = load i1, ptr %15, align 1
  br i1 %57, label %58, label %59

58:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  br label %59

59:                                               ; preds = %58, %56
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  br i1 %53, label %60, label %69

60:                                               ; preds = %59
  %61 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %19, i32 0, i32 8
  store i32 2, ptr %61, align 8, !tbaa !80
  br label %69

62:                                               ; preds = %48
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  %66 = load i1, ptr %15, align 1
  br i1 %66, label %67, label %68

67:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  br label %68

68:                                               ; preds = %67, %62
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  br label %86

69:                                               ; preds = %60, %59
  br label %70

70:                                               ; preds = %69, %36
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #5
  %71 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %19, i32 0, i32 4
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #5
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = call noundef zeroext i16 @_ZNK8transoms12DemandPeriod14get_start_timeEv(ptr noundef nonnull align 8 dereferenceable(112) %73)
  store i16 %74, ptr %17, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #5
  %75 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %19, i32 0, i32 4
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #5
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = call noundef zeroext i16 @_ZNK8transoms12DemandPeriod12get_end_timeEv(ptr noundef nonnull align 8 dereferenceable(112) %77)
  store i16 %78, ptr %18, align 2, !tbaa !9
  %79 = load i16, ptr %18, align 2, !tbaa !9
  %80 = zext i16 %79 to i32
  %81 = load i16, ptr %17, align 2, !tbaa !9
  %82 = zext i16 %81 to i32
  %83 = sub nsw i32 %80, %82
  %84 = trunc i32 %83 to i16
  %85 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %19, i32 0, i32 7
  store i16 %84, ptr %85, align 4, !tbaa !81
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  ret void

86:                                               ; preds = %68, %44
  %87 = load ptr, ptr %10, align 8
  %88 = load i32, ptr %11, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, i64 noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK8transoms12DemandPeriod14get_start_timeEv(ptr noundef nonnull align 8 dereferenceable(112)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK8transoms12DemandPeriod12get_end_timeEv(ptr noundef nonnull align 8 dereferenceable(112)) #1 align 2

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !10, i64 402}
!12 = !{!"_ZTSN8transoms13NetworkHandleE", !13, i64 0, !27, i64 72, !54, i64 328, !58, i64 352, !62, i64 376, !10, i64 400, !10, i64 402, !10, i64 404, !66, i64 408, !67, i64 416, !71, i64 440, !75, i64 464}
!13 = !{!"_ZTSN8transoms10ColumnPoolE", !14, i64 0, !23, i64 48}
!14 = !{!"_ZTSSt3mapISt5tupleIJjjttEEjSt4lessIS1_ESaISt4pairIKS1_jEEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeISt5tupleIJjjttEESt4pairIKS1_jESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeISt5tupleIJjjttEESt4pairIKS1_jESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt5tupleIJjjttEEEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessISt5tupleIJjjttEEE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !22, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSSt6vectorIN8transoms9ColumnVecESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN8transoms9ColumnVecESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN8transoms9ColumnVecESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN8transoms9ColumnVecESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSN8transoms10PhyNetworkE", !28, i64 0, !29, i64 8, !30, i64 16, !34, i64 40, !38, i64 64, !38, i64 112, !43, i64 160, !47, i64 184, !51, i64 208}
!28 = !{!"_ZTSN8transoms7NetworkE"}
!29 = !{!"int", !7, i64 0}
!30 = !{!"_ZTSSt6vectorIPN8transoms4LinkESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPN8transoms4LinkESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN8transoms4LinkESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN8transoms4LinkESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorIPN8transoms4NodeESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIPN8transoms4NodeESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIPN8transoms4NodeESaIS2_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN8transoms4NodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !41, i64 0, !19, i64 8}
!41 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !42, i64 0}
!42 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!43 = !{!"_ZTSSt6vectorIPKN8transoms4NodeESaIS3_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIPKN8transoms4NodeESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms4NodeESaIS3_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms4NodeESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN8transoms4ZoneESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !52, i64 0}
!52 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN8transoms4ZoneEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !53, i64 0}
!53 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN8transoms4ZoneEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !41, i64 0, !19, i64 8}
!54 = !{!"_ZTSSt6vectorIPN8transoms9SPNetworkESaIS2_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseIPN8transoms9SPNetworkESaIS2_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIPN8transoms9SPNetworkESaIS2_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIPN8transoms9SPNetworkESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!58 = !{!"_ZTSSt6vectorIPKN8transoms9AgentTypeESaIS3_EE", !59, i64 0}
!59 = !{!"_ZTSSt12_Vector_baseIPKN8transoms9AgentTypeESaIS3_EE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms9AgentTypeESaIS3_EE12_Vector_implE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms9AgentTypeESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!62 = !{!"_ZTSSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE", !63, i64 0}
!63 = !{!"_ZTSSt12_Vector_baseIPKN8transoms12DemandPeriodESaIS3_EE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms12DemandPeriodESaIS3_EE12_Vector_implE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms12DemandPeriodESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!66 = !{!"_ZTSN8transoms16TrafficFlowModelE", !7, i64 0}
!67 = !{!"_ZTSSt6vectorIN8transoms9LinkQueueESaIS1_EE", !68, i64 0}
!68 = !{!"_ZTSSt12_Vector_baseIN8transoms9LinkQueueESaIS1_EE", !69, i64 0}
!69 = !{!"_ZTSNSt12_Vector_baseIN8transoms9LinkQueueESaIS1_EE12_Vector_implE", !70, i64 0}
!70 = !{!"_ZTSNSt12_Vector_baseIN8transoms9LinkQueueESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!71 = !{!"_ZTSSt6vectorIN8transoms5AgentESaIS1_EE", !72, i64 0}
!72 = !{!"_ZTSSt12_Vector_baseIN8transoms5AgentESaIS1_EE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseIN8transoms5AgentESaIS1_EE12_Vector_implE", !74, i64 0}
!74 = !{!"_ZTSNSt12_Vector_baseIN8transoms5AgentESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!75 = !{!"_ZTSSt3mapIjSt6vectorIjSaIjEESt4lessIjESaISt4pairIKjS2_EEE", !76, i64 0}
!76 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjSt6vectorIjSaIjEEESt10_Select1stIS5_ESt4lessIjESaIS5_EE", !77, i64 0}
!77 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjSt6vectorIjSaIjEEESt10_Select1stIS5_ESt4lessIjESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !78, i64 0, !19, i64 8}
!78 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !79, i64 0}
!79 = !{!"_ZTSSt4lessIjE"}
!80 = !{!12, !66, i64 408}
!81 = !{!12, !10, i64 404}


; 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::__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] }

@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8transoms13NetworkHandle26update_simulation_settingsEtRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %0, i16 noundef zeroext %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 402
  store i16 %1, ptr %8, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull @.str.10, i64 noundef 13)
  %9 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br i1 %9, label %.critedge.thread, label %10

.critedge.thread:                                 ; preds = %3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %.sink.split

10:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  invoke void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull @.str.11, i64 noundef 13)
          to label %.critedge unwind label %12

.critedge:                                        ; preds = %10
  %11 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br i1 %11, label %.sink.split, label %14

12:                                               ; preds = %10
  %13 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %31

14:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull @.str.12, i64 noundef 14)
  %15 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br i1 %15, label %.critedge22.thread, label %16

.critedge22.thread:                               ; preds = %14
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %.sink.split

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  invoke void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull @.str.13, i64 noundef 14)
          to label %.critedge22 unwind label %18

.critedge22:                                      ; preds = %16
  %17 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br i1 %17, label %.sink.split, label %21

18:                                               ; preds = %16
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %31

.sink.split:                                      ; preds = %.critedge22, %.critedge22.thread, %.critedge, %.critedge.thread
  %.sink = phi i32 [ 1, %.critedge.thread ], [ 1, %.critedge ], [ 2, %.critedge22.thread ], [ 2, %.critedge22 ]
  %20 = getelementptr inbounds i8, ptr %0, i64 408
  store i32 %.sink, ptr %20, align 8, !tbaa !78
  br label %21

21:                                               ; preds = %.sink.split, %.critedge22
  %22 = getelementptr inbounds i8, ptr %0, i64 376
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %24 = load ptr, ptr %23, align 8, !tbaa !79
  %25 = call noundef zeroext i16 @_ZNK8transoms12DemandPeriod14get_start_timeEv(ptr noundef nonnull align 8 dereferenceable(112) %24)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %27 = load ptr, ptr %26, align 8, !tbaa !79
  %28 = call noundef zeroext i16 @_ZNK8transoms12DemandPeriod12get_end_timeEv(ptr noundef nonnull align 8 dereferenceable(112) %27)
  %29 = sub i16 %28, %25
  %30 = getelementptr inbounds i8, ptr %0, i64 404
  store i16 %29, ptr %30, align 4, !tbaa !80
  ret void

31:                                               ; preds = %18, %12
  %.pn = phi { ptr, i32 } [ %19, %18 ], [ %13, %12 ]
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8literals15string_literalsli1sB5cxx11EPKcm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, i64 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK8transoms12DemandPeriod14get_start_timeEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK8transoms12DemandPeriod12get_end_timeEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1 align 2

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !63, i64 402}
!6 = !{!"_ZTSN8transoms13NetworkHandleE", !7, i64 0, !24, i64 72, !51, i64 328, !55, i64 352, !59, i64 376, !63, i64 400, !63, i64 402, !63, i64 404, !64, i64 408, !65, i64 416, !69, i64 440, !73, i64 464}
!7 = !{!"_ZTSN8transoms10ColumnPoolE", !8, i64 0, !20, i64 48}
!8 = !{!"_ZTSSt3mapISt5tupleIJjjttEEjSt4lessIS1_ESaISt4pairIKS1_jEEE", !9, i64 0}
!9 = !{!"_ZTSSt8_Rb_treeISt5tupleIJjjttEESt4pairIKS1_jESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !10, i64 0}
!10 = !{!"_ZTSNSt8_Rb_treeISt5tupleIJjjttEESt4pairIKS1_jESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !11, i64 0, !13, i64 8}
!11 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt5tupleIJjjttEEEE", !12, i64 0}
!12 = !{!"_ZTSSt4lessISt5tupleIJjjttEEE"}
!13 = !{!"_ZTSSt15_Rb_tree_header", !14, i64 0, !19, i64 32}
!14 = !{!"_ZTSSt18_Rb_tree_node_base", !15, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!15 = !{!"_ZTSSt14_Rb_tree_color", !16, i64 0}
!16 = !{!"omnipotent char", !17, i64 0}
!17 = !{!"Simple C++ TBAA"}
!18 = !{!"any pointer", !16, i64 0}
!19 = !{!"long", !16, i64 0}
!20 = !{!"_ZTSSt6vectorIN8transoms9ColumnVecESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN8transoms9ColumnVecESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN8transoms9ColumnVecESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN8transoms9ColumnVecESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!24 = !{!"_ZTSN8transoms10PhyNetworkE", !25, i64 0, !26, i64 8, !27, i64 16, !31, i64 40, !35, i64 64, !35, i64 112, !40, i64 160, !44, i64 184, !48, i64 208}
!25 = !{!"_ZTSN8transoms7NetworkE"}
!26 = !{!"int", !16, i64 0}
!27 = !{!"_ZTSSt6vectorIPN8transoms4LinkESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPN8transoms4LinkESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN8transoms4LinkESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN8transoms4LinkESaIS2_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!31 = !{!"_ZTSSt6vectorIPN8transoms4NodeESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPN8transoms4NodeESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN8transoms4NodeESaIS2_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN8transoms4NodeESaIS2_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!35 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !38, i64 0, !13, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!40 = !{!"_ZTSSt6vectorIPKN8transoms4NodeESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIPKN8transoms4NodeESaIS3_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms4NodeESaIS3_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms4NodeESaIS3_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!44 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!48 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN8transoms4ZoneESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !49, i64 0}
!49 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN8transoms4ZoneEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !50, i64 0}
!50 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN8transoms4ZoneEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !38, i64 0, !13, i64 8}
!51 = !{!"_ZTSSt6vectorIPN8transoms9SPNetworkESaIS2_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIPN8transoms9SPNetworkESaIS2_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIPN8transoms9SPNetworkESaIS2_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN8transoms9SPNetworkESaIS2_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!55 = !{!"_ZTSSt6vectorIPKN8transoms9AgentTypeESaIS3_EE", !56, i64 0}
!56 = !{!"_ZTSSt12_Vector_baseIPKN8transoms9AgentTypeESaIS3_EE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms9AgentTypeESaIS3_EE12_Vector_implE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms9AgentTypeESaIS3_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!59 = !{!"_ZTSSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseIPKN8transoms12DemandPeriodESaIS3_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms12DemandPeriodESaIS3_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseIPKN8transoms12DemandPeriodESaIS3_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!63 = !{!"short", !16, i64 0}
!64 = !{!"_ZTSN8transoms16TrafficFlowModelE", !16, i64 0}
!65 = !{!"_ZTSSt6vectorIN8transoms9LinkQueueESaIS1_EE", !66, i64 0}
!66 = !{!"_ZTSSt12_Vector_baseIN8transoms9LinkQueueESaIS1_EE", !67, i64 0}
!67 = !{!"_ZTSNSt12_Vector_baseIN8transoms9LinkQueueESaIS1_EE12_Vector_implE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseIN8transoms9LinkQueueESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!69 = !{!"_ZTSSt6vectorIN8transoms5AgentESaIS1_EE", !70, i64 0}
!70 = !{!"_ZTSSt12_Vector_baseIN8transoms5AgentESaIS1_EE", !71, i64 0}
!71 = !{!"_ZTSNSt12_Vector_baseIN8transoms5AgentESaIS1_EE12_Vector_implE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseIN8transoms5AgentESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!73 = !{!"_ZTSSt3mapIjSt6vectorIjSaIjEESt4lessIjESaISt4pairIKjS2_EEE", !74, i64 0}
!74 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjSt6vectorIjSaIjEEESt10_Select1stIS5_ESt4lessIjESaIS5_EE", !75, i64 0}
!75 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjSt6vectorIjSaIjEEESt10_Select1stIS5_ESt4lessIjESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !76, i64 0, !13, i64 8}
!76 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !77, i64 0}
!77 = !{!"_ZTSSt4lessIjE"}
!78 = !{!6, !64, i64 408}
!79 = !{!18, !18, i64 0}
!80 = !{!6, !63, i64 404}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass