; LLVM IR from jdlph/TransOMS :: src/simulation.ll (ZN8transoms13NetworkHandle14run_simulationEv)

; 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.__gnu_cxx::__normal_iterator.99" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.100" = type { ptr }
%"class.transoms::NetworkHandle" = type { %"class.transoms::ColumnPool", %"class.transoms::PhyNetwork", %"class.std::vector.42", %"class.std::vector.47", %"class.std::vector.52", i16, i16, i16, i32, %"class.std::vector.57", %"class.std::vector.62", %"class.std::map.67" }
%"class.transoms::ColumnPool" = type { %"class.std::map", %"class.std::vector.6" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = 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.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = 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.11", %"class.std::vector.16", %"class.std::map.21", %"class.std::map.21", %"class.std::vector.27", %"class.std::vector.32", %"class.std::map.37" }
%"class.transoms::Network" = type { ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = 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.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = 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.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = 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.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = 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.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = 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.37" = type { %"class.std::_Rb_tree.38" }
%"class.std::_Rb_tree.38" = 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.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = 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.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = 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.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = 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.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = 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.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = 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.67" = type { %"class.std::_Rb_tree.68" }
%"class.std::_Rb_tree.68" = 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.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms13NetworkHandle23cast_minute_to_intervalEt(ptr noundef nonnull align 8 dereferenceable(512), i16 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZN8transoms13NetworkHandle9get_agentEj(ptr noundef nonnull align 8 dereferenceable(512), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512), i16 noundef zeroext) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8transoms13NetworkHandle24uses_spatial_queue_modelEv(ptr noundef nonnull align 8 dereferenceable(512)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8transoms13NetworkHandle25uses_kinematic_wave_modelEv(ptr noundef nonnull align 8 dereferenceable(512)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8transoms13NetworkHandle14has_dep_agentsEj(ptr noundef nonnull align 8 dereferenceable(512), i32 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8transoms13NetworkHandle14run_simulationEv(ptr noundef nonnull align 8 dereferenceable(512) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i16, align 2
  %6 = alloca i32, align 4
  %7 = alloca i16, align 2
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.99", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.99", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.99", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.99", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.100", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.100", align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %43 = load ptr, ptr %2, align 8
  call void @_ZN8transoms13NetworkHandle12setup_agentsEv(ptr noundef nonnull align 8 dereferenceable(512) %43)
  %44 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %43, i32 0, i32 11
  %45 = call noundef zeroext i1 @_ZNKSt3mapIjSt6vectorIjSaIjEESt4lessIjESaISt4pairIKjS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %44) #5
  br i1 %45, label %46, label %47

46:                                               ; preds = %1
  br label %340

47:                                               ; preds = %1
  call void @_ZN8transoms13NetworkHandle17setup_link_queuesEv(ptr noundef nonnull align 8 dereferenceable(512) %43)
  %48 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %43, i32 0, i32 9
  %49 = call noundef zeroext i1 @_ZNKSt6vectorIN8transoms9LinkQueueESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #5
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  br label %340

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %5) #5
  store i16 0, ptr %5, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %52 = load i16, ptr %5, align 2, !tbaa !11
  %53 = call noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %43, i16 noundef zeroext %52)
  store i32 %53, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #5
  %54 = call noundef i32 @_ZNK8transoms13NetworkHandle23cast_minute_to_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %43, i16 noundef zeroext 1)
  %55 = trunc i32 %54 to i16
  store i16 %55, ptr %7, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %56 = call noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512) %43)
  store i32 %56, ptr %9, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %336, %51
  %58 = load i32, ptr %8, align 4, !tbaa !9
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = icmp ne i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %339

62:                                               ; preds = %57
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = load i16, ptr %7, align 2, !tbaa !11
  %65 = zext i16 %64 to i32
  %66 = urem i32 %63, %65
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %82

68:                                               ; preds = %62
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = load i16, ptr %7, align 2, !tbaa !11
  %72 = zext i16 %71 to i32
  %73 = udiv i32 %70, %72
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %73)
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef @.str.7)
  %76 = load i32, ptr %3, align 4, !tbaa !9
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %75, i32 noundef %76)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef @.str.8)
  %79 = load i32, ptr %4, align 4, !tbaa !9
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %78, i32 noundef %79)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %80, i8 noundef signext 10)
  br label %82

82:                                               ; preds = %68, %62
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = load i32, ptr %6, align 4, !tbaa !9
  %85 = icmp uge i32 %83, %84
  br i1 %85, label %86, label %100

86:                                               ; preds = %82
  %87 = load i16, ptr %5, align 2, !tbaa !11
  %88 = zext i16 %87 to i64
  %89 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %43, i32 0, i32 4
  %90 = call noundef i64 @_ZNKSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #5
  %91 = sub i64 %90, 1
  %92 = icmp ult i64 %88, %91
  br i1 %92, label %93, label %97

93:                                               ; preds = %86
  %94 = load i16, ptr %5, align 2, !tbaa !11
  %95 = add i16 %94, 1
  store i16 %95, ptr %5, align 2, !tbaa !11
  %96 = call noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %43, i16 noundef zeroext %95)
  store i32 %96, ptr %6, align 4, !tbaa !9
  br label %99

97:                                               ; preds = %86
  %98 = call noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512) %43)
  store i32 %98, ptr %6, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %97, %93
  br label %100

100:                                              ; preds = %99, %82
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %121

103:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %104 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %43, i32 0, i32 9
  store ptr %104, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #5
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.99", ptr %12, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #5
  %110 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.99", ptr %13, i32 0, i32 0
  store ptr %109, ptr %110, align 8
  br label %111

111:                                              ; preds = %118, %103
  %112 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %112, label %114, label %113

113:                                              ; preds = %111
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %120

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %115 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  store ptr %115, ptr %14, align 8, !tbaa !5
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue17update_cum_statesEj(ptr noundef nonnull align 8 dereferenceable(168) %116, i32 noundef %117)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %118

118:                                              ; preds = %114
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %111

120:                                              ; preds = %113
  br label %121

121:                                              ; preds = %120, %100
  %122 = load i32, ptr %8, align 4, !tbaa !9
  %123 = call noundef zeroext i1 @_ZNK8transoms13NetworkHandle14has_dep_agentsEj(ptr noundef nonnull align 8 dereferenceable(512) %43, i32 noundef %122)
  br i1 %123, label %124, label %164

124:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK8transoms13NetworkHandle22get_agents_at_intervalEj(ptr noundef nonnull align 8 dereferenceable(512) %43, i32 noundef %125)
  store ptr %126, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = call ptr @_ZNKSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #5
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %128, ptr %129, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = call ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #5
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %131, ptr %132, align 8
  br label %133

133:                                              ; preds = %161, %124
  %134 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %134, label %136, label %135

135:                                              ; preds = %133
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %163

136:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  store i32 %138, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN8transoms13NetworkHandle9get_agentEj(ptr noundef nonnull align 8 dereferenceable(512) %43, i32 noundef %139)
  store ptr %140, ptr %19, align 8, !tbaa !5
  %141 = load ptr, ptr %19, align 8, !tbaa !5
  %142 = call noundef i64 @_ZNK8transoms5Agent12get_link_numEv(ptr noundef nonnull align 8 dereferenceable(96) %141)
  %143 = icmp ne i64 %142, 0
  br i1 %143, label %145, label %144

144:                                              ; preds = %136
  store i32 8, ptr %10, align 4
  br label %155

145:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %146 = load ptr, ptr %19, align 8, !tbaa !5
  %147 = call noundef i32 @_ZNK8transoms5Agent17get_first_link_noEv(ptr noundef nonnull align 8 dereferenceable(96) %146)
  %148 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZN8transoms13NetworkHandle14get_link_queueEj(ptr noundef nonnull align 8 dereferenceable(512) %43, i32 noundef %147)
  store ptr %148, ptr %20, align 8, !tbaa !5
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue17increment_cum_arrEj(ptr noundef nonnull align 8 dereferenceable(168) %149, i32 noundef %150)
  %151 = load ptr, ptr %20, align 8, !tbaa !5
  %152 = load i32, ptr %18, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue17append_entr_queueEj(ptr noundef nonnull align 8 dereferenceable(168) %151, i32 noundef %152)
  %153 = load i32, ptr %3, align 4, !tbaa !9
  %154 = add i32 %153, 1
  store i32 %154, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  store i32 0, ptr %10, align 4
  br label %155

155:                                              ; preds = %145, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %156 = load i32, ptr %10, align 4
  switch i32 %156, label %158 [
    i32 0, label %157
  ]

157:                                              ; preds = %155
  store i32 0, ptr %10, align 4
  br label %158

158:                                              ; preds = %157, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %159 = load i32, ptr %10, align 4
  switch i32 %159, label %341 [
    i32 0, label %160
    i32 8, label %161
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160, %158
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %133

163:                                              ; preds = %135
  br label %164

164:                                              ; preds = %163, %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %165 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %43, i32 0, i32 9
  store ptr %165, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %166 = load ptr, ptr %21, align 8, !tbaa !5
  %167 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #5
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.99", ptr %22, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %169 = load ptr, ptr %21, align 8, !tbaa !5
  %170 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %169) #5
  %171 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.99", ptr %23, i32 0, i32 0
  store ptr %170, ptr %171, align 8
  br label %172

172:                                              ; preds = %195, %164
  %173 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  br i1 %173, label %175, label %174

174:                                              ; preds = %172
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %197

175:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %176 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  store ptr %176, ptr %24, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %181, %175
  %178 = load ptr, ptr %24, align 8, !tbaa !5
  %179 = call noundef zeroext i1 @_ZNK8transoms9LinkQueue19is_entr_queue_emptyEv(ptr noundef nonnull align 8 dereferenceable(168) %178)
  %180 = xor i1 %179, true
  br i1 %180, label %181, label %194

181:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %182 = load ptr, ptr %24, align 8, !tbaa !5
  %183 = call noundef i32 @_ZNK8transoms9LinkQueue20get_entr_queue_frontEv(ptr noundef nonnull align 8 dereferenceable(168) %182)
  store i32 %183, ptr %25, align 4, !tbaa !9
  %184 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN8transoms9LinkQueue20pop_entr_queue_frontEv(ptr noundef nonnull align 8 dereferenceable(168) %184)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %185 = load i32, ptr %25, align 4, !tbaa !9
  %186 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN8transoms13NetworkHandle9get_agentEj(ptr noundef nonnull align 8 dereferenceable(512) %43, i32 noundef %185)
  store ptr %186, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %187 = load ptr, ptr %24, align 8, !tbaa !5
  %188 = load i16, ptr %5, align 2, !tbaa !11
  %189 = call noundef i32 @_ZNK8transoms9LinkQueue21get_period_fftt_intvlEt(ptr noundef nonnull align 8 dereferenceable(168) %187, i16 noundef zeroext %188)
  store i32 %189, ptr %27, align 4, !tbaa !9
  %190 = load ptr, ptr %24, align 8, !tbaa !5
  %191 = load i32, ptr %25, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue17append_exit_queueEj(ptr noundef nonnull align 8 dereferenceable(168) %190, i32 noundef %191)
  %192 = load ptr, ptr %26, align 8, !tbaa !5
  %193 = load i32, ptr %27, align 4, !tbaa !9
  call void @_ZN8transoms5Agent22increment_dep_intervalEj(ptr noundef nonnull align 8 dereferenceable(96) %192, i32 noundef %193)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %177, !llvm.loop !13

194:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %195

195:                                              ; preds = %194
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br label %172

197:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %198 = getelementptr inbounds %"class.transoms::NetworkHandle", ptr %43, i32 0, i32 1
  %199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8transoms10PhyNetwork9get_nodesEv(ptr noundef nonnull align 8 dereferenceable(256) %198)
  store ptr %199, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %200 = load ptr, ptr %28, align 8, !tbaa !5
  %201 = call ptr @_ZNSt6vectorIPN8transoms4NodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %200) #5
  %202 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.100", ptr %29, i32 0, i32 0
  store ptr %201, ptr %202, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %203 = load ptr, ptr %28, align 8, !tbaa !5
  %204 = call ptr @_ZNSt6vectorIPN8transoms4NodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %203) #5
  %205 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.100", ptr %30, i32 0, i32 0
  store ptr %204, ptr %205, align 8
  br label %206

206:                                              ; preds = %333, %197
  %207 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN8transoms4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  br i1 %207, label %209, label %208

208:                                              ; preds = %206
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %335

209:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN8transoms4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  %211 = load ptr, ptr %210, align 8, !tbaa !5
  store ptr %211, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  store i32 0, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %212 = load ptr, ptr %31, align 8, !tbaa !5
  %213 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8transoms4Node18get_incoming_linksEv(ptr noundef nonnull align 8 dereferenceable(112) %212)
  %214 = call noundef i64 @_ZNKSt6vectorIPKN8transoms4LinkESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %213) #5
  %215 = trunc i64 %214 to i32
  store i32 %215, ptr %33, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %329, %209
  %217 = load i32, ptr %32, align 4, !tbaa !9
  %218 = load i32, ptr %33, align 4, !tbaa !9
  %219 = icmp ne i32 %217, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %216
  store i32 15, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %332

221:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %222 = load i32, ptr %8, align 4, !tbaa !9
  %223 = load i32, ptr %32, align 4, !tbaa !9
  %224 = add i32 %222, %223
  %225 = load i32, ptr %33, align 4, !tbaa !9
  %226 = urem i32 %224, %225
  store i32 %226, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %227 = load ptr, ptr %31, align 8, !tbaa !5
  %228 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8transoms4Node18get_incoming_linksEv(ptr noundef nonnull align 8 dereferenceable(112) %227)
  %229 = load i32, ptr %34, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN8transoms4LinkESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %228, i64 noundef %230) #5
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = call noundef i32 @_ZNK8transoms4Link6get_noEv(ptr noundef nonnull align 8 dereferenceable(176) %232)
  store i32 %233, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %234 = load i32, ptr %35, align 4, !tbaa !9
  %235 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZN8transoms13NetworkHandle14get_link_queueEj(ptr noundef nonnull align 8 dereferenceable(512) %43, i32 noundef %234)
  store ptr %235, ptr %36, align 8, !tbaa !5
  br label %236

236:                                              ; preds = %327, %221
  %237 = load ptr, ptr %36, align 8, !tbaa !5
  %238 = load i32, ptr %8, align 4, !tbaa !9
  %239 = call noundef zeroext i1 @_ZNK8transoms9LinkQueue15has_outflow_capEj(ptr noundef nonnull align 8 dereferenceable(168) %237, i32 noundef %238)
  br i1 %239, label %240, label %244

240:                                              ; preds = %236
  %241 = load ptr, ptr %36, align 8, !tbaa !5
  %242 = call noundef zeroext i1 @_ZNK8transoms9LinkQueue19is_exit_queue_emptyEv(ptr noundef nonnull align 8 dereferenceable(168) %241)
  %243 = xor i1 %242, true
  br label %244

244:                                              ; preds = %240, %236
  %245 = phi i1 [ false, %236 ], [ %243, %240 ]
  br i1 %245, label %246, label %328

246:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %247 = load ptr, ptr %36, align 8, !tbaa !5
  %248 = call noundef i32 @_ZNK8transoms9LinkQueue20get_exit_queue_frontEv(ptr noundef nonnull align 8 dereferenceable(168) %247)
  store i32 %248, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  %249 = load i32, ptr %37, align 4, !tbaa !9
  %250 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN8transoms13NetworkHandle9get_agentEj(ptr noundef nonnull align 8 dereferenceable(512) %43, i32 noundef %249)
  store ptr %250, ptr %38, align 8, !tbaa !5
  %251 = load ptr, ptr %38, align 8, !tbaa !5
  %252 = call noundef i32 @_ZNK8transoms5Agent16get_dep_intervalEv(ptr noundef nonnull align 8 dereferenceable(96) %251)
  %253 = load i32, ptr %8, align 4, !tbaa !9
  %254 = icmp ugt i32 %252, %253
  br i1 %254, label %255, label %256

255:                                              ; preds = %246
  store i32 19, ptr %10, align 4
  br label %325

256:                                              ; preds = %246
  %257 = load ptr, ptr %38, align 8, !tbaa !5
  %258 = call noundef zeroext i1 @_ZNK8transoms5Agent17reaches_last_linkEv(ptr noundef nonnull align 8 dereferenceable(96) %257)
  br i1 %258, label %259, label %264

259:                                              ; preds = %256
  %260 = load ptr, ptr %36, align 8, !tbaa !5
  %261 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue17increment_cum_depEj(ptr noundef nonnull align 8 dereferenceable(168) %260, i32 noundef %261)
  %262 = load i32, ptr %4, align 4, !tbaa !9
  %263 = add i32 %262, 1
  store i32 %263, ptr %4, align 4, !tbaa !9
  br label %320

264:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %265 = load ptr, ptr %38, align 8, !tbaa !5
  %266 = call noundef i32 @_ZNK8transoms5Agent16get_next_link_noEv(ptr noundef nonnull align 8 dereferenceable(96) %265)
  store i32 %266, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  %267 = load i32, ptr %39, align 4, !tbaa !9
  %268 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZN8transoms13NetworkHandle14get_link_queueEj(ptr noundef nonnull align 8 dereferenceable(512) %43, i32 noundef %267)
  store ptr %268, ptr %40, align 8, !tbaa !5
  %269 = call noundef zeroext i1 @_ZNK8transoms13NetworkHandle24uses_spatial_queue_modelEv(ptr noundef nonnull align 8 dereferenceable(512) %43)
  br i1 %269, label %270, label %284

270:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  %271 = load ptr, ptr %40, align 8, !tbaa !5
  %272 = load i32, ptr %8, align 4, !tbaa !9
  %273 = sub i32 %272, 1
  %274 = call noundef i32 @_ZNK8transoms9LinkQueue26get_waiting_vehicle_num_sqEj(ptr noundef nonnull align 8 dereferenceable(168) %271, i32 noundef %273)
  store i32 %274, ptr %41, align 4, !tbaa !9
  %275 = load i32, ptr %41, align 4, !tbaa !9
  %276 = load ptr, ptr %40, align 8, !tbaa !5
  %277 = call noundef i32 @_ZNK8transoms9LinkQueue20get_spatial_capacityEv(ptr noundef nonnull align 8 dereferenceable(168) %276)
  %278 = icmp ugt i32 %275, %277
  br i1 %278, label %279, label %280

279:                                              ; preds = %270
  store i32 19, ptr %10, align 4
  br label %281

280:                                              ; preds = %270
  store i32 0, ptr %10, align 4
  br label %281

281:                                              ; preds = %280, %279
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  %282 = load i32, ptr %10, align 4
  switch i32 %282, label %317 [
    i32 0, label %283
  ]

283:                                              ; preds = %281
  br label %301

284:                                              ; preds = %264
  %285 = call noundef zeroext i1 @_ZNK8transoms13NetworkHandle25uses_kinematic_wave_modelEv(ptr noundef nonnull align 8 dereferenceable(512) %43)
  br i1 %285, label %286, label %300

286:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  %287 = load ptr, ptr %40, align 8, !tbaa !5
  %288 = load i32, ptr %8, align 4, !tbaa !9
  %289 = sub i32 %288, 1
  %290 = call noundef i32 @_ZNK8transoms9LinkQueue26get_waiting_vehicle_num_kwEj(ptr noundef nonnull align 8 dereferenceable(168) %287, i32 noundef %289)
  store i32 %290, ptr %42, align 4, !tbaa !9
  %291 = load i32, ptr %42, align 4, !tbaa !9
  %292 = load ptr, ptr %40, align 8, !tbaa !5
  %293 = call noundef i32 @_ZNK8transoms9LinkQueue20get_spatial_capacityEv(ptr noundef nonnull align 8 dereferenceable(168) %292)
  %294 = icmp ugt i32 %291, %293
  br i1 %294, label %295, label %296

295:                                              ; preds = %286
  store i32 19, ptr %10, align 4
  br label %297

296:                                              ; preds = %286
  store i32 0, ptr %10, align 4
  br label %297

297:                                              ; preds = %296, %295
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  %298 = load i32, ptr %10, align 4
  switch i32 %298, label %317 [
    i32 0, label %299
  ]

299:                                              ; preds = %297
  br label %300

300:                                              ; preds = %299, %284
  br label %301

301:                                              ; preds = %300, %283
  %302 = load ptr, ptr %40, align 8, !tbaa !5
  %303 = load i32, ptr %37, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue17append_entr_queueEj(ptr noundef nonnull align 8 dereferenceable(168) %302, i32 noundef %303)
  %304 = load ptr, ptr %38, align 8, !tbaa !5
  %305 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN8transoms5Agent16set_dep_intervalEj(ptr noundef nonnull align 8 dereferenceable(96) %304, i32 noundef %305)
  %306 = load ptr, ptr %38, align 8, !tbaa !5
  %307 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN8transoms5Agent16set_arr_intervalEjj(ptr noundef nonnull align 8 dereferenceable(96) %306, i32 noundef %307, i32 noundef 1)
  %308 = load ptr, ptr %36, align 8, !tbaa !5
  %309 = load i32, ptr %8, align 4, !tbaa !9
  %310 = load ptr, ptr %38, align 8, !tbaa !5
  %311 = call noundef i32 @_ZNK8transoms5Agent16get_arr_intervalEv(ptr noundef nonnull align 8 dereferenceable(96) %310)
  %312 = load i16, ptr %5, align 2, !tbaa !11
  call void @_ZN8transoms9LinkQueue19update_waiting_timeEjjt(ptr noundef nonnull align 8 dereferenceable(168) %308, i32 noundef %309, i32 noundef %311, i16 noundef zeroext %312)
  %313 = load ptr, ptr %36, align 8, !tbaa !5
  %314 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue17increment_cum_depEj(ptr noundef nonnull align 8 dereferenceable(168) %313, i32 noundef %314)
  %315 = load ptr, ptr %40, align 8, !tbaa !5
  %316 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue17increment_cum_arrEj(ptr noundef nonnull align 8 dereferenceable(168) %315, i32 noundef %316)
  store i32 0, ptr %10, align 4
  br label %317

317:                                              ; preds = %301, %297, %281
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  %318 = load i32, ptr %10, align 4
  switch i32 %318, label %325 [
    i32 0, label %319
  ]

319:                                              ; preds = %317
  br label %320

320:                                              ; preds = %319, %259
  %321 = load ptr, ptr %38, align 8, !tbaa !5
  call void @_ZN8transoms5Agent17move_to_next_linkEv(ptr noundef nonnull align 8 dereferenceable(96) %321)
  %322 = load ptr, ptr %36, align 8, !tbaa !5
  call void @_ZN8transoms9LinkQueue20pop_exit_queue_frontEv(ptr noundef nonnull align 8 dereferenceable(168) %322)
  %323 = load ptr, ptr %36, align 8, !tbaa !5
  %324 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN8transoms9LinkQueue18deduct_outflow_capEj(ptr noundef nonnull align 8 dereferenceable(168) %323, i32 noundef %324)
  store i32 0, ptr %10, align 4
  br label %325

325:                                              ; preds = %320, %317, %255
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  %326 = load i32, ptr %10, align 4
  switch i32 %326, label %341 [
    i32 0, label %327
    i32 19, label %328
  ]

327:                                              ; preds = %325
  br label %236, !llvm.loop !15

328:                                              ; preds = %325, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %329

329:                                              ; preds = %328
  %330 = load i32, ptr %32, align 4, !tbaa !9
  %331 = add i32 %330, 1
  store i32 %331, ptr %32, align 4, !tbaa !9
  br label %216, !llvm.loop !16

332:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %333

333:                                              ; preds = %332
  %334 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN8transoms4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br label %206

335:                                              ; preds = %208
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr %8, align 4, !tbaa !9
  %338 = add i32 %337, 1
  store i32 %338, ptr %8, align 4, !tbaa !9
  br label %57, !llvm.loop !17

339:                                              ; preds = %61
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %340

340:                                              ; preds = %339, %50, %46
  ret void

341:                                              ; preds = %325, %158
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt3mapIjSt6vectorIjSaIjEESt4lessIjESaISt4pairIKjS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3

; 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) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8transoms9LinkQueue17update_cum_statesEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) #2 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)) #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK8transoms5Agent12get_link_numEv(ptr noundef nonnull align 8 dereferenceable(96)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms5Agent17get_first_link_noEv(ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8transoms5Agent16get_dep_intervalEv(ptr noundef nonnull align 8 dereferenceable(96)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8transoms5Agent17reaches_last_linkEv(ptr noundef nonnull align 8 dereferenceable(96)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms5Agent16get_next_link_noEv(ptr noundef nonnull align 8 dereferenceable(96)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8transoms5Agent16get_arr_intervalEv(ptr noundef nonnull align 8 dereferenceable(96)) #2 align 2

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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.__gnu_cxx::__normal_iterator.99" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.100" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZN8transoms13NetworkHandle9get_agentEj(ptr noundef nonnull align 8 dereferenceable(512), i32 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8transoms13NetworkHandle24uses_spatial_queue_modelEv(ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8transoms13NetworkHandle25uses_kinematic_wave_modelEv(ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8transoms13NetworkHandle14has_dep_agentsEj(ptr noundef nonnull align 8 dereferenceable(512), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8transoms13NetworkHandle14run_simulationEv(ptr noundef nonnull align 8 dereferenceable(512) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.99", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.99", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.99", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.99", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.100", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.100", align 8
  tail call void @_ZN8transoms13NetworkHandle12setup_agentsEv(ptr noundef nonnull align 8 dereferenceable(512) %0)
  %10 = getelementptr inbounds i8, ptr %0, i64 464
  %11 = tail call noundef zeroext i1 @_ZNKSt3mapIjSt6vectorIjSaIjEESt4lessIjESaISt4pairIKjS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %1
  tail call void @_ZN8transoms13NetworkHandle17setup_link_queuesEv(ptr noundef nonnull align 8 dereferenceable(512) %0)
  %13 = getelementptr inbounds i8, ptr %0, i64 416
  %14 = tail call noundef zeroext i1 @_ZNKSt6vectorIN8transoms9LinkQueueESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br i1 %14, label %.loopexit, label %15

15:                                               ; preds = %12
  %16 = tail call noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %0, i16 noundef zeroext 0)
  %17 = tail call noundef i32 @_ZNK8transoms13NetworkHandle23cast_minute_to_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %0, i16 noundef zeroext 1)
  %18 = tail call noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512) %0)
  %.not165 = icmp eq i32 %18, 0
  br i1 %.not165, label %.loopexit, label %.lr.ph172

.lr.ph172:                                        ; preds = %15
  %19 = and i32 %17, 65535
  %20 = getelementptr inbounds i8, ptr %0, i64 376
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  br label %22

22:                                               ; preds = %.lr.ph172, %._crit_edge163
  %.0170 = phi i32 [ 0, %.lr.ph172 ], [ %.3, %._crit_edge163 ]
  %.0102169 = phi i32 [ 0, %.lr.ph172 ], [ %.1103.lcssa, %._crit_edge163 ]
  %.0106168 = phi i16 [ 0, %.lr.ph172 ], [ %.1107, %._crit_edge163 ]
  %.0108167 = phi i32 [ %16, %.lr.ph172 ], [ %.1109, %._crit_edge163 ]
  %.0110166 = phi i32 [ 0, %.lr.ph172 ], [ %88, %._crit_edge163 ]
  %23 = urem i32 %.0110166, %19
  %24 = udiv i32 %.0110166, %19
  %25 = icmp eq i32 %23, 0
  br i1 %25, label %26, label %34

26:                                               ; preds = %22
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef %24)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @.str.7)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %29, i32 noundef %.0170)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str.8)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef %.0102169)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %32, i8 noundef signext 10)
  br label %34

34:                                               ; preds = %26, %22
  %.not118 = icmp ult i32 %.0110166, %.0108167
  br i1 %.not118, label %45, label %35

35:                                               ; preds = %34
  %36 = zext i16 %.0106168 to i64
  %37 = call noundef i64 @_ZNKSt6vectorIPKN8transoms12DemandPeriodESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %38 = add i64 %37, -1
  %39 = icmp ugt i64 %38, %36
  br i1 %39, label %40, label %43

40:                                               ; preds = %35
  %41 = add i16 %.0106168, 1
  %42 = call noundef i32 @_ZNK8transoms13NetworkHandle27get_end_simulation_intervalEt(ptr noundef nonnull align 8 dereferenceable(512) %0, i16 noundef zeroext %41)
  br label %45

43:                                               ; preds = %35
  %44 = call noundef i32 @_ZNK8transoms13NetworkHandle24get_simulation_intervalsEv(ptr noundef nonnull align 8 dereferenceable(512) %0)
  br label %45

45:                                               ; preds = %40, %43, %34
  %.1109 = phi i32 [ %42, %40 ], [ %44, %43 ], [ %.0108167, %34 ]
  %.1107 = phi i16 [ %41, %40 ], [ %.0106168, %43 ], [ %.0106168, %34 ]
  %.not119 = icmp eq i32 %.0110166, 0
  br i1 %.not119, label %53, label %46

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %47 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %47, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %48 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %48, ptr %3, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %49, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br label %53

.lr.ph:                                           ; preds = %46, %.lr.ph
  %50 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @_ZN8transoms9LinkQueue17update_cum_statesEj(ptr noundef nonnull align 8 dereferenceable(168) %50, i32 noundef %.0110166)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %52, label %.lr.ph, label %._crit_edge

53:                                               ; preds = %._crit_edge, %45
  %54 = call noundef zeroext i1 @_ZNK8transoms13NetworkHandle14has_dep_agentsEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %.0110166)
  br i1 %54, label %55, label %71

55:                                               ; preds = %53
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK8transoms13NetworkHandle22get_agents_at_intervalEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %.0110166)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %57 = call ptr @_ZNKSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #5
  store ptr %57, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %58 = call ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #5
  store ptr %58, ptr %5, align 8
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %59, label %.lr.ph133, label %._crit_edge134

._crit_edge134:                                   ; preds = %68, %55
  %.1.lcssa = phi i32 [ %.0170, %55 ], [ %.2, %68 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %71

.lr.ph133:                                        ; preds = %55, %68
  %.1131 = phi i32 [ %.2, %68 ], [ %.0170, %55 ]
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN8transoms13NetworkHandle9get_agentEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %61)
  %63 = call noundef i64 @_ZNK8transoms5Agent12get_link_numEv(ptr noundef nonnull align 8 dereferenceable(96) %62)
  %.not123 = icmp eq i64 %63, 0
  br i1 %.not123, label %68, label %64

64:                                               ; preds = %.lr.ph133
  %65 = call noundef i32 @_ZNK8transoms5Agent17get_first_link_noEv(ptr noundef nonnull align 8 dereferenceable(96) %62)
  %66 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZN8transoms13NetworkHandle14get_link_queueEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %65)
  call void @_ZN8transoms9LinkQueue17increment_cum_arrEj(ptr noundef nonnull align 8 dereferenceable(168) %66, i32 noundef %.0110166)
  call void @_ZN8transoms9LinkQueue17append_entr_queueEj(ptr noundef nonnull align 8 dereferenceable(168) %66, i32 noundef %61)
  %67 = add i32 %.1131, 1
  br label %68

68:                                               ; preds = %.lr.ph133, %64
  %.2 = phi i32 [ %67, %64 ], [ %.1131, %.lr.ph133 ]
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %70 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %70, label %.lr.ph133, label %._crit_edge134

71:                                               ; preds = %._crit_edge134, %53
  %.3 = phi i32 [ %.1.lcssa, %._crit_edge134 ], [ %.0170, %53 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %72 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %72, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %73 = call ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %73, ptr %7, align 8
  %74 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %74, label %.lr.ph139, label %._crit_edge140

._crit_edge140:                                   ; preds = %._crit_edge137, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8transoms10PhyNetwork9get_nodesEv(ptr noundef nonnull align 8 dereferenceable(256) %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %76 = call ptr @_ZNSt6vectorIPN8transoms4NodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #5
  store ptr %76, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %77 = call ptr @_ZNSt6vectorIPN8transoms4NodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #5
  store ptr %77, ptr %9, align 8
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN8transoms4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %78, label %.lr.ph162, label %._crit_edge163

.lr.ph162:                                        ; preds = %._crit_edge140
  %79 = add i32 %.0110166, -1
  br label %89

.lr.ph139:                                        ; preds = %71, %._crit_edge137
  %80 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %81 = call noundef zeroext i1 @_ZNK8transoms9LinkQueue19is_entr_queue_emptyEv(ptr noundef nonnull align 8 dereferenceable(168) %80)
  br i1 %81, label %._crit_edge137, label %.lr.ph136

.lr.ph136:                                        ; preds = %.lr.ph139, %.lr.ph136
  %82 = call noundef i32 @_ZNK8transoms9LinkQueue20get_entr_queue_frontEv(ptr noundef nonnull align 8 dereferenceable(168) %80)
  call void @_ZN8transoms9LinkQueue20pop_entr_queue_frontEv(ptr noundef nonnull align 8 dereferenceable(168) %80)
  %83 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN8transoms13NetworkHandle9get_agentEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %82)
  %84 = call noundef i32 @_ZNK8transoms9LinkQueue21get_period_fftt_intvlEt(ptr noundef nonnull align 8 dereferenceable(168) %80, i16 noundef zeroext %.1107)
  call void @_ZN8transoms9LinkQueue17append_exit_queueEj(ptr noundef nonnull align 8 dereferenceable(168) %80, i32 noundef %82)
  call void @_ZN8transoms5Agent22increment_dep_intervalEj(ptr noundef nonnull align 8 dereferenceable(96) %83, i32 noundef %84)
  %85 = call noundef zeroext i1 @_ZNK8transoms9LinkQueue19is_entr_queue_emptyEv(ptr noundef nonnull align 8 dereferenceable(168) %80)
  br i1 %85, label %._crit_edge137, label %.lr.ph136, !llvm.loop !9

._crit_edge137:                                   ; preds = %.lr.ph136, %.lr.ph139
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %87 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN8transoms9LinkQueueESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %87, label %.lr.ph139, label %._crit_edge140

._crit_edge163:                                   ; preds = %._crit_edge158, %._crit_edge140
  %.1103.lcssa = phi i32 [ %.0102169, %._crit_edge140 ], [ %.2104.lcssa, %._crit_edge158 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %88 = add nuw i32 %.0110166, 1
  %.not = icmp eq i32 %88, %18
  br i1 %.not, label %.loopexit, label %22, !llvm.loop !11

89:                                               ; preds = %.lr.ph162, %._crit_edge158
  %.1103160 = phi i32 [ %.0102169, %.lr.ph162 ], [ %.2104.lcssa, %._crit_edge158 ]
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN8transoms4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %91 = load ptr, ptr %90, align 8, !tbaa !12
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8transoms4Node18get_incoming_linksEv(ptr noundef nonnull align 8 dereferenceable(112) %91)
  %93 = call noundef i64 @_ZNKSt6vectorIPKN8transoms4LinkESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #5
  %94 = trunc i64 %93 to i32
  %.not120153 = icmp eq i32 %94, 0
  br i1 %.not120153, label %._crit_edge158, label %.lr.ph157

._crit_edge158:                                   ; preds = %.critedge, %89
  %.2104.lcssa = phi i32 [ %.1103160, %89 ], [ %.3105.lcssa, %.critedge ]
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN8transoms4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %96 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN8transoms4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %96, label %89, label %._crit_edge163

.lr.ph157:                                        ; preds = %89, %.critedge
  %.2104155 = phi i32 [ %.3105.lcssa, %.critedge ], [ %.1103160, %89 ]
  %.0116154 = phi i32 [ %131, %.critedge ], [ 0, %89 ]
  %97 = add i32 %.0116154, %.0110166
  %98 = urem i32 %97, %94
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8transoms4Node18get_incoming_linksEv(ptr noundef nonnull align 8 dereferenceable(112) %91)
  %100 = zext i32 %98 to i64
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN8transoms4LinkESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100) #5
  %102 = load ptr, ptr %101, align 8, !tbaa !12
  %103 = call noundef i32 @_ZNK8transoms4Link6get_noEv(ptr noundef nonnull align 8 dereferenceable(176) %102)
  %104 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZN8transoms13NetworkHandle14get_link_queueEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %103)
  %105 = call noundef zeroext i1 @_ZNK8transoms9LinkQueue15has_outflow_capEj(ptr noundef nonnull align 8 dereferenceable(168) %104, i32 noundef %.0110166)
  br i1 %105, label %.lr.ph143, label %.critedge

.lr.ph143:                                        ; preds = %.lr.ph157, %129
  %.3105141 = phi i32 [ %.4, %129 ], [ %.2104155, %.lr.ph157 ]
  %106 = call noundef zeroext i1 @_ZNK8transoms9LinkQueue19is_exit_queue_emptyEv(ptr noundef nonnull align 8 dereferenceable(168) %104)
  br i1 %106, label %.critedge, label %107

107:                                              ; preds = %.lr.ph143
  %108 = call noundef i32 @_ZNK8transoms9LinkQueue20get_exit_queue_frontEv(ptr noundef nonnull align 8 dereferenceable(168) %104)
  %109 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN8transoms13NetworkHandle9get_agentEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %108)
  %110 = call noundef i32 @_ZNK8transoms5Agent16get_dep_intervalEv(ptr noundef nonnull align 8 dereferenceable(96) %109)
  %111 = icmp ugt i32 %110, %.0110166
  br i1 %111, label %.critedge, label %112

112:                                              ; preds = %107
  %113 = call noundef zeroext i1 @_ZNK8transoms5Agent17reaches_last_linkEv(ptr noundef nonnull align 8 dereferenceable(96) %109)
  br i1 %113, label %114, label %116

114:                                              ; preds = %112
  call void @_ZN8transoms9LinkQueue17increment_cum_depEj(ptr noundef nonnull align 8 dereferenceable(168) %104, i32 noundef %.0110166)
  %115 = add i32 %.3105141, 1
  br label %129

116:                                              ; preds = %112
  %117 = call noundef i32 @_ZNK8transoms5Agent16get_next_link_noEv(ptr noundef nonnull align 8 dereferenceable(96) %109)
  %118 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZN8transoms13NetworkHandle14get_link_queueEj(ptr noundef nonnull align 8 dereferenceable(512) %0, i32 noundef %117)
  %119 = call noundef zeroext i1 @_ZNK8transoms13NetworkHandle24uses_spatial_queue_modelEv(ptr noundef nonnull align 8 dereferenceable(512) %0)
  br i1 %119, label %120, label %123

120:                                              ; preds = %116
  %121 = call noundef i32 @_ZNK8transoms9LinkQueue26get_waiting_vehicle_num_sqEj(ptr noundef nonnull align 8 dereferenceable(168) %118, i32 noundef %79)
  %122 = call noundef i32 @_ZNK8transoms9LinkQueue20get_spatial_capacityEv(ptr noundef nonnull align 8 dereferenceable(168) %118)
  %.not122 = icmp ugt i32 %121, %122
  br i1 %.not122, label %.critedge, label %.thread

123:                                              ; preds = %116
  %124 = call noundef zeroext i1 @_ZNK8transoms13NetworkHandle25uses_kinematic_wave_modelEv(ptr noundef nonnull align 8 dereferenceable(512) %0)
  br i1 %124, label %125, label %.thread

125:                                              ; preds = %123
  %126 = call noundef i32 @_ZNK8transoms9LinkQueue26get_waiting_vehicle_num_kwEj(ptr noundef nonnull align 8 dereferenceable(168) %118, i32 noundef %79)
  %127 = call noundef i32 @_ZNK8transoms9LinkQueue20get_spatial_capacityEv(ptr noundef nonnull align 8 dereferenceable(168) %118)
  %.not121 = icmp ugt i32 %126, %127
  br i1 %.not121, label %.critedge, label %.thread

.thread:                                          ; preds = %120, %125, %123
  call void @_ZN8transoms9LinkQueue17append_entr_queueEj(ptr noundef nonnull align 8 dereferenceable(168) %118, i32 noundef %108)
  call void @_ZN8transoms5Agent16set_dep_intervalEj(ptr noundef nonnull align 8 dereferenceable(96) %109, i32 noundef %.0110166)
  call void @_ZN8transoms5Agent16set_arr_intervalEjj(ptr noundef nonnull align 8 dereferenceable(96) %109, i32 noundef %.0110166, i32 noundef 1)
  %128 = call noundef i32 @_ZNK8transoms5Agent16get_arr_intervalEv(ptr noundef nonnull align 8 dereferenceable(96) %109)
  call void @_ZN8transoms9LinkQueue19update_waiting_timeEjjt(ptr noundef nonnull align 8 dereferenceable(168) %104, i32 noundef %.0110166, i32 noundef %128, i16 noundef zeroext %.1107)
  call void @_ZN8transoms9LinkQueue17increment_cum_depEj(ptr noundef nonnull align 8 dereferenceable(168) %104, i32 noundef %.0110166)
  call void @_ZN8transoms9LinkQueue17increment_cum_arrEj(ptr noundef nonnull align 8 dereferenceable(168) %118, i32 noundef %.0110166)
  br label %129

129:                                              ; preds = %114, %.thread
  %.4 = phi i32 [ %115, %114 ], [ %.3105141, %.thread ]
  call void @_ZN8transoms5Agent17move_to_next_linkEv(ptr noundef nonnull align 8 dereferenceable(96) %109)
  call void @_ZN8transoms9LinkQueue20pop_exit_queue_frontEv(ptr noundef nonnull align 8 dereferenceable(168) %104)
  call void @_ZN8transoms9LinkQueue18deduct_outflow_capEj(ptr noundef nonnull align 8 dereferenceable(168) %104, i32 noundef %.0110166)
  %130 = call noundef zeroext i1 @_ZNK8transoms9LinkQueue15has_outflow_capEj(ptr noundef nonnull align 8 dereferenceable(168) %104, i32 noundef %.0110166)
  br i1 %130, label %.lr.ph143, label %.critedge

.critedge:                                        ; preds = %.lr.ph143, %129, %107, %120, %125, %.lr.ph157
  %.3105.lcssa = phi i32 [ %.2104155, %.lr.ph157 ], [ %.3105141, %125 ], [ %.3105141, %120 ], [ %.3105141, %107 ], [ %.4, %129 ], [ %.3105141, %.lr.ph143 ]
  %131 = add nuw i32 %.0116154, 1
  %.not120 = icmp eq i32 %131, %94
  br i1 %.not120, label %._crit_edge158, label %.lr.ph157, !llvm.loop !14

.loopexit:                                        ; preds = %._crit_edge163, %15, %12, %1
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt3mapIjSt6vectorIjSaIjEESt4lessIjESaISt4pairIKjS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #3

; 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 #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN8transoms9LinkQueueESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8transoms9LinkQueue17update_cum_statesEj(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef) local_unnamed_addr #2 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 #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK8transoms5Agent12get_link_numEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms5Agent17get_first_link_noEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8transoms5Agent16get_dep_intervalEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8transoms5Agent17reaches_last_linkEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8transoms5Agent16get_next_link_noEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8transoms5Agent16get_arr_intervalEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2 align 2

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !10}


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