; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__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.miocsv::Writer" = type <{ %"class.std::basic_ofstream", i8, [7 x i8] }>
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.6 }
%union.anon.6 = type { i32 }
%"class.__gnu_cxx::__normal_iterator.157" = type { ptr }
%"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" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [33 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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms13NetworkHandle16get_head_node_idB5cxx11EPKNS_4LinkE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms13NetworkHandle16get_tail_node_idB5cxx11EPKNS_4LinkE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6WriterC2EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 4 dereferenceable(4), i8 noundef signext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6Writer6appendIdEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8transoms13NetworkHandle27output_link_performance_dtaERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.miocsv::Writer", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.157", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.157", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i16, align 2
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %33, i8 noundef signext 47)
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %35 unwind label %54

35:                                               ; preds = %3
  invoke void @_ZN6miocsv6WriterC2EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 8 dereferenceable(32) %8, i8 noundef signext 44)
          to label %36 unwind label %58

36:                                               ; preds = %35
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  invoke void @_ZN6miocsv6Writer13write_row_rawIA8_cJA13_cA11_cA12_cA7_cS5_S3_A6_cA3_cS8_S2_S7_EEEvRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 1 dereferenceable(8) @.str.51, ptr noundef nonnull align 1 dereferenceable(13) @.str.52, ptr noundef nonnull align 1 dereferenceable(11) @.str.53, ptr noundef nonnull align 1 dereferenceable(12) @.str.69, ptr noundef nonnull align 1 dereferenceable(7) @.str.29, ptr noundef nonnull align 1 dereferenceable(12) @.str.83, ptr noundef nonnull align 1 dereferenceable(13) @.str.88, ptr noundef nonnull align 1 dereferenceable(6) @.str.89, ptr noundef nonnull align 1 dereferenceable(3) @.str.90, ptr noundef nonnull align 1 dereferenceable(3) @.str.91, ptr noundef nonnull align 1 dereferenceable(8) @.str.92, ptr noundef nonnull align 1 dereferenceable(6) @.str.93)
          to label %37 unwind label %63

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #6
  %38 = invoke noundef i32 @_ZNK8transoms13NetworkHandle23cast_minute_to_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %32, i16 noundef zeroext 1)
          to label %39 unwind label %67

39:                                               ; preds = %37
  %40 = trunc i32 %38 to i16
  store i16 %40, ptr %12, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #6
  store i16 0, ptr %13, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %41 = load i16, ptr %13, align 2, !tbaa !9
  %42 = invoke noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %32, i16 noundef zeroext %41)
          to label %43 unwind label %71

43:                                               ; preds = %39
  store i32 %42, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %44 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %32, i32 0, i32 9
  store ptr %44, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.157", ptr %16, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  %49 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.157", ptr %17, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  br label %51

51:                                               ; preds = %243, %43
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br i1 %52, label %75, label %53

53:                                               ; preds = %51
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %246

54:                                               ; preds = %3
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %10, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %11, align 4
  br label %62

58:                                               ; preds = %35
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %10, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %62

62:                                               ; preds = %58, %54
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  br label %262

63:                                               ; preds = %36
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %11, align 4
  br label %261

67:                                               ; preds = %37
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %10, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %11, align 4
  br label %260

71:                                               ; preds = %256, %253, %251, %248, %246, %39
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %10, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %11, align 4
  br label %259

75:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %76 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  store ptr %76, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = invoke noundef ptr @_ZNK8transoms9LinkQueue8get_linkEv(ptr noundef nonnull align 8 dereferenceable(168) %77)
          to label %79 unwind label %85

79:                                               ; preds = %75
  store ptr %78, ptr %20, align 8, !tbaa !5
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  %81 = invoke noundef double @_ZNK8transoms4Link10get_lengthEv(ptr noundef nonnull align 8 dereferenceable(176) %80)
          to label %82 unwind label %85

82:                                               ; preds = %79
  %83 = fcmp une double %81, 0.000000e+00
  br i1 %83, label %89, label %84

84:                                               ; preds = %82
  store i32 3, ptr %18, align 4
  br label %237

85:                                               ; preds = %79, %75
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  br label %245

89:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %90 = invoke noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512) %32)
          to label %91 unwind label %97

91:                                               ; preds = %89
  store i32 %90, ptr %22, align 4, !tbaa !11
  br label %92

92:                                               ; preds = %195, %91
  %93 = load i32, ptr %21, align 4, !tbaa !11
  %94 = load i32, ptr %22, align 4, !tbaa !11
  %95 = icmp ne i32 %93, %94
  br i1 %95, label %101, label %96

96:                                               ; preds = %92
  store i32 4, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %236

97:                                               ; preds = %124, %119, %89
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %10, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %11, align 4
  br label %235

101:                                              ; preds = %92
  %102 = load i32, ptr %21, align 4, !tbaa !11
  %103 = load i16, ptr %12, align 2, !tbaa !9
  %104 = zext i16 %103 to i32
  %105 = urem i32 %102, %104
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %101
  br label %195

108:                                              ; preds = %101
  %109 = load i32, ptr %21, align 4, !tbaa !11
  %110 = load i32, ptr %14, align 4, !tbaa !11
  %111 = icmp uge i32 %109, %110
  br i1 %111, label %112, label %128

112:                                              ; preds = %108
  %113 = load i16, ptr %13, align 2, !tbaa !9
  %114 = zext i16 %113 to i64
  %115 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %32, i32 0, i32 4
  %116 = call noundef i64 @_ZNKSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #6
  %117 = sub i64 %116, 1
  %118 = icmp ult i64 %114, %117
  br i1 %118, label %119, label %124

119:                                              ; preds = %112
  %120 = load i16, ptr %13, align 2, !tbaa !9
  %121 = add i16 %120, 1
  store i16 %121, ptr %13, align 2, !tbaa !9
  %122 = invoke noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %32, i16 noundef zeroext %121)
          to label %123 unwind label %97

123:                                              ; preds = %119
  store i32 %122, ptr %14, align 4, !tbaa !11
  br label %127

124:                                              ; preds = %112
  %125 = invoke noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512) %32)
          to label %126 unwind label %97

126:                                              ; preds = %124
  store i32 %125, ptr %14, align 4, !tbaa !11
  br label %127

127:                                              ; preds = %126, %123
  br label %128

128:                                              ; preds = %127, %108
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #6
  %129 = load i32, ptr %21, align 4, !tbaa !11
  %130 = invoke noundef zeroext i16 @_ZNK8transoms13NetworkHandle23cast_interval_to_minuteEj(ptr noundef nonnull align 8 dereferenceable(512) %32, i32 noundef %129)
          to label %131 unwind label %198

131:                                              ; preds = %128
  store i16 %130, ptr %23, align 2, !tbaa !9
  %132 = load ptr, ptr %20, align 8, !tbaa !5
  %133 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms4Link6get_idB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(176) %132)
          to label %134 unwind label %198

134:                                              ; preds = %131
  invoke void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 8 dereferenceable(32) %133, i8 noundef signext 44)
          to label %135 unwind label %198

135:                                              ; preds = %134
  %136 = load ptr, ptr %20, align 8, !tbaa !5
  %137 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms13NetworkHandle16get_head_node_idB5cxx11EPKNS_4LinkE(ptr noundef nonnull align 8 dereferenceable(512) %32, ptr noundef %136)
          to label %138 unwind label %198

138:                                              ; preds = %135
  invoke void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 8 dereferenceable(32) %137, i8 noundef signext 44)
          to label %139 unwind label %198

139:                                              ; preds = %138
  %140 = load ptr, ptr %20, align 8, !tbaa !5
  %141 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms13NetworkHandle16get_tail_node_idB5cxx11EPKNS_4LinkE(ptr noundef nonnull align 8 dereferenceable(512) %32, ptr noundef %140)
          to label %142 unwind label %198

142:                                              ; preds = %139
  invoke void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 8 dereferenceable(32) %141, i8 noundef signext 44)
          to label %143 unwind label %198

143:                                              ; preds = %142
  %144 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %32, i32 0, i32 4
  %145 = load i16, ptr %13, align 2, !tbaa !9
  %146 = zext i16 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN8transoms12DemandPeriodESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #6
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms12DemandPeriod10get_periodB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(112) %148)
          to label %150 unwind label %198

150:                                              ; preds = %143
  invoke void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 8 dereferenceable(32) %149, i8 noundef signext 44)
          to label %151 unwind label %198

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %152 = load ptr, ptr %19, align 8, !tbaa !5
  %153 = load i32, ptr %21, align 4, !tbaa !11
  %154 = invoke noundef i32 @_ZNK8transoms9LinkQueue10get_volumeEj(ptr noundef nonnull align 8 dereferenceable(168) %152, i32 noundef %153)
          to label %155 unwind label %202

155:                                              ; preds = %151
  store i32 %154, ptr %24, align 4, !tbaa !11
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 4 dereferenceable(4) %24, i8 noundef signext 44)
          to label %156 unwind label %202

156:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %157 = load ptr, ptr %19, align 8, !tbaa !5
  %158 = load i32, ptr %21, align 4, !tbaa !11
  %159 = load i16, ptr %13, align 2, !tbaa !9
  %160 = invoke noundef i32 @_ZNK8transoms9LinkQueue15get_travel_timeEjt(ptr noundef nonnull align 8 dereferenceable(168) %157, i32 noundef %158, i16 noundef zeroext %159)
          to label %161 unwind label %206

161:                                              ; preds = %156
  store i32 %160, ptr %25, align 4, !tbaa !11
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 4 dereferenceable(4) %25, i8 noundef signext 44)
          to label %162 unwind label %206

162:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  %164 = load i32, ptr %21, align 4, !tbaa !11
  %165 = invoke noundef i32 @_ZNK8transoms9LinkQueue20get_avg_waiting_timeEj(ptr noundef nonnull align 8 dereferenceable(168) %163, i32 noundef %164)
          to label %166 unwind label %210

166:                                              ; preds = %162
  store i32 %165, ptr %26, align 4, !tbaa !11
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 4 dereferenceable(4) %26, i8 noundef signext 44)
          to label %167 unwind label %210

167:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %168 = load ptr, ptr %19, align 8, !tbaa !5
  %169 = load i32, ptr %21, align 4, !tbaa !11
  %170 = load i16, ptr %13, align 2, !tbaa !9
  %171 = invoke noundef double @_ZNK8transoms9LinkQueue9get_speedEjt(ptr noundef nonnull align 8 dereferenceable(168) %168, i32 noundef %169, i16 noundef zeroext %170)
          to label %172 unwind label %214

172:                                              ; preds = %167
  store double %171, ptr %27, align 8, !tbaa !13
  invoke void @_ZN6miocsv6Writer6appendIdEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 8 dereferenceable(8) %27, i8 noundef signext 44)
          to label %173 unwind label %214

173:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %174 = load ptr, ptr %19, align 8, !tbaa !5
  %175 = load i32, ptr %21, align 4, !tbaa !11
  %176 = invoke noundef i32 @_ZNK8transoms9LinkQueue22get_cumulative_arrivalEj(ptr noundef nonnull align 8 dereferenceable(168) %174, i32 noundef %175)
          to label %177 unwind label %218

177:                                              ; preds = %173
  store i32 %176, ptr %28, align 4, !tbaa !11
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 4 dereferenceable(4) %28, i8 noundef signext 44)
          to label %178 unwind label %218

178:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = load i32, ptr %21, align 4, !tbaa !11
  %181 = invoke noundef i32 @_ZNK8transoms9LinkQueue24get_cumulative_departureEj(ptr noundef nonnull align 8 dereferenceable(168) %179, i32 noundef %180)
          to label %182 unwind label %222

182:                                              ; preds = %178
  store i32 %181, ptr %29, align 4, !tbaa !11
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 4 dereferenceable(4) %29, i8 noundef signext 44)
          to label %183 unwind label %222

183:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = load i32, ptr %21, align 4, !tbaa !11
  %186 = invoke noundef double @_ZNK8transoms9LinkQueue11get_densityEj(ptr noundef nonnull align 8 dereferenceable(168) %184, i32 noundef %185)
          to label %187 unwind label %226

187:                                              ; preds = %183
  store double %186, ptr %30, align 8, !tbaa !13
  invoke void @_ZN6miocsv6Writer6appendIdEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 8 dereferenceable(8) %30, i8 noundef signext 44)
          to label %188 unwind label %226

188:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %189 = load ptr, ptr %19, align 8, !tbaa !5
  %190 = load i32, ptr %21, align 4, !tbaa !11
  %191 = load i16, ptr %13, align 2, !tbaa !9
  %192 = invoke noundef i32 @_ZNK8transoms9LinkQueue9get_queueEjt(ptr noundef nonnull align 8 dereferenceable(168) %189, i32 noundef %190, i16 noundef zeroext %191)
          to label %193 unwind label %230

193:                                              ; preds = %188
  store i32 %192, ptr %31, align 4, !tbaa !11
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %7, ptr noundef nonnull align 4 dereferenceable(4) %31, i8 noundef signext 44)
          to label %194 unwind label %230

194:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #6
  br label %195

195:                                              ; preds = %194, %107
  %196 = load i32, ptr %21, align 4, !tbaa !11
  %197 = add i32 %196, 1
  store i32 %197, ptr %21, align 4, !tbaa !11
  br label %92, !llvm.loop !15

198:                                              ; preds = %150, %143, %142, %139, %138, %135, %134, %131, %128
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %10, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %11, align 4
  br label %234

202:                                              ; preds = %155, %151
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %10, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %234

206:                                              ; preds = %161, %156
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %10, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %234

210:                                              ; preds = %166, %162
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %10, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %234

214:                                              ; preds = %172, %167
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %10, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %234

218:                                              ; preds = %177, %173
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %10, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %234

222:                                              ; preds = %182, %178
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %10, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %234

226:                                              ; preds = %187, %183
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %10, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %234

230:                                              ; preds = %193, %188
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %10, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %234

234:                                              ; preds = %230, %226, %222, %218, %214, %210, %206, %202, %198
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #6
  br label %235

235:                                              ; preds = %234, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %245

236:                                              ; preds = %96
  store i32 0, ptr %18, align 4
  br label %237

237:                                              ; preds = %236, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %238 = load i32, ptr %18, align 4
  switch i32 %238, label %240 [
    i32 0, label %239
  ]

239:                                              ; preds = %237
  store i32 0, ptr %18, align 4
  br label %240

240:                                              ; preds = %239, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %241 = load i32, ptr %18, align 4
  switch i32 %241, label %268 [
    i32 0, label %242
    i32 3, label %243
  ]

242:                                              ; preds = %240
  br label %243

243:                                              ; preds = %242, %240
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %51

245:                                              ; preds = %235, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %259

246:                                              ; preds = %53
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.85)
          to label %248 unwind label %71

248:                                              ; preds = %246
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef nonnull align 8 dereferenceable(32) %249)
          to label %251 unwind label %71

251:                                              ; preds = %248
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef @.str.86)
          to label %253 unwind label %71

253:                                              ; preds = %251
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %252, ptr noundef nonnull align 8 dereferenceable(32) %254)
          to label %256 unwind label %71

256:                                              ; preds = %253
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef @.str.94)
          to label %258 unwind label %71

258:                                              ; preds = %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #6
  call void @_ZN6miocsv6WriterD2Ev(ptr noundef nonnull align 8 dereferenceable(513) %7) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr %7) #6
  ret void

259:                                              ; preds = %245, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #6
  br label %260

260:                                              ; preds = %259, %67
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #6
  br label %261

261:                                              ; preds = %260, %63
  call void @_ZN6miocsv6WriterD2Ev(ptr noundef nonnull align 8 dereferenceable(513) %7) #6
  br label %262

262:                                              ; preds = %261, %62
  call void @llvm.lifetime.end.p0(i64 520, ptr %7) #6
  br label %263

263:                                              ; preds = %262
  %264 = load ptr, ptr %10, align 8
  %265 = load i32, ptr %11, align 4
  %266 = insertvalue { ptr, i32 } poison, ptr %264, 0
  %267 = insertvalue { ptr, i32 } %266, i32 %265, 1
  resume { ptr, i32 } %267

268:                                              ; preds = %240
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6Writer13write_row_rawIA8_cJA13_cA11_cA12_cA7_cS5_S3_A6_cA3_cS8_S2_S7_EEEvRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 1 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(13), ptr noundef nonnull align 1 dereferenceable(11), ptr noundef nonnull align 1 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(7), ptr noundef nonnull align 1 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(13), ptr noundef nonnull align 1 dereferenceable(6), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef nonnull align 1 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(6)) #3 align 2

declare noundef i32 @_ZNK8transoms13NetworkHandle23cast_minute_to_intervalEt(ptr noundef nonnull align 8 dereferenceable(512), i16 noundef zeroext) #4

declare noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512), i16 noundef zeroext) #4

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

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

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

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

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

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

declare noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512)) #4

declare noundef zeroext i16 @_ZNK8transoms13NetworkHandle23cast_interval_to_minuteEj(ptr noundef nonnull align 8 dereferenceable(512), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue10get_volumeEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue15get_travel_timeEjt(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i16 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue20get_avg_waiting_timeEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK8transoms9LinkQueue9get_speedEjt(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i16 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue22get_cumulative_arrivalEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue24get_cumulative_departureEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK8transoms9LinkQueue11get_densityEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue9get_queueEjt(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i16 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { 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 #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 = { "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 = { 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 #6 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__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.miocsv::Writer" = type <{ %"class.std::basic_ofstream", i8, [7 x i8] }>
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.6 }
%union.anon.6 = type { i32 }
%"class.__gnu_cxx::__normal_iterator.157" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [33 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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms13NetworkHandle16get_head_node_idB5cxx11EPKNS_4LinkE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms13NetworkHandle16get_tail_node_idB5cxx11EPKNS_4LinkE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6WriterC2EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 4 dereferenceable(4), i8 noundef signext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6Writer6appendIdEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8transoms13NetworkHandle27output_link_performance_dtaERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.miocsv::Writer", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.157", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.157", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %1, i8 noundef signext 47)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %17 unwind label %31

17:                                               ; preds = %3
  invoke void @_ZN6miocsv6WriterC2EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext 44)
          to label %18 unwind label %33

18:                                               ; preds = %17
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  invoke void @_ZN6miocsv6Writer13write_row_rawIA8_cJA13_cA11_cA12_cA7_cS5_S3_A6_cA3_cS8_S2_S7_EEEvRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 1 dereferenceable(8) @.str.51, ptr noundef nonnull align 1 dereferenceable(13) @.str.52, ptr noundef nonnull align 1 dereferenceable(11) @.str.53, ptr noundef nonnull align 1 dereferenceable(12) @.str.69, ptr noundef nonnull align 1 dereferenceable(7) @.str.29, ptr noundef nonnull align 1 dereferenceable(12) @.str.83, ptr noundef nonnull align 1 dereferenceable(13) @.str.88, ptr noundef nonnull align 1 dereferenceable(6) @.str.89, ptr noundef nonnull align 1 dereferenceable(3) @.str.90, ptr noundef nonnull align 1 dereferenceable(3) @.str.91, ptr noundef nonnull align 1 dereferenceable(8) @.str.92, ptr noundef nonnull align 1 dereferenceable(6) @.str.93)
          to label %19 unwind label %36

19:                                               ; preds = %18
  %20 = invoke noundef i32 @_ZNK8transoms13NetworkHandle23cast_minute_to_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %0, i16 noundef zeroext 1)
          to label %21 unwind label %38

21:                                               ; preds = %19
  %22 = invoke noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %0, i16 noundef zeroext 0)
          to label %23 unwind label %40

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 416
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %25 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  store ptr %25, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %26 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  store ptr %26, ptr %8, align 8
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %27, label %.lr.ph102, label %._crit_edge

.lr.ph102:                                        ; preds = %23
  %28 = and i32 %20, 65535
  %29 = getelementptr inbounds i8, ptr %0, i64 376
  br label %42

._crit_edge:                                      ; preds = %.loopexit, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.85)
          to label %122 unwind label %40

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

33:                                               ; preds = %17
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %132

36:                                               ; preds = %18
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %131

38:                                               ; preds = %19
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %131

40:                                               ; preds = %128, %126, %124, %122, %._crit_edge, %21
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %131

42:                                               ; preds = %.lr.ph102, %.loopexit
  %.053101 = phi i16 [ 0, %.lr.ph102 ], [ %.457, %.loopexit ]
  %.058100 = phi i32 [ %22, %.lr.ph102 ], [ %.462, %.loopexit ]
  %43 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %44 = call noundef ptr @_ZNK8transoms9LinkQueue8get_linkEv(ptr noundef nonnull align 8 dereferenceable(168) %43)
  %45 = call noundef double @_ZNK8transoms4Link10get_lengthEv(ptr noundef nonnull align 8 dereferenceable(176) %44)
  %46 = fcmp une double %45, 0.000000e+00
  br i1 %46, label %47, label %.loopexit

47:                                               ; preds = %42
  %48 = invoke noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512) %0)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %47
  %.not95 = icmp eq i32 %48, 0
  br i1 %.not95, label %.loopexit, label %.lr.ph

.loopexit74:                                      ; preds = %56, %59
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %119

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

.lr.ph:                                           ; preds = %.preheader, %99
  %.05298 = phi i32 [ %100, %99 ], [ 0, %.preheader ]
  %.15497 = phi i16 [ %.356, %99 ], [ %.053101, %.preheader ]
  %.15996 = phi i32 [ %.361, %99 ], [ %.058100, %.preheader ]
  %49 = urem i32 %.05298, %28
  %.not65 = icmp eq i32 %49, 0
  br i1 %.not65, label %50, label %99

50:                                               ; preds = %.lr.ph
  %.not66 = icmp ult i32 %.05298, %.15996
  br i1 %.not66, label %61, label %51

51:                                               ; preds = %50
  %52 = zext i16 %.15497 to i64
  %53 = call noundef i64 @_ZNKSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %54 = add i64 %53, -1
  %55 = icmp ugt i64 %54, %52
  br i1 %55, label %56, label %59

56:                                               ; preds = %51
  %57 = add i16 %.15497, 1
  %58 = invoke noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %0, i16 noundef zeroext %57)
          to label %61 unwind label %.loopexit74

59:                                               ; preds = %51
  %60 = invoke noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512) %0)
          to label %61 unwind label %.loopexit74

61:                                               ; preds = %59, %56, %50
  %.260 = phi i32 [ %.15996, %50 ], [ %58, %56 ], [ %60, %59 ]
  %.255 = phi i16 [ %.15497, %50 ], [ %57, %56 ], [ %.15497, %59 ]
  %62 = invoke noundef zeroext i16 @_ZNK8transoms13NetworkHandle23cast_interval_to_minuteEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %.05298)
          to label %63 unwind label %101

63:                                               ; preds = %61
  %64 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms4Link6get_idB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(176) %44)
  invoke void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 8 dereferenceable(32) %64, i8 noundef signext 44)
          to label %65 unwind label %101

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms13NetworkHandle16get_head_node_idB5cxx11EPKNS_4LinkE(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull %44)
          to label %67 unwind label %101

67:                                               ; preds = %65
  invoke void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 8 dereferenceable(32) %66, i8 noundef signext 44)
          to label %68 unwind label %101

68:                                               ; preds = %67
  %69 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms13NetworkHandle16get_tail_node_idB5cxx11EPKNS_4LinkE(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull %44)
          to label %70 unwind label %101

70:                                               ; preds = %68
  invoke void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 8 dereferenceable(32) %69, i8 noundef signext 44)
          to label %71 unwind label %101

71:                                               ; preds = %70
  %72 = zext i16 %.255 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN8transoms12DemandPeriodESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %72) #6
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8transoms12DemandPeriod10get_periodB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(112) %74)
  invoke void @_ZN6miocsv6Writer6appendINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 8 dereferenceable(32) %75, i8 noundef signext 44)
          to label %76 unwind label %101

76:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %77 = invoke noundef i32 @_ZNK8transoms9LinkQueue10get_volumeEj(ptr noundef nonnull align 8 dereferenceable(168) %43, i32 noundef %.05298)
          to label %78 unwind label %103

78:                                               ; preds = %76
  store i32 %77, ptr %9, align 4, !tbaa !9
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 4 dereferenceable(4) %9, i8 noundef signext 44)
          to label %79 unwind label %103

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %80 = invoke noundef i32 @_ZNK8transoms9LinkQueue15get_travel_timeEjt(ptr noundef nonnull align 8 dereferenceable(168) %43, i32 noundef %.05298, i16 noundef zeroext %.255)
          to label %81 unwind label %105

81:                                               ; preds = %79
  store i32 %80, ptr %10, align 4, !tbaa !9
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 4 dereferenceable(4) %10, i8 noundef signext 44)
          to label %82 unwind label %105

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %83 = invoke noundef i32 @_ZNK8transoms9LinkQueue20get_avg_waiting_timeEj(ptr noundef nonnull align 8 dereferenceable(168) %43, i32 noundef %.05298)
          to label %84 unwind label %107

84:                                               ; preds = %82
  store i32 %83, ptr %11, align 4, !tbaa !9
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 4 dereferenceable(4) %11, i8 noundef signext 44)
          to label %85 unwind label %107

85:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %86 = invoke noundef double @_ZNK8transoms9LinkQueue9get_speedEjt(ptr noundef nonnull align 8 dereferenceable(168) %43, i32 noundef %.05298, i16 noundef zeroext %.255)
          to label %87 unwind label %109

87:                                               ; preds = %85
  store double %86, ptr %12, align 8, !tbaa !11
  invoke void @_ZN6miocsv6Writer6appendIdEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 8 dereferenceable(8) %12, i8 noundef signext 44)
          to label %88 unwind label %109

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %89 = call noundef i32 @_ZNK8transoms9LinkQueue22get_cumulative_arrivalEj(ptr noundef nonnull align 8 dereferenceable(168) %43, i32 noundef %.05298)
  store i32 %89, ptr %13, align 4, !tbaa !9
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 4 dereferenceable(4) %13, i8 noundef signext 44)
          to label %90 unwind label %111

90:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %91 = call noundef i32 @_ZNK8transoms9LinkQueue24get_cumulative_departureEj(ptr noundef nonnull align 8 dereferenceable(168) %43, i32 noundef %.05298)
  store i32 %91, ptr %14, align 4, !tbaa !9
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 4 dereferenceable(4) %14, i8 noundef signext 44)
          to label %92 unwind label %113

92:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %93 = invoke noundef double @_ZNK8transoms9LinkQueue11get_densityEj(ptr noundef nonnull align 8 dereferenceable(168) %43, i32 noundef %.05298)
          to label %94 unwind label %115

94:                                               ; preds = %92
  store double %93, ptr %15, align 8, !tbaa !11
  invoke void @_ZN6miocsv6Writer6appendIdEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 8 dereferenceable(8) %15, i8 noundef signext 44)
          to label %95 unwind label %115

95:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %96 = invoke noundef i32 @_ZNK8transoms9LinkQueue9get_queueEjt(ptr noundef nonnull align 8 dereferenceable(168) %43, i32 noundef %.05298, i16 noundef zeroext %.255)
          to label %97 unwind label %117

97:                                               ; preds = %95
  store i32 %96, ptr %16, align 4, !tbaa !9
  invoke void @_ZN6miocsv6Writer6appendIjEEvOT_c(ptr noundef nonnull align 8 dereferenceable(513) %4, ptr noundef nonnull align 4 dereferenceable(4) %16, i8 noundef signext 44)
          to label %98 unwind label %117

98:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  br label %99

99:                                               ; preds = %.lr.ph, %98
  %.361 = phi i32 [ %.15996, %.lr.ph ], [ %.260, %98 ]
  %.356 = phi i16 [ %.15497, %.lr.ph ], [ %.255, %98 ]
  %100 = add nuw i32 %.05298, 1
  %.not = icmp eq i32 %100, %48
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !13

101:                                              ; preds = %71, %70, %68, %67, %65, %63, %61
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %119

103:                                              ; preds = %78, %76
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %119

105:                                              ; preds = %81, %79
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %119

107:                                              ; preds = %84, %82
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %119

109:                                              ; preds = %87, %85
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %119

111:                                              ; preds = %88
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br label %119

113:                                              ; preds = %90
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %119

115:                                              ; preds = %94, %92
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %119

117:                                              ; preds = %97, %95
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  br label %119

119:                                              ; preds = %.loopexit74, %.loopexit.split-lp, %101, %103, %105, %107, %109, %111, %113, %115, %117
  %.pn67.pn = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ], [ %114, %113 ], [ %112, %111 ], [ %110, %109 ], [ %108, %107 ], [ %106, %105 ], [ %104, %103 ], [ %102, %101 ], [ %lpad.loopexit, %.loopexit74 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %131

.loopexit:                                        ; preds = %99, %.preheader, %42
  %.462 = phi i32 [ %.058100, %42 ], [ %.058100, %.preheader ], [ %.361, %99 ]
  %.457 = phi i16 [ %.053101, %42 ], [ %.053101, %.preheader ], [ %.356, %99 ]
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %121, label %42, label %._crit_edge

122:                                              ; preds = %._crit_edge
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %124 unwind label %40

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @.str.86)
          to label %126 unwind label %40

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %128 unwind label %40

128:                                              ; preds = %126
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @.str.94)
          to label %130 unwind label %40

130:                                              ; preds = %128
  call void @_ZN6miocsv6WriterD2Ev(ptr noundef nonnull align 8 dereferenceable(513) %4) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #6
  ret void

131:                                              ; preds = %38, %119, %40, %36
  %.pn67.pn.pn.pn.pn = phi { ptr, i32 } [ %37, %36 ], [ %39, %38 ], [ %.pn67.pn, %119 ], [ %41, %40 ]
  call void @_ZN6miocsv6WriterD2Ev(ptr noundef nonnull align 8 dereferenceable(513) %4) #6
  br label %132

132:                                              ; preds = %131, %35
  %.pn67.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn.pn.pn, %131 ], [ %.pn, %35 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn67.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6miocsv6Writer13write_row_rawIA8_cJA13_cA11_cA12_cA7_cS5_S3_A6_cA3_cS8_S2_S7_EEEvRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(513), ptr noundef nonnull align 1 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(13), ptr noundef nonnull align 1 dereferenceable(11), ptr noundef nonnull align 1 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(7), ptr noundef nonnull align 1 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(13), ptr noundef nonnull align 1 dereferenceable(6), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef nonnull align 1 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(6)) local_unnamed_addr #3 align 2

declare noundef i32 @_ZNK8transoms13NetworkHandle23cast_minute_to_intervalEt(ptr noundef nonnull align 8 dereferenceable(512), i16 noundef zeroext) local_unnamed_addr #4

declare noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512), i16 noundef zeroext) local_unnamed_addr #4

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

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

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

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

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

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

declare noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #4

declare noundef zeroext i16 @_ZNK8transoms13NetworkHandle23cast_interval_to_minuteEj(ptr noundef nonnull align 8 dereferenceable(512), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue10get_volumeEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue15get_travel_timeEjt(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i16 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue20get_avg_waiting_timeEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK8transoms9LinkQueue9get_speedEjt(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i16 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue22get_cumulative_arrivalEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue24get_cumulative_departureEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK8transoms9LinkQueue11get_densityEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms9LinkQueue9get_queueEjt(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i16 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEppEv(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 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 = { 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 #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 = { "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 = { 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 #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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