; LLVM IR from stonne-simulator/omega :: omega-code/stonne/src/ASNetwork.ll (ZN9ASNetwork8getStatsEv)

; 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.ASNetworkStats = type <{ %class.Stats, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%class.Stats = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.ASwitchStats = type <{ %class.Stats, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"struct.std::_Rb_tree_iterator.23" = type { ptr }
%class.ConnectionStats = type { %class.Stats, i32, i32 }
%class.AccumulationBufferStats = type { %class.Stats, i32, i32, i32, i32, i32, i32 }
%class.ASNetwork = type <{ %class.ReduceNetwork, i32, i32, i32, [4 x i8], %"class.std::map", %"class.std::vector", %"class.std::vector", %"class.std::map.6", %"class.std::map.6", %"class.std::vector.11", ptr, ptr, i8, [3 x i8], %class.Config, [4 x i8] }>
%class.ReduceNetwork = type { %class.Unit }
%class.Unit = type { ptr, i32, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, ASwitch *>, std::_Select1st<std::pair<const std::pair<int, int>, ASwitch *>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, ASwitch *>, std::_Select1st<std::pair<const std::pair<int, int>, ASwitch *>>, std::less<std::pair<int, int>>>::_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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ASwitch *, std::allocator<ASwitch *>>::_Vector_impl" }
%"struct.std::_Vector_base<ASwitch *, std::allocator<ASwitch *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ASwitch *, std::allocator<ASwitch *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ASwitch *, std::allocator<ASwitch *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.6" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, Connection *>, std::_Select1st<std::pair<const std::pair<int, int>, Connection *>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, Connection *>, std::_Select1st<std::pair<const std::pair<int, int>, Connection *>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl" }
%"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Config = type { i32, %class.DSNetworkConfig, %class.DSwitchConfig, %class.MSNetworkConfig, %class.MSwitchConfig, %class.ASNetworkConfig, %class.ASwitchConfig, %class.LookUpTableConfig, %class.SDMemoryConfig }
%class.DSNetworkConfig = type { i32 }
%class.DSwitchConfig = type { i32, i32, i32, i32 }
%class.MSNetworkConfig = type { i32, i32, i32, i32 }
%class.MSwitchConfig = type { i32, i32, i32, i32, i32, i32 }
%class.ASNetworkConfig = type { i32, i32 }
%class.ASwitchConfig = type { i32, i32, i32, i32, i32, i32 }
%class.LookUpTableConfig = type { i32, i32 }
%class.SDMemoryConfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"struct.std::pair.21" = type { %"struct.std::pair", ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.24" = type { %"struct.std::pair", ptr }

; 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 nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9ASNetwork8getStatsEv(ptr dead_on_unwind noalias writable sret(%class.ASNetworkStats) align 8 %0, ptr noundef nonnull align 8 dereferenceable(460) %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %class.ASwitchStats, align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator.23", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator.23", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %class.ConnectionStats, align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator.23", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator.23", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %class.ConnectionStats, align 8
  %17 = alloca %class.AccumulationBufferStats, align 8
  %18 = alloca %class.AccumulationBufferStats, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  call void @_ZN14ASNetworkStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %20 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 5
  %21 = call ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %20) #4
  %22 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %5, i32 0, i32 0
  store ptr %21, ptr %22, align 8
  br label %23

23:                                               ; preds = %56, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %24 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 5
  %25 = call ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %24) #4
  %26 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %6, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  %27 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP7ASwitchEES8_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br i1 %27, label %29, label %28

28:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %58

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %30 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 5
  %31 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP7ASwitchEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %32 = getelementptr inbounds %"struct.std::pair.21", ptr %31, i32 0, i32 0
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef nonnull align 4 dereferenceable(8) %32)
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  store ptr %34, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #4
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7ASwitch8getStatsEv(ptr dead_on_unwind writable sret(%class.ASwitchStats) align 8 %8, ptr noundef nonnull align 8 dereferenceable(288) %35)
  %36 = getelementptr inbounds %class.ASwitchStats, ptr %8, i32 0, i32 2
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = getelementptr inbounds %class.ASNetworkStats, ptr %0, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = add i32 %39, %37
  store i32 %40, ptr %38, align 8, !tbaa !13
  %41 = getelementptr inbounds %class.ASwitchStats, ptr %8, i32 0, i32 4
  %42 = load i32, ptr %41, align 4, !tbaa !15
  %43 = getelementptr inbounds %class.ASNetworkStats, ptr %0, i32 0, i32 2
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = add i32 %44, %42
  store i32 %45, ptr %43, align 4, !tbaa !16
  %46 = getelementptr inbounds %class.ASwitchStats, ptr %8, i32 0, i32 6
  %47 = load i32, ptr %46, align 4, !tbaa !17
  %48 = getelementptr inbounds %class.ASNetworkStats, ptr %0, i32 0, i32 3
  %49 = load i32, ptr %48, align 8, !tbaa !18
  %50 = add i32 %49, %47
  store i32 %50, ptr %48, align 8, !tbaa !18
  %51 = getelementptr inbounds %class.ASwitchStats, ptr %8, i32 0, i32 7
  %52 = load i32, ptr %51, align 8, !tbaa !19
  %53 = getelementptr inbounds %class.ASNetworkStats, ptr %0, i32 0, i32 4
  %54 = load i32, ptr %53, align 4, !tbaa !20
  %55 = add i32 %54, %52
  store i32 %55, ptr %53, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %56

56:                                               ; preds = %29
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP7ASwitchEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br label %23, !llvm.loop !21

58:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %59 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 8
  %60 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %59) #4
  %61 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.23", ptr %9, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  br label %62

62:                                               ; preds = %80, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %63 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 8
  %64 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %63) #4
  %65 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.23", ptr %10, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  %66 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEES8_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br i1 %66, label %68, label %67

67:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %82

68:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %69 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 8
  %70 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %71 = getelementptr inbounds %"struct.std::pair.24", ptr %70, i32 0, i32 0
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %69, ptr noundef nonnull align 4 dereferenceable(8) %71)
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  store ptr %73, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN10Connection8getStatsEv(ptr dead_on_unwind writable sret(%class.ConnectionStats) align 8 %12, ptr noundef nonnull align 8 dereferenceable(64) %74)
  %75 = getelementptr inbounds %class.ConnectionStats, ptr %12, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !23
  %77 = getelementptr inbounds %class.ASNetworkStats, ptr %0, i32 0, i32 6
  %78 = load i32, ptr %77, align 4, !tbaa !25
  %79 = add i32 %78, %76
  store i32 %79, ptr %77, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %80

80:                                               ; preds = %68
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br label %62, !llvm.loop !26

82:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %83 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 9
  %84 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %83) #4
  %85 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.23", ptr %13, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  br label %86

86:                                               ; preds = %104, %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %87 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 9
  %88 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %87) #4
  %89 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.23", ptr %14, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  %90 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEES8_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br i1 %90, label %92, label %91

91:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %106

92:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %93 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 9
  %94 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  %95 = getelementptr inbounds %"struct.std::pair.24", ptr %94, i32 0, i32 0
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %93, ptr noundef nonnull align 4 dereferenceable(8) %95)
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  store ptr %97, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN10Connection8getStatsEv(ptr dead_on_unwind writable sret(%class.ConnectionStats) align 8 %16, ptr noundef nonnull align 8 dereferenceable(64) %98)
  %99 = getelementptr inbounds %class.ConnectionStats, ptr %16, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !23
  %101 = getelementptr inbounds %class.ASNetworkStats, ptr %0, i32 0, i32 6
  %102 = load i32, ptr %101, align 4, !tbaa !25
  %103 = add i32 %102, %100
  store i32 %103, ptr %101, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %104

104:                                              ; preds = %92
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br label %86, !llvm.loop !27

106:                                              ; preds = %91
  %107 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 13
  %108 = load i8, ptr %107, align 8, !tbaa !28, !range !68, !noundef !69
  %109 = trunc i8 %108 to i1
  %110 = zext i1 %109 to i32
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %112, label %127

112:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #4
  %113 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 12
  %114 = load ptr, ptr %113, align 8, !tbaa !70
  call void @_ZN18AccumulationBuffer8getStatsEv(ptr dead_on_unwind writable sret(%class.AccumulationBufferStats) align 8 %17, ptr noundef nonnull align 8 dereferenceable(200) %114)
  %115 = getelementptr inbounds %class.AccumulationBufferStats, ptr %17, i32 0, i32 1
  %116 = load i32, ptr %115, align 8, !tbaa !71
  %117 = getelementptr inbounds %class.ASNetworkStats, ptr %0, i32 0, i32 7
  %118 = load i32, ptr %117, align 8, !tbaa !73
  %119 = add i32 %118, %116
  store i32 %119, ptr %117, align 8, !tbaa !73
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #4
  %120 = getelementptr inbounds %class.ASNetwork, ptr %19, i32 0, i32 12
  %121 = load ptr, ptr %120, align 8, !tbaa !70
  call void @_ZN18AccumulationBuffer8getStatsEv(ptr dead_on_unwind writable sret(%class.AccumulationBufferStats) align 8 %18, ptr noundef nonnull align 8 dereferenceable(200) %121)
  %122 = getelementptr inbounds %class.AccumulationBufferStats, ptr %18, i32 0, i32 2
  %123 = load i32, ptr %122, align 4, !tbaa !74
  %124 = getelementptr inbounds %class.ASNetworkStats, ptr %0, i32 0, i32 5
  %125 = load i32, ptr %124, align 8, !tbaa !75
  %126 = add i32 %125, %123
  store i32 %126, ptr %124, align 8, !tbaa !75
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #4
  br label %127

127:                                              ; preds = %112, %106
  ret void
}

declare void @_ZN14ASNetworkStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ASwitch8getStatsEv(ptr dead_on_unwind noalias writable sret(%class.ASwitchStats) align 8, ptr noundef nonnull align 8 dereferenceable(288)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10Connection8getStatsEv(ptr dead_on_unwind noalias writable sret(%class.ConnectionStats) align 8, ptr noundef nonnull align 8 dereferenceable(64)) #2 align 2

declare void @_ZN18AccumulationBuffer8getStatsEv(ptr dead_on_unwind writable sret(%class.AccumulationBufferStats) align 8, ptr noundef nonnull align 8 dereferenceable(200)) #3

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 = { "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 = { 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, !12, i64 12}
!10 = !{!"_ZTS12ASwitchStats", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40}
!11 = !{!"_ZTS5Stats"}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTS14ASNetworkStats", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!15 = !{!10, !12, i64 20}
!16 = !{!14, !12, i64 12}
!17 = !{!10, !12, i64 28}
!18 = !{!14, !12, i64 16}
!19 = !{!10, !12, i64 32}
!20 = !{!14, !12, i64 20}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !12, i64 8}
!24 = !{!"_ZTS15ConnectionStats", !11, i64 0, !12, i64 8, !12, i64 12}
!25 = !{!14, !12, i64 28}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = !{!29, !54, i64 296}
!29 = !{!"_ZTS9ASNetwork", !30, i64 0, !12, i64 48, !12, i64 52, !12, i64 56, !35, i64 64, !43, i64 112, !43, i64 136, !47, i64 160, !47, i64 208, !50, i64 256, !6, i64 280, !6, i64 288, !54, i64 296, !55, i64 300}
!30 = !{!"_ZTS13ReduceNetwork", !31, i64 0}
!31 = !{!"_ZTS4Unit", !12, i64 8, !32, i64 16}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !34, i64 8, !7, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES0_IKS1_P7ASwitchESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES0_IKS1_P7ASwitchESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !34, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!43 = !{!"_ZTSSt6vectorIP7ASwitchSaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIP7ASwitchSaIS1_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIP7ASwitchSaIS1_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIP7ASwitchSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"_ZTSSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE", !48, i64 0}
!48 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES0_IKS1_P10ConnectionESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !49, i64 0}
!49 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES0_IKS1_P10ConnectionESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !38, i64 0, !40, i64 8}
!50 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!54 = !{!"bool", !7, i64 0}
!55 = !{!"_ZTS6Config", !12, i64 0, !56, i64 4, !57, i64 8, !58, i64 24, !60, i64 40, !61, i64 64, !63, i64 72, !64, i64 96, !65, i64 104}
!56 = !{!"_ZTS15DSNetworkConfig", !12, i64 0}
!57 = !{!"_ZTS13DSwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!58 = !{!"_ZTS15MSNetworkConfig", !59, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!59 = !{!"_ZTS19MultiplierNetwork_t", !7, i64 0}
!60 = !{!"_ZTS13MSwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!61 = !{!"_ZTS15ASNetworkConfig", !62, i64 0, !12, i64 4}
!62 = !{!"_ZTS15ReduceNetwork_t", !7, i64 0}
!63 = !{!"_ZTS13ASwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!64 = !{!"_ZTS17LookUpTableConfig", !12, i64 0, !12, i64 4}
!65 = !{!"_ZTS14SDMemoryConfig", !66, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !67, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52}
!66 = !{!"_ZTS18MemoryController_t", !7, i64 0}
!67 = !{!"_ZTS17MemoryHierarchy_t", !7, i64 0}
!68 = !{i8 0, i8 2}
!69 = !{}
!70 = !{!29, !6, i64 288}
!71 = !{!72, !12, i64 8}
!72 = !{!"_ZTS23AccumulationBufferStats", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!73 = !{!14, !12, i64 32}
!74 = !{!72, !12, i64 12}
!75 = !{!14, !12, i64 24}


; 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.ASNetworkStats = type <{ %class.Stats, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%class.Stats = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.ASwitchStats = type <{ %class.Stats, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"struct.std::_Rb_tree_iterator.23" = type { ptr }
%class.ConnectionStats = type { %class.Stats, i32, i32 }
%class.AccumulationBufferStats = type { %class.Stats, i32, i32, i32, i32, i32, i32 }

; 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 nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9ASNetwork8getStatsEv(ptr dead_on_unwind noalias nonnull writable sret(%class.ASNetworkStats) align 8 %0, ptr noundef nonnull align 8 dereferenceable(460) %1) unnamed_addr #1 align 2 {
  %3 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %class.ASwitchStats, align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator.23", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator.23", align 8
  %8 = alloca %class.ConnectionStats, align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator.23", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator.23", align 8
  %11 = alloca %class.ConnectionStats, align 8
  %12 = alloca %class.AccumulationBufferStats, align 8
  %13 = alloca %class.AccumulationBufferStats, align 8
  tail call void @_ZN14ASNetworkStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %14 = getelementptr inbounds i8, ptr %1, i64 64
  %15 = tail call ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
  store ptr %15, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %16 = tail call ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
  store ptr %16, ptr %4, align 8
  %17 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP7ASwitchEES8_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %18 = getelementptr inbounds i8, ptr %5, i64 12
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = getelementptr inbounds i8, ptr %5, i64 20
  %21 = getelementptr inbounds i8, ptr %5, i64 28
  br label %28

._crit_edge:                                      ; preds = %28, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %22 = getelementptr inbounds i8, ptr %1, i64 160
  %23 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #4
  store ptr %23, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %24 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #4
  store ptr %24, ptr %7, align 8
  %25 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br i1 %25, label %.lr.ph5, label %._crit_edge6

.lr.ph5:                                          ; preds = %._crit_edge
  %26 = getelementptr inbounds i8, ptr %8, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 28
  br label %48

28:                                               ; preds = %.lr.ph, %28
  %29 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP7ASwitchEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(8) %29)
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  call void @_ZN7ASwitch8getStatsEv(ptr dead_on_unwind nonnull writable sret(%class.ASwitchStats) align 8 %5, ptr noundef nonnull align 8 dereferenceable(288) %31)
  %32 = load <4 x i32>, ptr %18, align 4
  %33 = load i32, ptr %20, align 4, !tbaa !9
  %34 = load <4 x i32>, ptr %21, align 4
  %35 = load <4 x i32>, ptr %19, align 8, !tbaa !13
  %36 = insertelement <4 x i32> %32, i32 %33, i64 1
  %37 = shufflevector <4 x i32> %36, <4 x i32> %34, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  %38 = add <4 x i32> %35, %37
  store <4 x i32> %38, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP7ASwitchEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %40 = call ptr @_ZNSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
  store ptr %40, ptr %4, align 8
  %41 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP7ASwitchEES8_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br i1 %41, label %28, label %._crit_edge, !llvm.loop !14

._crit_edge6:                                     ; preds = %48, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %42 = getelementptr inbounds i8, ptr %1, i64 208
  %43 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %42) #4
  store ptr %43, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %44 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %42) #4
  store ptr %44, ptr %10, align 8
  %45 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEES8_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br i1 %45, label %.lr.ph8, label %._crit_edge9

.lr.ph8:                                          ; preds = %._crit_edge6
  %46 = getelementptr inbounds i8, ptr %11, i64 8
  %47 = getelementptr inbounds i8, ptr %0, i64 28
  br label %61

48:                                               ; preds = %.lr.ph5, %48
  %49 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 4 dereferenceable(8) %49)
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @_ZN10Connection8getStatsEv(ptr dead_on_unwind nonnull writable sret(%class.ConnectionStats) align 8 %8, ptr noundef nonnull align 8 dereferenceable(64) %51)
  %52 = load i32, ptr %26, align 8, !tbaa !16
  %53 = load i32, ptr %27, align 4, !tbaa !18
  %54 = add i32 %53, %52
  store i32 %54, ptr %27, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %56 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #4
  store ptr %56, ptr %7, align 8
  %57 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br i1 %57, label %48, label %._crit_edge6, !llvm.loop !20

._crit_edge9:                                     ; preds = %61, %._crit_edge6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %58 = getelementptr inbounds i8, ptr %1, i64 296
  %59 = load i8, ptr %58, align 8, !tbaa !21, !range !61, !noundef !62
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %71, label %85

61:                                               ; preds = %.lr.ph8, %61
  %62 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %42, ptr noundef nonnull align 4 dereferenceable(8) %62)
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @_ZN10Connection8getStatsEv(ptr dead_on_unwind nonnull writable sret(%class.ConnectionStats) align 8 %11, ptr noundef nonnull align 8 dereferenceable(64) %64)
  %65 = load i32, ptr %46, align 8, !tbaa !16
  %66 = load i32, ptr %47, align 4, !tbaa !18
  %67 = add i32 %66, %65
  store i32 %67, ptr %47, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %69 = call ptr @_ZNSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %42) #4
  store ptr %69, ptr %10, align 8
  %70 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKS0_IiiEP10ConnectionEES8_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br i1 %70, label %61, label %._crit_edge9, !llvm.loop !63

71:                                               ; preds = %._crit_edge9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #4
  %72 = getelementptr inbounds i8, ptr %1, i64 288
  %73 = load ptr, ptr %72, align 8, !tbaa !64
  call void @_ZN18AccumulationBuffer8getStatsEv(ptr dead_on_unwind nonnull writable sret(%class.AccumulationBufferStats) align 8 %12, ptr noundef nonnull align 8 dereferenceable(200) %73)
  %74 = getelementptr inbounds i8, ptr %12, i64 8
  %75 = load i32, ptr %74, align 8, !tbaa !65
  %76 = getelementptr inbounds i8, ptr %0, i64 32
  %77 = load i32, ptr %76, align 8, !tbaa !67
  %78 = add i32 %77, %75
  store i32 %78, ptr %76, align 8, !tbaa !67
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #4
  %79 = load ptr, ptr %72, align 8, !tbaa !64
  call void @_ZN18AccumulationBuffer8getStatsEv(ptr dead_on_unwind nonnull writable sret(%class.AccumulationBufferStats) align 8 %13, ptr noundef nonnull align 8 dereferenceable(200) %79)
  %80 = getelementptr inbounds i8, ptr %13, i64 12
  %81 = load i32, ptr %80, align 4, !tbaa !68
  %82 = getelementptr inbounds i8, ptr %0, i64 24
  %83 = load i32, ptr %82, align 8, !tbaa !69
  %84 = add i32 %83, %81
  store i32 %84, ptr %82, align 8, !tbaa !69
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #4
  br label %85

85:                                               ; preds = %71, %._crit_edge9
  ret void
}

declare void @_ZN14ASNetworkStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ASwitch8getStatsEv(ptr dead_on_unwind noalias writable sret(%class.ASwitchStats) align 8, ptr noundef nonnull align 8 dereferenceable(288)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10Connection8getStatsEv(ptr dead_on_unwind noalias writable sret(%class.ConnectionStats) align 8, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

declare void @_ZN18AccumulationBuffer8getStatsEv(ptr dead_on_unwind writable sret(%class.AccumulationBufferStats) align 8, ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #3

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 = { "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 = { 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, !12, i64 20}
!10 = !{!"_ZTS12ASwitchStats", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40}
!11 = !{!"_ZTS5Stats"}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !12, i64 8}
!17 = !{!"_ZTS15ConnectionStats", !11, i64 0, !12, i64 8, !12, i64 12}
!18 = !{!19, !12, i64 28}
!19 = !{!"_ZTS14ASNetworkStats", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!20 = distinct !{!20, !15}
!21 = !{!22, !47, i64 296}
!22 = !{!"_ZTS9ASNetwork", !23, i64 0, !12, i64 48, !12, i64 52, !12, i64 56, !28, i64 64, !36, i64 112, !36, i64 136, !40, i64 160, !40, i64 208, !43, i64 256, !6, i64 280, !6, i64 288, !47, i64 296, !48, i64 300}
!23 = !{!"_ZTS13ReduceNetwork", !24, i64 0}
!24 = !{!"_ZTS4Unit", !12, i64 8, !25, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE", !29, i64 0}
!29 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES0_IKS1_P7ASwitchESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES0_IKS1_P7ASwitchESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !31, i64 0, !33, i64 8}
!31 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !32, i64 0}
!32 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!33 = !{!"_ZTSSt15_Rb_tree_header", !34, i64 0, !27, i64 32}
!34 = !{!"_ZTSSt18_Rb_tree_node_base", !35, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!35 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!36 = !{!"_ZTSSt6vectorIP7ASwitchSaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIP7ASwitchSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIP7ASwitchSaIS1_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP7ASwitchSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE", !41, i64 0}
!41 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES0_IKS1_P10ConnectionESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !42, i64 0}
!42 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES0_IKS1_P10ConnectionESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !31, i64 0, !33, i64 8}
!43 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"bool", !7, i64 0}
!48 = !{!"_ZTS6Config", !12, i64 0, !49, i64 4, !50, i64 8, !51, i64 24, !53, i64 40, !54, i64 64, !56, i64 72, !57, i64 96, !58, i64 104}
!49 = !{!"_ZTS15DSNetworkConfig", !12, i64 0}
!50 = !{!"_ZTS13DSwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!51 = !{!"_ZTS15MSNetworkConfig", !52, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!52 = !{!"_ZTS19MultiplierNetwork_t", !7, i64 0}
!53 = !{!"_ZTS13MSwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!54 = !{!"_ZTS15ASNetworkConfig", !55, i64 0, !12, i64 4}
!55 = !{!"_ZTS15ReduceNetwork_t", !7, i64 0}
!56 = !{!"_ZTS13ASwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!57 = !{!"_ZTS17LookUpTableConfig", !12, i64 0, !12, i64 4}
!58 = !{!"_ZTS14SDMemoryConfig", !59, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !60, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52}
!59 = !{!"_ZTS18MemoryController_t", !7, i64 0}
!60 = !{!"_ZTS17MemoryHierarchy_t", !7, i64 0}
!61 = !{i8 0, i8 2}
!62 = !{}
!63 = distinct !{!63, !15}
!64 = !{!22, !6, i64 288}
!65 = !{!66, !12, i64 8}
!66 = !{!"_ZTS23AccumulationBufferStats", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!67 = !{!19, !12, i64 32}
!68 = !{!66, !12, i64 12}
!69 = !{!19, !12, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass